test-fsync: enhance tests
[gnulib.git] / ChangeLog
1 2011-09-16  Eric Blake  <eblake@redhat.com>
2
3         test-fsync: enhance tests
4         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5         * tests/test-fsync.c (main): Enhance test.
6
7 2011-09-15  Bruno Haible  <bruno@clisp.org>
8
9         Support for MSVC compiler: Ensure ssize_t gets defined.
10         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11         * doc/posix-headers/stdio.texi: Likewise.
12         * modules/stdio (Depends-on): Add ssize_t.
13         * modules/sys_socket (Depends-on): Likewise.
14         * modules/sys_types (Depends-on): Likewise.
15         * modules/sys_uio (Depends-on): Likewise.
16         * modules/unistd (Depends-on): Likewise.
17         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
18         * tests/test-sys_types.c: Check that ssize_t is defined.
19
20 2011-09-14  Bruno Haible  <bruno@clisp.org>
21
22         Avoid using #, the m4 comment starter character, near brackets.
23         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
24         delimiter character in sed expressions.
25         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26         Suggested by Eric Blake.
27
28         Properly quote AC_CHECK_DECLS' 4th argument.
29         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30         argument.
31         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
37         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
38         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
39         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
40         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
41         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
42         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44         * m4/isinf.m4 (gl_ISINF): Likewise.
45         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
46         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
52         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
53         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
54         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
55         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
56         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
58         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60         Reported by Eric Blake.
61
62         Properly quote AC_CHECK_DECL's 4th argument.
63         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
64         argument.
65         * m4/argp.m4 (gl_ARGP): Likewise.
66         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
67         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
69         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
70         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
71         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
72         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
73         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
74         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
75         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
76         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
77         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
78         Reported by Eric Blake.
79
80 2011-09-14  Eric Blake  <eblake@redhat.com>
81
82         opendir: avoid compile warning
83         * lib/opendir.c (includes): Always include errno.h.
84         Reported by Tatsuro MATSUOKA.
85
86 2011-09-14  Jim Meyering  <meyering@redhat.com>
87
88         maint.mk: sc_tight_scope: propagate failure from sub-make
89         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
90         Reported by Martin von Gagern.
91
92 2011-09-13  Bruno Haible  <bruno@clisp.org>
93
94         tempname: Support for MSVC.
95         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
96         MSVC.
97         * modules/tempname (Depends-on): Add fcntl-h.
98
99 2011-09-13  Bruno Haible  <bruno@clisp.org>
100
101         sys_time: Support for MSVC.
102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
103         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
104         include <winsock2.h>.
105         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
106         function declarations that collide with POSIX.
107         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
108         (Makefile.am): Substitute HAVE_WINSOCK2_H.
109
110 2011-09-13  Bruno Haible  <bruno@clisp.org>
111
112         stat: Support for MSVC.
113         * lib/stat.c: Include pathmax.h.
114         * modules/stat (Depends-on): Add pathmax.
115
116         pathmax: Support for native Windows.
117         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
118
119 2011-09-12  Bruno Haible  <bruno@clisp.org>
120
121         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
122         * lib/dirent.in.h (struct dirent): New type.
123         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
124         DT_WHT): New macros.
125         (DIR): New type.
126         (opendir, closedir): Declare only if the module 'opendir' is enabled.
127         (readdir, rewinddir): New declarations.
128         * lib/dirent-private.h: New file.
129         * lib/opendir.c: New file.
130         * lib/readdir.c: New file.
131         * lib/rewinddir.c: New file.
132         * lib/closedir.c: New file.
133         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
134         * m4/opendir.m4: New file.
135         * m4/readdir.m4: New file.
136         * m4/rewinddir.m4: New file.
137         * m4/closedir.m4: New file.
138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
139         REPLACE_CLOSEDIR here.
140         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
141         readdir, rewinddir are declared.
142         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
143         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
144         HAVE_REWINDDIR, HAVE_CLOSEDIR.
145         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
146         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
147         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
148         * modules/opendir: New file.
149         * modules/readdir: New file.
150         * modules/rewinddir: New file.
151         * modules/closedir: New file.
152         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
153         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
154         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
155         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
156         * NEWS: Mention the 'fchdir' change.
157
158 2011-09-11  Bruno Haible  <bruno@clisp.org>
159
160         asm-underscore.m4: Support for MSVC.
161         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
162         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
163
164 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
165
166         Doc about crypt functions.
167         * doc/posix-functions/crypt.texi: Expand range of glibc versions
168         needing for _GNU_SOURCE to get crypt.
169         * doc/posix-functions/encrypt.texi: Likewise.
170         * doc/posix-functions/setkey.texi: Likewise.
171
172 2011-09-11  Bruno Haible  <bruno@clisp.org>
173
174         doc: Update regarding MSVC 9.
175         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
176         tested".
177         * doc/posix-functions/*.texi: Update with info about MSVC 9.
178         * doc/posix-headers/*.texi: Likewise.
179         * doc/pastposix-functions/*.texi: Likewise.
180         * doc/glibc-functions/*.texi: Likewise.
181         * doc/glibc-headers/*.texi: Likewise.
182
183 2011-09-11  Bruno Haible  <bruno@clisp.org>
184
185         unistd et al.: Don't assume <unistd.h> exists.
186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
187         does not exist.
188         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
189         exist. But include <stdlib.h>.
190         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
191         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
192         symlink() does not exist.
193         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
194         include <io.h> instead.
195         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
197         include <direct.h> instead.
198         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
199         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
200         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
201         <io.h> instead.
202         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
203         correctly if the system does not have hard links.
204         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
205         <direct.h> instead.
206         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
207         it when looking for function declarations.
208         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
209         <direct.h> and <io.h> instead.
210         * doc/posix-headers/unistd.texi: More details about MSVC problem.
211
212 2011-09-11  Bruno Haible  <bruno@clisp.org>
213
214         strcase: Support for MSVC.
215         * modules/strcase (Status, Notice): Remove obsoletion mark.
216         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
217         * doc/posix-functions/strncasecmp.texi: Likewise.
218
219         strings: Don't assume <strings.h> exists.
220         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
221         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
222         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
223         * doc/posix-headers/strings.texi: Mention the MSVC problem.
224
225 2011-09-11  Bruno Haible  <bruno@clisp.org>
226
227         dirent: Don't assume <dirent.h> exists.
228         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
229         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
230         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
231         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
232
233 2011-09-11  Bruno Haible  <bruno@clisp.org>
234
235         Fix wint_t on MSVC.
236         * lib/wchar.in.h (wint_t): On MSVC, override it.
237         * lib/wctype.in.h (wint_t): Likewise.
238         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
239         MSVC.
240         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
241         * doc/posix-headers/wctype.texi: Likewise.
242
243 2011-09-11  Bruno Haible  <bruno@clisp.org>
244
245         sys_types: Fix typo.
246         * lib/sys_types.in.h: Fix typo in comment.
247         Reported by Paul Eggert.
248
249         Support for MSVC compiler: Ensure size_t gets defined.
250         * modules/strings (Depends-on): Add 'sys_types'.
251         * modules/sys_uio (Depends-on): Likewise.
252         * lib/sys_uio.in.h: Update comment.
253
254         C++ tests for module 'sys_types'.
255         * modules/sys_types-c++-tests: New file.
256         * tests/test-sys_types-c++.cc: New file.
257
258         Tests for module 'sys_types'.
259         * modules/sys_types-tests: New file.
260         * tests/test-sys_types.c: New file.
261
262         New module 'sys_types'.
263         * lib/sys_types.in.h: New file.
264         * m4/sys_types_h.m4: New file.
265         * modules/sys_types: New file.
266         * doc/posix-headers/sys_types.texi: Mention the new module and the
267         size_t problem on MSVC 9.
268
269 2011-09-11  Bruno Haible  <bruno@clisp.org>
270
271         Support for MSVC compiler: Avoid division by a literal 0.
272         * lib/math.in.h (NAN): Define through a function call also on MSVC.
273         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
274         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
275         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
276         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
277         * tests/infinity.h: New file.
278         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
279         on MSVC.
280         * tests/test-ceilf1.c: Include infinity.h.
281         (main): Use Infinityf.
282         * tests/test-ceil1.c: Include infinity.h.
283         (main): Use Infinityd.
284         * tests/test-ceill.c: Include infinity.h.
285         (main): Use Infinityl.
286         * tests/test-dprintf-posix.c: Include infinity.h.
287         (test_function): Use Infinityd.
288         * tests/test-floorf1.c: Include infinity.h.
289         (main): Use Infinityf.
290         * tests/test-floor1.c: Include infinity.h.
291         (main): Use Infinityd.
292         * tests/test-floorl.c: Include infinity.h.
293         (main): Use Infinityl.
294         * tests/test-fprintf-posix.c: Include infinity.h.
295         (test_function): Use Infinityd.
296         * tests/test-frexp.c: Include infinity.h.
297         (main): Use Infinityd.
298         * tests/test-frexpl.c: Include infinity.h.
299         (main): Use Infinityl.
300         * tests/test-isfinite.c: Include infinity.h.
301         (test_isfinitef): Use Infinityf.
302         (test_isfinited): Use Infinityd.
303         (test_isfinitel): Use Infinityl.
304         * tests/test-isinf.c: Include infinity.h.
305         (test_isinff): Use Infinityf.
306         (test_isinfd): Use Infinityd.
307         (test_isinfl): Use Infinityl.
308         * tests/test-isnan.c: Include infinity.h.
309         (test_float): Use Infinityf.
310         (test_double): Use Infinityd.
311         (test_long_double): Use Infinityl.
312         * tests/test-isnanf.h: Include infinity.h.
313         (main): Use Infinityf.
314         * tests/test-isnand.h: Include infinity.h.
315         (main): Use Infinityd.
316         * tests/test-isnanl.h: Include infinity.h.
317         (main): Use Infinityl.
318         * tests/test-ldexpl.c: Include infinity.h.
319         (main): Use Infinityl.
320         * tests/test-printf-posix.h: Include infinity.h.
321         (test_function): Use Infinityd.
322         * tests/test-roundf1.c: Include infinity.h.
323         (main): Use Infinityf.
324         * tests/test-round1.c: Include infinity.h.
325         (main): Use Infinityd.
326         * tests/test-roundl.c: Include infinity.h.
327         (main): Use Infinityl.
328         * tests/test-signbit.c: Include infinity.h.
329         (test_signbitf): Use Infinityf.
330         (test_signbitd): Use Infinityd.
331         (test_signbitl): Use Infinityl.
332         * tests/test-snprintf-posix.h: Include infinity.h.
333         (test_function): Use Infinityd, Infinityl.
334         * tests/test-sprintf-posix.h: Include infinity.h.
335         (test_function): Use Infinityd, Infinityl.
336         * tests/test-truncf1.c: Include infinity.h.
337         (main): Use Infinityf.
338         * tests/test-trunc1.c: Include infinity.h.
339         (main): Use Infinityd.
340         * tests/test-truncl.c: Include infinity.h.
341         (main): Use Infinityl.
342         * tests/test-vasnprintf-posix.c: Include infinity.h.
343         (test_function): Use Infinityd, Infinityl.
344         * tests/test-vasprintf-posix.c: Include infinity.h.
345         (test_function): Use Infinityd, Infinityl.
346         * modules/ceilf-tests (Files): Add tests/infinity.h.
347         * modules/ceil-tests (Files): Likewise.
348         * modules/ceill-tests (Files): Likewise.
349         * modules/dprintf-posix-tests (Files): Likewise.
350         * modules/floorf-tests (Files): Likewise.
351         * modules/floor-tests (Files): Likewise.
352         * modules/floorl-tests (Files): Likewise.
353         * modules/fprintf-posix-tests (Files): Likewise.
354         * modules/frexp-tests (Files): Likewise.
355         * modules/frexp-nolibm-tests (Files): Likewise.
356         * modules/frexpl-tests (Files): Likewise.
357         * modules/frexpl-nolibm-tests (Files): Likewise.
358         * modules/isfinite-tests (Files): Likewise.
359         * modules/isinf-tests (Files): Likewise.
360         * modules/isnan-tests (Files): Likewise.
361         * modules/isnanf-tests (Files): Likewise.
362         * modules/isnanf-nolibm-tests (Files): Likewise.
363         * modules/isnand-tests (Files): Likewise.
364         * modules/isnand-nolibm-tests (Files): Likewise.
365         * modules/isnanl-tests (Files): Likewise.
366         * modules/isnanl-nolibm-tests (Files): Likewise.
367         * modules/ldexpl-tests (Files): Likewise.
368         * modules/printf-posix-tests (Files): Likewise.
369         * modules/roundf-tests (Files): Likewise.
370         * modules/round-tests (Files): Likewise.
371         * modules/roundl-tests (Files): Likewise.
372         * modules/signbit-tests (Files): Likewise.
373         * modules/snprintf-posix-tests (Files): Likewise.
374         * modules/sprintf-posix-tests (Files): Likewise.
375         * modules/truncf-tests (Files): Likewise.
376         * modules/trunc-tests (Files): Likewise.
377         * modules/truncl-tests (Files): Likewise.
378         * modules/vasnprintf-posix-tests (Files): Likewise.
379         * modules/vasprintf-posix-tests (Files): Likewise.
380         * modules/vdprintf-posix-tests (Files): Likewise.
381         * modules/vfprintf-posix-tests (Files): Likewise.
382         * modules/vprintf-posix-tests (Files): Likewise.
383         * modules/vsnprintf-posix-tests (Files): Likewise.
384         * modules/vsprintf-posix-tests (Files): Likewise.
385         * modules/xprintf-posix-tests (Files): Likewise.
386
387 2011-09-11  Bruno Haible  <bruno@clisp.org>
388
389         Ensure pid_t gets defined.
390         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
391         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
392         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
393         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
394         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
395         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
396         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
397         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
398         * tests/test-fcntl-h.c: Check that pid_t is defined.
399         * tests/test-sched.c: Likewise.
400         * tests/test-termios.c: Likewise.
401         * tests/test-time.c: Likewise.
402         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
403         * doc/posix-headers/signal.texi: Likewise.
404         * doc/posix-headers/sys_types.texi: Likewise.
405         * doc/posix-headers/time.texi: Likewise.
406
407 2011-09-11  Bruno Haible  <bruno@clisp.org>
408
409         acl: Fix compilation on Solaris 10 (older version).
410         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
411         of ACE_EVERYONE.
412         * lib/set-mode-acl.c (qset_acl): Likewise.
413         Reported by Christian Jullien <eligis@orange.fr>.
414
415 2011-09-10  Bruno Haible  <bruno@clisp.org>
416
417         iconv, unsetenv: Add support for MSVC compiler.
418         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
419         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
420
421 2011-09-10  Bruno Haible  <bruno@clisp.org>
422
423         *printf: Add support for MSVC compiler.
424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
425         handles the exception caused by the %n directive. When cross-compiling,
426         guess no on native Windows.
427         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
428         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
429         emulate it through vsnprintf.
430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
431         * doc/posix-functions/dprintf.texi: Update documentation regarding
432         MSVC 9.
433         * doc/posix-functions/fprintf.texi: Likewise.
434         * doc/posix-functions/printf.texi: Likewise.
435         * doc/posix-functions/snprintf.texi: Likewise.
436         * doc/posix-functions/sprintf.texi: Likewise.
437         * doc/posix-functions/swprintf.texi: Likewise.
438         * doc/posix-functions/vdprintf.texi: Likewise.
439         * doc/posix-functions/vfprintf.texi: Likewise.
440         * doc/posix-functions/vprintf.texi: Likewise.
441         * doc/posix-functions/vsnprintf.texi: Likewise.
442         * doc/posix-functions/vsprintf.texi: Likewise.
443         * doc/glibc-functions/asprintf.texi: Likewise.
444         * doc/glibc-functions/obstack_printf.texi: Likewise.
445         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
446         * doc/glibc-functions/vasprintf.texi: Likewise.
447
448 2011-09-10  Bruno Haible  <bruno@clisp.org>
449
450         nocrash: Add support for native Windows.
451         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
452
453 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
454             Bruno Haible  <bruno@clisp.org>
455
456         absolute-header, include-next: Add support for MSVC compiler.
457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
458         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
459         directory separator in #line directives.
460         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
461         recognize also backslash as directory separator in #line directives.
462
463 2011-09-08  Jim Meyering  <meyering@redhat.com>
464
465         maint.mk: mark the post-release commit log with "maint: " prefix
466         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
467         one-line commit-log summary.
468
469 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
470             Bruno Haible  <bruno@clisp.org>
471
472         Doc about crypt functions.
473         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
474         systems.
475         * doc/posix-functions/encrypt.texi: Likewise.
476         * doc/posix-functions/setkey.texi: Likewise.
477
478 2011-09-08  Simon Josefsson  <simon@josefsson.org>
479
480         * lib/gc.h: Fix copyright header.
481
482 2011-09-07  Bruno Haible  <bruno@clisp.org>
483
484         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
485         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
486         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
487
488 2011-09-07  Bruno Haible  <bruno@clisp.org>
489
490         openat: Work around compilation error with OSF/1 5.1 DTK cc.
491         * lib/fopen.c: Use different syntax for include of <stdio.h>.
492         * lib/freopen.c: Likewise.
493         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
494         * lib/lstat.c: Likewise.
495         * lib/stat.c: Likewise.
496         * lib/open.c: Use different syntax for include of <fcntl.h>.
497         * lib/openat.c: Include fcntl.h again, explicitly.
498
499 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
500
501         parse-datetime: document the newly accepted format
502         * doc/parse-datetime.texi (Combined date and time of day items):
503         New section.
504
505 2011-09-06  Bruno Haible  <bruno@clisp.org>
506
507         acl: Fix a test failure on newer Solaris 10 with ZFS.
508         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
509         ENOSYS as no ACL.
510         Reported by Jim Meyering.
511
512 2011-09-06  Bruno Haible  <bruno@clisp.org>
513
514         acl: Update for AIX >= 5.3 with NFS.
515         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
516         ENOSYS as no ACL.
517
518         acl: Fix a test failure on AIX >= 5.3 with NFS.
519         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
520         as no ACL.
521
522 2011-09-06  Bruno Haible  <bruno@clisp.org>
523
524         acl: Fix a test failure on IRIX 6.5 with NFS.
525         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
526         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
527         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
528         * lib/copy-acl.c (qcopy_acl): Likewise.
529
530 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
531
532         openat: port to AIX 7.1 with large files
533         AIX 7.1 does a "#define openat open64at" if large files are in use,
534         so we can't simply #undef openat.  Use the orig_openat trick (similar
535         to orig_open in lib/open.c) to work around the problem.  Problem
536         reported by Kevin Brott for GNU tar, in the thread containing
537         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
538         * lib/openat.c (__need_system_fcntl_h): Define first.
539         Include <fcntl.h> and <sys/types.h> before undefining.
540         (orig_openat) [HAVE_OPENAT]: New inline function.
541         (openat) [HAVE_OPENAT]: Do not undef.
542         (rpl_openat): Use orig_openat, not openat.
543
544 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
545             Bruno Haible  <bruno@clisp.org>
546
547         acl: Avoid errors on NonStop Kernel.
548         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
549         ENOTSUP errors.
550
551 2011-09-05  Bruno Haible  <bruno@clisp.org>
552
553         acl: Clean up Solaris code.
554         * lib/acl-internal.h: Remove no-op #if.
555         * lib/file-has-acl.c: Likewise.
556         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
557         * lib/copy-acl.c (qcopy_acl): Likewise.
558
559 2011-09-05  Bruno Haible  <bruno@clisp.org>
560
561         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
562         binaries built on the original Solaris 10.
563         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
564         trivial.
565
566 2011-09-05  Bruno Haible  <bruno@clisp.org>
567
568         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
569         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
570         10.
571         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
572         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
573         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
574         instead of acl_get, facl_get, acl_set, facl_set.
575
576 2011-09-05  Bruno Haible  <bruno@clisp.org>
577
578         copy-file: Try unit tests on more file systems.
579         * tests/test-copy-file-1.sh: New file.
580         * tests/test-copy-file-2.sh: New file.
581         * modules/copy-file-tests (Files): Add them.
582         (Makefile.am): Add them to TESTS.
583
584         acl: Try unit tests on more file systems.
585         * tests/test-file-has-acl-1.sh: New file.
586         * tests/test-file-has-acl-2.sh: New file.
587         * tests/test-set-mode-acl-1.sh: New file.
588         * tests/test-set-mode-acl-2.sh: New file.
589         * tests/test-copy-acl-1.sh: New file.
590         * tests/test-copy-acl-2.sh: New file.
591         * modules/acl-tests (Files): Add them.
592         (Makefile.am): Add them to TESTS.
593
594 2011-09-04  Bruno Haible  <bruno@clisp.org>
595
596         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
597         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
598         10.
599         (OLD_ALLOW, OLD_DENY): New macros.
600         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
601         ACE_ACCESS_ALLOWED_ACE_TYPE.
602         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
603         ACE_ACCESS_DENIED_ACE_TYPE.
604         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
605         (NEW_ACE_EXECUTE): Fix value.
606         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
607         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
608         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
609         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
610         NEW_ACE_SYNCHRONIZE): New macros.
611         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
612         instead of acl_fromtext, acl_set, facl_set.
613         Fixes a coreutils/tests/cp/perm failure.
614
615 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
616
617         openat: test for fstatat (..., 0) bug
618         Further testing with tar suggests that fstatat (..., 0)
619         does not work in general, on AIX 7.1; see
620         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
621         So, give up entirely on AIX 7.1's fstatat, and fall back on our
622         replacement fstatat (which is what older AIX releases were using
623         anyway).
624         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
625         use is now changed to orig_fstatat.  This was probably the right
626         thing to do anyway.
627         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
628         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
629         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
630         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
631         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
632         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
633         if the bug is found.
634
635         openat: test for fstatat (AT_FDCWD, ..., 0) bug
636         This tests for another fstatat bug on AIX 7.1:
637         fstatat (AT_FDCWD, ..., 0) does not work.  See
638         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
639         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
640         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
641         (rpl_fstatat): Adjust so that it works around either (or both)
642         bugs if present.
643         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
644
645 2011-09-03  Karl Berry  <karl@gnu.org>
646
647         * doc/regex.texi (Character Class Operators): Avoid literal ":"
648         in index entries.
649
650 2011-09-02  Bruno Haible  <bruno@clisp.org>
651
652         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
653         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
654         values of AR, ARFLAGS, RANLIB.
655         Reported by John W. Eaton <jwe@gnu.org> for Octave.
656
657 2011-09-02  Bruno Haible  <bruno@clisp.org>
658
659         Find 'ar' program that fits with --host argument.
660         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
661
662 2011-09-02  Bruno Haible  <bruno@clisp.org>
663
664         tests: init.sh: Support any non-GNU diff.
665         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
666         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
667         Solaris 8.
668
669 2011-09-02  Bruno Haible  <bruno@clisp.org>
670
671         tests: init.sh: work also with any non-GNU diff that supports -u
672         * tests/init.sh: Relax check for diff -u support.
673         Rather than checking for GNU diff via --version, simply check
674         for support for -u itself.  Useful at least on OpenBSD 4.9,
675         AIX 7.1, IRIX 6.5, and Solaris 10.
676
677 2011-09-01  Bruno Haible  <bruno@clisp.org>
678
679         strtoimax, strtoumax: Document problem on HP-UX 11.
680         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
681         * doc/posix-functions/strtoumax.texi: Likewise.
682
683 2011-09-01  Bruno Haible  <bruno@clisp.org>
684
685         strtoumax: Avoid link error on OSF/1 with DTK cc.
686         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
687         defined as a function.
688         * modules/strtoumax (Depends-on, configure.ac): Test only whether
689         strtoumax is defined, not whether it is declared.
690
691 2011-09-01  Bruno Haible  <bruno@clisp.org>
692
693         strtoimax: Avoid link error on OSF/1 with DTK cc.
694         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
695         defined as a function.
696         * modules/strtoimax (Depends-on, configure.ac): Test only whether
697         strtoimax is defined, not whether it is declared.
698
699 2011-09-01  Bruno Haible  <bruno@clisp.org>
700
701         imaxdiv: Avoid link error on OSF/1 with DTK cc.
702         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
703         as a function.
704         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
705         whether it is declared.
706
707 2011-09-01  Bruno Haible  <bruno@clisp.org>
708
709         imaxabs: Avoid link error on OSF/1 with DTK cc.
710         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
711         as a function.
712         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
713         whether it is declared.
714
715 2011-09-01  Bruno Haible  <bruno@clisp.org>
716
717         Tests for module 'strtoumax'.
718         * modules/strtoumax-tests: New file.
719         * tests/test-strtoumax.c: New file.
720
721         Tests for module 'strtoimax'.
722         * modules/strtoimax-tests: New file.
723         * tests/test-strtoimax.c: New file.
724
725         Tests for module 'imaxdiv'.
726         * modules/imaxdiv-tests: New file.
727         * tests/test-imaxdiv.c: New file.
728
729         Tests for module 'imaxabs'.
730         * modules/imaxabs-tests: New file.
731         * tests/test-imaxabs.c: New file.
732
733 2011-09-01  Bruno Haible  <bruno@clisp.org>
734
735         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
736         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
737         pthread_create.
738
739 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
740
741         openat: work around AIX 7.1 fstatat issue
742         This should fix the problem that was not properly fixed
743         in the previous change, dated 2011-08-30.
744         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
745         __need_system_stat_h defined.
746         (orig_fstatat) [HAVE_FSTATAT]: New function.
747         (rpl_fstatat): Go back to the old way of doing things,
748         except call orig_fstatat instead of fstatat.
749         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
750         Remove unnecessary check whether fstatat fills in st_size etc.
751
752 2011-09-01  Bruno Haible  <bruno@clisp.org>
753
754         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
755         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
756         just include the system's header.
757
758 2011-08-31  Jim Meyering  <meyering@redhat.com>
759
760         tests: avoid spurious assertion failure in test-float.c on ppc64
761         * tests/test-float.c (test_long_double): Comment out an assertion,
762         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
763         with gcc-4.4.4.
764
765         maint: indent with spaces, not TABs
766         I need to get in the habit of running gnulib's "make check".
767         Both of these would have been caught.
768         * m4/largefile.m4: Indent with spaces, not TABs.
769         * lib/parse-datetime.y (iso_8601_time): Likewise.
770         Spotted by Pádraig Brady.
771
772         test-parse-datetime.c: accommodate a relatively strict gcc warning
773         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
774         to avoid a warning from gcc's -Werror=missing-declarations.
775         Insert a few spaces-before-funcall-parenthesis.
776
777 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
778
779         parse-datetime: accept ISO 8601 date and time rep with "T" separator
780         The parser now accepts ISO 8601 date-time strings with "T" as the
781         separator.  It has long parsed dates like "2004-02-29 16:21:42"
782         with a space between the date and time strings.  Now it also parses
783         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
784         variants like "2004-02-29T16:21:42.333-07:00"
785         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
786         of day representation using the 'T' separator character.
787         * doc/parse-datetime.texi (General date syntax): replace use of
788         deprecated --iso-8601 option with --rfc-3339 in example of date
789         command output formats that can be parsed.
790         * tests/test-parse-datetime.c (tm_diff): New function, taken from
791         lib/parse-datetime.y.
792         (gmt_offset): New function.
793         (main): Add additional test cases to validate ISO8601 extended
794         date and time of day parsing.
795
796 2011-08-31  Bruno Haible  <bruno@clisp.org>
797
798         freopen: Documentation.
799         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
800         name.
801         Reported by Claudio Bley <claudio.bley@gmail.com>.
802
803 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
804
805         freopen: Don't crash if the filename argument is NULL.
806         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
807         NULL.
808
809 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
810
811         openat: work around AIX 7.1 fstatat bug
812         Problem reported by Kevin Brott for GNU tar, in the thread containing
813         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
814         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
815         FSTATAT_ST_SIZE_ETC_BROKEN.
816         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
817         rpl_fstatat.
818         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
819         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
820         AC_CHECK_FUNCS_ONCE for fstatat.
821         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
822         fchmodat, mkdirat, openat and unlinkat.
823
824 2011-08-30  Bruno Haible  <bruno@clisp.org>
825
826         Avoid endless recursions if config.h includes some header files.
827         * lib/fopen.c (__need_FILE): Define already before including config.h.
828         * lib/freopen.c (__need_FILE): Likewise.
829         * lib/open.c (__need_system_fcntl_h): Likewise.
830         * lib/stat.c (__need_system_sys_stat_h): Likewise.
831         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
832         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
833
834 2011-08-25  Karl Berry  <karl@gnu.org>
835
836         * config/srclist.txt (ylwrap): new try.
837         * build-aux/ylwrap: new file.
838
839 2011-08-23  Bruno Haible  <bruno@clisp.org>
840
841         tmpdir: Use a good default directory on native Windows.
842         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
843         (P_tmpdir): Default to _P_tmpdir on native Windows.
844         (path_search): On native Windows, try the value returned by GetTempPath
845         before trying P_tmpdir.
846         * modules/tmpdir (Depends-on): Add pathmax.
847         Suggested by John Darrington <john@darrington.wattle.id.au>.
848
849 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
850
851         doc: fix typo in README-release
852         * top/README-release: Capitalize first word of a sentence.
853
854 2011-08-19  Jim Meyering  <meyering@redhat.com>
855
856         fts: do not exhaust memory when processing million-entry directories
857         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
858         directory would require about 256*N bytes of memory.  Thus, it was
859         easy to construct a directory too large to be processed by any of
860         those tools.  With this change, fts' maximum memory utilization is
861         now limited to around 30MB.
862         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
863         (fts_read): When we've processed the final entry (i.e., when
864         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
865         using the parent entry to read any remaining entries.  Dispatch
866         depending on what fts_build returns:
867         - NULL+stop, aka failure: stop
868         - NULL otherwise: move up in the dir hierarchy
869         - non-NULL: handle this new entry
870         (fts_build): Declare and use new local, continue_readdir.
871         Prepare to be called from fts_read, when the entries
872         from a partially-read directory have just been exhausted.
873         In that case, we'll skip the opendir and instead use the parent's
874         fts_dirp and derive dir_fd from that.
875         Finally, in the readdir loop, if we read max_entries entries,
876         exit the loop ensuring *not* to call closedir.  This is required
877         so that fts_dirp can be reused on a subsequent call.
878         Prompted by Ben England's report of memory exhaustion in find
879         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
880
881         maint: fts: move decl of `dp' down into while loop; split a long line
882         * lib/fts.c (fts_build): No semantic change.
883
884         fts: add/use new struct member, fts_dirp
885         We are about to use this to manage any directory with
886         too many entries to read all of them into memory at once.
887         To do that, we'll need to save the DIR* pointer in each
888         affected FTSENT struct.
889         * lib/fts_.h: Include <dirent.h>.
890         (struct FTSENT) [fts_dirp]: New member.
891         * lib/fts.c (closedir_and_clear): Define.
892         Use it in place of closedir so that we are sure to
893         clear the new fts_dirp member when done with it.
894         (fts_alloc): Initialize the new member.
895         (fts_lfree): Free, if needed.
896
897         maint: fts: give __opendir2 a new parameter and rename
898         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
899         than surreptitiously using sole caller's "dir_fd".
900         (fts_opendir): Rename from __opendir2.
901
902         maint: fts.c: remove __opendir2's now-unused parameter, oflag
903         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
904
905         maint: fts.c: correct off-by-one indentation
906         * lib/fts.c (fts_build): Correct indentation, change style
907         of a couple of block comments, and bracing style.
908
909         maint: fts.c: move __opendir2 #define "up" out of function body
910         * lib/fts.c (__opendir2): Move "up".  No semantic change.
911
912         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
913         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
914         out for a long time and besides was useful only on BSD systems.
915
916 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
917
918         regex: port to Stratus OpenVOS
919         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
920         define to empty, rather than attempting nonportable optimizations.
921         Problem reported by Paul Green in:
922         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
923         and fix suggested by Eric Blake in:
924         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
925
926 2011-08-17  Eric Blake  <eblake@redhat.com>
927
928         getcwd: fix test failures on mingw
929         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
930         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
931         test if long directory cannot be created, and allow mingw errno.
932
933         getcwd-lgpl: fix m4 to match relaxed test for BSD
934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
935         (gl_FUNC_GETCWD_SIGNATURE): New macro.
936         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
937         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
938         signature problem.
939
940         getcwd: fix compilation on mingw64
941         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
942         getcwd.
943         Reported by Marc-André Lureau.
944
945         pipe2: silence compiler warning
946         * lib/pipe2.c (pipe2): Hide label if it is not used.
947
948 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
949
950         relocatable-prog: fix link error
951         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
952         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
953         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
954         into modules/relocatable-lib without noticing that
955         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
956         also needs to build relocatable.c.
957
958 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
959
960         getaddrinfo: fix sh typo in gai_strerrorA decl checking
961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
962         shell code: it contained a 'break' that was not in a loop.
963         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
964         via a shell-language loop; this may have been true in old Autoconf
965         versions, but it's not true in Autoconf 2.68.  I found this bug
966         when testing coreutils git on Solaris 8, whose shell complains
967         about the syntax error.
968
969 2011-08-12  Simon Josefsson  <simon@josefsson.org>
970
971         * lib/base64.c: Fix comment to reference RFC 4648.
972         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
973         <gvtulder@gmail.com>.
974
975 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
976
977         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
978
979         po/Makefile.in.in: fix make -q problem
980         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
981         rule, since there's no file named 'check-macro-version' and its
982         use as a file breaks make -q.
983         (all): Don't depend on check-macro-version.
984         (CHECK_MACRO_VERSION): New macro.
985         (stamp-po): Use it.
986
987         configmake: fix make -q problem
988         * modules/configmake (configmake.h): Update configmake.h's time stamp
989         even if the file does not change.  Otherwise, 'make -q' fails.
990         Problem reported by Simon Josefsson in
991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
992
993 2011-08-11  Jim Meyering  <meyering@redhat.com>
994
995         git-version-gen: correct the advice in a comment
996         * build-aux/git-version-gen: Correct comment.
997         Don't recommend to list .tarball-version in .gitignore.
998
999 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1000
1001         base64: fix off-by-one buffer size bug
1002         Problem and (trivial) fix reported by Gijs van Tulder in
1003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1004         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1005         * tests/test-base64.c (main): Catch the bug.
1006
1007 2011-08-10  Eric Blake  <eblake@redhat.com>
1008
1009         closein: correct comments
1010         * lib/closein.c (close_stdin): Improve comments.
1011
1012 2011-08-09  Bruno Haible  <bruno@clisp.org>
1013
1014         More tests for 'fseeko'.
1015         * tests/test-fseeko3.c: New file, from Eric Blake.
1016         * tests/test-fseeko3.sh: New file.
1017         * modules/fseeko-tests (Files): Add them.
1018         (TESTS): Add test-fseeko3.sh.
1019         (check_PROGRAMS): Add test-fseeko3.
1020
1021 2011-08-09  Eric Blake  <eblake@redhat.com>
1022
1023         fseeko: remove unneeded hack
1024         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1025
1026         fseeko: fix bug on glibc
1027         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1028         Reported by John W. Eaton.
1029
1030 2011-08-08  Bruno Haible  <bruno@clisp.org>
1031
1032         unictype/base: Fix interoperability with preinstalled libunistring.
1033         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1034         Reported by Simon Josefsson.
1035
1036 2011-08-08  Bruno Haible  <bruno@clisp.org>
1037
1038         iswblank: Detect declaration correctly.
1039         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1040         AC_CHECK_DECLS invocation.
1041
1042 2011-08-08  Bruno Haible  <bruno@clisp.org>
1043
1044         tcgetsid: Detect declaration correctly.
1045         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1046         AC_CHECK_DECLS invocation.
1047         Reported by Simon Josefsson.
1048
1049 2011-08-08  Eric Blake  <eblake@redhat.com>
1050
1051         largefile: fix typo that regressed large file support
1052         * modules/largefile (configure.ac-early): Fix section name.
1053
1054 2011-08-06  Karl Berry  <karl@gnu.org>
1055
1056         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1057         a separate module.
1058
1059 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1060
1061         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1062         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1063         get prototype for free.
1064
1065 2011-08-04  Bruno Haible  <bruno@clisp.org>
1066
1067         Tests for module 'pathmax'.
1068         * modules/pathmax-tests: New file.
1069         * tests/test-pathmax.c: New file.
1070
1071         canonicalize-lgpl: Support larger filenames on the Hurd.
1072         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1073         Reported by Paul Eggert.
1074
1075         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1076         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1077         * lib/chdir-long.h: Include pathmax.h.
1078         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1079         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1080         (PATH_MAX): Remove code that is done by pathmax.h.
1081         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1082         * lib/tmpfile.c: Add a comment.
1083         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1084         * modules/chdir-long (Depends-on): Add pathmax.
1085         * modules/getcwd (Depends-on): Add pathmax.
1086         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1087         is not defined.
1088         * doc/posix-headers/limits.texi: Mention the pathmax module.
1089         * NEWS: Mention the change.
1090
1091 2011-08-02  Bruno Haible  <bruno@clisp.org>
1092
1093         pthread_sigmask: Actually use results of gl_THREADLIB.
1094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1095         gl_THREADLIB, not gl_[]THREADLIB.
1096         Reported by Eric Blake.
1097
1098 2011-08-02  Jim Meyering  <meyering@redhat.com>
1099
1100         maint.mk: relax the default _gl_TS_function_match regexp
1101         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1102         space between function name and "(" in an "extern" declaration.
1103         That would fail to match a decl with no space there: extern void foo();
1104
1105 2011-07-31  Iain Nicol  <iain@thenicols.net>
1106
1107         git-version-gen: document that EXTRA_DIST must include .version
1108         * build-aux/git-version-gen: In the how-to-use comment, document
1109         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1110         will fail when run from an unpacked distribution tarball.
1111
1112 2011-08-01  Bruno Haible  <bruno@clisp.org>
1113
1114         wctype-h: Fix last change.
1115         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1116         REPLACE_TOWLOWER to 0.
1117         Reported by Sam Steingold <sds@gnu.org>.
1118
1119 2011-07-31  Bruno Haible  <bruno@clisp.org>
1120
1121         frexpl: Update autoconf test.
1122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1123         according to changes of 2011-06-20.
1124
1125 2011-07-31  Bruno Haible  <bruno@clisp.org>
1126
1127         sys_utsname: Add support for Minix.
1128         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1129         <sys/utsname.h>.
1130         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1131         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1132
1133 2011-07-31  Bruno Haible  <bruno@clisp.org>
1134
1135         strings: Add support for Minix.
1136         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1137         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1138         * doc/posix-headers/strings.texi: Document the Minix problem.
1139
1140 2011-07-31  Bruno Haible  <bruno@clisp.org>
1141
1142         wctype-h: Add support for Minix.
1143         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1144         REPLACE_TOWLOWER.
1145         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1146         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1147         REPLACE_ISWCNTRL.
1148
1149 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1152         This is a performance improvement for 64-bit hosts: it causes the
1153         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1154
1155 2011-07-31  Bruno Haible  <bruno@clisp.org>
1156
1157         stdioext: Add support for Minix.
1158         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1159         * lib/fpurge.c (fpurge): Likewise.
1160         * lib/freadahead.c (freadahead): Likewise.
1161         * lib/freadable.c (freadable): Likewise.
1162         * lib/freading.c (freading): Likewise.
1163         * lib/freadptr.c (freadptr): Likewise.
1164         * lib/freadseek.c (freadptrinc): Likewise.
1165         * lib/fseeko.c (rpl_fseeko): Likewise.
1166         * lib/fseterr.c (fseterr): Likewise.
1167         * lib/fwritable.c (fwritable): Likewise.
1168         * lib/fwriting.c (fwriting): Likewise.
1169         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1170         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1171
1172 2011-07-31  Bruno Haible  <bruno@clisp.org>
1173
1174         errno: Port to Minix.
1175         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1176         ECONNABORTED are defined.
1177         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1178         GNULIB_defined_ECONNABORTED): New macros.
1179         * lib/strerror-override.h (strerror_override): Test also
1180         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1181         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1182         ECONNABORTED.
1183         * doc/posix-headers/errno.texi: Mention the Minix problem.
1184
1185 2011-07-31  Bruno Haible  <bruno@clisp.org>
1186
1187         Work around declaration collisions on Minix.
1188         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1189         defined, set REPLACE_MBSINIT.
1190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1191         defined, set REPLACE_MBRTOWC.
1192         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1193         set REPLACE_MBRLEN.
1194         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1195         defined, set REPLACE_MBSRTOWCS.
1196         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1197         defined, set REPLACE_WCRTOMB.
1198         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1199         defined, set REPLACE_WCSRTOMBS.
1200
1201 2011-07-31  Bruno Haible  <bruno@clisp.org>
1202
1203         Add support for Minix with ACK compiler.
1204         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1205         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1206         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1207
1208 2011-07-31  Bruno Haible  <bruno@clisp.org>
1209
1210         Documentation about Minix.
1211         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1212         * doc/glibc-headers/*.texi: Likewise.
1213         * doc/posix-functions/*.texi: Likewise.
1214         * doc/glibc-functions/*.texi: Likewise.
1215
1216 2011-07-31  Bruno Haible  <bruno@clisp.org>
1217
1218         snippet/warn-on-use: Fix indentation.
1219         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1220
1221 2011-07-25  Jim Meyering  <meyering@redhat.com>
1222
1223         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1224         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1225         commands.
1226
1227 2011-07-27  Jim Meyering  <meyering@redhat.com>
1228
1229         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1230         * top/maint.mk (gl_extract_significant_defines_): Now that
1231         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1232         gnulib/lib/signal.in.h, and now that we recommend to
1233         define-if-undefined those two symbols in application code,
1234         we must filter them out of the "significant" list.
1235         This avoids a "make syntax-check" failure in coreutils.
1236
1237 2011-07-26  Eric Blake  <eblake@redhat.com>
1238
1239         warnings: add comments about previous patch
1240         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1241         * m4/include_next.m4: Likewise.
1242         * m4/warn-on-use.m4: Likewise.
1243         * m4/warnings.m4: Likewise, and simplify use.
1244         Suggested by Stefano Lattarini.
1245
1246         include-next, warnings: support older autoconf
1247         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1248         AS_VAR_PUSHDEF in a way that works with older autoconf.
1249         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1250         Reported by Daniel P. Berrange.
1251
1252 2011-07-25  Bruno Haible  <bruno@clisp.org>
1253
1254         fseek, ftell: Fix doc.
1255         * doc/posix-functions/fseek.texi: Reword statement about
1256         AC_SYS_LARGEFILE.
1257         * doc/posix-functions/ftell.texi: Likewise.
1258
1259 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1260             Bruno Haible  <bruno@clisp.org>
1261
1262         Add dependencies to the 'largefile' module.
1263         * modules/fopen (Depends-on): Add 'largefile'.
1264         * modules/freopen (Depends-on): Likewise.
1265         * modules/fseeko (Depends-on): Likewise.
1266         * modules/ftello (Depends-on): Likewise.
1267         * modules/glob (Depends-on): Likewise.
1268         * modules/lseek (Depends-on): Likewise.
1269         * modules/lstat (Depends-on): Likewise.
1270         * modules/mkostemp (Depends-on): Likewise.
1271         * modules/mkostemps (Depends-on): Likewise.
1272         * modules/mkstemp (Depends-on): Likewise.
1273         * modules/mkstemps (Depends-on): Likewise.
1274         * modules/open (Depends-on): Likewise.
1275         * modules/openat (Depends-on): Likewise.
1276         * modules/pread (Depends-on): Likewise.
1277         * modules/pwrite (Depends-on): Likewise.
1278         * modules/scandir (Depends-on): Likewise.
1279         * modules/stat (Depends-on): Likewise.
1280         * modules/tmpfile (Depends-on): Likewise.
1281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1282         since the containing module now depends on the largefile module.
1283         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1284         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1285         off_t is fixed by gnulib.
1286         * doc/posix-functions/freopen.texi: Likewise.
1287         * doc/posix-functions/fseeko.texi: Likewise.
1288         * doc/posix-functions/fstatat.texi: Likewise.
1289         * doc/posix-functions/ftello.texi: Likewise.
1290         * doc/posix-functions/glob.texi: Likewise.
1291         * doc/posix-functions/lseek.texi: Likewise.
1292         * doc/posix-functions/lstat.texi: Likewise.
1293         * doc/posix-functions/mkstemp.texi: Likewise.
1294         * doc/posix-functions/open.texi: Likewise.
1295         * doc/posix-functions/openat.texi: Likewise.
1296         * doc/posix-functions/pread.texi: Likewise.
1297         * doc/posix-functions/pwrite.texi: Likewise.
1298         * doc/posix-functions/scandir.texi: Likewise.
1299         * doc/posix-functions/stat.texi: Likewise.
1300         * doc/posix-functions/tmpfile.texi: Likewise.
1301         * doc/glibc-functions/mkostemp.texi: Likewise.
1302         * doc/glibc-functions/mkostemps.texi: Likewise.
1303         * doc/glibc-functions/mkstemps.texi: Likewise.
1304
1305 2011-07-25  Bruno Haible  <bruno@clisp.org>
1306
1307         fcntl: Move AC_LIBOBJ invocation to module description.
1308         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1309         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1310
1311         fcntl: Remove call-in from fchdir.m4.
1312         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1314
1315         dup3: Remove potential call-in from fchdir.m4.
1316         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1318
1319         dup2: Move AC_LIBOBJ invocation to module description.
1320         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1321         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1322         Don't invoke AC_LIBOBJ.
1323         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1324
1325         dup2: Remove call-in from fchdir.m4.
1326         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1328
1329         fclose: Move AC_LIBOBJ invocation to module description.
1330         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1331         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1332         to 1.
1333         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1334
1335         fclose: Remove call-in from close.m4.
1336         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1337         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1338
1339         close: Move AC_LIBOBJ invocation to module description.
1340         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1341         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1342         1.
1343         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1344
1345         close: Remove call-in from fchdir.m4.
1346         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1348
1349         open: Move AC_LIBOBJ invocation to module description.
1350         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1351         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1352         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1353
1354         open: Remove call-in from fchdir.m4.
1355         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1357
1358         fchdir: Start to remove gl_REPLACE_* idiom.
1359         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1360         (gl_FUNC_FCHDIR): Invoke it.
1361
1362 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         * lib/ftell.c (ftell): Comment out cast.
1365
1366         close: use gl_REPLACE_FCLOSE only if defined
1367         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1368         is defined.  The close module doesn't depend on the fclose module
1369         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1371         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1372
1373 2011-07-24  Jim Meyering  <meyering@redhat.com>
1374
1375         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1376         * tests/test-select.h (test_function): Declare as "static".
1377
1378 2011-07-24  Bruno Haible  <bruno@clisp.org>
1379
1380         doc: Mention the effects of AC_SYS_LARGEFILE.
1381         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1382         on this function.
1383         * doc/posix-functions/aio_error.texi: Likewise.
1384         * doc/posix-functions/aio_fsync.texi: Likewise.
1385         * doc/posix-functions/aio_read.texi: Likewise.
1386         * doc/posix-functions/aio_return.texi: Likewise.
1387         * doc/posix-functions/aio_suspend.texi: Likewise.
1388         * doc/posix-functions/aio_write.texi: Likewise.
1389         * doc/posix-functions/fgetpos.texi: Likewise.
1390         * doc/posix-functions/fopen.texi: Likewise.
1391         * doc/posix-functions/freopen.texi: Likewise.
1392         * doc/posix-functions/fsetpos.texi: Likewise.
1393         * doc/posix-functions/fstatvfs.texi: Likewise.
1394         * doc/posix-functions/ftruncate.texi: Likewise.
1395         * doc/posix-functions/ftw.texi: Likewise.
1396         * doc/posix-functions/getrlimit.texi: Likewise.
1397         * doc/posix-functions/glob.texi: Likewise.
1398         * doc/posix-functions/lio_listio.texi: Likewise.
1399         * doc/posix-functions/lockf.texi: Likewise.
1400         * doc/posix-functions/mkstemp.texi: Likewise.
1401         * doc/posix-functions/mmap.texi: Likewise.
1402         * doc/posix-functions/nftw.texi: Likewise.
1403         * doc/posix-functions/openat.texi: Likewise.
1404         * doc/posix-functions/opendir.texi: Likewise.
1405         * doc/posix-functions/posix_fadvise.texi: Likewise.
1406         * doc/posix-functions/posix_fallocate.texi: Likewise.
1407         * doc/posix-functions/pread.texi: Likewise.
1408         * doc/posix-functions/pwrite.texi: Likewise.
1409         * doc/posix-functions/readdir.texi: Likewise.
1410         * doc/posix-functions/readdir_r.texi: Likewise.
1411         * doc/posix-functions/rewinddir.texi: Likewise.
1412         * doc/posix-functions/scandir.texi: Likewise.
1413         * doc/posix-functions/seekdir.texi: Likewise.
1414         * doc/posix-functions/setrlimit.texi: Likewise.
1415         * doc/posix-functions/statvfs.texi: Likewise.
1416         * doc/posix-functions/telldir.texi: Likewise.
1417         * doc/posix-functions/tmpfile.texi: Likewise.
1418         * doc/posix-functions/truncate.texi: Likewise.
1419         * doc/glibc-functions/fallocate.texi: Likewise.
1420         * doc/glibc-functions/fstatfs.texi: Likewise.
1421         * doc/glibc-functions/fts_children.texi: Likewise.
1422         * doc/glibc-functions/fts_read.texi: Likewise.
1423         * doc/glibc-functions/getdirentries.texi: Likewise.
1424         * doc/glibc-functions/mkostemp.texi: Likewise.
1425         * doc/glibc-functions/mkostemps.texi: Likewise.
1426         * doc/glibc-functions/mkstemps.texi: Likewise.
1427         * doc/glibc-functions/preadv.texi: Likewise.
1428         * doc/glibc-functions/pwritev.texi: Likewise.
1429         * doc/glibc-functions/sendfile.texi: Likewise.
1430         * doc/glibc-functions/statfs.texi: Likewise.
1431
1432 2011-07-24  Bruno Haible  <bruno@clisp.org>
1433
1434         doc: Fix typo.
1435         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1436
1437 2011-07-24  Bruno Haible  <bruno@clisp.org>
1438
1439         doc: Mention fsusage.
1440         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1441
1442 2011-07-24  Bruno Haible  <bruno@clisp.org>
1443
1444         doc: Mention new glibc headers and functions.
1445         * doc/glibc-headers/gshadow.texi: New file.
1446         * doc/glibc-functions/endsgent.texi: New file.
1447         * doc/glibc-functions/fgetsgent.texi: New file.
1448         * doc/glibc-functions/fgetsgent_r.texi: New file.
1449         * doc/glibc-functions/getsgent.texi: New file.
1450         * doc/glibc-functions/getsgent_r.texi: New file.
1451         * doc/glibc-functions/getsgnam.texi: New file.
1452         * doc/glibc-functions/getsgnam_r.texi: New file.
1453         * doc/glibc-functions/putsgent.texi: New file.
1454         * doc/glibc-functions/setsgent.texi: New file.
1455         * doc/glibc-functions/sgetsgent.texi: New file.
1456         * doc/glibc-functions/sgetsgent_r.texi: New file.
1457         * doc/glibc-functions/malloc_info.texi: New file.
1458         * doc/glibc-functions/preadv.texi: New file.
1459         * doc/glibc-functions/pwritev.texi: New file.
1460         * doc/glibc-functions/register_printf_modifier.texi: New file.
1461         * doc/glibc-functions/register_printf_specifier.texi: New file.
1462         * doc/glibc-functions/register_printf_type.texi: New file.
1463         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1464         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1465         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1466         * doc/glibc-functions/pthread_getname_np.texi: New file.
1467         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1468         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1469         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1470         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1471         * doc/glibc-functions/pthread_setname_np.texi: New file.
1472         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1473         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1474         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1475         * doc/glibc-functions/qsort_r.texi: New file.
1476         * doc/glibc-functions/quick_exit.texi: New file.
1477         * doc/glibc-functions/syncfs.texi: New file.
1478         * doc/gnulib.texi: Include them.
1479         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1480         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1481         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1482         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1483         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1484         * doc/glibc-functions/execvpe.texi: Likewise.
1485
1486 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1487
1488         ftell: don't include <unistd.h>
1489         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1490         guaranteed to define off_t, and the ftell module depends on the
1491         stdio module.
1492
1493         ftell: do not assume wraparound signed arithmetic
1494         * lib/ftell.c: Include <limits.h>.
1495         (ftell): Don't assume wraparound signed arithmetic.
1496
1497 2011-07-24  Bruno Haible  <bruno@clisp.org>
1498
1499         close: No longer depend on module 'fclose'.
1500         * modules/close (Depends-on): Remove fclose.
1501         * NEWS: Mention the change.
1502         Suggested by Sam Steingold <sds@gnu.org>.
1503
1504 2011-07-24  Bruno Haible  <bruno@clisp.org>
1505
1506         fsusage: Enable large volume support on AIX >= 5.2.
1507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1508         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1509         instead of STAT_STATVFS.
1510         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1511
1512         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1514         f_blocks field only on MacOS X.
1515
1516         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1518         * modules/fsusage (Depends-on): Add largefile.
1519
1520 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1521
1522         * README: Modernize discussion of signed integers.
1523         Assuming overflow wraparound is no longer safe.
1524         Mention ones' complement and signed magnitude.
1525
1526 2011-07-22  Bruno Haible  <bruno@clisp.org>
1527
1528         select tests, pselect tests: Refactor.
1529         * tests/test-select.h: New file, extracted from tests/test-select.c.
1530         (select_fn): New type.
1531         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1532         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1533         test_pipe): Add my_select argument.
1534         (test_function): Renamed from main. Add my_select argument.
1535         * tests/test-select.c: Move most code to tests/test-select.h. Include
1536         test-select.h.
1537         * modules/select-tests (Files): Add tests/test-select.h.
1538         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1539         (my_select, main): New functions.
1540         * modules/pselect-tests (Files): Add tests/test-select.h,
1541         tests/macros.h, tests/signature.h.
1542         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1543         (configure.ac): Check for <sys/wait.h>.
1544
1545 2011-07-22  Bruno Haible  <bruno@clisp.org>
1546
1547         sys_select tests: Check the signature of FD_*.
1548         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1549         signature tests from here...
1550         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1551         here.
1552         * modules/sys_select-tests (Files): Add tests/signature.h.
1553
1554 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         largefile: new module, replacing large-inode
1557         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1558         * MODULES.html.sh: Add largefile, remove large-inode.
1559         * modules/largefile, m4/largefile.m4: New files.
1560         * modules/large-inode, m4/large-inode.m4: Remove.
1561
1562         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1564         implementations that use only 32 bits to count blocks.
1565         On typical hosts with 1024-byte blocks, this fails with file
1566         systems as small as 4 TiB.  Problem reported by Herb Wartens
1567         <http://debbugs.gnu.org/9140> and this should also fix a similar
1568         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1569
1570         large-inode: New module
1571         * MODULES.html.sh: Add it.
1572         * modules/large-inode, m4/large-inode.m4: New files.
1573
1574         extensions: Enable extensions on MacOS X 10.5 and later.
1575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1576
1577 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1578
1579         file-has-acl: use acl_extended_file_nofollow if available
1580         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1581         (acl_extended_file): New macro.
1582         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1583         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1584
1585 2011-07-21  Bruno Haible  <bruno@clisp.org>
1586
1587         Declare system functions in a way that works with C++.
1588         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1589         declare fdopendir as extern "C".
1590         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1591         declare frexpl as extern "C".
1592         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1593         declare gai_strerror as extern "C".
1594         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1595         programs, declare gai_strerror as extern "C".
1596         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1597         declare getlogin_r as extern "C".
1598         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1599         as extern "C".
1600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1601         declare ldexpl as extern "C".
1602         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1603         as extern "C".
1604         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1605         program, declare getmntinfo as extern "C".
1606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1607         stpncpy as extern "C".
1608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1609         program, declare __xpg_strerror_r as extern "C".
1610         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1611         strndup as extern "C".
1612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1613         declare memset and bzero as extern "C".
1614         Reported by Sam Steingold <sds@gnu.org>.
1615
1616 2011-07-12  Jim Meyering  <meyering@redhat.com>
1617
1618         maint.mk: prohibit inclusion of "verify.h" without use
1619         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1620
1621 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1622
1623         timer-time: A new module to check for timer_settime()
1624         * m4/timer_time.m4: Check for the posix function.
1625         * modules/timer-time: Add the new module.
1626         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1627         Mention it.
1628
1629 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1630             Bruno Haible  <bruno@clisp.org>
1631
1632         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1633         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1634         not defined, assume POSIX threads and look for pthread_sigmask in
1635         $LIBS, without changing $CPPFLAGS.
1636
1637 2011-07-19  Bruno Haible  <bruno@clisp.org>
1638
1639         strstr: Update cross-compilation guess.
1640         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1641         CPUs, guess no, in view of glibc
1642         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1643         Suggested by Eric Blake. Reported by Reuben Thomas.
1644
1645 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1646
1647         getopt-gnu: suppress core dumps from detection code
1648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1649         to suppress core dumps that may well occur on glibc systems.
1650         * modules/getopt-gnu: Depend on nocrash.
1651
1652 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1653
1654         pthread_sigmask: ensure usleep is declared
1655         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1656         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1657
1658 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         doc: Document NonStop portability issues.
1661         * doc/posix-functions/sigaction.texi (sigaction):
1662         * doc/posix-headers/signal.texi (signal.h):
1663         Document NonStop.  See Joachim Schmitz in
1664         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1665
1666 2011-07-15  Bruno Haible  <bruno@clisp.org>
1667
1668         ffsl, ffsll: Avoid unportable behaviour.
1669         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1670
1671 2011-07-15  Bruno Haible  <bruno@clisp.org>
1672
1673         ffs: More tests.
1674         * tests/test-ffs.c (NBITS): New macro.
1675         (main): Add more tests.
1676         * tests/test-ffsl.c (NBITS): New macro.
1677         (main): Add more tests.
1678         * tests/test-ffsll.c (NBITS): New macro.
1679         (main): Add more tests.
1680
1681 2011-07-15  Eric Blake  <eblake@redhat.com>
1682
1683         ffsl, ffsll: new modules
1684         * modules/ffsl: New file.
1685         * modules/ffsll: Likewise.
1686         * m4/ffsl.m4: Likewise.
1687         * m4/ffsll.m4: Likewise.
1688         * lib/ffsl.c: Likewise.
1689         * lib/ffsl.h: Likewise.
1690         * lib/ffsll.c: Likewise.
1691         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1692         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1693         * modules/string (Makefile.am): Substitute witnesses.
1694         * lib/strings.in.h (ffsl, ffsll): Declare.
1695         * modules/ffsl-tests: New test file.
1696         * modules/ffsll-tests: Likewise.
1697         * tests/test-ffsl.c: Likewise.
1698         * tests/test-ffsll.c: Likewise.
1699         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1700         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1701         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1702
1703         ffs: fix m4 prerequisite
1704         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1705
1706         ffs: avoid undefined behavior
1707         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1708         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1709         Reported by Bruno Haible.
1710
1711 2011-07-12  Bruno Haible  <bruno@clisp.org>
1712
1713         pthread_sigmask: Rely on module 'threadlib'.
1714         * modules/pthread_sigmask (Depends-on): Add threadlib.
1715         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1716         is defined.
1717
1718 2011-07-12  Bruno Haible  <bruno@clisp.org>
1719
1720         regex: Depend on module 'strcase'.
1721         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1722
1723 2011-07-12  Jim Meyering  <meyering@redhat.com>
1724
1725         warn-on-use: fix typo in file name
1726         * modules/snippet/warn-on-use (Files): Correct file name:
1727         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1728
1729 2011-07-12  Bruno Haible  <bruno@clisp.org>
1730
1731         strings: Document module.
1732         * doc/posix-headers/strings.texi: Mention module 'strings'.
1733
1734 2011-07-12  Bruno Haible  <bruno@clisp.org>
1735
1736         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1737         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1738         (Files, Makefile.am): Update.
1739         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1740         * modules/stdlib (Depends-on): Update.
1741
1742 2011-07-12  Bruno Haible  <bruno@clisp.org>
1743
1744         * NEWS: Mention the changes.
1745
1746         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1747         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1748         (Files, Makefile.am): Update.
1749         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1750         * modules/arpa_inet (Depends-on): Update.
1751         * modules/ctype (Depends-on): Update.
1752         * modules/dirent (Depends-on): Update.
1753         * modules/fcntl-h (Depends-on): Update.
1754         * modules/glob (Depends-on): Update.
1755         * modules/iconv-h (Depends-on): Update.
1756         * modules/inttypes-incomplete (Depends-on): Update.
1757         * modules/langinfo (Depends-on): Update.
1758         * modules/locale (Depends-on): Update.
1759         * modules/math (Depends-on): Update.
1760         * modules/netdb (Depends-on): Update.
1761         * modules/poll-h (Depends-on): Update.
1762         * modules/pty (Depends-on): Update.
1763         * modules/search (Depends-on): Update.
1764         * modules/signal (Depends-on): Update.
1765         * modules/spawn (Depends-on): Update.
1766         * modules/stdio (Depends-on): Update.
1767         * modules/stdlib (Depends-on): Update.
1768         * modules/string (Depends-on): Update.
1769         * modules/strings (Depends-on): Update.
1770         * modules/sys_file (Depends-on): Update.
1771         * modules/sys_ioctl (Depends-on): Update.
1772         * modules/sys_select (Depends-on): Update.
1773         * modules/sys_socket (Depends-on): Update.
1774         * modules/sys_stat (Depends-on): Update.
1775         * modules/sys_time (Depends-on): Update.
1776         * modules/sys_times (Depends-on): Update.
1777         * modules/sys_utsname (Depends-on): Update.
1778         * modules/sys_wait (Depends-on): Update.
1779         * modules/termios (Depends-on): Update.
1780         * modules/time (Depends-on): Update.
1781         * modules/unistd (Depends-on): Update.
1782         * modules/wchar (Depends-on): Update.
1783         * modules/wctype-h (Depends-on): Update.
1784         * MODULES.html.sh (Support for building libraries and executables):
1785         Update.
1786
1787         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1788         * modules/snippet/unused-parameter: Renamed from
1789         modules/unused-parameter.
1790         (Files, Makefile.am): Update.
1791         * build-aux/snippet/unused-parameter.h: Renamed from
1792         build-aux/unused-parameter.h.
1793         * modules/selinux-h (Depends-on): Update.
1794         * modules/unistr/base (Depends-on): Update.
1795         * MODULES.html.sh (Core language properties): Update.
1796
1797         Rename module 'link-warning' to 'snippet/link-warning'.
1798         * modules/snippet/link-warning: Renamed from modules/link-warning.
1799         (Files, Makefile.am): Update.
1800         * build-aux/snippet/link-warning.h: Renamed from
1801         build-aux/link-warning.h.
1802         * MODULES.html.sh (Support for building libraries and executables):
1803         Update.
1804
1805         Rename module 'c++defs' to 'snippet/c++defs'.
1806         * modules/snippet/c++defs: Renamed from modules/c++defs.
1807         (Files, Makefile.am): Update.
1808         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1809         * modules/arpa_inet (Depends-on): Update.
1810         * modules/ctype (Depends-on): Update.
1811         * modules/dirent (Depends-on): Update.
1812         * modules/fcntl-h (Depends-on): Update.
1813         * modules/glob (Depends-on): Update.
1814         * modules/iconv-h (Depends-on): Update.
1815         * modules/langinfo (Depends-on): Update.
1816         * modules/locale (Depends-on): Update.
1817         * modules/math (Depends-on): Update.
1818         * modules/netdb (Depends-on): Update.
1819         * modules/poll-h (Depends-on): Update.
1820         * modules/pty (Depends-on): Update.
1821         * modules/search (Depends-on): Update.
1822         * modules/signal (Depends-on): Update.
1823         * modules/spawn (Depends-on): Update.
1824         * modules/stdio (Depends-on): Update.
1825         * modules/stdlib (Depends-on): Update.
1826         * modules/string (Depends-on): Update.
1827         * modules/strings (Depends-on): Update.
1828         * modules/sys_ioctl (Depends-on): Update.
1829         * modules/sys_select (Depends-on): Update.
1830         * modules/sys_socket (Depends-on): Update.
1831         * modules/sys_stat (Depends-on): Update.
1832         * modules/sys_time (Depends-on): Update.
1833         * modules/sys_wait (Depends-on): Update.
1834         * modules/termios (Depends-on): Update.
1835         * modules/time (Depends-on): Update.
1836         * modules/unistd (Depends-on): Update.
1837         * modules/wchar (Depends-on): Update.
1838         * modules/wctype-h (Depends-on): Update.
1839
1840         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1841         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1842         (Files, Makefile.am): Update.
1843         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1844         * modules/argv-iter (Depends-on): Update.
1845         * modules/arpa_inet (Depends-on): Update.
1846         * modules/dirent (Depends-on): Update.
1847         * modules/fcntl-h (Depends-on): Update.
1848         * modules/fnmatch (Depends-on): Update.
1849         * modules/getopt-posix (Depends-on): Update.
1850         * modules/glob (Depends-on): Update.
1851         * modules/iconv-h (Depends-on): Update.
1852         * modules/inttypes-incomplete (Depends-on): Update.
1853         * modules/locale (Depends-on): Update.
1854         * modules/math (Depends-on): Update.
1855         * modules/netdb (Depends-on): Update.
1856         * modules/search (Depends-on): Update.
1857         * modules/signal (Depends-on): Update.
1858         * modules/spawn (Depends-on): Update.
1859         * modules/stdio (Depends-on): Update.
1860         * modules/stdlib (Depends-on): Update.
1861         * modules/string (Depends-on): Update.
1862         * modules/strings (Depends-on): Update.
1863         * modules/sys_socket (Depends-on): Update.
1864         * modules/sys_stat (Depends-on): Update.
1865         * modules/sys_time (Depends-on): Update.
1866         * modules/sys_times (Depends-on): Update.
1867         * modules/sys_utsname (Depends-on): Update.
1868         * modules/time (Depends-on): Update.
1869         * modules/unistd (Depends-on): Update.
1870         * modules/wchar (Depends-on): Update.
1871         * MODULES.html.sh (Support for building libraries and executables):
1872         Update.
1873
1874 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1875
1876         Improvements on _Noreturn and related modules.
1877
1878         modules/_Exit-tests: test _Noreturn too
1879         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1880         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1881         (main): Use them.
1882
1883         stdnoreturn, stdnoreturn-tests: remove modules
1884         They're not needed here and a bit premature for use elsewhere.  See
1885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1886         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1887         * tests/test-stdnoreturn.c: Remove files.
1888         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1889         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1890         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1891         and using noreturn.
1892         * modules/openat, modules/sigpipe-die, modules/xalloc:
1893         * modules/xmemdup0, modules/xstrtol:
1894         Remove dependency on stdnoreturn.
1895
1896         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1897         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1898         Reparenthesize to avoid GCC warning.
1899         Support Microsoft's syntax.
1900         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1901
1902         _Noreturn-tests: remove module
1903         * modules/_Noreturn-tests: Remove.
1904         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1905         * tests/test-_Noreturn.c: Remove.
1906         * tests/test-stdnoreturn.c: Merge from the old
1907         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1908
1909 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         _Noreturn, stdnoreturn, and related modules.
1912
1913         * top/maint.mk: Adjust to new noreturn support.
1914         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1915         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1916
1917         xalloc: use stdnoreturn.h
1918         * lib/xalloc.h: Include <stdnoreturn.h>.
1919         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1920         * modules/xalloc (Depends-on): Add stdnoreturn.
1921
1922         xstrtol: use stdnoreturn.h
1923         * lib/xstrtol.h: Include <stdnoreturn.h>.
1924         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1925         * modules/xstrtol (Depends-on): Add stdnoreturn.
1926
1927         xmemdup0: use stdnoreturn.h
1928         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1929         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1930         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1931
1932         sigpipe-die: use stdnoreturn.h
1933         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1934         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1935         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1936
1937         openat: use stdnoreturn.h
1938         * lib/openat.h: Include <stdnoreturn.h>.
1939         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1940         * modules/openat (Depends-on): Add stdnoreturn.
1941
1942         * lib/openat-die.c (openat_save_fail): Modernize comment.
1943
1944         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1945
1946         * lib/glthread/thread.h: Modernize comment.
1947
1948         obstack: use _Noreturn
1949         * lib/obstack.c (__attribute__): Remove macro.
1950         (print_and_abort): Use _Noreturn.
1951
1952         c-stack: use _Noreturn
1953         * lib/c-stack.c (die, overflow_handler, segv_handler):
1954         Use _Noreturn rather than __attribute__((noreturn)).
1955
1956         argmatch-tests, exclude_tests: use _Noreturn
1957         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1958         Remove.
1959         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1960
1961         stdlib: use _Noreturn
1962         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1963         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1964         * modules/stdlib (Depends-on): Add _Noreturn.
1965         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1966
1967         stdnoreturn-tests: new module
1968         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1969
1970         stdnoreturn: new module
1971         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1972         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1973
1974         _Noreturn-tests: new module
1975         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1976
1977         _Noreturn: new module
1978         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1979         New section, mentioning it.
1980         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1981
1982         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1983
1984 2011-07-11  Eric Blake  <eblake@redhat.com>
1985
1986         ffs: new module
1987         * modules/ffs: New file.
1988         * m4/ffs.m4: Likewise.
1989         * lib/ffs.c: Likewise.
1990         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1991         * modules/strings (Makefile.am): Substitute witness.
1992         (Depends-on): Add c++defs.
1993         * lib/strings.in.h (ffs): Declare.
1994         * modules/ffs-tests: New test file.
1995         * tests/test-ffs.c: Test new module.
1996         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1997         * doc/posix-functions/ffs.texi (ffs): Likewise.
1998
1999         regex: avoid compiler warning
2000         * lib/regex.c (includes): Include <strings.h>, for use of
2001         strcasecmp in regcomp.c.
2002         Reported by Joachim Schmitz.
2003
2004 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         stdint: respect system's intmax_t if INTMAX_MAX
2007         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2008         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2009         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2010         long but int64_t is long long, and where we will clash with the
2011         system intmax_t if we override it.  See
2012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2013         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2014         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2015         similarly for UINTMAX_C.
2016
2017 2011-07-08  Bruno Haible  <bruno@clisp.org>
2018
2019         pthread_sigmask tests: Avoid a compiler warning.
2020         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2021         non-zero.
2022
2023         sigprocmask tests: A better way to avoid a compiler warning.
2024         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2025         (main): Complain if system() returns non-zero.
2026         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2027
2028 2011-07-08  Bruno Haible  <bruno@clisp.org>
2029
2030         pthread_sigmask: Work around IRIX bug.
2031         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2032         bug.
2033         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2034         there may be unblocked pending signals.
2035         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2036
2037 2011-07-08  Bruno Haible  <bruno@clisp.org>
2038
2039         pthread_sigmask: Work around Cygwin bug.
2040         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2041         bug.
2042         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2043         the system's pthread_sigmask function.
2044         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2045
2046 2011-07-08  Bruno Haible  <bruno@clisp.org>
2047
2048         pthread_sigmask: Work around bug in single-threaded implementation.
2049         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2050         FreeBSD, HP-UX, Solaris bug.
2051         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2052         * lib/pthread_sigmask.c: Include <stddef.h>.
2053         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2054         the system's pthread_sigmask function.
2055         * modules/pthread_sigmask (configure.ac): Invoke
2056         gl_PREREQ_PTHREAD_SIGMASK.
2057         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2058         HP-UX, Solaris.
2059
2060 2011-07-08  Eric Blake  <eblake@redhat.com>
2061
2062         test-sigprocmask: avoid compiler warning
2063         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2064         * tests/test-sigprocmask.c (main): Use it to silence warning.
2065         Reported by Jim Meyering.
2066
2067         test-snprintf: avoid compiler warning
2068         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2069         * tests/test-vsnprintf.c (main): Likewise.
2070         Reported by Jim Meyering.
2071
2072 2011-07-08  Bruno Haible  <bruno@clisp.org>
2073
2074         Tests for module 'pthread_sigmask'.
2075         * modules/pthread_sigmask-tests: New file.
2076         * tests/test-pthread_sigmask1.c: New file, based on
2077         tests/test-sigprocmask.c.
2078         * tests/test-pthread_sigmask2.c: New file.
2079
2080 2011-07-08  Jim Meyering  <meyering@redhat.com>
2081
2082         test-getopt.h: avoid warning about an unused variable
2083         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2084
2085 2011-07-07  Jim Meyering  <meyering@redhat.com>
2086
2087         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2088         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2089         now that it no longer contains leading TABs.
2090         Remove unused "url=FIXME" statement.
2091
2092 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2093
2094         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2096         When gl_THREADLIB is not in use, assume that the POSIX sematics
2097         are desired.  This is better for Emacs, which uses POSIX semantics
2098         on GNUish and/or POSIXish platforms, and does not use threads at
2099         all otherwise.
2100
2101         pthread_sigmask: fix typo when testing for libraries
2102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2103         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2104
2105 2011-07-08  Eric Blake  <eblake@redhat.com>
2106
2107         fts: introduce FTS_NOATIME
2108         * lib/fts_.h (FTS_NOATIME): New bit flag.
2109         (FTS_OPTIONMASK): Adjust.
2110         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2111         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2112
2113 2011-07-08  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'thread'.
2116         * modules/thread-tests: New file.
2117         * tests/test-thread_self.c: New file.
2118         * tests/test-thread_create.cc: New file.
2119
2120 2011-07-08  Bruno Haible  <bruno@clisp.org>
2121
2122         thread: Avoid gcc warnings when using gl_thread_self().
2123         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2124         'void *'.
2125         (gl_thread_self_pointer): Update.
2126
2127 2011-07-07  Bruno Haible  <bruno@clisp.org>
2128
2129         signal-c++-tests: Check declaration of pthread_sigmask.
2130         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2131         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2132         $(LIB_PTHREAD_SIGMASK).
2133
2134 2011-07-07  Bruno Haible  <bruno@clisp.org>
2135
2136         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2137         * lib/signal.in.h (pthread_sigmask): Override if
2138         REPLACE_PTHREAD_SIGMASK is 1.
2139         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2140         REPLACE_PTHREAD_SIGMASK.
2141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2142         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2143         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2144         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2145         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2146
2147 2011-07-07  Bruno Haible  <bruno@clisp.org>
2148
2149         pthread_sigmask: Ensure declaration in <signal.h>.
2150         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2151         include <pthread.h>.
2152         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2153         problem.
2154
2155 2011-07-07  Bruno Haible  <bruno@clisp.org>
2156
2157         pthread_sigmask: Document the module.
2158         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2159
2160 2011-07-07  Bruno Haible  <bruno@clisp.org>
2161
2162         pthread_sigmask: Follow gnulib conventions.
2163         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2164         gl_PTHREAD_SIGMASK.
2165         * modules/pthread_sigmask (configure.ac): Update.
2166
2167 2011-07-07  Bruno Haible  <bruno@clisp.org>
2168
2169         pthread_sigmask: Make declaration C++ safe.
2170         * lib/signal.in.h: In two special conditions, just do an #include_next.
2171         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2172         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2173         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2174         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2175         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2176         not REPLACE_PTHREAD_MASK.
2177         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2178         not REPLACE_PTHREAD_MASK.
2179         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2180
2181 2011-07-07  Bruno Haible  <bruno@clisp.org>
2182
2183         pthread_sigmask: Fix return value.
2184         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2185         * lib/pthread_sigmask.c: New file.
2186         * modules/pthread_sigmask (Files): Add it.
2187         (configure.ac): Invoke AC_LIBOBJ.
2188
2189 2011-07-07  Eric Blake  <eblake@redhat.com>
2190
2191         getopt: more portable argv creation
2192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2193         const, use char arrays rather than strings.
2194         Suggested by Paul Eggert.
2195
2196 2011-07-07  Bruno Haible  <bruno@clisp.org>
2197
2198         Tests for module 'sigprocmask'.
2199         * modules/sigprocmask-tests: New file.
2200         * tests/test-sigprocmask.c: New file.
2201
2202 2011-07-07  Bruno Haible  <bruno@clisp.org>
2203
2204         float tests: Tweak.
2205         * tests/test-float.c (main): Tweak skip message.
2206
2207 2011-07-07  Eric Blake  <eblake@redhat.com>
2208
2209         getopt: avoid compiler warning during configure
2210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2211         assigning string literals to non-const pointer.
2212
2213         getopt-gnu: avoid crash in glibc getopt
2214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2215         * tests/test-getopt.h (test_getopt): Enhance test.
2216         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2217         * doc/posix-functions/getopt.texi (getopt): Document it.
2218         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2219         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2220         Likewise.
2221
2222 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2223
2224         getopt: handle W; without long options in getopt [BZ #12922]
2225         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2226         but no long options are defined, just return 'W'.
2227
2228 2011-07-07  Bruno Haible  <bruno@clisp.org>
2229
2230         Avoid literal tabs.
2231         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2232         variable containing a tab instead of a literal tab.
2233         Reported by Jim Meyering.
2234
2235 2011-07-07  Bruno Haible  <bruno@clisp.org>
2236
2237         Comments.
2238         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2239
2240 2011-07-06  Bruno Haible  <bruno@clisp.org>
2241
2242         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2243         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2244         <winsock2.h>.
2245         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2246         lib/sys_socket.in.h.
2247         (close, gethostname): Hide declarations from <winsock2.h>.
2248         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2249         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2250         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2251         (select): Don't override if gnulib's <sys/select.h> was already
2252         included.
2253         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2254         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2255         setsockopt, shutdown, select): Tweak indentation.
2256
2257 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2258
2259         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2260         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2261         in an application that does not use the sys_select module.
2262
2263 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2264
2265         poll: do not return 0 on timeout=-1
2266         * lib/poll.c: Loop with yield if no events occured
2267
2268 2011-07-06  Eric Blake  <eblake@redhat.com>
2269
2270         pthread_sigmask: always replace when not using pthread
2271         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2272         replacement when using some threading other than pthread.  Fix
2273         logic bug.
2274
2275 2011-07-06  Bruno Haible  <bruno@clisp.org>
2276
2277         Comments.
2278         * m4/printf.m4: Update comments about mingw.
2279
2280 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2281
2282         sys_select: define sigset_t more portably
2283         * lib/sys_select.in.h: Always include <sys/types.h>, since
2284         we now need sigset_t and mingw defines it there.
2285         Include <signal.h> before split inclusion guard, to avoid
2286         mishaps on Solaris, whose <signal.h> eventually includes us.
2287         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2288         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2289         which come from ...
2290         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2291         gl_CHECK_TYPE_SIGSET_T.
2292         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2293         does the real work.
2294         * modules/sys_select (Depends-on): Add 'signal'.
2295
2296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2297         Suggested by Bruno Haible.
2298
2299         pselect: Use pthread_sigmask, not sigprocmask.
2300         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2301         multithreaded apps better than sigprocmask does.
2302         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2303         sigprocmask directly.
2304
2305 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2308         Don't #undef,  since we don't need any underlying pselect.
2309         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2310         (Depends-on): Add select.
2311         (Link): Add $(LIBSOCKET).
2312         These changes suggested by Bruno Haible.
2313
2314         pselect: document better
2315         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2316         * doc/posix-functions/pselect.texi (pselect): Document new module.
2317
2318         pthread_sigmask: new module
2319         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2320         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2321         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2322         This is done only as a macro; I don't know how well that'll
2323         work for C++.  Move <sys/types.h> include before the include_next,
2324         to avoid mishap on Solaris.
2325         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2326         * modules/signal (Makefile.am): Substitute the check's results.
2327         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2328
2329         test-pselect: new module
2330         * modules/pselect-tests, tests/test-pselect.c: New files.
2331         * tests/test-select.c, tests/test-sys_select-c++.cc:
2332         If TEST_PSELECT is defined, test pselect instead of testing select.
2333
2334         * tests/test-sys_select.c (sigset_t): Test for it, too.
2335         Suggested by Bruno Haible.
2336
2337 2011-07-05  Eric Blake  <eblake@redhat.com>
2338
2339         snprintf: guarantee %1$d, for libintl
2340         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2341         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2342         * doc/posix-functions/snprintf.texi (snprintf): Update.
2343         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2344         * tests/test-snprintf.c (main): Enhance test.
2345         * tests/test-vsnprintf.c (main): Likewise.
2346
2347 2011-07-05  Jim Meyering  <meyering@redhat.com>
2348
2349         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2350         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2351         per Bruno's request, to accommodate this idiom (no space after "#")
2352         even when the function is inside an #if block:
2353         char *
2354         gets (char *s)
2355         #undef gets
2356         {
2357           ...
2358         }
2359
2360 2011-07-04  Jim Meyering  <meyering@redhat.com>
2361
2362         maint: indent with spaces, not TABs, and add a rule to check this
2363         * tests/test-userspec.c: Indent with spaces, not TABs.
2364         * tests/test-argp.c: Likewise.
2365         * tests/test-c-stack2.sh: Likewise.
2366         * tests/test-parse-duration.sh: Likewise
2367         * m4/strtod.m4: Likewise.
2368         * m4/alloca.m4: Likewise.
2369         * m4/pselect.m4: Likewise.
2370         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2371
2372 2011-07-03  Jim Meyering  <meyering@redhat.com>
2373
2374         maint.mk: correct omissions in prohibit_argmatch_without_use check
2375         This rule would mistakenly report that argmatch.h is included without
2376         use even when both the argmatch and invalid_arg macro were used.
2377         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2378         of argmatch and invalid_arg.
2379
2380 2011-07-03  Bruno Haible  <bruno@clisp.org>
2381
2382         Comments about EINTR.
2383         * lib/safe-read.h: Explain the purpose of this module.
2384         * lib/safe-write.h: Likewise.
2385         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2386         module.
2387         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2388         module.
2389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2390
2391 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2392
2393         xnanosleep: Rewrite to use new dtotimespec module.
2394         It has the conversion code that used to be in xnanosleep.
2395         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2396         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2397         (TIME_T_MAX): Remove.
2398         (xnanosleep): Rewrite in terms of dtotimespec.
2399         * modules/xnanosleep (Depends-on): Add dtotimespec.
2400         Remove intprops, stdbool.
2401
2402         timespec-add, timespec-sub: new modules
2403         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2404         * lib/timespec-add.c, lib/timespec-sub.c:
2405         * modules/timespec-add, modules/timespec-sub: New files.
2406
2407         dtotimespec: new module
2408         * lib/timespec.h (dtotimespec): New decl.
2409         * lib/dtotimespec.c, modules/dtotimespec: New files.
2410
2411         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2412
2413         pselect: new module
2414         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2415         (pselect): New decls.
2416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2417         since the standard pselect decl uses 'restrict'.
2418         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2419         HAVE_PSELECT, REPLACE_PSELECT.
2420         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2421         HAVE_PSELECT, REPLACE_PSELECT.
2422         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2423
2424         sys_select: don't depend on sys_socket
2425         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2427         This fix works on GNU and GNU-like platforms, but has not been tested
2428         on native Windows.
2429         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2431         gl_HEADER_SYS_SOCKET.
2432         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2433         gl_PREREQ_SYS_H_WINSOCK2.
2434
2435 2011-06-29  Eric Blake  <eblake@redhat.com>
2436
2437         pipe2: fix C89 compile problem
2438         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2439         Reported by Bruno Haible.
2440
2441         pipe, pipe2: don't corrupt fd on error
2442         * lib/pipe.c (pipe): Leave fd unchanged on error.
2443         * lib/pipe2.c (pipe2): Likewise.
2444         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2445         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2446
2447 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2448
2449         mmap-anon: do not use regular expressions inadvertently
2450         * m4/mmap-anon.m4: Remove trailing period from strings sought
2451         in the output.
2452
2453 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2454
2455         nanosleep: fix integer overflow problem
2456         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2457         arithmetic wraps around on overflow.
2458
2459         nanosleep: simplify carrying
2460         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2461         first call to the underyling nanosleep, not for the last one.
2462         This doesn't fix any bugs, but it simplifies the computation of
2463         the remaining delay.  Found while auditing integer overflow issues.
2464
2465         dup2: remove test for existence of fcntl
2466         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2467         "#if HAVE_FCNTL", in the configure-time test program.
2468         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2469         and therefore speeds up "configure" a bit.  Found while
2470         adding the dup2 module to Emacs.
2471
2472 2011-06-24  Eric Blake  <eblake@redhat.com>
2473
2474         maint.mk: enhance useless header checks
2475         * top/maint.mk (_sc_header_without_use): Check both include
2476         styles.
2477         (sc_prohibit_assert_without_use)
2478         (sc_prohibit_close_stream_without_use)
2479         (sc_prohibit_getopt_without_use)
2480         (sc_prohibit_quotearg_without_use)
2481         (sc_prohibit_quote_without_use)
2482         (sc_prohibit_long_options_without_use)
2483         (sc_prohibit_inttostr_without_use)
2484         (sc_prohibit_ignore_value_without_use)
2485         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2486         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2487         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2488         (sc_prohibit_hash_pjw_without_use)
2489         (sc_prohibit_safe_read_without_use)
2490         (sc_prohibit_argmatch_without_use)
2491         (sc_prohibit_canonicalize_without_use)
2492         (sc_prohibit_root_dev_ino_without_use)
2493         (sc_prohibit_openat_without_use)
2494         (sc_prohibit_c_ctype_without_use)
2495         (sc_prohibit_signal_without_use)
2496         (sc_prohibit_stdio--_without_use)
2497         (sc_prohibit_stdio-safer_without_use)
2498         (sc_prohibit_strings_without_use)
2499         (sc_prohibit_intprops_without_use)
2500         (sc_prohibit_stddef_without_use)
2501         (sc_prohibit_xfreopen_without_use): Update clients.
2502
2503 2011-06-24  Jim Meyering  <meyering@redhat.com>
2504
2505         syntax-check: keep one maint.mk rule in sync with its header
2506         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2507         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2508         I prefer to avoid temporary files here, so use <(...), but that
2509         is not supported by /bin/sh, so...
2510         (SHELL): Define to /bin/bash.
2511
2512 2011-06-24  Eric Blake  <eblake@redhat.com>
2513
2514         maint.mk: update sc_prohibit_intprops_without_use
2515         * top/maint.mk (_intprops_names): Match recent changes.
2516
2517 2011-06-24  Bruno Haible  <bruno@clisp.org>
2518
2519         strerror-override: No-op tweak.
2520         * lib/strerror-override.h (strerror_override): Reorder conditions,
2521         for consistency with lib/strerror-override.c.
2522
2523 2011-06-23  Eric Blake  <eblake@redhat.com>
2524
2525         maint.mk: test further PATH_MAX issues
2526         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2527         (sc_prohibit_path_max_allocation): ...and also test alloca.
2528         Suggested by Jim Meyering.
2529
2530 2011-06-22  Eric Blake  <eblake@redhat.com>
2531
2532         maint.mk: add syntax-check to avoid char[PATH_MAX]
2533         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2534
2535         stat: be robust to PATH_MAX definition
2536         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2537         * modules/stat (Depends-on): Add verify.
2538
2539         link: work around IRIX bug
2540         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2541         * lib/link.c (rpl_link): Work around it.
2542         * tests/test-link.h (test_link): Enhance test.
2543         * doc/posix-functions/link.texi (link): Document the bug.
2544
2545         getopt: silence clang warning
2546         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2547         dereference.
2548         Reported by Gustavo Martin Domato.
2549
2550 2011-06-22  Jim Meyering  <meyering@redhat.com>
2551
2552         bootstrap: do not insert a blank line into each .gitignore file
2553         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2554
2555 2011-06-21  Eric Blake  <eblake@redhat.com>
2556
2557         perror: test for output mismatch
2558         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2559         perror on IRIX.
2560
2561         strerror_r: fix OpenBSD behavior on out-of-range
2562         * lib/strerror_r.c (strerror_r): Always use maximal string.
2563         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2564
2565         strerror_r: fix OpenBSD behavior on 0
2566         * lib/strerror-override.c (strerror_override): Also override 0
2567         when needed.
2568         * lib/strerror-override.h (strerror_override): Likewise.
2569         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2570         earlier.
2571         * lib/strerror_r.c (strerror_r): Likewise.
2572         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2573         behavior...
2574         (gl_FUNC_STRERROR_0): ...into new macro.
2575         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2576         is overridden.
2577         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2578         * modules/strerror-override (Files): Add strerror.m4.
2579         (configure.ac): Also provide override for 0 when needed.
2580         * doc/posix-functions/strerror.texi (strerror): Document this.
2581         * doc/posix-functions/perror.texi (perror): Likewise.
2582
2583         perror: adjust array size
2584         * modules/perror (Depends-on): Add strerror-override.
2585         * lib/perror.c (perror): Use it to avoid magic number.
2586
2587         strerror-override: reduce size
2588         * lib/strerror-override.c (strerror_override): Use fewer lines.
2589
2590 2011-06-20  Bruno Haible  <bruno@clisp.org>
2591
2592         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2593         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2594
2595 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2596
2597         alloca: port to compilers that can optimize like GCC 4.6.0
2598         * lib/alloca.c (find_stack_direction): New signature, taken from
2599         Autoconf git.  This works with GCC 4.6.0.  This code should never
2600         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2601         be used with other compilers that optimize as well as GCC 4.6.0 does.
2602         (alloca): Adjust to new signature.
2603         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2604         New macro, which patches Autoconf in a similar way.
2605
2606         c-stack: stop worrying about stack direction
2607         * lib/c-stack.c (find_stack_direction): Remove.
2608         (segv_handler): Don't worry about stack direction growth, as it's
2609         too much of a pain to configure this correctly, given how compilers
2610         are optimizing-away our stack-growth detection code.  Instead, assume
2611         that any access to just before or just after the stack is OK.
2612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2613         Don't require AC_FUNC_ALLOCA; no longer needed.
2614
2615 2011-06-20  Eric Blake  <eblake@redhat.com>
2616
2617         test-stat: don't allocate PATH_MAX bytes
2618         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2619         PATH_MAX-sized buffer.
2620         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2621         * modules/stat-tests (Depends-on): Likewise.
2622         * tests/test-fstatat.c (includes): Drop pathmax.h.
2623         * tests/test-stat.c (includes): Likewise.
2624         Reported by Bruno Haible.
2625
2626 2011-06-20  Bruno Haible  <bruno@clisp.org>
2627
2628         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2629         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2630         * lib/float.c: New file.
2631         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2632         REPLACE_FLOAT_LDBL.
2633         * modules/float (Files): Add lib/float.c.
2634         (configure.ac): Invoke AC_LIBOBJ.
2635         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2636
2637 2011-06-20  Bruno Haible  <bruno@clisp.org>
2638
2639         Tests for module 'float'.
2640         * modules/float-tests: New file.
2641         * tests/test-float.c: New file.
2642
2643 2011-06-19  Bruno Haible  <bruno@clisp.org>
2644
2645         isinf: Coding style.
2646         * lib/isinf.c: Use GNU coding style.
2647
2648 2011-06-19  Bruno Haible  <bruno@clisp.org>
2649
2650         linkat test: Avoid test failure on AIX 7.1.
2651         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2652         * tests/test-link.h (test_link): Likewise.
2653
2654 2011-06-19  Bruno Haible  <bruno@clisp.org>
2655
2656         pread test: Avoid test failure on OpenBSD 4.9.
2657         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2658
2659 2011-06-19  Bruno Haible  <bruno@clisp.org>
2660
2661         sprintf-posix: Fix test failure on AIX 7.1.
2662         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2663         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2664         on AIX.
2665         * doc/posix-functions/fprintf.texi: Likewise.
2666         * doc/posix-functions/printf.texi: Likewise.
2667         * doc/posix-functions/snprintf.texi: Likewise.
2668         * doc/posix-functions/sprintf.texi: Likewise.
2669         * doc/posix-functions/vdprintf.texi: Likewise.
2670         * doc/posix-functions/vfprintf.texi: Likewise.
2671         * doc/posix-functions/vprintf.texi: Likewise.
2672         * doc/posix-functions/vsnprintf.texi: Likewise.
2673         * doc/posix-functions/vsprintf.texi: Likewise.
2674
2675 2011-06-19  Bruno Haible  <bruno@clisp.org>
2676
2677         roundl-ieee: Fix test failure on AIX 7.1.
2678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2679         * doc/posix-functions/roundl.texi: Mention problem with negative
2680         arguments.
2681
2682 2011-06-19  Bruno Haible  <bruno@clisp.org>
2683
2684         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2685         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2686         * doc/posix-functions/round.texi: Mention problem with negative
2687         arguments.
2688         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2689
2690 2011-06-19  Bruno Haible  <bruno@clisp.org>
2691
2692         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2694         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2695         * doc/posix-functions/roundf.texi: Mention problem with negative
2696         arguments.
2697         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2698
2699 2011-06-19  Bruno Haible  <bruno@clisp.org>
2700
2701         ceilf-ieee: Work around bug on MacOS X 10.5.
2702         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2703
2704         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2705         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2706         IEEE compliant, avoid compiler optimizations.
2707         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2708         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2709         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2710         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2711         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2712         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2713         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2715         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2717
2718 2011-06-19  Bruno Haible  <bruno@clisp.org>
2719
2720         ceilf-ieee: Work around bug on AIX 7.1.
2721         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2722         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2723
2724 2011-06-19  Bruno Haible  <bruno@clisp.org>
2725
2726         ceil-ieee: Work around bug on AIX 7.1.
2727         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2728         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2729
2730 2011-06-18  Bruno Haible  <bruno@clisp.org>
2731
2732         fsync test: Avoid test failure on MacOS X and AIX.
2733         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2734         EINVAL.
2735
2736 2011-06-18  Bruno Haible  <bruno@clisp.org>
2737
2738         openat, fdopendir tests: Fix link errors.
2739         * modules/openat-tests (Depends-on): Add progname.
2740         * modules/fdopendir-tests (Depends-on): Likewise.
2741         * tests/test-fchownat.c: Include progname.h.
2742         (main): Call set_program_name.
2743         * tests/test-fstatat.c: Include progname.h.
2744         (main): Call set_program_name.
2745         * tests/test-mkdirat.c: Include progname.h.
2746         (main): Call set_program_name.
2747         * tests/test-openat.c: Include progname.h.
2748         (main): Call set_program_name.
2749         * tests/test-unlinkat.c: Include progname.h.
2750         (main): Call set_program_name.
2751         * tests/test-fdopendir.c: Include progname.h.
2752         (main): Call set_program_name.
2753
2754 2011-06-18  Bruno Haible  <bruno@clisp.org>
2755
2756         Doc update.
2757         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2758         HP-UX.
2759         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2760
2761 2011-06-18  Bruno Haible  <bruno@clisp.org>
2762
2763         getcwd tests: Avoid compilation error on HP-UX 11.31.
2764         * modules/getcwd-tests (Depends-on): Add pathmax.
2765         * tests/test-getcwd.c: Include pathmax.h.
2766
2767 2011-06-18  Bruno Haible  <bruno@clisp.org>
2768
2769         isfinite, isinf: Fix link error on AIX 6 and 7.
2770         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2771         needed, also test the macro with a 'float' argument.
2772         * m4/isinf.m4 (gl_ISINF): Likewise.
2773
2774 2011-06-18  Bruno Haible  <bruno@clisp.org>
2775
2776         getloadavg: Don't clobber LIBS. Regression from previous commit.
2777         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2778         AC_CHECK_LIB from here...
2779         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2780         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2781         gl_func_getloadavg_done.
2782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2783
2784 2011-06-18  Bruno Haible  <bruno@clisp.org>
2785
2786         clean-temp: Improve documentation.
2787         * lib/clean-temp.h: Explain better how to use this module.
2788         Reported by John Darrington <john@darrington.wattle.id.au>.
2789
2790 2011-06-17  Bruno Haible  <bruno@clisp.org>
2791
2792         pread, pwrite: Avoid cc warning on AIX.
2793         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2794         (pwrite): Likewise.
2795
2796 2011-06-17  Bruno Haible  <bruno@clisp.org>
2797
2798         spawn-pipe tests: Fix link error.
2799         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2801
2802 2011-06-17  Bruno Haible  <bruno@clisp.org>
2803
2804         Tests: Remove unnecessary dependency.
2805         * modules/canonicalize-tests (Depends-on): Remove progname.
2806         * modules/chown-tests (Depends-on): Likewise.
2807         * modules/dirname-tests (Depends-on): Likewise.
2808         * modules/fdopendir-tests (Depends-on): Likewise.
2809         * modules/fdutimensat-tests (Depends-on): Likewise.
2810         * modules/hash-tests (Depends-on): Likewise.
2811         * modules/lchown-tests (Depends-on): Likewise.
2812         * modules/linkat-tests (Depends-on): Likewise.
2813         * modules/renameat-tests (Depends-on): Likewise.
2814         * modules/spawn-pipe-tests (Depends-on): Likewise.
2815         * modules/utimensat-tests (Depends-on): Likewise.
2816
2817 2011-06-17  Bruno Haible  <bruno@clisp.org>
2818
2819         spawn-pipe tests: Fix link error.
2820         * tests/test-spawn-pipe-child.c: Undefine fflush.
2821
2822 2011-06-17  Bruno Haible  <bruno@clisp.org>
2823
2824         Fix tests link errors.
2825         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2826         * modules/chown-tests (Makefile.am): Don't link test-chown with
2827         LIBINTL.
2828         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2829         LIBINTL.
2830         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2831         LIBINTL.
2832         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2833         LIBINTL.
2834
2835 2011-06-16  Bruno Haible  <bruno@clisp.org>
2836
2837         crypto/gc-sha1: Fix recent regression.
2838         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2839         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2840
2841         crypto/gc-md5: Fix recent regression.
2842         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2843
2844         crypto/gc-md4: Fix recent regression.
2845         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2846         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2847
2848         crypto/gc-arctwo: Fix recent regression.
2849         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2850         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2851
2852         crypto/gc-rijndael: Fix recent regression.
2853         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2854         (configure.ac): Invoke AC_LIBOBJ here.
2855         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2857
2858         crypto/gc-hmac-sha1: Fix recent regression.
2859         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2860         (configure.ac): Invoke AC_LIBOBJ here.
2861         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2863
2864         crypto/gc-hmac-md5: Fix recent regression.
2865         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2866         (configure.ac): Invoke AC_LIBOBJ here.
2867         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2869
2870         crypto/gc-des: Fix recent regression.
2871         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2872         (configure.ac): Invoke AC_LIBOBJ here.
2873         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2875
2876         crypto/gc-arcfour: Fix recent regression.
2877         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2878         (configure.ac): Invoke AC_LIBOBJ here.
2879         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2881
2882 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2883
2884         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2885         After the 2011-05-21 change, this macro requires
2886         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2888
2889 2011-06-16  Bruno Haible  <bruno@clisp.org>
2890
2891         fprintftime: Move AC_LIBOBJ invocations to module description.
2892         * m4/fprintftime.m4: Remove file.
2893         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2894         (configure.ac): Remove gl_FPRINTFTIME call.
2895         (Makefile.am): Augment lib_SOURCES.
2896         Reported by Jim Meyering.
2897
2898 2011-06-16  Bruno Haible  <bruno@clisp.org>
2899
2900         tmpfile-safer: Finish 2011-05-23 commit.
2901         * m4/stdio-safer.m4: Really remove file.
2902         Reported by Jim Meyering.
2903
2904 2011-06-16  Bruno Haible  <bruno@clisp.org>
2905
2906         syntax-check: Fix typo.
2907         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2908         printf-posix.m4.
2909         Reported by Jim Meyering.
2910
2911 2011-06-13  Jim Meyering  <meyering@redhat.com>
2912
2913         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2914         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2915
2916 2011-05-23  Bruno Haible  <bruno@clisp.org>
2917
2918         yesno: Move AC_LIBOBJ invocations to module description.
2919         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2920         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2921
2922 2011-05-23  Bruno Haible  <bruno@clisp.org>
2923
2924         xstrtol: Move AC_LIBOBJ invocations to module description.
2925         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2926         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2927
2928 2011-05-23  Bruno Haible  <bruno@clisp.org>
2929
2930         xstrtold: Move AC_LIBOBJ invocations to module description.
2931         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2932         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2933
2934 2011-05-23  Bruno Haible  <bruno@clisp.org>
2935
2936         xstrtod: Move AC_LIBOBJ invocations to module description.
2937         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2938         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2939
2940 2011-05-23  Bruno Haible  <bruno@clisp.org>
2941
2942         xnanosleep: Move AC_LIBOBJ invocations to module description.
2943         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2944         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2945
2946 2011-05-23  Bruno Haible  <bruno@clisp.org>
2947
2948         xgetcwd: Move AC_LIBOBJ invocations to module description.
2949         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2950         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2951
2952 2011-05-23  Bruno Haible  <bruno@clisp.org>
2953
2954         xalloc: Move AC_LIBOBJ invocations to module description.
2955         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2956         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2957
2958 2011-05-23  Bruno Haible  <bruno@clisp.org>
2959
2960         write-any-file: Move AC_LIBOBJ invocations to module description.
2961         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2962         invocation.
2963         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2964
2965 2011-05-23  Bruno Haible  <bruno@clisp.org>
2966
2967         utimens: Move AC_LIBOBJ invocations to module description.
2968         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2969         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2970
2971 2011-05-23  Bruno Haible  <bruno@clisp.org>
2972
2973         utimecmp: Move AC_LIBOBJ invocations to module description.
2974         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2975         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2976
2977 2011-05-23  Bruno Haible  <bruno@clisp.org>
2978
2979         userspec: Move AC_LIBOBJ invocations to module description.
2980         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2981         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2982
2983 2011-05-23  Bruno Haible  <bruno@clisp.org>
2984
2985         unlinkdir: Move AC_LIBOBJ invocations to module description.
2986         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2987         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2988
2989 2011-05-23  Bruno Haible  <bruno@clisp.org>
2990
2991         unistd-safer: Move AC_LIBOBJ invocations to module description.
2992         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2993         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2994
2995 2011-05-23  Bruno Haible  <bruno@clisp.org>
2996
2997         tempname: Move AC_LIBOBJ invocations to module description.
2998         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2999         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3000
3001 2011-05-23  Bruno Haible  <bruno@clisp.org>
3002
3003         strftime: Move AC_LIBOBJ invocations to module description.
3004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3005         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3006
3007 2011-05-23  Bruno Haible  <bruno@clisp.org>
3008
3009         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3010         * m4/stdlib-safer.m4: Remove file.
3011         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3012         (configure.ac): Remove gl_STDLIB_SAFER call.
3013         (Makefile.am): Augment lib_SOURCES.
3014
3015 2011-05-23  Bruno Haible  <bruno@clisp.org>
3016
3017         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3018         * m4/stdio-safer.m4: Remove file.
3019         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3020         (configure.ac): Remove gl_TMPFILE_SAFER call.
3021         (Makefile.am): Augment lib_SOURCES.
3022
3023 2011-05-23  Bruno Haible  <bruno@clisp.org>
3024
3025         popen-safer: Move AC_LIBOBJ invocations to module description.
3026         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3027         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3028         (configure.ac): Remove gl_POPEN_SAFER call.
3029         (Makefile.am): Augment lib_SOURCES.
3030
3031 2011-05-23  Bruno Haible  <bruno@clisp.org>
3032
3033         freopen-safer: Move AC_LIBOBJ invocations to module description.
3034         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3035         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3036         (configure.ac): Remove gl_FREOPEN_SAFER call.
3037         (Makefile.am): Augment lib_SOURCES.
3038
3039 2011-05-23  Bruno Haible  <bruno@clisp.org>
3040
3041         fopen-safer: Move AC_LIBOBJ invocations to module description.
3042         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3043         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3044         (configure.ac): Remove gl_FOPEN_SAFER call.
3045         (Makefile.am): Augment lib_SOURCES.
3046
3047 2011-05-23  Bruno Haible  <bruno@clisp.org>
3048
3049         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3050         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3051         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3052
3053 2011-05-23  Bruno Haible  <bruno@clisp.org>
3054
3055         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3056         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3057         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3058
3059 2011-05-23  Bruno Haible  <bruno@clisp.org>
3060
3061         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3062         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3063         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3064
3065 2011-05-23  Bruno Haible  <bruno@clisp.org>
3066
3067         settime: Move AC_LIBOBJ invocations to module description.
3068         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3069         * modules/settime (Makefile.am): Augment lib_SOURCES.
3070
3071 2011-05-23  Bruno Haible  <bruno@clisp.org>
3072
3073         savedir: Move AC_LIBOBJ invocations to module description.
3074         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3075         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3076
3077 2011-05-23  Bruno Haible  <bruno@clisp.org>
3078
3079         save-cwd: Move AC_LIBOBJ invocations to module description.
3080         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3081         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3082
3083 2011-05-23  Bruno Haible  <bruno@clisp.org>
3084
3085         same: Move AC_LIBOBJ invocations to module description.
3086         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3087         * modules/same (Makefile.am): Augment lib_SOURCES.
3088
3089 2011-05-23  Bruno Haible  <bruno@clisp.org>
3090
3091         safe-write: Move AC_LIBOBJ invocations to module description.
3092         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3093         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3094         instead of gl_SAFE_WRITE.
3095         (Makefile.am): Augment lib_SOURCES.
3096
3097 2011-05-23  Bruno Haible  <bruno@clisp.org>
3098
3099         safe-read: Move AC_LIBOBJ invocations to module description.
3100         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3101         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3102         of gl_SAFE_READ.
3103         (Makefile.am): Augment lib_SOURCES.
3104
3105 2011-05-23  Bruno Haible  <bruno@clisp.org>
3106
3107         safe-alloc: Move AC_LIBOBJ invocations to module description.
3108         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3109         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3110
3111 2011-05-23  Bruno Haible  <bruno@clisp.org>
3112
3113         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3114         * m4/rijndael.m4: Remove file.
3115         * modules/crypto/rijndael (Files): Remove it.
3116         (configure.ac): Remove gl_RIJNDAEL call.
3117         (Makefile.am): Augment lib_SOURCES.
3118
3119 2011-05-23  Bruno Haible  <bruno@clisp.org>
3120
3121         readtokens: Move AC_LIBOBJ invocations to module description.
3122         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3123         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3124
3125 2011-05-23  Bruno Haible  <bruno@clisp.org>
3126
3127         read-file: Move AC_LIBOBJ invocations to module description.
3128         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3129         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3130         of gl_FUNC_READ_FILE.
3131         (Makefile.am): Augment lib_SOURCES.
3132
3133 2011-05-23  Bruno Haible  <bruno@clisp.org>
3134
3135         quotearg: Move AC_LIBOBJ invocations to module description.
3136         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3137         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3138
3139 2011-05-23  Bruno Haible  <bruno@clisp.org>
3140
3141         quote: Move AC_LIBOBJ invocations to module description.
3142         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3143         * modules/quote (Makefile.am): Augment lib_SOURCES.
3144
3145 2011-05-23  Bruno Haible  <bruno@clisp.org>
3146
3147         posixver: Move AC_LIBOBJ invocations to module description.
3148         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3149         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3150
3151 2011-05-23  Bruno Haible  <bruno@clisp.org>
3152
3153         posixtm: Move AC_LIBOBJ invocations to module description.
3154         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3155         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         physmem: Move AC_LIBOBJ invocations to module description.
3160         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3161         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3162
3163 2011-05-23  Bruno Haible  <bruno@clisp.org>
3164
3165         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3166         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3167         invocation.
3168         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3169
3170 2011-05-23  Bruno Haible  <bruno@clisp.org>
3171
3172         mpsort: Move AC_LIBOBJ invocations to module description.
3173         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3174         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3175
3176 2011-05-23  Bruno Haible  <bruno@clisp.org>
3177
3178         modechange: Move AC_LIBOBJ invocations to module description.
3179         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3180         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3181
3182 2011-05-23  Bruno Haible  <bruno@clisp.org>
3183
3184         mkdir-p: Move AC_LIBOBJ invocations to module description.
3185         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3186         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3187
3188 2011-05-23  Bruno Haible  <bruno@clisp.org>
3189
3190         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3191         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3192         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3193
3194 2011-05-23  Bruno Haible  <bruno@clisp.org>
3195
3196         mgetgroups: Move AC_LIBOBJ invocations to module description.
3197         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3198         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3199
3200 2011-05-23  Bruno Haible  <bruno@clisp.org>
3201
3202         memxor: Move AC_LIBOBJ invocations to module description.
3203         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3204         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3205
3206 2011-05-23  Bruno Haible  <bruno@clisp.org>
3207
3208         memcoll: Move AC_LIBOBJ invocations to module description.
3209         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3210         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3211
3212 2011-05-23  Bruno Haible  <bruno@clisp.org>
3213
3214         memcasecmp: Move AC_LIBOBJ invocations to module description.
3215         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3216         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3217
3218 2011-05-23  Bruno Haible  <bruno@clisp.org>
3219
3220         crypto/md5: Move AC_LIBOBJ invocations to module description.
3221         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3222         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3223
3224 2011-05-23  Bruno Haible  <bruno@clisp.org>
3225
3226         crypto/md4: Move AC_LIBOBJ invocations to module description.
3227         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3228         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3229
3230 2011-05-23  Bruno Haible  <bruno@clisp.org>
3231
3232         crypto/md2: Move AC_LIBOBJ invocations to module description.
3233         * m4/md2.m4: Remove file.
3234         * modules/crypto/md2 (Files): Remove it.
3235         (configure.ac): Remove gl_MD2 call.
3236         (Makefile.am): Augment lib_SOURCES.
3237
3238 2011-05-23  Bruno Haible  <bruno@clisp.org>
3239
3240         long-options: Move AC_LIBOBJ invocations to module description.
3241         * m4/long-options.m4: Remove file.
3242         * modules/long-options (Files): Remove it.
3243         (configure.ac): Remove gl_LONG_OPTIONS call.
3244         (Makefile.am): Augment lib_SOURCES.
3245
3246 2011-05-23  Bruno Haible  <bruno@clisp.org>
3247
3248         i-ring: Move AC_LIBOBJ invocations to module description.
3249         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3250         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3251
3252 2011-05-23  Bruno Haible  <bruno@clisp.org>
3253
3254         idcache: Move AC_LIBOBJ invocations to module description.
3255         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3256         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3257
3258 2011-05-23  Bruno Haible  <bruno@clisp.org>
3259
3260         human: Move AC_LIBOBJ invocations to module description.
3261         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3262         * modules/human (Makefile.am): Augment lib_SOURCES.
3263
3264 2011-05-23  Bruno Haible  <bruno@clisp.org>
3265
3266         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3267         * m4/hmac-sha1.m4: Remove file.
3268         * modules/crypto/hmac-sha1 (Files): Remove it.
3269         (configure.ac): Remove gl_HMAC_SHA1 call.
3270         (Makefile.am): Augment lib_SOURCES.
3271
3272 2011-05-23  Bruno Haible  <bruno@clisp.org>
3273
3274         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3275         * m4/hmac-md5.m4: Remove file.
3276         * modules/crypto/hmac-md5 (Files): Remove it.
3277         (configure.ac): Remove gl_HMAC_MD5 call.
3278         (Makefile.am): Augment lib_SOURCES.
3279
3280 2011-05-23  Bruno Haible  <bruno@clisp.org>
3281
3282         hash: Move AC_LIBOBJ invocations to module description.
3283         * m4/hash.m4: Remove file.
3284         * modules/hash (Files): Remove it.
3285         (configure.ac): Remove gl_HASH call.
3286         (Makefile.am): Augment lib_SOURCES.
3287
3288 2011-05-23  Bruno Haible  <bruno@clisp.org>
3289
3290         hard-locale: Move AC_LIBOBJ invocations to module description.
3291         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3292         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3293
3294 2011-05-23  Bruno Haible  <bruno@clisp.org>
3295
3296         getugroups: Move AC_LIBOBJ invocations to module description.
3297         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3298         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3299
3300 2011-05-23  Bruno Haible  <bruno@clisp.org>
3301
3302         gettime: Move AC_LIBOBJ invocations to module description.
3303         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3304         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3305
3306 2011-05-23  Bruno Haible  <bruno@clisp.org>
3307
3308         getndelim2: Move AC_LIBOBJ invocations to module description.
3309         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3310         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3311
3312 2011-05-23  Bruno Haible  <bruno@clisp.org>
3313
3314         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3315         * m4/gc-pbkdf2-sha1.m4: Remove file.
3316         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3317         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3318         (Makefile.am): Augment lib_SOURCES.
3319
3320 2011-05-23  Bruno Haible  <bruno@clisp.org>
3321
3322         fts: Move AC_LIBOBJ invocations to module description.
3323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3324         * modules/fts (configure.ac): ... to here.
3325
3326 2011-05-23  Bruno Haible  <bruno@clisp.org>
3327
3328         file-type: Move AC_LIBOBJ invocations to module description.
3329         * m4/file-type.m4: Remove file.
3330         * modules/file-type (Files): Remove it.
3331         (configure.ac): Remove gl_FILE_TYPE call.
3332         (Makefile.am): Augment lib_SOURCES.
3333
3334 2011-05-23  Bruno Haible  <bruno@clisp.org>
3335
3336         filenamecat*: Respect rules for use of AC_LIBOBJ.
3337         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3338         Remove AC_LIBOBJ invocation.
3339         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3340         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3341
3342 2011-05-23  Bruno Haible  <bruno@clisp.org>
3343
3344         filemode: Move AC_LIBOBJ invocations to module description.
3345         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3346         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3347
3348 2011-05-23  Bruno Haible  <bruno@clisp.org>
3349
3350         openat-safer: Move AC_LIBOBJ invocations to module description.
3351         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3352         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3353
3354 2011-05-23  Bruno Haible  <bruno@clisp.org>
3355
3356         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3357         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3358         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3359
3360 2011-05-23  Bruno Haible  <bruno@clisp.org>
3361
3362         exclude: Move AC_LIBOBJ invocations to module description.
3363         * m4/exclude.m4: Remove file.
3364         * modules/exclude (Files): Remove it.
3365         (configure.ac): Remove gl_EXCLUDE call.
3366         (Makefile.am): Augment lib_SOURCES.
3367
3368 2011-05-23  Bruno Haible  <bruno@clisp.org>
3369
3370         dirname*: Respect rules for use of AC_LIBOBJ.
3371         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3372         invocations.
3373         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3374         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3375
3376 2011-05-23  Bruno Haible  <bruno@clisp.org>
3377
3378         dirent-safer: Move AC_LIBOBJ invocations to module description.
3379         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3380         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3381
3382 2011-05-23  Bruno Haible  <bruno@clisp.org>
3383
3384         crypto/des: Move AC_LIBOBJ invocations to module description.
3385         * m4/des.m4: Remove file.
3386         * modules/crypto/des (Files): Remove it.
3387         (configure.ac): Remove gl_DES call.
3388         (Makefile.am): Augment lib_SOURCES.
3389
3390 2011-05-23  Bruno Haible  <bruno@clisp.org>
3391
3392         cycle-check: Move AC_LIBOBJ invocations to module description.
3393         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3394         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3395
3396 2011-05-23  Bruno Haible  <bruno@clisp.org>
3397
3398         c-strtold: Move AC_LIBOBJ invocations to module description.
3399         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3400         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3401
3402 2011-05-23  Bruno Haible  <bruno@clisp.org>
3403
3404         c-strtod: Move AC_LIBOBJ invocations to module description.
3405         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3406         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3407
3408 2011-05-23  Bruno Haible  <bruno@clisp.org>
3409
3410         crc: Move AC_LIBOBJ invocations to module description.
3411         * m4/crc.m4: Remove file.
3412         * modules/crc (Files): Remove it.
3413         (configure.ac): Remove gl_CRC call.
3414         (Makefile.am): Augment lib_SOURCES.
3415
3416 2011-05-23  Bruno Haible  <bruno@clisp.org>
3417
3418         close-stream: Move AC_LIBOBJ invocations to module description.
3419         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3420         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3421
3422 2011-05-23  Bruno Haible  <bruno@clisp.org>
3423
3424         closeout: Move AC_LIBOBJ invocations to module description.
3425         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3426         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3427
3428 2011-05-23  Bruno Haible  <bruno@clisp.org>
3429
3430         closein: Move AC_LIBOBJ invocations to module description.
3431         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3432         * modules/closein (Makefile.am): Augment lib_SOURCES.
3433
3434 2011-05-23  Bruno Haible  <bruno@clisp.org>
3435
3436         cloexec: Move AC_LIBOBJ invocations to module description.
3437         * m4/cloexec.m4: Remove file.
3438         * modules/cloexec (Files): Remove it.
3439         (configure.ac): Remove gl_CLOEXEC call.
3440         (Makefile.am): Augment lib_SOURCES.
3441
3442 2011-05-23  Bruno Haible  <bruno@clisp.org>
3443
3444         check-version: Move AC_LIBOBJ invocations to module description.
3445         * m4/check-version.m4: Remove file.
3446         * modules/check-version (Files): Remove it.
3447         (configure.ac): Remove gl_CHECK_VERSION call.
3448         (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         chdir-safer: Move AC_LIBOBJ invocations to module description.
3453         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3454         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3455
3456 2011-05-23  Bruno Haible  <bruno@clisp.org>
3457
3458         canonicalize: Move AC_LIBOBJ invocations to module description.
3459         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3460         AC_LIBOBJ invocation.
3461         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3462
3463 2011-05-23  Bruno Haible  <bruno@clisp.org>
3464
3465         canon-host: Move AC_LIBOBJ invocations to module description.
3466         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3467         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3468         instead of gl_CANON_HOST.
3469         (Makefile.am): Augment lib_SOURCES.
3470
3471 2011-05-23  Bruno Haible  <bruno@clisp.org>
3472
3473         backupfile: Move AC_LIBOBJ invocations to module description.
3474         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3475         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3476
3477 2011-05-23  Bruno Haible  <bruno@clisp.org>
3478
3479         argmatch: Move AC_LIBOBJ invocations to module description.
3480         * m4/argmatch.m4: Remove file.
3481         * modules/argmatch (Files): Remove it.
3482         (configure.ac): Remove gl_ARGMATCH call.
3483         (Makefile.am): Augment lib_SOURCES.
3484
3485 2011-05-23  Bruno Haible  <bruno@clisp.org>
3486
3487         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3488         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3489         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3490
3491 2011-05-23  Bruno Haible  <bruno@clisp.org>
3492
3493         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3494         * m4/arcfour.m4: Remove file.
3495         * modules/crypto/arcfour (Files): Remove it.
3496         (configure.ac): Remove gl_ARCFOUR call.
3497         (Makefile.am): Augment lib_SOURCES.
3498
3499 2011-05-22  Bruno Haible  <bruno@clisp.org>
3500
3501         write: Move AC_LIBOBJ invocations to module description.
3502         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3503         * modules/write (configure.ac): ... to here.
3504
3505 2011-05-22  Bruno Haible  <bruno@clisp.org>
3506
3507         wmemset: Move AC_LIBOBJ invocations to module description.
3508         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3509         here...
3510         * modules/wmemset (configure.ac): ... to here.
3511
3512 2011-05-22  Bruno Haible  <bruno@clisp.org>
3513
3514         wmemmove: Move AC_LIBOBJ invocations to module description.
3515         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3516         here...
3517         * modules/wmemmove (configure.ac): ... to here.
3518
3519 2011-05-22  Bruno Haible  <bruno@clisp.org>
3520
3521         wmemcpy: Move AC_LIBOBJ invocations to module description.
3522         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3523         here...
3524         * modules/wmemcpy (configure.ac): ... to here.
3525
3526 2011-05-22  Bruno Haible  <bruno@clisp.org>
3527
3528         wmemcmp: Move AC_LIBOBJ invocations to module description.
3529         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3530         here...
3531         * modules/wmemcmp (configure.ac): ... to here.
3532
3533 2011-05-22  Bruno Haible  <bruno@clisp.org>
3534
3535         wmemchr: Move AC_LIBOBJ invocations to module description.
3536         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3537         here...
3538         * modules/wmemchr (configure.ac): ... to here.
3539
3540 2011-05-22  Bruno Haible  <bruno@clisp.org>
3541
3542         wcswidth: Move AC_LIBOBJ invocations to module description.
3543         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3544         here...
3545         * modules/wcswidth (configure.ac): ... to here.
3546
3547 2011-05-22  Bruno Haible  <bruno@clisp.org>
3548
3549         wcwidth: Respect rules for use of AC_LIBOBJ.
3550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3551         invocation from here...
3552         * modules/wcwidth (configure.ac): ... to here.
3553         (Depends-on): Update conditions.
3554
3555 2011-05-22  Bruno Haible  <bruno@clisp.org>
3556
3557         wctype: Move AC_LIBOBJ invocations to module description.
3558         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3559         invocation from here...
3560         * modules/wctype (configure.ac): ... to here.
3561         (Depends-on): Update conditions.
3562
3563 2011-05-22  Bruno Haible  <bruno@clisp.org>
3564
3565         wctrans: Move AC_LIBOBJ invocations to module description.
3566         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3567         invocation from here...
3568         * modules/wctrans (configure.ac): ... to here.
3569
3570 2011-05-22  Bruno Haible  <bruno@clisp.org>
3571
3572         wctomb: Move AC_LIBOBJ invocations to module description.
3573         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3574         invocations from here...
3575         * modules/wctomb (configure.ac): ... to here.
3576
3577 2011-05-22  Bruno Haible  <bruno@clisp.org>
3578
3579         wctob: Move AC_LIBOBJ invocations to module description.
3580         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3581         gl_PREREQ_WCTOB invocations from here...
3582         * modules/wctob (configure.ac): ... to here.
3583         (Depends-on): Update conditions.
3584
3585 2011-05-22  Bruno Haible  <bruno@clisp.org>
3586
3587         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3588         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3589         here...
3590         * modules/wcsxfrm (configure.ac): ... to here.
3591
3592 2011-05-22  Bruno Haible  <bruno@clisp.org>
3593
3594         wcstok: Move AC_LIBOBJ invocations to module description.
3595         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3596         * modules/wcstok (configure.ac): ... to here.
3597
3598 2011-05-22  Bruno Haible  <bruno@clisp.org>
3599
3600         wcsstr: Move AC_LIBOBJ invocations to module description.
3601         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3602         * modules/wcsstr (configure.ac): ... to here.
3603
3604 2011-05-22  Bruno Haible  <bruno@clisp.org>
3605
3606         wcsspn: Move AC_LIBOBJ invocations to module description.
3607         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3608         * modules/wcsspn (configure.ac): ... to here.
3609
3610 2011-05-22  Bruno Haible  <bruno@clisp.org>
3611
3612         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3613         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3614         gl_PREREQ_WCSRTOMBS invocations from here...
3615         * modules/wcsrtombs (configure.ac): ... to here.
3616
3617 2011-05-22  Bruno Haible  <bruno@clisp.org>
3618
3619         wcsrchr: Move AC_LIBOBJ invocations to module description.
3620         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3621         here...
3622         * modules/wcsrchr (configure.ac): ... to here.
3623
3624 2011-05-22  Bruno Haible  <bruno@clisp.org>
3625
3626         wcspbrk: Move AC_LIBOBJ invocations to module description.
3627         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3628         here...
3629         * modules/wcspbrk (configure.ac): ... to here.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3634         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3635         gl_PREREQ_WCSNRTOMBS invocations from here...
3636         * modules/wcsnrtombs (configure.ac): ... to here.
3637
3638 2011-05-22  Bruno Haible  <bruno@clisp.org>
3639
3640         wcsnlen: Move AC_LIBOBJ invocations to module description.
3641         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3642         here...
3643         * modules/wcsnlen (configure.ac): ... to here.
3644
3645 2011-05-22  Bruno Haible  <bruno@clisp.org>
3646
3647         wcsncpy: Move AC_LIBOBJ invocations to module description.
3648         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3649         here...
3650         * modules/wcsncpy (configure.ac): ... to here.
3651
3652 2011-05-22  Bruno Haible  <bruno@clisp.org>
3653
3654         wcsncmp: Move AC_LIBOBJ invocations to module description.
3655         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3656         here...
3657         * modules/wcsncmp (configure.ac): ... to here.
3658
3659 2011-05-22  Bruno Haible  <bruno@clisp.org>
3660
3661         wcsncat: Move AC_LIBOBJ invocations to module description.
3662         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3663         here...
3664         * modules/wcsncat (configure.ac): ... to here.
3665
3666 2011-05-22  Bruno Haible  <bruno@clisp.org>
3667
3668         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3669         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3670         from here...
3671         * modules/wcsncasecmp (configure.ac): ... to here.
3672
3673 2011-05-22  Bruno Haible  <bruno@clisp.org>
3674
3675         wcslen: Move AC_LIBOBJ invocations to module description.
3676         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3677         * modules/wcslen (configure.ac): ... to here.
3678
3679 2011-05-22  Bruno Haible  <bruno@clisp.org>
3680
3681         wcsdup: Move AC_LIBOBJ invocations to module description.
3682         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3683         * modules/wcsdup (configure.ac): ... to here.
3684
3685 2011-05-22  Bruno Haible  <bruno@clisp.org>
3686
3687         wcscspn: Move AC_LIBOBJ invocations to module description.
3688         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3689         here...
3690         * modules/wcscspn (configure.ac): ... to here.
3691
3692 2011-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         wcscpy: Move AC_LIBOBJ invocations to module description.
3695         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3696         * modules/wcscpy (configure.ac): ... to here.
3697
3698 2011-05-22  Bruno Haible  <bruno@clisp.org>
3699
3700         wcscoll: Move AC_LIBOBJ invocations to module description.
3701         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3702         here...
3703         * modules/wcscoll (configure.ac): ... to here.
3704
3705 2011-05-22  Bruno Haible  <bruno@clisp.org>
3706
3707         wcscmp: Move AC_LIBOBJ invocations to module description.
3708         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3709         * modules/wcscmp (configure.ac): ... to here.
3710
3711 2011-05-22  Bruno Haible  <bruno@clisp.org>
3712
3713         wcschr: Move AC_LIBOBJ invocations to module description.
3714         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3715         * modules/wcschr (configure.ac): ... to here.
3716
3717 2011-05-22  Bruno Haible  <bruno@clisp.org>
3718
3719         wcscat: Move AC_LIBOBJ invocations to module description.
3720         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3721         * modules/wcscat (configure.ac): ... to here.
3722
3723 2011-05-22  Bruno Haible  <bruno@clisp.org>
3724
3725         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3726         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3727         here...
3728         * modules/wcscasecmp (configure.ac): ... to here.
3729
3730 2011-05-22  Bruno Haible  <bruno@clisp.org>
3731
3732         wcrtomb: Move AC_LIBOBJ invocations to module description.
3733         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3734         invocations from here...
3735         * modules/wcrtomb (configure.ac): ... to here.
3736
3737 2011-05-22  Bruno Haible  <bruno@clisp.org>
3738
3739         wcpncpy: Move AC_LIBOBJ invocations to module description.
3740         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3741         here...
3742         * modules/wcpncpy (configure.ac): ... to here.
3743
3744 2011-05-22  Bruno Haible  <bruno@clisp.org>
3745
3746         wcpcpy: Move AC_LIBOBJ invocations to module description.
3747         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3748         * modules/wcpcpy (configure.ac): ... to here.
3749
3750 2011-05-22  Bruno Haible  <bruno@clisp.org>
3751
3752         waitpid: Move AC_LIBOBJ invocations to module description.
3753         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3754         invocation from here...
3755         * modules/waitpid (configure.ac): ... to here.
3756
3757 2011-05-22  Bruno Haible  <bruno@clisp.org>
3758
3759         utimensat: Move AC_LIBOBJ invocations to module description.
3760         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3761         here...
3762         * modules/utimensat (configure.ac): ... to here.
3763
3764 2011-05-22  Bruno Haible  <bruno@clisp.org>
3765
3766         usleep: Move AC_LIBOBJ invocations to module description.
3767         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3768         here...
3769         * modules/usleep (configure.ac): ... to here.
3770
3771 2011-05-22  Bruno Haible  <bruno@clisp.org>
3772
3773         unlockpt: Move AC_LIBOBJ invocations to module description.
3774         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3775         gl_PREREQ_UNLOCKPT invocations from here...
3776         * modules/unlockpt (configure.ac): ... to here.
3777
3778 2011-05-22  Bruno Haible  <bruno@clisp.org>
3779
3780         unlink: Respect rules for use of AC_LIBOBJ.
3781         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3782         * modules/unlink (configure.ac): ... to here.
3783
3784 2011-05-22  Bruno Haible  <bruno@clisp.org>
3785
3786         uname: Move AC_LIBOBJ invocations to module description.
3787         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3789         here...
3790         * modules/uname (configure.ac): ... to here.
3791
3792 2011-05-22  Bruno Haible  <bruno@clisp.org>
3793
3794         ttyname_r: Move AC_LIBOBJ invocations to module description.
3795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3796         gl_PREREQ_TTYNAME_R invocations from here...
3797         * modules/ttyname_r (configure.ac): ... to here.
3798
3799 2011-05-22  Bruno Haible  <bruno@clisp.org>
3800
3801         tsearch: Move AC_LIBOBJ invocations to module description.
3802         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3803         invocations from here...
3804         * modules/tsearch (configure.ac): ... to here.
3805
3806 2011-05-22  Bruno Haible  <bruno@clisp.org>
3807
3808         towctrans: Move AC_LIBOBJ invocations to module description.
3809         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3810         AC_LIBOBJ invocation from here...
3811         * modules/towctrans (configure.ac): ... to here.
3812
3813 2011-05-22  Bruno Haible  <bruno@clisp.org>
3814
3815         tmpfile: Move AC_LIBOBJ invocations to module description.
3816         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3817         invocations from here...
3818         * modules/tmpfile (configure.ac): ... to here.
3819
3820 2011-05-22  Bruno Haible  <bruno@clisp.org>
3821
3822         times: Move AC_LIBOBJ invocations to module description.
3823         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3824         * modules/times (configure.ac): ... to here.
3825
3826 2011-05-22  Bruno Haible  <bruno@clisp.org>
3827
3828         time_r: Move AC_LIBOBJ invocations to module description.
3829         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3830         invocations from here...
3831         * modules/time_r (configure.ac): ... to here.
3832
3833 2011-05-22  Bruno Haible  <bruno@clisp.org>
3834
3835         timegm: Move AC_LIBOBJ invocations to module description.
3836         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3837         invocations from here...
3838         * modules/timegm (configure.ac): ... to here.
3839
3840 2011-05-22  Bruno Haible  <bruno@clisp.org>
3841
3842         tcgetsid: Move AC_LIBOBJ invocations to module description.
3843         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3844         and gl_PREREQ_TCGETSID invocations from here...
3845         * modules/tcgetsid (configure.ac): ... to here.
3846         (Depends-on): Update conditions.
3847
3848 2011-05-22  Bruno Haible  <bruno@clisp.org>
3849
3850         symlinkat: Move AC_LIBOBJ invocations to module description.
3851         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3852         here...
3853         * modules/symlinkat (configure.ac): ... to here.
3854
3855 2011-05-22  Bruno Haible  <bruno@clisp.org>
3856
3857         symlink: Move AC_LIBOBJ invocations to module description.
3858         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3859         here...
3860         * modules/symlink (configure.ac): ... to here.
3861
3862 2011-05-22  Bruno Haible  <bruno@clisp.org>
3863
3864         strverscmp: Move AC_LIBOBJ invocations to module description.
3865         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3867         from here...
3868         * modules/strverscmp (configure.ac): ... to here.
3869
3870 2011-05-22  Bruno Haible  <bruno@clisp.org>
3871
3872         strtok_r: Move AC_LIBOBJ invocations to module description.
3873         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3874         and gl_PREREQ_STRTOK_R invocations from here...
3875         * modules/strtok_r (configure.ac): ... to here.
3876         (Depends-on): Update conditions.
3877
3878 2011-05-22  Bruno Haible  <bruno@clisp.org>
3879
3880         strtoumax: Move AC_LIBOBJ invocations to module description.
3881         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3883         from here...
3884         * modules/strtoumax (configure.ac): ... to here.
3885
3886 2011-05-22  Bruno Haible  <bruno@clisp.org>
3887
3888         strtoimax: Move AC_LIBOBJ invocations to module description.
3889         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3891         from here...
3892         * modules/strtoimax (configure.ac): ... to here.
3893
3894 2011-05-22  Bruno Haible  <bruno@clisp.org>
3895
3896         strtoull: Move AC_LIBOBJ invocations to module description.
3897         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3899         from here...
3900         * modules/strtoull (configure.ac): ... to here.
3901
3902 2011-05-22  Bruno Haible  <bruno@clisp.org>
3903
3904         strtoll: Move AC_LIBOBJ invocations to module description.
3905         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3907         here...
3908         * modules/strtoll (configure.ac): ... to here.
3909
3910 2011-05-22  Bruno Haible  <bruno@clisp.org>
3911
3912         strtoul: Move AC_LIBOBJ invocations to module description.
3913         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3914         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3915         * modules/strtoul (configure.ac): ... to here.
3916
3917 2011-05-22  Bruno Haible  <bruno@clisp.org>
3918
3919         strtol: Move AC_LIBOBJ invocations to module description.
3920         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3921         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3922         * modules/strtol (configure.ac): ... to here.
3923
3924 2011-05-22  Bruno Haible  <bruno@clisp.org>
3925
3926         strtod: Move AC_LIBOBJ invocations to module description.
3927         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3928         invocations from here...
3929         * modules/strtod (configure.ac): ... to here.
3930
3931 2011-05-22  Bruno Haible  <bruno@clisp.org>
3932
3933         strstr*: Move AC_LIBOBJ invocations to module description.
3934         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3935         invocations from here...
3936         * modules/strstr-simple (configure.ac): ... to here.
3937         * modules/strstr (configure.ac): ... and here.
3938
3939 2011-05-22  Bruno Haible  <bruno@clisp.org>
3940
3941         strsignal: Move AC_LIBOBJ invocations to module description.
3942         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3943         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3944         * modules/strsignal (configure.ac): ... to here.
3945         (Depends-on): Update conditions.
3946
3947 2011-05-22  Bruno Haible  <bruno@clisp.org>
3948
3949         strsep: Move AC_LIBOBJ invocations to module description.
3950         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3952         here...
3953         * modules/strsep (configure.ac): ... to here.
3954
3955 2011-05-22  Bruno Haible  <bruno@clisp.org>
3956
3957         strptime: Move AC_LIBOBJ invocations to module description.
3958         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3959         gl_PREREQ_STRPTIME invocations from here...
3960         * modules/strptime (configure.ac): ... to here.
3961
3962 2011-05-22  Bruno Haible  <bruno@clisp.org>
3963
3964         strpbrk: Move AC_LIBOBJ invocations to module description.
3965         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3967         here...
3968         * modules/strpbrk (configure.ac): ... to here.
3969
3970 2011-05-22  Bruno Haible  <bruno@clisp.org>
3971
3972         strnlen: Move AC_LIBOBJ invocations to module description.
3973         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3974         invocations from here...
3975         * modules/strnlen (configure.ac): ... to here.
3976
3977 2011-05-22  Bruno Haible  <bruno@clisp.org>
3978
3979         strndup: Move AC_LIBOBJ invocations to module description.
3980         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3981         invocations from here...
3982         * modules/strndup (configure.ac): ... to here.
3983         (Depends-on): Update conditions.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         strncat: Move AC_LIBOBJ invocations to module description.
3988         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3989         invocations from here...
3990         * modules/strncat (configure.ac): ... to here.
3991
3992 2011-05-22  Bruno Haible  <bruno@clisp.org>
3993
3994         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3995         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3996         invocations from here...
3997         * modules/strdup (configure.ac): ... to here.
3998         * modules/strdup-posix (configure.ac): ... and here.
3999
4000 2011-05-22  Bruno Haible  <bruno@clisp.org>
4001
4002         strcspn: Move AC_LIBOBJ invocations to module description.
4003         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4004         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4005         here...
4006         * modules/strcspn (configure.ac): ... to here.
4007
4008 2011-05-22  Bruno Haible  <bruno@clisp.org>
4009
4010         strchrnul: Move AC_LIBOBJ invocations to module description.
4011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4012         gl_PREREQ_STRCHRNUL invocations from here...
4013         * modules/strchrnul (configure.ac): ... to here.
4014
4015 2011-05-22  Bruno Haible  <bruno@clisp.org>
4016
4017         strcasestr*: Move AC_LIBOBJ invocations to module description.
4018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4019         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4020         * modules/strcasestr-simple (configure.ac): ... to here.
4021         * modules/strcasestr (configure.ac): ... and here.
4022
4023 2011-05-22  Bruno Haible  <bruno@clisp.org>
4024
4025         strcase: Move AC_LIBOBJ invocations to module description.
4026         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4027         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4028         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4029         gl_PREREQ_STRNCASECMP invocations from here...
4030         * modules/strcase (configure.ac): ... to here.
4031
4032 2011-05-22  Bruno Haible  <bruno@clisp.org>
4033
4034         stpncpy: Move AC_LIBOBJ invocations to module description.
4035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4036         here...
4037         * modules/stpncpy (configure.ac): ... to here.
4038
4039 2011-05-22  Bruno Haible  <bruno@clisp.org>
4040
4041         stpcpy: Move AC_LIBOBJ invocations to module description.
4042         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4044         here...
4045         * modules/stpcpy (configure.ac): ... to here.
4046
4047 2011-05-21  Bruno Haible  <bruno@clisp.org>
4048
4049         stat: Move AC_LIBOBJ invocations to module description.
4050         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4051         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4052         here...
4053         * modules/stat (configure.ac): ... to here.
4054
4055 2011-05-21  Bruno Haible  <bruno@clisp.org>
4056
4057         sleep: Move AC_LIBOBJ invocations to module description.
4058         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4059         * modules/sleep (configure.ac): ... to here.
4060
4061 2011-05-21  Bruno Haible  <bruno@clisp.org>
4062
4063         signbit: Move AC_LIBOBJ invocations to module description.
4064         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4065         * modules/signbit (configure.ac): ... to here.
4066
4067 2011-05-21  Bruno Haible  <bruno@clisp.org>
4068
4069         sigprocmask: Move AC_LIBOBJ invocations to module description.
4070         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4071         gl_PREREQ_SIGPROMASK invocations from here...
4072         * modules/sigprocmask (configure.ac): ... to here.
4073
4074 2011-05-21  Bruno Haible  <bruno@clisp.org>
4075
4076         sigaction: Move AC_LIBOBJ invocations to module description.
4077         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4078         gl_PREREQ_SIGACTION invocations from here...
4079         * modules/sigaction (configure.ac): ... to here.
4080
4081 2011-05-21  Bruno Haible  <bruno@clisp.org>
4082
4083         sig2str: Move AC_LIBOBJ invocations to module description.
4084         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4086         here...
4087         * modules/sig2str (configure.ac): ... to here.
4088
4089 2011-05-21  Bruno Haible  <bruno@clisp.org>
4090
4091         setlocale: Move AC_LIBOBJ invocations to module description.
4092         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4093         gl_PREREQ_SETLOCALE invocations from here...
4094         * modules/setlocale (configure.ac): ... to here.
4095
4096 2011-05-21  Bruno Haible  <bruno@clisp.org>
4097
4098         unsetenv: Move AC_LIBOBJ invocations to module description.
4099         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4100         and gl_PREREQ_UNSETENV invocations from here...
4101         * modules/unsetenv (configure.ac): ... to here.
4102         (Depends-on): Update.
4103
4104 2011-05-21  Bruno Haible  <bruno@clisp.org>
4105
4106         setenv: Move AC_LIBOBJ invocations to module description.
4107         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4108         here...
4109         * modules/setenv (configure.ac): ... to here.
4110
4111 2011-05-21  Bruno Haible  <bruno@clisp.org>
4112
4113         selinux-h: Move AC_LIBOBJ invocations to module description.
4114         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4115         AC_LIBOBJ invocation from here...
4116         * modules/selinux-h (configure.ac): ... to here.
4117
4118 2011-05-21  Bruno Haible  <bruno@clisp.org>
4119
4120         select: Respect rules for use of AC_LIBOBJ.
4121         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4122         here...
4123         * modules/select (configure.ac): ... to here.
4124
4125 2011-05-21  Bruno Haible  <bruno@clisp.org>
4126
4127         scandir: Move AC_LIBOBJ invocations to module description.
4128         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4129         invocations from here...
4130         * modules/scandir (configure.ac): ... to here.
4131
4132 2011-05-21  Bruno Haible  <bruno@clisp.org>
4133
4134         rpmatch: Move AC_LIBOBJ invocations to module description.
4135         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4137         here...
4138         * modules/rpmatch (configure.ac): ... to here.
4139
4140 2011-05-21  Bruno Haible  <bruno@clisp.org>
4141
4142         rmdir: Respect rules for use of AC_LIBOBJ.
4143         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4144         * modules/rmdir (configure.ac): ... to here.
4145
4146 2011-05-21  Bruno Haible  <bruno@clisp.org>
4147
4148         renameat: Move AC_LIBOBJ invocations to module description.
4149         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4150         here...
4151         * modules/renameat (configure.ac): ... to here.
4152
4153 2011-05-21  Bruno Haible  <bruno@clisp.org>
4154
4155         rename: Respect rules for use of AC_LIBOBJ.
4156         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4157         here...
4158         * modules/rename (configure.ac): ... to here.
4159
4160 2011-05-21  Bruno Haible  <bruno@clisp.org>
4161
4162         remove: Move AC_LIBOBJ invocations to module description.
4163         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4164         here...
4165         * modules/remove (configure.ac): ... to here.
4166
4167 2011-05-21  Bruno Haible  <bruno@clisp.org>
4168
4169         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4170         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4171         macro.
4172         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4173         * modules/relocatable-lib (configure.ac): ... to here.
4174         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4175         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4176
4177 2011-05-21  Bruno Haible  <bruno@clisp.org>
4178
4179         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4180         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4181         here...
4182         * modules/relocatable-prog (configure.ac): ... to here.
4183
4184 2011-05-21  Bruno Haible  <bruno@clisp.org>
4185
4186         regex: Move AC_LIBOBJ invocations to module description.
4187         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4188         invocations from here...
4189         * modules/regex (configure.ac): ... to here.
4190
4191 2011-05-21  Bruno Haible  <bruno@clisp.org>
4192
4193         realloc-*: Move AC_LIBOBJ invocations to module description.
4194         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4195         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4196         AC_LIBOBJ invocations from here...
4197         * modules/realloc-gnu (configure.ac): ... to here.
4198         * modules/realloc-posix (configure.ac): ... and here.
4199
4200 2011-05-21  Bruno Haible  <bruno@clisp.org>
4201
4202         readutmp: Move AC_LIBOBJ invocations to module description.
4203         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4204         * modules/readutmp (configure.ac): ... to here.
4205
4206 2011-05-21  Bruno Haible  <bruno@clisp.org>
4207
4208         readlinkat: Move AC_LIBOBJ invocations to module description.
4209         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4210         here...
4211         * modules/readlinkat (configure.ac): ... to here.
4212
4213 2011-05-21  Bruno Haible  <bruno@clisp.org>
4214
4215         readlink: Move AC_LIBOBJ invocations to module description.
4216         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4217         gl_PREREQ_READLINK invocations from here...
4218         * modules/readlink (configure.ac): ... to here.
4219
4220 2011-05-21  Bruno Haible  <bruno@clisp.org>
4221
4222         readline: Move AC_LIBOBJ invocations to module description.
4223         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4224         gl_PREREQ_READLINE invocations from here...
4225         * modules/readline (configure.ac): ... to here.
4226
4227 2011-05-21  Bruno Haible  <bruno@clisp.org>
4228
4229         read: Move AC_LIBOBJ invocations to module description.
4230         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4231         * modules/read (configure.ac): ... to here.
4232
4233 2011-05-21  Bruno Haible  <bruno@clisp.org>
4234
4235         rawmemchr: Move AC_LIBOBJ invocations to module description.
4236         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4238         from here...
4239         * modules/rawmemchr (configure.ac): ... to here.
4240
4241 2011-05-21  Bruno Haible  <bruno@clisp.org>
4242
4243         random_r: Move AC_LIBOBJ invocations to module description.
4244         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4245         gl_PREREQ_RANDOM_R invocations from here...
4246         * modules/random_r (configure.ac): ... to here.
4247
4248 2011-05-21  Bruno Haible  <bruno@clisp.org>
4249
4250         pwrite: Move AC_LIBOBJ invocations to module description.
4251         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4252         * modules/pwrite (configure.ac): ... to here.
4253
4254 2011-05-21  Bruno Haible  <bruno@clisp.org>
4255
4256         putenv: Move AC_LIBOBJ invocations to module description.
4257         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4258         * modules/putenv (configure.ac): ... to here.
4259
4260 2011-05-21  Bruno Haible  <bruno@clisp.org>
4261
4262         login_tty: Move AC_LIBOBJ invocations to module description.
4263         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4264         * modules/login_tty (configure.ac): ... to here.
4265
4266 2011-05-21  Bruno Haible  <bruno@clisp.org>
4267
4268         openpty: Move AC_LIBOBJ invocations to module description.
4269         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4270         * modules/openpty (configure.ac): ... to here.
4271
4272 2011-05-21  Bruno Haible  <bruno@clisp.org>
4273
4274         forkpty: Move AC_LIBOBJ invocations to module description.
4275         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4276         * modules/forkpty (configure.ac): ... to here.
4277
4278 2011-05-21  Bruno Haible  <bruno@clisp.org>
4279
4280         ptsname: Move AC_LIBOBJ invocations to module description.
4281         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4282         invocations from here...
4283         * modules/ptsname (configure.ac): ... to here.
4284
4285 2011-05-21  Bruno Haible  <bruno@clisp.org>
4286
4287         pread: Move AC_LIBOBJ invocations to module description.
4288         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4289         * modules/pread (configure.ac): ... to here.
4290
4291 2011-05-21  Bruno Haible  <bruno@clisp.org>
4292
4293         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4294         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4295         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4296         * modules/posix_spawn (configure.ac): ... to here.
4297         * modules/posix_spawnp (configure.ac): ... and here.
4298
4299 2011-05-21  Bruno Haible  <bruno@clisp.org>
4300
4301         popen: Move AC_LIBOBJ invocations to module description.
4302         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4303         invocations from here...
4304         * modules/popen (configure.ac): ... to here.
4305
4306 2011-05-21  Bruno Haible  <bruno@clisp.org>
4307
4308         poll: Move AC_LIBOBJ invocations to module description.
4309         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4310         invocations from here...
4311         * modules/poll (configure.ac): ... to here.
4312
4313 2011-05-21  Bruno Haible  <bruno@clisp.org>
4314
4315         pipe-posix: Move AC_LIBOBJ invocations to module description.
4316         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4317         * modules/pipe-posix (configure.ac): ... to here.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         openat: Respect rules for use of AC_LIBOBJ.
4322         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4323         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4324         * modules/openat (configure.ac): ... to here.
4325
4326 2011-05-21  Bruno Haible  <bruno@clisp.org>
4327
4328         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4329         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4330         invocation from here...
4331         * modules/obstack-printf (configure.ac): ... to here.
4332         * modules/obstack-printf-posix (configure.ac): ... and here.
4333
4334 2011-05-21  Bruno Haible  <bruno@clisp.org>
4335
4336         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4337         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4338         from here...
4339         * modules/nl_langinfo (configure.ac): ... to here.
4340
4341 2011-05-21  Bruno Haible  <bruno@clisp.org>
4342
4343         nanosleep: Move AC_LIBOBJ invocations to module description.
4344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4345         gl_PREREQ_NANOSLEEP invocations from here...
4346         * modules/nanosleep (configure.ac): ... to here.
4347
4348 2011-05-21  Bruno Haible  <bruno@clisp.org>
4349
4350         mountlist: Move AC_LIBOBJ invocations to module description.
4351         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4352         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4353         * modules/mountlist (configure.ac): ... to here.
4354
4355 2011-05-21  Bruno Haible  <bruno@clisp.org>
4356
4357         mktime: Respect rules for use of AC_LIBOBJ.
4358         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4359         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4360         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4361         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4362         * modules/mktime (configure.ac): ... to here.
4363         * modules/mktime-internal (configure.ac): ... and here.
4364         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4365
4366 2011-05-21  Bruno Haible  <bruno@clisp.org>
4367
4368         mkstemps: Move AC_LIBOBJ invocations to module description.
4369         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4370         here...
4371         * modules/mkstemps (configure.ac): ... to here.
4372
4373 2011-05-21  Bruno Haible  <bruno@clisp.org>
4374
4375         mkstemp: Move AC_LIBOBJ invocations to module description.
4376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4377         gl_PREREQ_MKSTEMP invocations from here...
4378         * modules/mkstemp (configure.ac): ... to here.
4379
4380 2011-05-21  Bruno Haible  <bruno@clisp.org>
4381
4382         mkostemps: Move AC_LIBOBJ invocations to module description.
4383         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4384         here...
4385         * modules/mkostemps (configure.ac): ... to here.
4386
4387 2011-05-21  Bruno Haible  <bruno@clisp.org>
4388
4389         mkostemp: Move AC_LIBOBJ invocations to module description.
4390         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4391         gl_PREREQ_MKOSTEMP invocations from here...
4392         * modules/mkostemp (configure.ac): ... to here.
4393
4394 2011-05-21  Bruno Haible  <bruno@clisp.org>
4395
4396         mknod: Move AC_LIBOBJ invocations to module description.
4397         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4398         * modules/mknod (configure.ac): ... to here.
4399
4400 2011-05-21  Bruno Haible  <bruno@clisp.org>
4401
4402         mkfifoat: Move AC_LIBOBJ invocations to module description.
4403         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4404         here...
4405         * modules/mkfifoat (configure.ac): ... to here.
4406
4407 2011-05-21  Bruno Haible  <bruno@clisp.org>
4408
4409         mkfifo: Respect rules for use of AC_LIBOBJ.
4410         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4411         here...
4412         * modules/mkfifo (configure.ac): ... to here.
4413
4414 2011-05-21  Bruno Haible  <bruno@clisp.org>
4415
4416         mkdtemp: Move AC_LIBOBJ invocations to module description.
4417         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4418         invocations from here...
4419         * modules/mkdtemp (configure.ac): ... to here.
4420
4421 2011-05-21  Bruno Haible  <bruno@clisp.org>
4422
4423         mkdir: Move AC_LIBOBJ invocations to module description.
4424         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4425         * modules/mkdir (configure.ac): ... to here.
4426
4427 2011-05-21  Bruno Haible  <bruno@clisp.org>
4428
4429         memset: Move AC_LIBOBJ invocations to module description.
4430         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4432         here...
4433         * modules/memset (configure.ac): ... to here.
4434
4435 2011-05-21  Bruno Haible  <bruno@clisp.org>
4436
4437         memrchr: Move AC_LIBOBJ invocations to module description.
4438         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4440         here...
4441         * modules/memrchr (configure.ac): ... to here.
4442
4443 2011-05-21  Bruno Haible  <bruno@clisp.org>
4444
4445         mempcpy: Move AC_LIBOBJ invocations to module description.
4446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4448         here...
4449         * modules/mempcpy (configure.ac): ... to here.
4450
4451 2011-05-21  Bruno Haible  <bruno@clisp.org>
4452
4453         memmove: Move AC_LIBOBJ invocations to module description.
4454         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4456         here...
4457         * modules/memmove (configure.ac): ... to here.
4458
4459 2011-05-21  Bruno Haible  <bruno@clisp.org>
4460
4461         memmem*: Move AC_LIBOBJ invocations to module description.
4462         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4463         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4464         here...
4465         (gl_FUNC_MEMMEM): ... and here...
4466         * modules/memmem-simple (configure.ac): ... to here.
4467         * modules/memmem (configure.ac): ... and here.
4468
4469 2011-05-21  Bruno Haible  <bruno@clisp.org>
4470
4471         memcpy: Move AC_LIBOBJ invocations to module description.
4472         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4474         here...
4475         * modules/memcpy (configure.ac): ... to here.
4476
4477 2011-05-21  Bruno Haible  <bruno@clisp.org>
4478
4479         memcmp: Simplify autoconf macro.
4480         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4481         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4482         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4483
4484 2011-05-21  Bruno Haible  <bruno@clisp.org>
4485
4486         memcmp: Move AC_LIBOBJ invocations to module description.
4487         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4488         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4489         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4490         * modules/memcmp (configure.ac): ... to here.
4491         (Depends-on): Update conditions.
4492
4493 2011-05-21  Bruno Haible  <bruno@clisp.org>
4494
4495         memchr: Respect rules for use of AC_LIBOBJ.
4496         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4497         invocations from here...
4498         * modules/memchr (configure.ac): ... to here.
4499
4500 2011-05-21  Bruno Haible  <bruno@clisp.org>
4501
4502         mbtowc: Move AC_LIBOBJ invocations to module description.
4503         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4504         invocations from here...
4505         * modules/mbtowc (configure.ac): ... to here.
4506
4507 2011-05-21  Bruno Haible  <bruno@clisp.org>
4508
4509         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4510         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4511         gl_PREREQ_MBSRTOWCS invocations from here...
4512         * modules/mbsrtowcs (configure.ac): ... to here.
4513
4514 2011-05-21  Bruno Haible  <bruno@clisp.org>
4515
4516         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4517         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4518         gl_PREREQ_MBSNRTOWCS invocations from here...
4519         * modules/mbsnrtowcs (configure.ac): ... to here.
4520
4521 2011-05-21  Bruno Haible  <bruno@clisp.org>
4522
4523         mbsinit: Move AC_LIBOBJ invocations to module description.
4524         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4525         invocations from here...
4526         * modules/mbsinit (configure.ac): ... to here.
4527
4528 2011-05-21  Bruno Haible  <bruno@clisp.org>
4529
4530         mbrlen: Move AC_LIBOBJ invocations to module description.
4531         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4532         invocations from here...
4533         * modules/mbrlen (configure.ac): ... to here.
4534
4535 2011-05-21  Bruno Haible  <bruno@clisp.org>
4536
4537         mbrtowc: Respect rules for use of AC_LIBOBJ.
4538         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4539         invocations from here...
4540         * modules/mbrtowc (configure.ac): ... to here.
4541
4542 2011-05-21  Bruno Haible  <bruno@clisp.org>
4543
4544         malloc-*: Move AC_LIBOBJ invocations to module description.
4545         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4546         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4547         AC_LIBOBJ invocations from here...
4548         * modules/malloc-gnu (configure.ac): ... to here.
4549         * modules/malloc-posix (configure.ac): ... and here.
4550
4551 2011-05-21  Bruno Haible  <bruno@clisp.org>
4552
4553         lstat, openat: Respect rules for use of AC_LIBOBJ.
4554         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4555         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4556         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4557         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4558         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4559         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4560         here.
4561         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         lseek: Move AC_LIBOBJ invocations to module description.
4566         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4567         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4568         * modules/lseek (configure.ac): ... to here.
4569
4570 2011-05-21  Bruno Haible  <bruno@clisp.org>
4571
4572         linkat: Move AC_LIBOBJ invocations to module description.
4573         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4574         here...
4575         * modules/linkat (configure.ac): ... to here.
4576
4577 2011-05-21  Bruno Haible  <bruno@clisp.org>
4578
4579         link: Respect rules for use of AC_LIBOBJ.
4580         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4581         * modules/link (configure.ac): ... to here.
4582
4583 2011-05-21  Bruno Haible  <bruno@clisp.org>
4584
4585         lchown: Move AC_LIBOBJ invocations to module description.
4586         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4587         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4588         * modules/lchown (configure.ac): ... to here.
4589
4590 2011-05-21  Bruno Haible  <bruno@clisp.org>
4591
4592         iswctype: Move AC_LIBOBJ invocations to module description.
4593         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4594         here...
4595         * modules/iswctype (configure.ac): ... to here.
4596
4597 2011-05-21  Bruno Haible  <bruno@clisp.org>
4598
4599         iswblank: Move AC_LIBOBJ invocations to module description.
4600         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4601         here...
4602         * modules/iswblank (configure.ac): ... to here.
4603
4604 2011-05-21  Bruno Haible  <bruno@clisp.org>
4605
4606         atanl: Move AC_LIBOBJ invocations to module description.
4607         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4608         * modules/atanl (configure.ac): ... to here.
4609
4610 2011-05-21  Bruno Haible  <bruno@clisp.org>
4611
4612         acosl: Move AC_LIBOBJ invocations to module description.
4613         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4614         * modules/acosl (configure.ac): ... to here.
4615
4616 2011-05-21  Bruno Haible  <bruno@clisp.org>
4617
4618         asinl: Respect rules for use of AC_LIBOBJ.
4619         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4620         * modules/asinl (configure.ac): ... to here.
4621
4622 2011-05-21  Bruno Haible  <bruno@clisp.org>
4623
4624         tanl: Move AC_LIBOBJ invocations to module description.
4625         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4626         * modules/tanl (configure.ac): ... to here.
4627
4628 2011-05-21  Bruno Haible  <bruno@clisp.org>
4629
4630         cosl: Move AC_LIBOBJ invocations to module description.
4631         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4632         * modules/cosl (configure.ac): ... to here.
4633
4634 2011-05-21  Bruno Haible  <bruno@clisp.org>
4635
4636         sinl: Move AC_LIBOBJ invocations to module description.
4637         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4638         * modules/sinl (configure.ac): ... to here.
4639
4640 2011-05-21  Bruno Haible  <bruno@clisp.org>
4641
4642         logl: Move AC_LIBOBJ invocations to module description.
4643         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4644         * modules/logl (configure.ac): ... to here.
4645
4646 2011-05-21  Bruno Haible  <bruno@clisp.org>
4647
4648         expl: Move AC_LIBOBJ invocations to module description.
4649         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4650         * modules/expl (configure.ac): ... to here.
4651
4652 2011-05-21  Bruno Haible  <bruno@clisp.org>
4653
4654         roundl: Move AC_LIBOBJ invocations to module description.
4655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4656         * modules/roundl (configure.ac): ... to here.
4657
4658 2011-05-21  Bruno Haible  <bruno@clisp.org>
4659
4660         round: Move AC_LIBOBJ invocations to module description.
4661         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4662         * modules/round (configure.ac): ... to here.
4663
4664 2011-05-21  Bruno Haible  <bruno@clisp.org>
4665
4666         roundf: Move AC_LIBOBJ invocations to module description.
4667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4668         * modules/roundf (configure.ac): ... to here.
4669
4670 2011-05-21  Bruno Haible  <bruno@clisp.org>
4671
4672         truncl: Move AC_LIBOBJ invocations to module description.
4673         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4674         * modules/truncl (configure.ac): ... to here.
4675
4676 2011-05-21  Bruno Haible  <bruno@clisp.org>
4677
4678         trunc: Move AC_LIBOBJ invocations to module description.
4679         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4680         * modules/trunc (configure.ac): ... to here.
4681
4682 2011-05-21  Bruno Haible  <bruno@clisp.org>
4683
4684         truncf: Move AC_LIBOBJ invocations to module description.
4685         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4686         * modules/truncf (configure.ac): ... to here.
4687
4688 2011-05-21  Bruno Haible  <bruno@clisp.org>
4689
4690         ceill: Move AC_LIBOBJ invocations to module description.
4691         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4692         * modules/ceill (configure.ac): ... to here.
4693
4694 2011-05-21  Bruno Haible  <bruno@clisp.org>
4695
4696         ceil: Move AC_LIBOBJ invocations to module description.
4697         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4698         * modules/ceil (configure.ac): ... to here.
4699
4700 2011-05-21  Bruno Haible  <bruno@clisp.org>
4701
4702         ceilf: Move AC_LIBOBJ invocations to module description.
4703         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4704         * modules/ceilf (configure.ac): ... to here.
4705
4706 2011-05-21  Bruno Haible  <bruno@clisp.org>
4707
4708         floorl: Respect rules for use of AC_LIBOBJ.
4709         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4710         * modules/floorl (configure.ac): ... to here.
4711
4712 2011-05-21  Bruno Haible  <bruno@clisp.org>
4713
4714         floor: Respect rules for use of AC_LIBOBJ.
4715         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4716         * modules/floor (configure.ac): ... to here.
4717
4718 2011-05-21  Bruno Haible  <bruno@clisp.org>
4719
4720         floorf: Move AC_LIBOBJ invocations to module description.
4721         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4722         * modules/floorf (configure.ac): ... to here.
4723
4724 2011-05-20  Bruno Haible  <bruno@clisp.org>
4725
4726         sqrtl: Respect rules for use of AC_LIBOBJ.
4727         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4728         * modules/sqrtl (configure.ac): ... to here.
4729
4730 2011-05-20  Bruno Haible  <bruno@clisp.org>
4731
4732         ldexpl: Respect rules for use of AC_LIBOBJ.
4733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4734         * modules/ldexpl (configure.ac): ... to here.
4735
4736 2011-05-20  Bruno Haible  <bruno@clisp.org>
4737
4738         frexpl*: Respect rules for use of AC_LIBOBJ.
4739         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4740         invocation from here...
4741         * modules/frexpl (configure.ac): ... to here.
4742         * modules/frexpl-nolibm (configure.ac): ... and here.
4743
4744 2011-05-20  Bruno Haible  <bruno@clisp.org>
4745
4746         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4747         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4748         invocation from here...
4749         * modules/frexp (configure.ac): ... to here.
4750         * modules/frexp-nolibm (configure.ac): ... and here.
4751
4752 2011-05-20  Bruno Haible  <bruno@clisp.org>
4753
4754         isnan: Respect rules for use of AC_LIBOBJ.
4755         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4756         invocations here.
4757         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4758         REPLACE_ISNAN.
4759         * modules/isnand (configure.ac): Likewise.
4760         * modules/isnanl (configure.ac): Likewise.
4761
4762 2011-05-20  Bruno Haible  <bruno@clisp.org>
4763
4764         isnanl*: Respect rules for use of AC_LIBOBJ.
4765         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4766         invocation from here...
4767         * modules/isnanl (configure.ac): ... to here.
4768         * modules/isnanl-nolibm (configure.ac): ... and here.
4769
4770 2011-05-20  Bruno Haible  <bruno@clisp.org>
4771
4772         isnand*: Move AC_LIBOBJ invocations to module description.
4773         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4774         invocation from here...
4775         * modules/isnand (configure.ac): ... to here.
4776         * modules/isnand-nolibm (configure.ac): ... and here.
4777
4778 2011-05-20  Bruno Haible  <bruno@clisp.org>
4779
4780         isnanf*: Move AC_LIBOBJ invocations to module description.
4781         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4782         invocation from here...
4783         * modules/isnanf (configure.ac): ... to here.
4784         * modules/isnanf-nolibm (configure.ac): ... and here.
4785
4786 2011-05-20  Bruno Haible  <bruno@clisp.org>
4787
4788         isnan*: Separate the AC_LIBOBJ invocations.
4789         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4790         AC_LIBOBJ invocation.
4791         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4792         here.
4793         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4794         AC_LIBOBJ invocation.
4795         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4796         here.
4797         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4798         AC_LIBOBJ invocation.
4799         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4800         here.
4801         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4802
4803 2011-05-08  Bruno Haible  <bruno@clisp.org>
4804
4805         isinf: Move AC_LIBOBJ invocations to module description.
4806         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4807         * modules/isinf (configure.ac): ... to here.
4808
4809 2011-05-08  Bruno Haible  <bruno@clisp.org>
4810
4811         isfinite: Move AC_LIBOBJ invocations to module description.
4812         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4813         * modules/isfinite (configure.ac): ... to here.
4814
4815 2011-05-08  Bruno Haible  <bruno@clisp.org>
4816
4817         isblank: Move AC_LIBOBJ invocations to module description.
4818         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4819         here...
4820         * modules/isblank (configure.ac): ... to here.
4821
4822 2011-05-08  Bruno Haible  <bruno@clisp.org>
4823
4824         isapipe: Move AC_LIBOBJ invocations to module description.
4825         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4826         gl_PREREQ_ISAPIPE invocations from here...
4827         * modules/isapipe (configure.ac): ... to here.
4828         (Depends-on): Update condition.
4829
4830 2011-05-08  Bruno Haible  <bruno@clisp.org>
4831
4832         ioctl: Move AC_LIBOBJ invocations to module description.
4833         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4834         invocations from here...
4835         * modules/ioctl (configure.ac): ... to here.
4836         (Depends-on): Update condition.
4837
4838 2011-05-08  Bruno Haible  <bruno@clisp.org>
4839
4840         imaxdiv: Move AC_LIBOBJ invocations to module description.
4841         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4842         invocations from here...
4843         * modules/imaxdiv (configure.ac): ... to here.
4844
4845 2011-05-08  Bruno Haible  <bruno@clisp.org>
4846
4847         imaxabs: Move AC_LIBOBJ invocations to module description.
4848         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4849         invocations from here...
4850         * modules/imaxabs (configure.ac): ... to here.
4851
4852 2011-05-08  Bruno Haible  <bruno@clisp.org>
4853
4854         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4856         AC_LIBOBJ invocations from here...
4857         * modules/getaddrinfo (configure.ac): ... to here.
4858         (Depends-on): Add conditions.
4859
4860 2011-05-08  Bruno Haible  <bruno@clisp.org>
4861
4862         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4863         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4864         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4865         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4866         (gl_PREREQ_INET_PTON): ... from here.
4867         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4868         gl_PREREQ_INET_PTON here.
4869         (Depends-on): Update condition.
4870
4871 2011-05-08  Bruno Haible  <bruno@clisp.org>
4872
4873         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4874         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4875         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4876         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4877         (gl_PREREQ_INET_NTOP): ... from here.
4878         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4879         gl_PREREQ_INET_NTOP here.
4880         (Depends-on): Update condition.
4881
4882 2011-05-08  Bruno Haible  <bruno@clisp.org>
4883
4884         iconv_open: Move AC_LIBOBJ invocations to module description.
4885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4886         AC_LIBOBJ invocations from here...
4887         * modules/iconv_open (configure.ac): ... to here.
4888
4889 2011-05-08  Bruno Haible  <bruno@clisp.org>
4890
4891         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4892         If module 'iconv_open' is among the main modules and module
4893         'iconv_open-utf' is among the tests dependencies, then
4894         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4895         return the special iconv_t values. Therefore iconv() and iconv_close()
4896         must support these special iconv_t values, already in lib, not only in
4897         tests.
4898         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4899         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4900         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4901         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4902         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4903         (Depends-on): Add the dependencies of iconv_open-utf.
4904         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4905         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4906         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4907
4908 2011-05-08  Bruno Haible  <bruno@clisp.org>
4909
4910         group-member: Move AC_LIBOBJ invocations to module description.
4911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4912         gl_PREREQ_GROUP_MEMBER invocations from here...
4913         * modules/group-member (configure.ac): ... to here.
4914
4915 2011-05-08  Bruno Haible  <bruno@clisp.org>
4916
4917         grantpt: Move AC_LIBOBJ invocations to module description.
4918         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4919         invocations from here...
4920         * modules/grantpt (configure.ac): ... to here.
4921
4922 2011-05-08  Bruno Haible  <bruno@clisp.org>
4923
4924         glob: Move AC_LIBOBJ invocations to module description.
4925         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4926         from here...
4927         * modules/glob (configure.ac): ... to here.
4928
4929 2011-05-08  Bruno Haible  <bruno@clisp.org>
4930
4931         getusershell: Move AC_LIBOBJ invocations to module description.
4932         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4933         Move AC_LIBOBJ invocation from here...
4934         * modules/getusershell (configure.ac): ... to here.
4935         (Depends-on): Update condition.
4936
4937 2011-05-08  Bruno Haible  <bruno@clisp.org>
4938
4939         gettimeofday: Move AC_LIBOBJ invocations to module description.
4940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4941         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4942         gl_PREREQ_GETTIMEOFDAY invocations from here...
4943         * modules/gettimeofday (configure.ac): ... to here.
4944
4945 2011-05-08  Bruno Haible  <bruno@clisp.org>
4946
4947         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4948         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4949         just gl_FUNC_TZSET.
4950         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4951         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4952         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4953         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4954
4955 2011-05-08  Bruno Haible  <bruno@clisp.org>
4956
4957         getsubopt: Move AC_LIBOBJ invocations to module description.
4958         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4959         gl_PREREQ_GETSUBOPT invocations from here...
4960         * modules/getsubopt (configure.ac): ... to here.
4961
4962 2011-05-08  Bruno Haible  <bruno@clisp.org>
4963
4964         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4965         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4966         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4967         * modules/getpass-gnu (configure.ac): ... to here.
4968
4969 2011-05-08  Bruno Haible  <bruno@clisp.org>
4970
4971         getpass: Move AC_LIBOBJ invocations to module description.
4972         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4973         gl_PREREQ_GETPASS invocations from here...
4974         * modules/getpass (configure.ac): ... to here.
4975
4976 2011-05-08  Bruno Haible  <bruno@clisp.org>
4977
4978         getpagesize: Move AC_LIBOBJ invocations to module description.
4979         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4980         from here...
4981         * modules/getpagesize (configure.ac): ... to here.
4982
4983 2011-05-08  Bruno Haible  <bruno@clisp.org>
4984
4985         getopt: Move AC_LIBOBJ invocations to module description.
4986         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4987         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4988         invocations from here...
4989         * modules/getopt-gnu (configure.ac): ... to here.
4990         * modules/getopt-posix (configure.ac): ... and here.
4991         (Depends-on): Update condition.
4992
4993 2011-05-08  Bruno Haible  <bruno@clisp.org>
4994
4995         getopt, argp: Respect rules for use of AC_LIBOBJ.
4996         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4997         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4998         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4999         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5000
5001 2011-05-08  Bruno Haible  <bruno@clisp.org>
5002
5003         getlogin_r: Move AC_LIBOBJ invocations to module description.
5004         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5005         gl_PREREQ_GETLOGIN_R invocations from here...
5006         * modules/getlogin_r (configure.ac): ... to here.
5007
5008 2011-05-08  Bruno Haible  <bruno@clisp.org>
5009
5010         getlogin: Move AC_LIBOBJ invocations to module description.
5011         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5012         here...
5013         * modules/getlogin (configure.ac): ... to here.
5014
5015 2011-05-08  Bruno Haible  <bruno@clisp.org>
5016
5017         getloadavg: Move AC_LIBOBJ invocations to module description.
5018         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5019         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5020         * modules/getloadavg (configure.ac): ... to here.
5021
5022 2011-05-08  Bruno Haible  <bruno@clisp.org>
5023
5024         gethrxtime: Move AC_LIBOBJ invocations to module description.
5025         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5026         LIB_GETHRXTIME from here...
5027         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5028         invocations from here...
5029         * modules/gethrxtime (configure.ac): ... to here.
5030
5031 2011-05-08  Bruno Haible  <bruno@clisp.org>
5032
5033         gethostname: Move AC_LIBOBJ invocations to module description.
5034         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5035         gl_PREREQ_GETHOSTNAME invocations from here...
5036         * modules/gethostname (configure.ac): ... to here.
5037
5038 2011-05-08  Bruno Haible  <bruno@clisp.org>
5039
5040         getgroups: Move AC_LIBOBJ invocations to module description.
5041         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5042         here...
5043         * modules/getgroups (configure.ac): ... to here.
5044
5045 2011-05-08  Bruno Haible  <bruno@clisp.org>
5046
5047         getdtablesize: Move AC_LIBOBJ invocations to module description.
5048         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5049         invocation from here...
5050         * modules/getdtablesize (configure.ac): ... to here.
5051
5052 2011-05-08  Bruno Haible  <bruno@clisp.org>
5053
5054         getdomainname: Move AC_LIBOBJ invocations to module description.
5055         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5056         gl_PREREQ_GETDOMAINNAME invocations from here...
5057         * modules/getdomainname (configure.ac): ... to here.
5058
5059 2011-05-08  Bruno Haible  <bruno@clisp.org>
5060
5061         getline: Move AC_LIBOBJ invocations to module description.
5062         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5063         invocations from here...
5064         * modules/getline (configure.ac): ... to here.
5065
5066 2011-05-08  Bruno Haible  <bruno@clisp.org>
5067
5068         getline: Simplify.
5069         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5070         It's already handled through the module dependency.
5071
5072 2011-05-08  Bruno Haible  <bruno@clisp.org>
5073
5074         getdelim: Move AC_LIBOBJ invocations to module description.
5075         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5076         and gl_PREREQ_GETDELIM invocations from here...
5077         * modules/getdelim (configure.ac): ... to here.
5078         (Depends-on): Fix condition.
5079
5080 2011-05-08  Bruno Haible  <bruno@clisp.org>
5081
5082         getcwd: Move AC_LIBOBJ invocations to module description.
5083         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5084         invocations from here...
5085         * modules/getcwd (configure.ac): ... to here.
5086
5087 2011-05-08  Bruno Haible  <bruno@clisp.org>
5088
5089         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5090         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5091         here...
5092         * modules/getcwd-lgpl (configure.ac): ... to here.
5093
5094 2011-05-07  Bruno Haible  <bruno@clisp.org>
5095
5096         crypto/gc: Move AC_LIBOBJ invocations to module description.
5097         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5098         * modules/crypto/gc (configure.ac): ... to here.
5099
5100 2011-05-07  Bruno Haible  <bruno@clisp.org>
5101
5102         fwriting: Move AC_LIBOBJ invocations to module description.
5103         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5104         here...
5105         * modules/fwriting (configure.ac): ... to here.
5106
5107 2011-05-07  Bruno Haible  <bruno@clisp.org>
5108
5109         fwritable: Move AC_LIBOBJ invocations to module description.
5110         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5111         here...
5112         * modules/fwritable (configure.ac): ... to here.
5113
5114 2011-05-07  Bruno Haible  <bruno@clisp.org>
5115
5116         futimens: Move AC_LIBOBJ invocations to module description.
5117         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5118         here...
5119         * modules/futimens (configure.ac): ... to here.
5120
5121 2011-05-07  Bruno Haible  <bruno@clisp.org>
5122
5123         ftruncate: Move AC_LIBOBJ invocations to module description.
5124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5125         gl_PREREQ_FTRUNCATE invocations from here...
5126         * modules/ftruncate (configure.ac): ... to here.
5127
5128 2011-05-07  Bruno Haible  <bruno@clisp.org>
5129
5130         fsync: Move AC_LIBOBJ invocations to module description.
5131         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5132         invocations from here...
5133         * modules/fsync (configure.ac): ... to here.
5134
5135 2011-05-07  Bruno Haible  <bruno@clisp.org>
5136
5137         fsusage: Move AC_LIBOBJ invocations to module description.
5138         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5139         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5140         * modules/fsusage (configure.ac): ... to here.
5141
5142 2011-05-07  Bruno Haible  <bruno@clisp.org>
5143
5144         freopen: Move AC_LIBOBJ invocations to module description.
5145         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5146         invocations from here...
5147         * modules/freopen (configure.ac): ... to here.
5148
5149 2011-05-07  Bruno Haible  <bruno@clisp.org>
5150
5151         free: Move AC_LIBOBJ invocations to module description.
5152         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5153         invocations from here...
5154         * modules/free (configure.ac): ... to here.
5155
5156 2011-05-07  Bruno Haible  <bruno@clisp.org>
5157
5158         freadable: Move AC_LIBOBJ invocations to module description.
5159         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5160         here...
5161         * modules/freadable (configure.ac): ... to here.
5162
5163 2011-05-07  Bruno Haible  <bruno@clisp.org>
5164
5165         fpurge: Move AC_LIBOBJ invocations to module description.
5166         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5167         invocations from here...
5168         * modules/fpurge (configure.ac): ... to here.
5169
5170 2011-05-07  Bruno Haible  <bruno@clisp.org>
5171
5172         fpending: Move AC_LIBOBJ invocations to module description.
5173         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5174         gl_FUNC_FPENDING.
5175         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5176         invocations from here...
5177         * modules/fpending (configure.ac): ... to here.
5178
5179 2011-05-07  Bruno Haible  <bruno@clisp.org>
5180
5181         fopen: Move AC_LIBOBJ invocations to module description.
5182         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5183         invocations from here...
5184         * modules/fopen (configure.ac): ... to here.
5185
5186 2011-05-07  Bruno Haible  <bruno@clisp.org>
5187
5188         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5189         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5190         gl_FUNC_FNMATCH_POSIX.
5191         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5192         invocations from here...
5193         * modules/fnmatch (configure.ac): ... to here.
5194         * modules/fnmatch-gnu (configure.ac): ... and here.
5195
5196 2011-05-07  Bruno Haible  <bruno@clisp.org>
5197
5198         flock: Move AC_LIBOBJ invocations to module description.
5199         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5200         invocations from here...
5201         * modules/flock (configure.ac): ... to here.
5202
5203 2011-05-07  Bruno Haible  <bruno@clisp.org>
5204
5205         fileblocks: Move AC_LIBOBJ invocations to module description.
5206         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5207         gl_PREREQ_FILEBLOCKS invocations from here...
5208         * modules/fileblocks (configure.ac): ... to here.
5209
5210 2011-05-06  Bruno Haible  <bruno@clisp.org>
5211
5212         fflush: Move AC_LIBOBJ invocations to module description.
5213         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5214         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5215         invocations from here...
5216         * modules/fflush (configure.ac): ... to here.
5217
5218 2011-05-06  Bruno Haible  <bruno@clisp.org>
5219
5220         fdopendir: Move AC_LIBOBJ invocations to module description.
5221         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5222         here...
5223         * modules/fdopendir (configure.ac): ... to here.
5224         (Depends-on): Improve conditions.
5225
5226 2011-05-06  Bruno Haible  <bruno@clisp.org>
5227
5228         _Exit: Move AC_LIBOBJ invocations to module description.
5229         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5230         invocations from here...
5231         * modules/_Exit (configure.ac): ... to here.
5232
5233 2011-05-21  Bruno Haible  <bruno@clisp.org>
5234
5235         euidaccess: Respect rules for use of AC_LIBOBJ.
5236         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5238         from here...
5239         * modules/euidaccess (configure.ac): ... to here.
5240
5241 2011-05-06  Bruno Haible  <bruno@clisp.org>
5242
5243         error: Move AC_LIBOBJ invocations to module description.
5244         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5245         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5246         invocations from here...
5247         * modules/error (configure.ac): ... to here.
5248
5249 2011-05-06  Bruno Haible  <bruno@clisp.org>
5250
5251         duplocale: Move AC_LIBOBJ invocations to module description.
5252         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5253         gl_PREREQ_DUPLOCALE invocations from here...
5254         * modules/duplocale (configure.ac): ... to here.
5255
5256 2011-05-05  Bruno Haible  <bruno@clisp.org>
5257
5258         dirfd: Move AC_LIBOBJ invocations to module description.
5259         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5260         gl_FUNC_DIRFD.
5261         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5262         here...
5263         * modules/dirfd (configure.ac): ... to here.
5264         (Depends-on): Fix condition.
5265
5266 2011-05-05  Bruno Haible  <bruno@clisp.org>
5267
5268         chown: Respect rules for use of AC_LIBOBJ.
5269         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5270         * modules/chown (configure.ac): ... to here.
5271
5272 2011-05-05  Bruno Haible  <bruno@clisp.org>
5273
5274         chdir-long: Move AC_LIBOBJ invocations to module description.
5275         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5276         gl_PREREQ_CHDIR_LONG invocations from here...
5277         * modules/chdir-long (configure.ac): ... to here.
5278
5279 2011-05-05  Bruno Haible  <bruno@clisp.org>
5280
5281         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5282         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5283         from here...
5284         * modules/canonicalize-lgpl (configure.ac): ... to here.
5285
5286 2011-05-05  Bruno Haible  <bruno@clisp.org>
5287
5288         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5289         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5290         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5291         REPLACE_CALLOC.
5292         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5293         * modules/calloc-gnu (configure.ac): Likewise.
5294
5295 2011-05-05  Bruno Haible  <bruno@clisp.org>
5296
5297         btowc: Move AC_LIBOBJ invocations to module description.
5298         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5299         invocations from here...
5300         * modules/btowc (configure.ac): ... to here.
5301
5302 2011-05-21  Bruno Haible  <bruno@clisp.org>
5303
5304         atexit: Move AC_LIBOBJ invocations to module description.
5305         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5306         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5307         here...
5308         * modules/atexit (configure.ac): ... to here.
5309
5310 2011-05-05  Bruno Haible  <bruno@clisp.org>
5311
5312         atoll: Move AC_LIBOBJ invocations to module description.
5313         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5314         invocations from here...
5315         * modules/atoll (configure.ac): ... to here.
5316
5317 2011-05-05  Bruno Haible  <bruno@clisp.org>
5318
5319         argz: Move AC_LIBOBJ invocations to module description.
5320         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5321         * modules/argz (configure.ac): ... to here.
5322
5323 2011-05-05  Bruno Haible  <bruno@clisp.org>
5324
5325         alphasort: Move AC_LIBOBJ invocations to module description.
5326         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5327         gl_PREREQ_ALPHASORT invocations from here...
5328         * modules/alphasort (configure.ac): ... to here.
5329
5330 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5331
5332         verify: new macro verify_expr; verify_true deprecated
5333         * NEWS: Mention this.
5334         * doc/verify.texi (Compile-time Assertions): Document this.
5335         * lib/verify.h (verify_true): Deprecate.
5336         (verify_expr): New macro.
5337         * tests/test-verify.c (function): Test verify_expr.
5338
5339 2011-06-14  Jim Meyering  <meyering@redhat.com>
5340
5341         init.sh: give more portable redirection-related advice in a comment
5342         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5343         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5344         for lots of discussion.  Stefano Lattarini suggested the solution
5345         of putting "9>&2" after the command.  Reported by Bruno Haible.
5346
5347 2011-06-13  Bruno Haible  <bruno@clisp.org>
5348
5349         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5350         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5351         'none'.
5352
5353 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5354
5355         ftoastr: use strtof only if HAVE_STRTOF
5356         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5358         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5359         * modules/ftoastr (configure.ac): Check for strtof.
5360
5361 2011-06-13  Bruno Haible  <bruno@clisp.org>
5362
5363         gnulib-tool: Addendum to 2011-06-08 commit.
5364         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5365         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5366
5367 2011-06-13  Bruno Haible  <bruno@clisp.org>
5368
5369         fseeko: Provide a non-inline replacement of fseek().
5370         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5371         * modules/fseeko (Depends-on): Add fseek.
5372         * modules/fseek (License): Change to LGPLv2+.
5373
5374 2011-06-13  Bruno Haible  <bruno@clisp.org>
5375
5376         ftello: Provide a non-inline replacement of ftell().
5377         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5378         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5379         not have ftello() (such as on mingw).
5380         * modules/ftello (Depends-on): Add ftell.
5381         * modules/ftell (License): Change to LGPLv2+.
5382
5383 2011-05-07  Bruno Haible  <bruno@clisp.org>
5384
5385         ftell: Move AC_LIBOBJ invocations to module description.
5386         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5387         * modules/ftell (configure.ac): ... to here.
5388
5389 2011-05-07  Bruno Haible  <bruno@clisp.org>
5390
5391         ftello: Respect rules for use of AC_LIBOBJ.
5392         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5393         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5394         here...
5395         * modules/ftello (configure.ac): ... to here.
5396
5397 2011-05-07  Bruno Haible  <bruno@clisp.org>
5398
5399         fseeko: Simplify.
5400         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5401         (gl_FUNC_FSEEKO): Inline it here.
5402
5403 2011-05-07  Bruno Haible  <bruno@clisp.org>
5404
5405         fseek: Move AC_LIBOBJ invocations to module description.
5406         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5407         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5408         * modules/fseek (configure.ac): ... to here.
5409
5410 2011-05-07  Bruno Haible  <bruno@clisp.org>
5411
5412         fseek: Respect rules for use of AC_LIBOBJ.
5413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5414         here...
5415         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5416
5417 2011-05-07  Bruno Haible  <bruno@clisp.org>
5418
5419         fseeko: Respect rules for use of AC_LIBOBJ.
5420         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5421         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5422         here...
5423         * modules/fseeko (configure.ac): ... to here.
5424
5425 2011-06-13  Bruno Haible  <bruno@clisp.org>
5426
5427         gnulib-tool: Allow comments in the 'Depends-on' section.
5428         * doc/gnulib.texi (Module description): Mention comment syntax in the
5429         Depends-on section.
5430         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5431
5432 2011-06-13  Bruno Haible  <bruno@clisp.org>
5433
5434         file-set.h: guard __attibute__ use, now that it's not always defined
5435         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5436         versions that support it.  This fixes a coreutils build failure with
5437         the vendor cc on HP-UX 11.31.
5438
5439 2011-06-12  Bruno Haible  <bruno@clisp.org>
5440
5441         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5442         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5443         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5444         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5445         (acl, aclsort): New declarations.
5446         (aclv_nontrivial): New declaration.
5447         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5448         (file_has_acl): Read also the second kind of HP-UX ACLs.
5449         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5450         kind of HP-UX ACLs if the first kind fails.
5451         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5452         second kind of HP-UX ACLs.
5453         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5454         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5455         agree.
5456         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5457         hpuxjfs.
5458         Handle hpuxjfs.
5459         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5460         hpuxjfs.
5461         Handle hpuxjfs.
5462         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5463         (func_test_same_acls): Use both lsacl and getacl.
5464         Handle hpuxjfs.
5465         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5466         (func_test_same_acls): Use both lsacl and getacl.
5467         Handle hpuxjfs.
5468
5469 2011-06-12  Bruno Haible  <bruno@clisp.org>
5470
5471         acl: Complete the 2010-08-10 fix.
5472         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5473         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5474         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5475         explicitly.
5476         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5477         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5478
5479 2011-06-12  Bruno Haible  <bruno@clisp.org>
5480
5481         spawn-pipe tests: Comments.
5482         * tests/test-spawn-pipe-child.c (main): Update comment.
5483         Reported by James Youngman <jay@gnu.org>.
5484
5485 2011-06-11  James Youngman  <jay@gnu.org>
5486
5487         New module 'stat-size'.
5488         * modules/stat-size: New module.  Provides macros for accessing
5489         file size information in instances of struct stat.  Depends on the
5490         fileblocks module because it calls st_blocks.
5491         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5492         * doc/gnulib.texi: Include stat-size.texi.
5493         * doc/stat-size.texi: Documentation for this module.
5494         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5495         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5496         AC_STRUCT_ST_BLOCKS.
5497
5498 2011-06-09  Bruno Haible  <bruno@clisp.org>
5499
5500         thread: Support pthreads-win32.
5501         * lib/glthread/thread.h (gl_thread_self): Define differently on
5502         pthreads-win32.
5503         (gl_null_thread): New declaration.
5504         (gl_thread_self_pointer): New macro.
5505         * lib/glthread/thread.c (gl_null_thread): New constant.
5506         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5507         gl_thread_self.
5508         * tests/test-tls.c: Likewise.
5509         Suggested by Paul Eggert. Reported by Eric Blake.
5510
5511 2011-06-09  Bruno Haible  <bruno@clisp.org>
5512
5513         thread: Fix confusion between NULL and 0.
5514         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5515         Reported by Paul Eggert.
5516
5517 2011-06-09  Bruno Haible  <bruno@clisp.org>
5518
5519         spawn-pipe tests: Avoid test failure on HP-UX 11.
5520         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5521         is closed.
5522
5523 2011-06-09  Bruno Haible  <bruno@clisp.org>
5524
5525         acl tests: Fix compilation error on HP-UX 11.
5526         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5527
5528 2011-06-09  Bruno Haible  <bruno@clisp.org>
5529
5530         rmdir: Avoid test failure on HP-UX 10.20.
5531         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5532         EEXIST.
5533
5534 2011-06-08  Eric Blake  <eblake@redhat.com>
5535
5536         perror: fix test on mingw
5537         * modules/perror-tests (Depends-on): Add dup2.
5538
5539         strerror_r-posix: fix on MacOS
5540         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5541         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5542         logic bug.
5543         * lib/strerror_r.c (strerror_r): Fix the bug.
5544         * lib/strerror.c (strerror): Likewise.
5545         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5546         problem.
5547         * doc/posix-functions/strerror.texi (strerror): Likewise.
5548         * doc/posix-functions/perror.texi (perror): Likewise.
5549         * tests/test-strerror.c (main): Enhance test.
5550         * tests/test-strerror_r.c (main): Likewise.
5551
5552 2011-06-08  Bruno Haible  <bruno@clisp.org>
5553
5554         gnulib-tool: Better isolation between different gnulib-tool invocations.
5555         * gnulib-tool: New option --witness-c-macro.
5556         (witness_c_macro): New variable.
5557         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5558         AM_CPPFLAGS define it as a C macro.
5559         (func_emit_tests_Makefile_am): Likewise.
5560         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5561         read it from there.
5562         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5563         m4_define, not AC_DEFUN.
5564         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5565         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5566         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5567         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5568         s|...|...|, to substitute the values of the GNULIB_* module indicator
5569         variables.
5570         * modules/dirent (Makefile.am): Likewise.
5571         * modules/fcntl-h (Makefile.am): Likewise.
5572         * modules/iconv-h (Makefile.am): Likewise.
5573         * modules/langinfo (Makefile.am): Likewise.
5574         * modules/locale (Makefile.am): Likewise.
5575         * modules/math (Makefile.am): Likewise.
5576         * modules/netdb (Makefile.am): Likewise.
5577         * modules/poll-h (Makefile.am): Likewise.
5578         * modules/pty (Makefile.am): Likewise.
5579         * modules/search (Makefile.am): Likewise.
5580         * modules/signal (Makefile.am): Likewise.
5581         * modules/spawn (Makefile.am): Likewise.
5582         * modules/stdio (Makefile.am): Likewise.
5583         * modules/stdlib (Makefile.am): Likewise.
5584         * modules/string (Makefile.am): Likewise.
5585         * modules/sys_ioctl (Makefile.am): Likewise.
5586         * modules/sys_select (Makefile.am): Likewise.
5587         * modules/sys_socket (Makefile.am): Likewise.
5588         * modules/sys_stat (Makefile.am): Likewise.
5589         * modules/sys_times (Makefile.am): Likewise.
5590         * modules/sys_utsname (Makefile.am): Likewise.
5591         * modules/sys_wait (Makefile.am): Likewise.
5592         * modules/termios (Makefile.am): Likewise.
5593         * modules/time (Makefile.am): Likewise.
5594         * modules/unistd (Makefile.am): Likewise.
5595         * modules/wchar (Makefile.am): Likewise.
5596
5597 2011-06-08  Eric Blake  <eblake@redhat.com>
5598
5599         strerror: simplify replacement
5600         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5601         * modules/strerror (configure.ac): No prereqs needed here...
5602         * modules/strerror-override (configure.ac): ...but this needs it.
5603         (Files): Add file for needed prereq macro.
5604
5605 2011-06-08  Bruno Haible  <bruno@clisp.org>
5606
5607         strerror_r-posix: Tweaks.
5608         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5609         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5610         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5611         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5612         (gl_FUNC_STRERROR_R): ... to here.
5613         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5614
5615 2011-06-07  Eric Blake  <eblake@redhat.com>
5616
5617         perror: document fixed bugs
5618         * doc/posix-functions/perror.texi (perror): Document recent
5619         patches.
5620
5621 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5622
5623         stat-time: get_stat_birthtime failure is better-defined
5624         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5625         return a timestamp whose tv_sec and tv_nsec values are both -1.
5626         Previously, the spec said only that the tv_nsec value was negative.
5627         This upward-compatible change simplifies GNU tar a bit.
5628
5629 2011-06-07  Eric Blake  <eblake@redhat.com>
5630
5631         strerror_r-posix: work around cygwin 1.7.9
5632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5633         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5634         bug without replacing strerror_r.
5635         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5636         strerror_r is buggy, but without requiring strerror_r compilation.
5637         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5638
5639         test-perror: relax test to ignore cygwin bug
5640         * tests/test-perror2.c (main): Relax test on requiring detection
5641         of stream errors, and use unbuffered stream.
5642         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5643         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5644         * doc/posix-functions/fputc.texi (fputc): Likewise.
5645         * doc/posix-functions/fputs.texi (fputs): Likewise.
5646         * doc/posix-functions/fputws.texi (fputws): Likewise.
5647         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5648         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5649         * doc/posix-functions/getopt.texi (getopt): Likewise.
5650         * doc/posix-functions/perror.texi (perror): Likewise.
5651         * doc/posix-functions/printf.texi (printf): Likewise.
5652         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5653         * doc/posix-functions/psignal.texi (psignal): Likewise.
5654         * doc/posix-functions/putc.texi (putc): Likewise.
5655         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5656         Likewise.
5657         * doc/posix-functions/putchar.texi (putchar): Likewise.
5658         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5659         Likewise.
5660         * doc/posix-functions/puts.texi (puts): Likewise.
5661         * doc/posix-functions/putwc.texi (putwc): Likewise.
5662         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5663         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5664         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5665         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5666         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5667         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5668         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5669         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5670
5671 2011-05-22  Bruno Haible  <bruno@clisp.org>
5672
5673         strerror: Move AC_LIBOBJ invocations to module description.
5674         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5675         gl_PREREQ_STRERROR invocations from here...
5676         * modules/strerror (configure.ac): ... to here.
5677
5678 2011-05-21  Bruno Haible  <bruno@clisp.org>
5679
5680         perror: Use common idiom.
5681         * modules/perror (configure.ac): Reorder statements.
5682
5683 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5684
5685         tests: fix usage message in 'mktempd_'
5686         * tests/init.sh (mktempd_): In the usage message, use literal
5687         'mktempd_', not '$ME' (which is even undefined), as the name of
5688         the subroutine.
5689
5690 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5691
5692         tests init: new function 'fatal_', for hard errors
5693         Before this patch, the only way offered by tests/init.sh to
5694         properly signal a hard error was the `framework_failure_'
5695         function.  But the error message issued by that function,
5696         as its name would suggest, refers to a set-up failure in the
5697         testsuite, while hard errors can obviously also be due to
5698         other reasons.  The best way to fix this inconsistency is to
5699         introduce a new function with a more general error message.
5700         * tests/init.sh (fatal_): New function.
5701
5702 2011-06-06  Eric Blake  <eblake@redhat.com>
5703
5704         canonicalize-lgpl: use common idiom
5705         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5706         over newer POSIX -Rf.
5707         Reported by Bruno Haible.
5708
5709         canonicalize-lgpl: work around AIX realpath bug
5710         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5711         * doc/posix-functions/realpath.texi (realpath): Document it.
5712         Reported by Bruno Haible.
5713
5714         strerror: work around FreeBSD bug
5715         * lib/strerror.c (strerror): Special case 0.
5716         Reported by Bruno Haible.
5717
5718         strerror-override: avoid bloating errno module
5719         * modules/errno (Files, configure.ac): Move replacement strings...
5720         * modules/strerror-override: ...to new module.
5721         * modules/strerror (Depends-on): Add strerror-override.
5722         * modules/strerror_r-posix (Depends-on): Likewise.
5723         * MODULES.html.sh: Document new module.
5724         Reported by Bruno Haible.
5725
5726 2011-06-06  Bruno Haible  <bruno@clisp.org>
5727
5728         spawn-pipe tests: Rename program.
5729         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5730         * tests/test-spawn-pipe-child.c: Update comment.
5731         * tests/test-spawn-pipe.sh: Update.
5732         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5733
5734         spawn-pipe tests: Link the child program only against libc.
5735         * tests/test-spawn-pipe-child.c: New file, extracted from
5736         tests/test-spawn-pipe.c.
5737         (main): Expect only one argument.
5738         (is_open): New function, copied from tests/test-pipe.c.
5739         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5740         (child_main): Remove function.
5741         (test_pipe): Pass only one argument to the child program.
5742         (main): Remove child process code. Expect the child program's name as
5743         first argument.
5744         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5745         argument.
5746         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5747         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5748         test-spawn-pipe-child against no libraries.
5749
5750 2011-06-06  Bruno Haible  <bruno@clisp.org>
5751
5752         careadlinkat: Avoid mismatch between ssize_t and int.
5753         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5754         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5755
5756 2011-06-06  Jim Meyering  <meyering@redhat.com>
5757
5758         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5759         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5760         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5761
5762 2011-06-05  Bruno Haible  <bruno@clisp.org>
5763
5764         ansi-c++-opt: Interoperability with libtool.
5765         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5766         set the variable to "no", not to ":".
5767         * NEWS: Mention the change.
5768
5769 2011-06-05  Bruno Haible  <bruno@clisp.org>
5770
5771         acl: Fix test failure on AIX 7.
5772         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5773         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5774
5775 2011-06-05  Bruno Haible  <bruno@clisp.org>
5776
5777         pipe-filter-ii: Fix test failure on AIX and IRIX.
5778         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5779         with EAGAIN, retry with a smaller buffer size.
5780
5781 2011-06-05  Bruno Haible  <bruno@clisp.org>
5782
5783         localename: Fix link dependencies.
5784         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5785         * modules/localename-tests (Makefile.am): Link test-localename with
5786         $(LIBTHREAD).
5787
5788 2011-06-05  Bruno Haible  <bruno@clisp.org>
5789
5790         error: Avoid gcc warning.
5791         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5792
5793 2011-06-05  Bruno Haible  <bruno@clisp.org>
5794
5795         unsetenv: Avoid gcc warning.
5796         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5797
5798 2011-06-05  Bruno Haible  <bruno@clisp.org>
5799
5800         setenv: Avoid gcc warning.
5801         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5802
5803 2011-06-05  Bruno Haible  <bruno@clisp.org>
5804
5805         sys_select: Ensure memset is declared also on AIX 7.
5806         * lib/sys_select.in.h: Include <string.h> also on AIX.
5807         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5808         self-contained also on AIX 7.1.
5809
5810 2011-06-04  Jim Meyering  <meyering@redhat.com>
5811
5812         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5813         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5814         function name, "error".
5815         (_gl_translatable_diag_func_re): New configurable variable.
5816
5817 2011-06-04  Bruno Haible  <bruno@clisp.org>
5818
5819         getopt: Avoid gcc warning.
5820         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5821
5822 2011-06-04  Bruno Haible  <bruno@clisp.org>
5823
5824         strerror_r: Fix comments.
5825         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5826         commit.
5827
5828 2011-06-04  Bruno Haible  <bruno@clisp.org>
5829
5830         perror: Fix compilation error.
5831         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5832         Undefine fprintf, not sprintf.
5833         * modules/perror (Depends-on): Remove intprops, verify.
5834
5835 2011-06-04  Bruno Haible  <bruno@clisp.org>
5836
5837         setlocale: Enable replacement on Cygwin 1.5.
5838         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5839         Cygwin 1.5.x.
5840         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5841         LC_CTYPE category also exists on Cygwin 1.5.x.
5842
5843 2011-06-04  Bruno Haible  <bruno@clisp.org>
5844
5845         strerror-override: Don't disable symbol renamings.
5846         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5847         * lib/strerror-override.c: Include config.h.
5848         (strerror_override): Don't undefine.
5849
5850 2011-06-03  Bruno Haible  <bruno@clisp.org>
5851
5852         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5853         * lib/localename.h: Update copyright header.
5854         * lib/localename.c: Likewise.
5855         * lib/relocatable.h: Likewise.
5856         * lib/relocatable.c: Likewise.
5857
5858 2011-06-02  Bruno Haible  <bruno@clisp.org>
5859
5860         doc: Fix a module name.
5861         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5862
5863 2011-06-02  Bruno Haible  <bruno@clisp.org>
5864
5865         pipe2: Remove dependency on 'nonblocking' module.
5866         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5867         O_NONBLOCK is defined by gnulib.
5868         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5869         is zero.
5870         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5871         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5872         defined by gnulib.
5873         (get_nonblocking_flag): New function.
5874         (main): Test O_NONBLOCK flag only if it is nonzero.
5875         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5876
5877 2011-06-03  Jim Meyering  <meyering@redhat.com>
5878
5879         maint: three new prohibit-header-without-use rules
5880         Prohibit use of cloexec.h, posixver.h, same.h without use.
5881         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5882         (sc_prohibit_posixver_without_use): Likewise.
5883         (sc_prohibit_same_without_use): Likewise.
5884
5885 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5886
5887         allocator: 'die' routine is now given requested size
5888         * lib/allocator.h (struct allocator.die): New size arg.
5889         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5890         If the actual problem is an ssize_t limitation, not a size_t or
5891         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5892
5893 2011-06-01  Eric Blake  <eblake@redhat.com>
5894
5895         strerror: drop strerror_r dependency
5896         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5897         * lib/strerror-override.c (strerror_override): ...to new file.
5898         * lib/strerror-override.h: Add prototype.
5899         * lib/strerror-impl.h: Delete.
5900         * lib/strerror.c (strerror): New implementation.
5901         * modules/errno (Files): Add new files.
5902         (configure.ac): Compile new file as appropriate.
5903         * modules/strerror (Files): Drop unused file.
5904         (Depends-on): Drop strerror_r-posix.
5905         * MODULES.html.sh: Document strerror_r-posix.
5906         Requested by Sam Steingold.
5907
5908         perror: call strerror_r directly
5909         * modules/perror (Files): Drop strerror-impl.h.
5910         * lib/perror.c (perror): Use our own stack buffer, rather than
5911         calling a wrapper that uses static storage.
5912         * doc/posix-functions/perror.texi (perror): Document a limitation
5913         of our replacement.
5914
5915         strerror_r: fix includes for FreeBSD
5916         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5917         since we use abort on some platforms.
5918         Reported by Matthias Bolte.
5919
5920 2011-05-31  Bruno Haible  <bruno@clisp.org>
5921
5922         Fix link errors in tests: openat-die uses gettext-h.
5923         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5924         against $(LIBINTL).
5925         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5926         against $(LIBINTL).
5927         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5928         $(LIBINTL).
5929         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5930         against $(LIBINTL).
5931         * modules/linkat-tests (Makefile.am): Link test-linkat against
5932         $(LIBINTL).
5933         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5934         $(LIBINTL).
5935         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5936         against $(LIBINTL).
5937         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5938         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5939         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5940         $(LIBINTL).
5941         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5942         $(LIBINTL).
5943         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5944         $(LIBINTL).
5945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5946
5947 2011-05-31  Bruno Haible  <bruno@clisp.org>
5948
5949         Fix link errors in tests: wait-process uses gettext-h.
5950         * modules/nonblocking-pipe-tests (Makefile.am): Set
5951         test_nonblocking_pipe_main_LDADD.
5952         * modules/nonblocking-socket-tests (Makefile.am): Link
5953         test-nonblocking-socket-main against $(LIBINTL).
5954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5955
5956 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         assert-h: work around 'verify' incompatibility
5959         * lib/verify.h: Use @...@ directives, not ifdef.
5960         * modules/assert-h (assert.h): Implement the directives.
5961         (assert.h): Substitute the symbol-prefix more consistently.
5962
5963 2011-05-29  Jim Meyering  <meyering@redhat.com>
5964
5965         trim: remove three superfluous assignments
5966         * lib/trim.c (trim2): Remove three superfluous assignments
5967         and correct brace positioning.
5968
5969 2011-05-29  Bruno Haible  <bruno@clisp.org>
5970
5971         wctype-h: Avoid namespace pollution on Solaris 2.6.
5972         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5973         identifiers.
5974         * doc/posix-headers/wctype.texi: Mention the problem.
5975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5976
5977 2011-05-28  Jim Meyering  <meyering@redhat.com>
5978
5979         parse-datetime.y: accommodate -Wstrict-overflow
5980         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5981         placate -Wstrict-overflow.
5982
5983         trim: avoid a warning from -O2 -Wstrict-overflow
5984         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5985
5986 2011-05-29  Bruno Haible  <bruno@clisp.org>
5987
5988         gnulib-tool: Fix bug in yesterday's commit.
5989         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5990         twice.
5991
5992 2011-05-29  Bruno Haible  <bruno@clisp.org>
5993
5994         Allow multiple gnulib generated include files to be combined.
5995         * gnulib-tool (func_compute_include_guard_prefix): New function.
5996         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5997         ${gl_include_guard_prefix} references.
5998         (func_import, func_create_testdir): Invoke
5999         func_compute_include_guard_prefix.
6000         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6001         * lib/ctype.in.h: Likewise.
6002         * lib/dirent.in.h: Likewise.
6003         * lib/errno.in.h: Likewise.
6004         * lib/fcntl.in.h: Likewise.
6005         * lib/float.in.h: Likewise.
6006         * lib/getopt.in.h: Likewise.
6007         * lib/iconv.in.h: Likewise.
6008         * lib/langinfo.in.h: Likewise.
6009         * lib/locale.in.h: Likewise.
6010         * lib/math.in.h: Likewise.
6011         * lib/netdb.in.h: Likewise.
6012         * lib/netinet_in.in.h: Likewise.
6013         * lib/poll.in.h: Likewise.
6014         * lib/pthread.in.h: Likewise.
6015         * lib/pty.in.h: Likewise.
6016         * lib/sched.in.h: Likewise.
6017         * lib/se-selinux.in.h: Likewise.
6018         * lib/search.in.h: Likewise.
6019         * lib/signal.in.h: Likewise.
6020         * lib/spawn.in.h: Likewise.
6021         * lib/stdarg.in.h: Likewise.
6022         * lib/stddef.in.h: Likewise.
6023         * lib/stdint.in.h: Likewise.
6024         * lib/stdio.in.h: Likewise.
6025         * lib/stdlib.in.h: Likewise.
6026         * lib/string.in.h: Likewise.
6027         * lib/strings.in.h: Likewise.
6028         * lib/sys_file.in.h: Likewise.
6029         * lib/sys_ioctl.in.h: Likewise.
6030         * lib/sys_select.in.h: Likewise.
6031         * lib/sys_socket.in.h: Likewise.
6032         * lib/sys_stat.in.h: Likewise.
6033         * lib/sys_time.in.h: Likewise.
6034         * lib/sys_times.in.h: Likewise.
6035         * lib/sys_uio.in.h: Likewise.
6036         * lib/sys_utsname.in.h: Likewise.
6037         * lib/sys_wait.in.h: Likewise.
6038         * lib/sysexits.in.h: Likewise.
6039         * lib/termios.in.h: Likewise.
6040         * lib/time.in.h: Likewise.
6041         * lib/unistd.in.h: Likewise.
6042         * lib/wchar.in.h: Likewise.
6043         * lib/wctype.in.h: Likewise.
6044         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6045         * modules/ctype (Makefile.am): Likewise.
6046         * modules/dirent (Makefile.am): Likewise.
6047         * modules/errno (Makefile.am): Likewise.
6048         * modules/fcntl-h (Makefile.am): Likewise.
6049         * modules/float (Makefile.am): Likewise.
6050         * modules/getopt-posix (Makefile.am): Likewise.
6051         * modules/iconv-h (Makefile.am): Likewise.
6052         * modules/langinfo (Makefile.am): Likewise.
6053         * modules/locale (Makefile.am): Likewise.
6054         * modules/math (Makefile.am): Likewise.
6055         * modules/netdb (Makefile.am): Likewise.
6056         * modules/netinet_in (Makefile.am): Likewise.
6057         * modules/poll-h (Makefile.am): Likewise.
6058         * modules/pthread (Makefile.am): Likewise.
6059         * modules/pty (Makefile.am): Likewise.
6060         * modules/sched (Makefile.am): Likewise.
6061         * modules/search (Makefile.am): Likewise.
6062         * modules/selinux-h (Makefile.am): Likewise.
6063         * modules/signal (Makefile.am): Likewise.
6064         * modules/spawn (Makefile.am): Likewise.
6065         * modules/stdarg (Makefile.am): Likewise.
6066         * modules/stddef (Makefile.am): Likewise.
6067         * modules/stdint (Makefile.am): Likewise.
6068         * modules/stdio (Makefile.am): Likewise.
6069         * modules/stdlib (Makefile.am): Likewise.
6070         * modules/string (Makefile.am): Likewise.
6071         * modules/strings (Makefile.am): Likewise.
6072         * modules/sys_file (Makefile.am): Likewise.
6073         * modules/sys_ioctl (Makefile.am): Likewise.
6074         * modules/sys_select (Makefile.am): Likewise.
6075         * modules/sys_socket (Makefile.am): Likewise.
6076         * modules/sys_stat (Makefile.am): Likewise.
6077         * modules/sys_time (Makefile.am): Likewise.
6078         * modules/sys_times (Makefile.am): Likewise.
6079         * modules/sys_uio (Makefile.am): Likewise.
6080         * modules/sys_utsname (Makefile.am): Likewise.
6081         * modules/sys_wait (Makefile.am): Likewise.
6082         * modules/sysexits (Makefile.am): Likewise.
6083         * modules/termios (Makefile.am): Likewise.
6084         * modules/time (Makefile.am): Likewise.
6085         * modules/unistd (Makefile.am): Likewise.
6086         * modules/wchar (Makefile.am): Likewise.
6087         * modules/wctype-h (Makefile.am): Likewise.
6088         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6089
6090 2011-05-29  Bruno Haible  <bruno@clisp.org>
6091
6092         assert-h: Allow multiple gnulib generated replacements to coexist.
6093         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6094
6095 2011-05-29  Bruno Haible  <bruno@clisp.org>
6096
6097         argp: Allow coexistence with strerror_r-posix module.
6098         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6099         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6100         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6101         not the glibc signature.
6102
6103 2011-05-28  Bruno Haible  <bruno@clisp.org>
6104
6105         gnulib-tool: Alternative structure of testdirs, similar to --import.
6106         * gnulib-tool: New option --single-configure.
6107         (func_usage): Document it.
6108         (single_configure): New variable.
6109         (func_modules_transitive_closure_separately,
6110         func_modules_transitive_closure_separately,
6111         func_determine_use_libtests, func_modules_add_dummy_separately,
6112         func_modules_to_filelist_separately): New functions, extracted from
6113         func_import.
6114         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6115         (func_import): Use the new functions.
6116         (func_create_testdir): Set final_modules. Handle $single_configure =
6117         true case.
6118
6119 2011-05-28  Bruno Haible  <bruno@clisp.org>
6120
6121         getloadavg: Remove an unreliable safety check.
6122         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6123         getloadavg.c is in place.
6124         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6125         Reported by Sam Steingold <sds@gnu.org>.
6126
6127 2011-05-28  Bruno Haible  <bruno@clisp.org>
6128
6129         doc: Cleanup yet another file produced by texinfo.tex.
6130         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6131
6132 2011-05-28  Bruno Haible  <bruno@clisp.org>
6133
6134         Finish the conditional dependencies mechanism.
6135         * gnulib-tool: New option --no-conditional-dependencies.
6136         (func_usage): Document it. Don't mark --conditional-dependencies as
6137         experimental.
6138         (cond_dependencies): The possible values can now be true, false, empty.
6139         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6140         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6141         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6142
6143 2011-05-28  Bruno Haible  <bruno@clisp.org>
6144
6145         doc: Use a recent texinfo.tex.
6146         * doc/Makefile (tex_opts): New variable.
6147         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6148
6149 2011-05-28  Jim Meyering  <meyering@redhat.com>
6150
6151         intprops.h: adjust comment to match code change
6152         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6153         only once, it *may* have side effects.  Also fix an unrelated typo.
6154         (_GL_INT_SIGNED): Likewise.
6155
6156 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6157
6158         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6159
6160 2011-05-26  Bruno Haible  <bruno@clisp.org>
6161
6162         mbsrchr: Avoid collision with system function on Interix.
6163         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6164         Reported by Markus Duft <mduft@gentoo.org>.
6165
6166 2011-05-15  James Youngman  <jay@gnu.org>
6167
6168         getopt: for ambiguous options, enumerate the possibilities.
6169         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6170         the ambiguous options when an ambiguous prefix is given. This was
6171         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6172         glibc change was
6173         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6174
6175 2011-05-25  Eric Blake  <eblake@redhat.com>
6176
6177         getcwd: work around mingw bug
6178         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6179         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6180         Reported by Matthias Bolte.
6181
6182 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6183
6184         test-intprops: disable -Wtype-limits diagnostics
6185         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6186         diagnostics.  Otherwise, the integer overflow macros generate many
6187         diagnostics.  Reported by Jim Meyering in
6188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6189
6190         intprops: shorten, to pacify gcc -Woverlength-strings
6191         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6192         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6193         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6194         likely to run afoul of C compiler limits for string constant lengths.
6195         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6196
6197 2011-05-24  Eric Blake  <eblake@redhat.com>
6198
6199         docs: document recently fixed glibc printf bug
6200         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6201         * doc/posix-functions/printf.texi (printf): Likewise.
6202         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6203         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6204
6205         closein-tests: convert to init.sh
6206         * modules/closein-tests (Files): Add init.sh
6207         * tests/test-closein.sh Use it.
6208
6209         yesno-tests: convert to init.sh
6210         * modules/yesno-tests (Files): Add init.sh.
6211         * tests/test-yesno.sh: Use it.
6212
6213         atexit-tests: ensure reliable exit status
6214         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6215         Reported by Bruno Haible.
6216
6217 2011-05-24  Bruno Haible  <bruno@clisp.org>
6218
6219         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6221         gl_PREREQ_STRERROR_R invocations from here...
6222         * modules/strerror_r-posix (configure.ac): ... to here.
6223
6224 2011-05-24  Eric Blake  <eblake@redhat.com>
6225
6226         strerror_r: fix missing header
6227         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6228
6229         strerror_r: fix AIX test failures
6230         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6231         ERANGE failure.
6232
6233         strerror_r: fix Solaris test failures
6234         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6235         failures.
6236         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6237
6238         strerror_r: enforce POSIX recommendations
6239         * lib/strerror_r.c (safe_copy): New helper method.
6240         (strerror_r): Guarantee a non-empty string.
6241         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6242         recent POSIX rulings and to match our strerror guarantees.
6243         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6244
6245 2011-05-24  Jim Meyering  <meyering@redhat.com>
6246
6247         test-perror2.c: avoid warning about unused variable
6248         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6249
6250 2011-05-24  Eric Blake  <eblake@redhat.com>
6251
6252         perror: avoid spurious test failure on HP-UX
6253         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6254
6255         tests: fix logic bug in init.sh
6256         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6257         shell.
6258
6259 2011-05-24  Jim Meyering  <meyering@redhat.com>
6260
6261         utimensat: do not reference an out-of-scope buffer
6262         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6263         declared in an inner scope, yet "times" would be dereferenced outside
6264         the scope in which "ts" was valid.
6265         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6266         of ts[2] "out/up", so that the use of aliased "times" (via
6267         "times = ts;") does not end up referencing an out-of-scope "ts"
6268
6269         opendir-safer.c: don't clobber errno; don't close negative FD
6270         * lib/opendir-safer.c (opendir_safer):
6271         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6272         file descriptor, and more importantly, don't clobber the
6273         offending errno value with EINVAL.  Before, upon failure
6274         of dup_safer, we would pass the negative file descriptor to
6275         fdopendir, which would clobber errno.
6276
6277 2011-05-23  Bruno Haible  <bruno@clisp.org>
6278
6279         idcache: Fix module description.
6280         * modules/idcache (Include): Set to "idcache.h".
6281
6282 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         gnulib-tool: fix portability problem with MacOS sed
6285         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6286         before the "}".  Problem reported by Leo in
6287         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6288         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6289         sed_extract_condition1, sed_extract_condition2.
6290
6291 2011-05-23  Bruno Haible  <bruno@clisp.org>
6292
6293         hash: Simplify autoconf macro.
6294         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6295
6296 2011-05-23  Bruno Haible  <bruno@clisp.org>
6297
6298         getugroups: Fix module description.
6299         * modules/getugroups (Include): Set to "getugroups.h".
6300
6301 2011-05-23  Bruno Haible  <bruno@clisp.org>
6302
6303         linkat: Simplify autoconf macro.
6304         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6305
6306 2011-05-23  Bruno Haible  <bruno@clisp.org>
6307             Eric Blake  <eblake@redhat.com>
6308
6309         linkat, renameat: Update dependencies.
6310         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6311         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6312         symlinkat.
6313
6314 2011-05-23  Jim Meyering  <meyering@redhat.com>
6315
6316         maint.mk: more tight_scope improvements
6317         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6318         (_gl_TS_headers): Define only in if-0'd block.
6319         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6320         sometimes we must *not* use it.  Adjust uses accordingly.
6321         (sc_tight_scope): Use much simpler grep-based test to determine
6322         whether we skip this rule.
6323
6324         maint.mk: generalize/improve the tight-scope rule
6325         * top/maint.mk: Emit a warning when the test is skipped.
6326         (_gl_TS_dir): Add $(srcdir)/ prefix.
6327         (_gl_TS_function_match): Simplify, rather than trying
6328         to enumerate common types.  Otherwise, it would fail to match an
6329         "extern unsigned char const *" declaration in idutils.
6330         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6331         a way to support use of that type of macro.
6332         (_gl_TS_var_match): Simplify regexp.
6333         (_gl_TS_obj_files): New configurable variable.
6334         (_gl_TS_headers): Likewise.
6335
6336 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6337
6338         verify: fix bug when gnulib <assert.h> is also included
6339         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6340         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6341         Perhaps there's a better way, but this fixes the immediate problem.
6342         Problem reported by Bruno Haible in
6343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6344
6345 2011-05-22  Bruno Haible  <bruno@clisp.org>
6346
6347         xgetcwd: Simplify autoconf macro.
6348         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6349
6350 2011-05-22  Bruno Haible  <bruno@clisp.org>
6351
6352         New module 'mktime-internal'.
6353         * modules/mktime-internal: New file.
6354         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6355         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6356         mktime_internal as a C macro if libc has __mktime_internal.
6357         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6358         conditions.
6359         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6360
6361 2011-05-22  Bruno Haible  <bruno@clisp.org>
6362
6363         timegm: Correct mktime replacement statements.
6364         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6365         defining mktime as a C macro. This completes a 2009-07-28 commit.
6366
6367 2011-05-22  Bruno Haible  <bruno@clisp.org>
6368
6369         timegm: Simplify autoconf macro.
6370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6371
6372 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6373
6374         clock-time: change to LGPLv2+.
6375         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6376         BSD-like but we have no mark for that; this is good enough for now.
6377
6378 2011-05-21  Bruno Haible  <bruno@clisp.org>
6379
6380         strerror_r: Fix comments.
6381         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6382
6383 2011-05-21  Bruno Haible  <bruno@clisp.org>
6384
6385         relocatable-prog-wrapper: Fix possible link error.
6386         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6387         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6388         (gl_FUNC_SETENV): ... to here.
6389         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6390         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6391
6392 2011-05-21  Bruno Haible  <bruno@clisp.org>
6393
6394         relocatable-prog-wrapper: Assume strerror() exists.
6395         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6396         m4/strerror.m4.
6397         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6398         * lib/relocwrapper.c: Remove mention of strerror module.
6399         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6400         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6401         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6402         C macro.
6403
6404 2011-05-21  Bruno Haible  <bruno@clisp.org>
6405
6406         select: Simplify replacement idiom.
6407         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6408         Win32 platforms.
6409         * lib/sys_select.in.h (select): Simplify accordingly.
6410         * modules/select (Depends-on): Likewise.
6411
6412 2011-05-21  Bruno Haible  <bruno@clisp.org>
6413
6414         mkdir-p: Simplify autoconf macro.
6415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6416         gl_FUNC_LCHOWN.
6417
6418 2011-05-21  Eric Blake  <eblake@redhat.com>
6419
6420         strerror_r: avoid clobbering strerror on cygwin
6421         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6422         fall back instead to sys_errlist.
6423         * modules/strerror (configure.ac): Add witness.
6424         * tests/test-strerror_r.c (main): Enhance test.
6425         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6426         * tests/test-perror2.c (main): Free memory before exit.
6427
6428 2011-05-21  Bruno Haible  <bruno@clisp.org>
6429
6430         mkdtemp: Use gnulib naming conventions.
6431         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6432         * modules/mkdtemp (configure.ac): Update.
6433
6434 2011-05-20  Eric Blake  <eblake@redhat.com>
6435
6436         strerror_r: avoid corrupting errno on Solaris
6437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6438         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6439
6440         strerror_r: avoid compiler warning
6441         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6442
6443         strerror_r: simplify AIX code
6444         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6445
6446         test-perror: avoid spurious failure on FreeBSD
6447         * modules/perror-tests (Depends-on): Add strerror, now that
6448         strerror_r no longer pulls it in.
6449
6450 2011-05-20  Bruno Haible  <bruno@clisp.org>
6451
6452         strerror_r-posix: Remove unused dependencies.
6453         * modules/strerror_r-posix (Depends-on): Remove strerror.
6454         Reported by Eric Blake.
6455
6456 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6457
6458         intprops: remove assumption about A|B representation
6459         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6460         is a valid integer if both A and B are.  Although this is true for
6461         all known practical hosts, the C standard doesn't guarantee it,
6462         and the code need not assume it.  Also, this change may work around
6463         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6465
6466 2011-05-20  Eric Blake  <eblake@redhat.com>
6467
6468         perror: work around FreeBSD bug
6469         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6470         is broken.  Move AC_LIBOBJ...
6471         * modules/perror (configure.ac): Here.
6472         * doc/posix-functions/perror.texi (perror): Document this.
6473         * tests/test-perror2.c (main): Enhance test.
6474
6475         test-perror: check for strerror interactions
6476         * tests/macros.h (STREQ): Add macro.
6477         * modules/perror-tests (Files): Add second test.
6478         * tests/test-perror2.c (main): New file.
6479         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6480
6481         test-perror: rewrite to use init script
6482         * modules/perror-tests (Files): Add init.sh.
6483         * tests/test-perror.sh: Use temporary directory.
6484
6485 2011-05-20  Jim Meyering  <meyering@redhat.com>
6486
6487         maint: replace misused "a" with "an"
6488         * doc/intprops.texi: "a integer"
6489         * doc/regex.texi: "a explanation"
6490         * lib/alignof.h: "a object"
6491         * lib/argmatch.h: "a explanation"
6492         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6493         * lib/stdint.in.h: "a integer"
6494         * lib/userspec.c: "a owner"
6495         * doc/gnulib.texi: Fix "a idea", and reword.
6496
6497 2011-05-19  Jim Meyering  <meyering@redhat.com>
6498
6499         maint: correct misuse of "a" and "an"
6500         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6501         * lib/argp-help.c: "an docum...": s/an/a/
6502         * lib/argp-parse.c: "An vector": s/An/A/
6503         * lib/execute.c: "an native": s/an/a/
6504         * lib/spawn-pipe.c: Likewise.
6505         * lib/gc.h: "an Gc_rc": s/an/a/
6506         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6507         * lib/fts.c: "an stat.st_dev": s/an/a/
6508
6509 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6510
6511         intprops-tests: work around HP-UX 11.23 cc bug with constants
6512         * tests/test-intprops.c (VERIFY): New macro.
6513         (main): Use it, instead of verify, to work around the compiler bug; see
6514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6515
6516         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6517         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6518         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6519         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6520         (_GL_REMAINDER_OVERFLOW): Use it.
6521
6522         intprops-tests: revert unsigned part of previous change
6523         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6524         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6525         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6527
6528 2011-05-19  Bruno Haible  <bruno@clisp.org>
6529
6530         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6531         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6532         strerror_r() returned without filling the buffer.
6533         Reported by Eric Blake.
6534
6535 2011-05-19  Eric Blake  <eblake@redhat.com>
6536
6537         strerror_r: guarantee unchanged errno
6538         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6539         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6540         failure.
6541         * tests/test-strerror_r.c (main): Enhance test.
6542
6543 2011-05-19  Bruno Haible  <bruno@clisp.org>
6544
6545         strerror_r: Reorder #if blocks.
6546         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6547         for consistency with the previous commit.
6548
6549 2011-05-19  Bruno Haible  <bruno@clisp.org>
6550
6551         perror: Avoid clobbering the strerror buffer when possible.
6552         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6553         * lib/strerror.c: Include it.
6554         * modules/strerror (Files): Add lib/strerror-impl.h.
6555         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6556         (my_strerror): New function, defined through lib/strerror-impl.h.
6557         (perror): Use it instead of strerror.
6558         * modules/perror (Files): Add lib/strerror-impl.h.
6559         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6560
6561 2011-05-19  Eric Blake  <eblake@redhat.com>
6562
6563         strerror_r: fix on newer cygwin
6564         * lib/strerror_r.c (strerror_r): Cygwin now has
6565         __xpg_strerror_r, use it.
6566
6567 2011-05-19  Bruno Haible  <bruno@clisp.org>
6568
6569         strerror_r: Avoid clobbering the strerror buffer when possible.
6570         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6571         (sys_nerr, sys_errlist): New declarations.
6572         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6573         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6574         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6575
6576 2011-05-19  Bruno Haible  <bruno@clisp.org>
6577
6578         strerror_r: Fix test failure on mingw.
6579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6580         EXTEND_STRERROR_R.
6581         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6582         macros from errno.in.h instead.
6583
6584 2011-05-19  Eric Blake  <eblake@redhat.com>
6585
6586         strerror: relax test for Solaris
6587         * tests/test-strerror.c (main): Permit Solaris behavior.
6588         * tests/test-strerror_r.c (main): Likewise.
6589
6590         strerror: enforce POSIX ruling on strerror(0)
6591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6593         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6594         * doc/posix-functions/strerror.texi (strerror): Document it.
6595         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6596         * tests/test-strerror.c (main): Strengthen test.
6597         * tests/test-strerror_r.c (main): Likewise.
6598
6599 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6600
6601         intprop-tests: port to older and more-pedantic compilers
6602         * modules/intprops-tests (Files): Add tests/macros.h.
6603         * tests/test-intprops.c: Include macros.h.
6604         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6605         it's no longer documented to expand to an integer constant expression.
6606         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6607         argument is floating point, as it's no longer documented to expand
6608         to an integer constant expression in that case.
6609         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6610         compiler bugs reported by Bruno Haible.  See
6611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6612         (U0, U1): New constants, to work around the same bugs.  Also,
6613         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6614
6615         intprops: work around C compiler bugs
6616         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6617         bug in Sun C 5.11 2010/08/13 and other compilers; see
6618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6619
6620         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6621         * doc/intprops.texi (Integer Type Determination): Fix
6622         documentation for TYPE_IS_INTEGER: it returns an constant
6623         expression, not an integer constant expression.  Fix doc for
6624         TYPE_SIGNED: it returns an integer constant expression only if its
6625         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6626         hardly worth documented that way....)
6627
6628 2011-05-18  Bruno Haible  <bruno@clisp.org>
6629
6630         strerror_r: Avoid clobbering the strerror buffer when possible.
6631         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6632         Handle gnulib defined errno values here. When strerror() returns NULL
6633         or an empty string, return EINVAL.
6634         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6635         gnulib defined errno values here.
6636         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6637
6638 2011-05-18  Eric Blake  <eblake@redhat.com>
6639
6640         fnmatch: avoid compiler warning
6641         * lib/fnmatch_loop.c (FCT): Use correct type.
6642         Reported by Matthias Bolte.
6643
6644 2011-05-13  Jim Meyering  <meyering@redhat.com>
6645
6646         maint.mk: three new prohibit_<HDR>_without_use rules
6647         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6648         (sc_prohibit_stdio-safer_without_use): Likewise.
6649         (sc_prohibit_xfreopen_without_use): Likewise.
6650
6651 2011-05-17  Jim Meyering  <meyering@redhat.com>
6652
6653         announce-gen: fail if the NEWS delta is empty
6654         If there's nothing noteworthy in NEWS, then either you forgot
6655         or you shouldn't be releasing.
6656         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6657
6658 2011-05-17  Pádraig Brady <P@draigBrady.com>
6659
6660         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6661         reserved symbols starting with double underscore from the check.
6662
6663 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6664
6665         intprops: add doc
6666         * doc/intprops.texi: New file, documenting intprops.
6667         * doc/gnulib.texi (Particular Modules): Include it.
6668
6669         verify: add doc to gnulib manual and fix example
6670         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6671         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6672         (Compile-time Assertions): Fix example so it can't overflow.
6673
6674 2011-05-17  Jim Meyering  <meyering@redhat.com>
6675
6676         warnings.m4: don't usurp save_CPPFLAGS variable name
6677         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6678
6679         doc: fix typo
6680         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6681
6682 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6683             Bruno Haible  <bruno@clisp.org>
6684
6685         doc: Tweak recent change.
6686         * README (Portability guidelines): Tweak new text.
6687         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6688         Interix 6.1.
6689
6690 2011-05-16  Eric Blake  <eblake@redhat.com>
6691
6692         inttypes: avoid autoconf warning
6693         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6694         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6695
6696 2011-05-16  Sam Steingold <sds@gnu.org>
6697         and Eric Blake  <eblake@redhat.com>
6698
6699         vc-list-files: accept multiple directory operands
6700         * build-aux/vc-list-files: Iterate over all remaining operands.
6701
6702 2011-05-16  Bruno Haible  <bruno@clisp.org>
6703
6704         Fix confusion regarding deprecated modules.
6705         * modules/calloc (Status, Notice): Mark module as deprecated, not
6706         obsolete.
6707         * modules/fnmatch-posix (Status, Notice): Likewise.
6708         * modules/getdate (Status, Notice): Likewise.
6709         * modules/getopt (Status, Notice): Likewise.
6710         * modules/malloc (Status, Notice): Likewise.
6711         * modules/pipe (Status, Notice): Likewise.
6712         * modules/realloc (Status, Notice): Likewise.
6713         * modules/rename-dest-slash (Status, Notice): Likewise.
6714         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6715         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6716         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6717         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6718         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6719
6720 2011-05-16  Bruno Haible  <bruno@clisp.org>
6721
6722         doc: List the target platforms.
6723         * doc/gnulib-intro.texi (Target Platforms): New section.
6724         * doc/gnulib.texi (Introduction): Update menu.
6725         * README (Portability guidelines): Refer to the new section. Update
6726         statement about oldest supported environment. Remove rationale why
6727         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6728         unportable C89 function.
6729         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6730         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6731
6732 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6733
6734         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6735
6736 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6737
6738         intprops-tests: new module
6739         * modules/intprops-tests, tests/test-intprops.c: New files.
6740
6741         intprops: add safe, portable integer overflow checking
6742         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6743         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6744         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6745         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6746         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6747         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6748         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6749         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6750         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6751         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6752         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6753
6754 2011-05-12  James Youngman  <jay@gnu.org>
6755
6756         Add a test for glibc's Bugzilla bug #12378.
6757         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6758         doesn't allow the literal matching of a lone "[" (which is
6759         required by POSIX).
6760         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6761
6762 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6763
6764         Sync glibc change fixing Bugzilla bug #12378.
6765         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6766         beginning and fall back to matching as normal character if the
6767         string ends before the matching ']' is found.  This is what POSIX
6768         requires.
6769
6770 2011-05-13  Eric Blake  <eblake@redhat.com>
6771
6772         getcwd-lgpl: relax test for FreeBSD
6773         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6774         issue.
6775         * tests/test-getcwd-lgpl.c (main): Relax test.
6776         Reported by Matthias Bolte.
6777
6778 2011-05-11  Eric Blake  <eblake@redhat.com>
6779
6780         test-fflush: silence compiler warning
6781         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6782
6783 2011-05-11  Bruno Haible  <bruno@clisp.org>
6784
6785         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6786         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6787         * modules/canonicalize (Depends-on): Add 'nocrash'.
6788         * modules/canonicalize-lgpl (Depends-on): Likewise.
6789         * doc/posix-functions/realpath.texi: Update platforms list.
6790         Reported by Ryan Schmidt <ryandesign@macports.org>.
6791
6792 2011-05-11  Bruno Haible  <bruno@clisp.org>
6793
6794         group-member: Declare function in <unistd.h>.
6795         * lib/unistd.in.h (group_member): New declaration.
6796         * lib/group-member.h: Remove file.
6797         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6798         * tests/test-unistd-c++.cc: Check signature of group_member.
6799         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6800         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6801         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6802         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6803         HAVE_GROUP_MEMBER.
6804         * modules/group-member (Files): Remove lib/group-member.h.
6805         (Depends-on): Add unistd. Specify conditions.
6806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6807         (Include): Change to <unistd.h>.
6808         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6809         HAVE_GROUP_MEMBER.
6810         * NEWS: Mention the change.
6811         * lib/euidaccess.c: Don't include group-member.h.
6812
6813 2011-05-11  Bruno Haible  <bruno@clisp.org>
6814
6815         group-member: Document module.
6816         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6817         module.
6818
6819 2011-05-11  Bruno Haible  <bruno@clisp.org>
6820
6821         fclose: Fix mistake earlier today.
6822         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6823
6824 2011-05-11  Eric Blake  <eblake@redhat.com>
6825
6826         fclose: preserve fflush errors
6827         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6828         Reported by Jim Meyering.
6829
6830         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6831         * build-aux/bootstrap (check_versions): When no specific version
6832         is required, merely check that the app produces an exit status
6833         that indicates its existence.
6834
6835         maint.mk: drop redundant check
6836         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6837         the same but better.
6838
6839 2011-05-11  Bruno Haible  <bruno@clisp.org>
6840
6841         fclose: Fix possible link error.
6842         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6843         unregister_shadow_fd. Improve comments.
6844         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6845         Eric Blake.
6846
6847 2011-05-11  Jim Meyering  <meyering@redhat.com>
6848
6849         maint.mk: improve "can not" detection and generalize rule name
6850         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6851         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6852         Use the same technique as in sc_prohibit_doubled_word, so that
6853         we recognize "can not" also when the words are separated by a newline.
6854         Suggested by Eric Blake.
6855         (perl_filename_lineno_text_): Define.  Factored out of...
6856         (prohibit_doubled_word_): ...here.  Use the new definition.
6857         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6858         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6859         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6860
6861 2011-05-10  Eric Blake  <eblake@redhat.com>
6862
6863         fclose: avoid double close race when possible
6864         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6865         all but WINDOWS_SOCKETS.
6866
6867 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6868
6869         openat: correct new comment
6870         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6871
6872 2011-05-10  Jim Meyering  <meyering@redhat.com>
6873
6874         openat: add comments
6875         * lib/openat-proc.c (openat_proc_name): Add comments,
6876         mostly from Eric Blake.
6877
6878 2011-05-09  Eric Blake  <eblake@redhat.com>
6879
6880         openat: reduce syscalls in first probe of /proc
6881         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6882         be a directory.  Simplify the probe for .. bugs.
6883         * modules/openat (Depends-on): Drop same-inode.
6884         Reported by Bastien ROUCARIES.
6885
6886 2011-05-09  Jim Meyering  <meyering@redhat.com>
6887
6888         maint.mk: change semantics/name of tight_scope variables
6889         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6890         Rename variables to align with semantics that make them more useful.
6891
6892         maint.mk: tweak new rule's name not to impinge
6893         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6894         (sc_tight_scope): Use new rule name rather than $@-0.
6895
6896         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6897         * top/maint.mk (sc_tight_scope): New rule.
6898         (sc_tight_scope-0): New rule, ifdef'd out.
6899         (_gl_TS_dir): Default.
6900         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6901         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6902
6903 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6904
6905         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6906         Haible <bruno@clisp.org>.
6907
6908 2011-05-08  Bruno Haible  <bruno@clisp.org>
6909
6910         Comments.
6911         * m4/isnanf.m4: Add comment.
6912         * m4/isnanl.m4: Likewise.
6913
6914 2011-05-08  Bruno Haible  <bruno@clisp.org>
6915
6916         glob: Remove obsolete macro.
6917         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6918
6919 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6920
6921         intprops: Sun C 5.11 supports __typeof__
6922         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6923         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6924         which is new.
6925         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6926
6927         intprops: switch to usual gnulib indenting and naming
6928         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6929         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6930
6931         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6932
6933 2011-05-08  Jim Meyering  <meyering@redhat.com>
6934
6935         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6936         * top/maint.mk (release-prep): Use make's --no-print-directory
6937         option when generating the announcement.  This eliminates the
6938         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6939         generated announcement template.
6940
6941 2011-05-08  Bruno Haible  <bruno@clisp.org>
6942
6943         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6944         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6945         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6946
6947 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6948
6949         ignore-value, verify: Omit include files from lib_SOURCES.
6950         * modules/ignore-value, modules/verify (Makefile.am):
6951         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6952         that leads Automake to duplicate use of am__objects_... variables
6953         in Makefile.in.  See
6954         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6955
6956 2011-05-07  Bruno Haible  <bruno@clisp.org>
6957
6958         fclose: Simplify autoconf macro.
6959         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6960         defined.
6961
6962 2011-05-07  Bruno Haible  <bruno@clisp.org>
6963
6964         canonicalize-lgpl: Fix autoconf macro ordering bug.
6965         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6966         gl_STDLIB_H_DEFAULTS.
6967
6968 2011-05-06  Eric Blake  <eblake@redhat.com>
6969
6970         maintainer-makefile: make sc_po_check easier to tune
6971         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6972         to probe for strings, such as an alternate location for gnulib.
6973
6974         fclose: guarantee behavior on seekable stdin
6975         * modules/fclose (Depends-on): Add fflush.
6976         * doc/posix-functions/fclose.texi (fclose): Document this.
6977         * tests/test-fclose.c (main): Make test for this unconditional.
6978
6979 2011-05-06  Bruno Haible  <bruno@clisp.org>
6980
6981         fflush, fpurge: Relicense under LGPLv2+.
6982         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6983         * modules/fpurge (License): Likewise.
6984         With permission from Eric Blake and Jim Meyering.
6985         Suggested by Eric Blake.
6986
6987 2011-05-06  Karl Berry  <karl@gnu.org>
6988
6989         * MODULES.html.sh (func_all_modules): remove exit.
6990
6991 2011-05-06  Jim Meyering  <meyering@redhat.com>
6992
6993         maint.mk: use info-gnu@ as the default only for a stable release
6994         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6995         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6996         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6997         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6998
6999 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7000
7001         assert-h: new module, which supports C1X-style static_assert
7002         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7003         * lib/verify.h: Revamp so that this can be copied into assert.h,
7004         while retaining the ability to use it standalone as before.
7005         Rename private identifiers so as not to encroach on the
7006         standard C namespace, since this is now used by assert.h.
7007         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7008         the old verify_true.
7009         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7010         the old verify_true.  Use _GL_VERIFY_TYPE.
7011         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7012         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7013         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7014         defined when this file is copied into the replacement assert.h.
7015         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7016         and _Static_assert is not built in.
7017         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7018         defined, and use the new macros mentioned above.
7019         * doc/posix-headers/assert.texi: Document this.
7020
7021 2011-05-05  Bruno Haible  <bruno@clisp.org>
7022
7023         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7024         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7025         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7026         gl_REPLACE_FCLOSE here.
7027         * modules/fflush (Depends-on): Remove fclose.
7028         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7029         combination with module 'fclose'.
7030
7031 2011-05-05  Bruno Haible  <bruno@clisp.org>
7032
7033         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7034         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7035         gl_FUNC_FFLUSH.
7036         (gl_FUNC_FFLUSH): Use it.
7037         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7039         gl_REPLACE_FSEEKO here.
7040
7041 2011-05-05  Bruno Haible  <bruno@clisp.org>
7042
7043         tzset: Relicense under LGPL.
7044         * modules/tzset (License): Change to LGPL.
7045         No agreement needed; it's a no-op.
7046
7047         strtoimax, strtoumax: Relicense under LGPL.
7048         * modules/strtoimax (License): Change to LGPL.
7049         * modules/strtoumax (License): Likewise.
7050         With permission from Jim Meyering, Paul Eggert:
7051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7053
7054         getgroups: Relicense under LGPL.
7055         * modules/getgroups (License): Change to LGPL.
7056         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7060
7061         nanosleep: Relicense under LGPL.
7062         * modules/nanosleep (License): Change to LGPL.
7063         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7064         Haible:
7065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7069
7070         futimens: Relicense under LGPL.
7071         * modules/futimens (License): Change to LGPL.
7072         With permission from Eric Blake:
7073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7074
7075         fflush: Relicense under LGPL.
7076         * modules/fflush (License): Change to LGPL.
7077         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7081
7082         tmpfile: Relicense under LGPL.
7083         * modules/tmpfile (License): Change to LGPL.
7084         With permission from Ben Pfaff:
7085         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7086
7087         isfinite: Relicense under LGPL.
7088         * modules/isfinite (License): Change to LGPL.
7089         With permission from Ben Pfaff, Bruno Haible:
7090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7092
7093         acosl..tanl: Relicense under LGPL.
7094         * modules/acosl (License): Change to LGPL.
7095         * modules/asinl (License): Likewise.
7096         * modules/atanl (License): Likewise.
7097         * modules/cosl (License): Likewise.
7098         * modules/expl (License): Likewise.
7099         * modules/logl (License): Likewise.
7100         * modules/sinl (License): Likewise.
7101         * modules/sqrtl (License): Likewise.
7102         * modules/tanl (License): Likewise.
7103         Source code originally from glibc and Paolo Bonzini. Agreements:
7104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7106
7107 2011-05-05  Bruno Haible  <bruno@clisp.org>
7108
7109         signal: Define sighandler_t.
7110         * lib/signal.in.h (sighandler_t): New type.
7111         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7112         whether sighandler_t is defined.
7113         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7114         * modules/signal (Depends-on): Add extensions.
7115         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7116         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7117         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7118
7119 2011-05-05  Eric Blake  <eblake@redhat.com>
7120
7121         maint: remove useless REPLACE_*_H macros
7122         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7123         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7124         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7125         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7126         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7127         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7128         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7129         * m4/btowc.m4: Update callers.
7130         * m4/dirfd.m4: Likewise.
7131         * m4/duplocale.m4: Likewise.
7132         * m4/fchdir.m4: Likewise.
7133         * m4/fdopendir.m4: Likewise.
7134         * m4/inet_ntop.m4: Likewise.
7135         * m4/inet_pton.m4: Likewise.
7136         * m4/ioctl.m4: Likewise.
7137         * m4/mbrlen.m4: Likewise.
7138         * m4/mbrtowc.m4: Likewise.
7139         * m4/mbsinit.m4: Likewise.
7140         * m4/mbsnrtowcs.m4: Likewise.
7141         * m4/mbsrtowcs.m4: Likewise.
7142         * m4/poll.m4: Likewise.
7143         * m4/setlocale.m4: Likewise.
7144         * m4/wcrtomb.m4: Likewise.
7145         * m4/wcsnrtombs.m4: Likewise.
7146         * m4/wcsrtombs.m4: Likewise.
7147         * m4/wctob.m4: Likewise.
7148         * m4/wcwidth.m4: Likewise.
7149         * modules/posix_spawn: Likewise.
7150         * modules/posix_spawn_file_actions_addclose: Likewise.
7151         * modules/posix_spawn_file_actions_adddup2: Likewise.
7152         * modules/posix_spawn_file_actions_addopen: Likewise.
7153         * modules/posix_spawn_file_actions_destroy: Likewise.
7154         * modules/posix_spawn_file_actions_init: Likewise.
7155         * modules/posix_spawnattr_destroy: Likewise.
7156         * modules/posix_spawnattr_getflags: Likewise.
7157         * modules/posix_spawnattr_getpgroup: Likewise.
7158         * modules/posix_spawnattr_getschedparam: Likewise.
7159         * modules/posix_spawnattr_getschedpolicy: Likewise.
7160         * modules/posix_spawnattr_getsigdefault: Likewise.
7161         * modules/posix_spawnattr_getsigmask: Likewise.
7162         * modules/posix_spawnattr_init: Likewise.
7163         * modules/posix_spawnattr_setflags: Likewise.
7164         * modules/posix_spawnattr_setpgroup: Likewise.
7165         * modules/posix_spawnattr_setschedparam: Likewise.
7166         * modules/posix_spawnattr_setschedpolicy: Likewise.
7167         * modules/posix_spawnattr_setsigdefault: Likewise.
7168         * modules/posix_spawnattr_setsigmask: Likewise.
7169         * modules/posix_spawnp: Likewise.
7170
7171 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7172
7173         Add option to do-release-commit-and-tag to specify branch.
7174         * build-aux/do-release-commit-and-tag: Add --branch.
7175
7176 2011-05-03  Bruno Haible  <bruno@clisp.org>
7177
7178         Avoid unnecessary compilation units, through conditional dependencies.
7179         * modules/accept (Depends-on): Add conditions to the dependencies.
7180         * modules/acosl (Depends-on): Likewise.
7181         * modules/argz (Depends-on): Likewise.
7182         * modules/asinl (Depends-on): Likewise.
7183         * modules/atanl (Depends-on): Likewise.
7184         * modules/atoll (Depends-on): Likewise.
7185         * modules/bind (Depends-on): Likewise.
7186         * modules/btowc (Depends-on): Likewise.
7187         * modules/canonicalize-lgpl (Depends-on): Likewise.
7188         * modules/ceil (Depends-on): Likewise.
7189         * modules/ceilf (Depends-on): Likewise.
7190         * modules/ceill (Depends-on): Likewise.
7191         * modules/chdir-long (Depends-on): Likewise.
7192         * modules/chown (Depends-on): Likewise.
7193         * modules/close (Depends-on): Likewise.
7194         * modules/connect (Depends-on): Likewise.
7195         * modules/cosl (Depends-on): Likewise.
7196         * modules/dirfd (Depends-on): Likewise.
7197         * modules/dprintf (Depends-on): Likewise.
7198         * modules/dprintf-posix (Depends-on): Likewise.
7199         * modules/error (Depends-on): Likewise.
7200         * modules/euidaccess (Depends-on): Likewise.
7201         * modules/expl (Depends-on): Likewise.
7202         * modules/faccessat (Depends-on): Likewise.
7203         * modules/fchdir (Depends-on): Likewise.
7204         * modules/fclose (Depends-on): Likewise.
7205         * modules/fcntl (Depends-on): Likewise.
7206         * modules/fdopendir (Depends-on): Likewise.
7207         * modules/fflush (Depends-on): Likewise.
7208         * modules/floor (Depends-on): Likewise.
7209         * modules/floorf (Depends-on): Likewise.
7210         * modules/floorl (Depends-on): Likewise.
7211         * modules/fnmatch (Depends-on): Likewise.
7212         * modules/fopen (Depends-on): Likewise.
7213         * modules/fprintf-posix (Depends-on): Likewise.
7214         * modules/frexp (Depends-on): Likewise.
7215         * modules/frexp-nolibm (Depends-on): Likewise.
7216         * modules/frexpl (Depends-on): Likewise.
7217         * modules/frexpl-nolibm (Depends-on): Likewise.
7218         * modules/fseek (Depends-on): Likewise.
7219         * modules/fsusage (Depends-on): Likewise.
7220         * modules/ftell (Depends-on): Likewise.
7221         * modules/ftello (Depends-on): Likewise.
7222         * modules/futimens (Depends-on): Likewise.
7223         * modules/getcwd (Depends-on): Likewise.
7224         * modules/getcwd-lgpl (Depends-on): Likewise.
7225         * modules/getdelim (Depends-on): Likewise.
7226         * modules/getdomainname (Depends-on): Likewise.
7227         * modules/getgroups (Depends-on): Likewise.
7228         * modules/gethostname (Depends-on): Likewise.
7229         * modules/getline (Depends-on): Likewise.
7230         * modules/getlogin_r (Depends-on): Likewise.
7231         * modules/getopt-posix (Depends-on): Likewise.
7232         * modules/getpeername (Depends-on): Likewise.
7233         * modules/getsockname (Depends-on): Likewise.
7234         * modules/getsockopt (Depends-on): Likewise.
7235         * modules/getsubopt (Depends-on): Likewise.
7236         * modules/getusershell (Depends-on): Likewise.
7237         * modules/glob (Depends-on): Likewise.
7238         * modules/grantpt (Depends-on): Likewise.
7239         * modules/iconv_open (Depends-on): Likewise.
7240         * modules/iconv_open-utf (Depends-on): Likewise.
7241         * modules/inet_ntop (Depends-on): Likewise.
7242         * modules/inet_pton (Depends-on): Likewise.
7243         * modules/ioctl (Depends-on): Likewise.
7244         * modules/isapipe (Depends-on): Likewise.
7245         * modules/isfinite (Depends-on): Likewise.
7246         * modules/isinf (Depends-on): Likewise.
7247         * modules/lchown (Depends-on): Likewise.
7248         * modules/ldexpl (Depends-on): Likewise.
7249         * modules/link (Depends-on): Likewise.
7250         * modules/linkat (Depends-on): Likewise.
7251         * modules/listen (Depends-on): Likewise.
7252         * modules/logl (Depends-on): Likewise.
7253         * modules/lstat (Depends-on): Likewise.
7254         * modules/mbrlen (Depends-on): Likewise.
7255         * modules/mbrtowc (Depends-on): Likewise.
7256         * modules/mbsinit (Depends-on): Likewise.
7257         * modules/mbsnrtowcs (Depends-on): Likewise.
7258         * modules/mbsrtowcs (Depends-on): Likewise.
7259         * modules/mbtowc (Depends-on): Likewise.
7260         * modules/memcmp (Depends-on): Likewise.
7261         * modules/mkdir (Depends-on): Likewise.
7262         * modules/mkdtemp (Depends-on): Likewise.
7263         * modules/mkfifo (Depends-on): Likewise.
7264         * modules/mkfifoat (Depends-on): Likewise.
7265         * modules/mknod (Depends-on): Likewise.
7266         * modules/mkostemp (Depends-on): Likewise.
7267         * modules/mkostemps (Depends-on): Likewise.
7268         * modules/mkstemp (Depends-on): Likewise.
7269         * modules/mkstemps (Depends-on): Likewise.
7270         * modules/mktime (Depends-on): Likewise.
7271         * modules/nanosleep (Depends-on): Likewise.
7272         * modules/open (Depends-on): Likewise.
7273         * modules/openat (Depends-on): Likewise.
7274         * modules/perror (Depends-on): Likewise.
7275         * modules/poll (Depends-on): Likewise.
7276         * modules/popen (Depends-on): Likewise.
7277         * modules/posix_spawn (Depends-on): Likewise.
7278         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7279         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7280         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7281         * modules/posix_spawnp (Depends-on): Likewise.
7282         * modules/pread (Depends-on): Likewise.
7283         * modules/printf-posix (Depends-on): Likewise.
7284         * modules/ptsname (Depends-on): Likewise.
7285         * modules/putenv (Depends-on): Likewise.
7286         * modules/pwrite (Depends-on): Likewise.
7287         * modules/readline (Depends-on): Likewise.
7288         * modules/readlink (Depends-on): Likewise.
7289         * modules/readlinkat (Depends-on): Likewise.
7290         * modules/recv (Depends-on): Likewise.
7291         * modules/recvfrom (Depends-on): Likewise.
7292         * modules/regex (Depends-on): Likewise.
7293         * modules/remove (Depends-on): Likewise.
7294         * modules/rename (Depends-on): Likewise.
7295         * modules/renameat (Depends-on): Likewise.
7296         * modules/rmdir (Depends-on): Likewise.
7297         * modules/round (Depends-on): Likewise.
7298         * modules/roundf (Depends-on): Likewise.
7299         * modules/roundl (Depends-on): Likewise.
7300         * modules/rpmatch (Depends-on): Likewise.
7301         * modules/select (Depends-on): Likewise.
7302         * modules/send (Depends-on): Likewise.
7303         * modules/sendto (Depends-on): Likewise.
7304         * modules/setenv (Depends-on): Likewise.
7305         * modules/setlocale (Depends-on): Likewise.
7306         * modules/setsockopt (Depends-on): Likewise.
7307         * modules/shutdown (Depends-on): Likewise.
7308         * modules/sigaction (Depends-on): Likewise.
7309         * modules/signbit (Depends-on): Likewise.
7310         * modules/sigprocmask (Depends-on): Likewise.
7311         * modules/sinl (Depends-on): Likewise.
7312         * modules/sleep (Depends-on): Likewise.
7313         * modules/snprintf (Depends-on): Likewise.
7314         * modules/snprintf-posix (Depends-on): Likewise.
7315         * modules/socket (Depends-on): Likewise.
7316         * modules/sprintf-posix (Depends-on): Likewise.
7317         * modules/sqrtl (Depends-on): Likewise.
7318         * modules/stat (Depends-on): Likewise.
7319         * modules/strchrnul (Depends-on): Likewise.
7320         * modules/strdup-posix (Depends-on): Likewise.
7321         * modules/strerror (Depends-on): Likewise.
7322         * modules/strerror_r-posix (Depends-on): Likewise.
7323         * modules/strndup (Depends-on): Likewise.
7324         * modules/strnlen (Depends-on): Likewise.
7325         * modules/strptime (Depends-on): Likewise.
7326         * modules/strsep (Depends-on): Likewise.
7327         * modules/strsignal (Depends-on): Likewise.
7328         * modules/strstr-simple (Depends-on): Likewise.
7329         * modules/strtod (Depends-on): Likewise.
7330         * modules/strtoimax (Depends-on): Likewise.
7331         * modules/strtok_r (Depends-on): Likewise.
7332         * modules/strtoumax (Depends-on): Likewise.
7333         * modules/symlink (Depends-on): Likewise.
7334         * modules/symlinkat (Depends-on): Likewise.
7335         * modules/tanl (Depends-on): Likewise.
7336         * modules/tcgetsid (Depends-on): Likewise.
7337         * modules/tmpfile (Depends-on): Likewise.
7338         * modules/trunc (Depends-on): Likewise.
7339         * modules/truncf (Depends-on): Likewise.
7340         * modules/truncl (Depends-on): Likewise.
7341         * modules/uname (Depends-on): Likewise.
7342         * modules/unlink (Depends-on): Likewise.
7343         * modules/unlockpt (Depends-on): Likewise.
7344         * modules/unsetenv (Depends-on): Likewise.
7345         * modules/usleep (Depends-on): Likewise.
7346         * modules/utimensat (Depends-on): Likewise.
7347         * modules/vasprintf (Depends-on): Likewise.
7348         * modules/vdprintf (Depends-on): Likewise.
7349         * modules/vdprintf-posix (Depends-on): Likewise.
7350         * modules/vfprintf-posix (Depends-on): Likewise.
7351         * modules/vprintf-posix (Depends-on): Likewise.
7352         * modules/vsnprintf (Depends-on): Likewise.
7353         * modules/vsnprintf-posix (Depends-on): Likewise.
7354         * modules/vsprintf-posix (Depends-on): Likewise.
7355         * modules/wcrtomb (Depends-on): Likewise.
7356         * modules/wcscasecmp (Depends-on): Likewise.
7357         * modules/wcscspn (Depends-on): Likewise.
7358         * modules/wcsdup (Depends-on): Likewise.
7359         * modules/wcsncasecmp (Depends-on): Likewise.
7360         * modules/wcsnrtombs (Depends-on): Likewise.
7361         * modules/wcspbrk (Depends-on): Likewise.
7362         * modules/wcsrtombs (Depends-on): Likewise.
7363         * modules/wcsspn (Depends-on): Likewise.
7364         * modules/wcsstr (Depends-on): Likewise.
7365         * modules/wcstok (Depends-on): Likewise.
7366         * modules/wcswidth (Depends-on): Likewise.
7367         * modules/wctob (Depends-on): Likewise.
7368         * modules/wctomb (Depends-on): Likewise.
7369         * modules/wctype (Depends-on): Likewise.
7370         * modules/wcwidth (Depends-on): Likewise.
7371         * modules/write (Depends-on): Likewise.
7372
7373 2011-05-03  Bruno Haible  <bruno@clisp.org>
7374
7375         Support for conditional dependencies.
7376         * doc/gnulib.texi (Module description): Document the syntax of
7377         conditional dependencies.
7378         * gnulib-tool: New option --conditional-dependencies.
7379         (func_usage): Document it.
7380         (cond_dependencies): New variable.
7381         (func_get_automake_snippet_conditional,
7382         func_get_automake_snippet_unconditional): New functions, extracted from
7383         func_get_automake_snippet.
7384         (func_get_automake_snippet): Use them.
7385         (sed_first_32_chars): New variable.
7386         (func_module_shellfunc_name): New function.
7387         (func_module_shellvar_name): New function.
7388         (func_module_conditional_name): New function.
7389         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7390         func_cond_module_condition): New functions.
7391         (func_modules_transitive_closure): Add support for conditional
7392         dependencies.
7393         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7394         conditional automake snippet in an automake conditional.
7395         (func_emit_autoconf_snippets): Emit shell functions that contain the
7396         code for conditional modules.
7397         (func_import, func_create_testdir): Update specification.
7398
7399 2011-05-03  Eric Blake  <eblake@redhat.com>
7400
7401         test-getaddrinfo: report error information
7402         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7403
7404 2011-05-03  Jim Meyering  <meyering@redhat.com>
7405
7406         bootstrap: avoid build failure when $GZIP is set
7407         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7408         program name.  If defined at all, it is supposed to list gzip options.
7409         Reported by Alan Curry in http://debbugs.gnu.org/8609
7410
7411 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7412
7413         readme-release: new module with release instructions
7414         * modules/readme-release: New module.
7415         * top/README-release: New file, from coreutils, grep, diffutils.
7416         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7417
7418 2011-05-02  Eric Blake  <eblake@redhat.com>
7419
7420         fflush: also replace fclose when fixing fflush
7421         * modules/fflush (Depends-on): Add fclose.
7422         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7423         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7424         memstreams with no backing fd.
7425         * doc/posix-functions/fclose.texi (fclose): Document the use of
7426         fflush module to fix the bug.
7427         * tests/test-fclose.c (main): Relax test when fclose is used in
7428         isolation.
7429
7430         fclose: add some tests
7431         * modules/fclose-tests: New test module.
7432         * tests/test-fclose.c: New file.
7433         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7434
7435         fclose: reduced dependencies
7436         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7437         simpler lseek.
7438         * lib/fclose.c (rpl_fclose): Likewise.
7439         Reported by Simon Josefsson.
7440
7441         exit: drop remaining clients
7442         * modules/argmatch (Depends-on): Replace exit with stdlib.
7443         * modules/copy-file (Depends-on): Likewise.
7444         * modules/execute (Depends-on): Likewise.
7445         * modules/exitfail (Depends-on): Likewise.
7446         * modules/obstack (Depends-on): Likewise.
7447         * modules/pagealign_alloc (Depends-on): Likewise.
7448         * modules/pipe-filter-gi (Depends-on): Likewise.
7449         * modules/pipe-filter-ii (Depends-on): Likewise.
7450         * modules/savewd (Depends-on): Likewise.
7451         * modules/spawn-pipe (Depends-on): Likewise.
7452         * modules/wait-process (Depends-on): Likewise.
7453         * modules/xsetenv (Depends-on): Likewise.
7454         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7455         * modules/git-merge-changelog (Depends-on): Likewise.
7456         * modules/long-options (Depends-on): Likewise.
7457         * modules/pt_chown (Depends-on): Likewise.
7458         * modules/sysexits (Depends-on): Likewise.
7459
7460         freading: relax license from LGPLv3+ to LGPLv2+
7461         * modules/freading (License): Relax LGPL version.
7462
7463 2011-05-02  Bruno Haible  <bruno@clisp.org>
7464
7465         fchdir: Remove unused dependencies.
7466         * modules/fchdir (Depends-on): Remove include_next.
7467
7468 2011-05-02  Bruno Haible  <bruno@clisp.org>
7469
7470         gnulib-tool: Refactor.
7471         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7472         from func_emit_autoconf_snippets.
7473         (func_emit_autoconf_snippets): Use it.
7474
7475 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7476
7477         * NEWS: Document removal of 'exit'.
7478         * modules/exit: Remove file.
7479
7480 2011-05-01  Bruno Haible  <bruno@clisp.org>
7481
7482         Update DEPENDENCIES.
7483         * DEPENDENCIES (gettext): Recommend the newest release.
7484         Reported by Simon Josefsson.
7485
7486 2011-05-01  Bruno Haible  <bruno@clisp.org>
7487
7488         gnulib-tool: Reduce code duplication.
7489         * gnulib-tool (func_emit_autoconf_snippets): New function.
7490         (func_import, func_create_testdir): Use it.
7491
7492 2011-04-30  Eric Blake  <eblake@redhat.com>
7493
7494         fclose: don't fail on non-seekable input stream
7495         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7496         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7497         since fflush is allowed to fail in that case.
7498
7499 2011-04-30  Bruno Haible  <bruno@clisp.org>
7500
7501         dup3: cleanup
7502         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7503
7504 2011-04-30  Bruno Haible  <bruno@clisp.org>
7505
7506         netdb: Make it work in C++ mode.
7507         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7508         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7509         module.
7510         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7511         gl_MODULE_INDICATOR_FOR_TESTS.
7512         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7513         * modules/netdb-c++-tests: New file.
7514         * tests/test-netdb-c++.cc: New file.
7515
7516 2011-04-30  Bruno Haible  <bruno@clisp.org>
7517
7518         New modules 'vfscanf', 'vscanf'.
7519         * modules/vfscanf: New file.
7520         * modules/vscanf: New file.
7521         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7522         here.
7523         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7524         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7525
7526 2011-04-30  Bruno Haible  <bruno@clisp.org>
7527
7528         passfd: Add comments.
7529         * lib/passfd.c: Add comments about platforms.
7530
7531 2011-04-30  Bruno Haible  <bruno@clisp.org>
7532
7533         sys_uio: Make <sys/uio.h> self-contained.
7534         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7535         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7536
7537 2011-04-30  Bruno Haible  <bruno@clisp.org>
7538
7539         sys_socket: Ensure 'struct iovec' definition.
7540         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7541         <sys/socket.h>.
7542         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7543
7544 2011-04-30  Bruno Haible  <bruno@clisp.org>
7545
7546         sys_uio: Protect definition of 'struct iovec'.
7547         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7548         it as a C struct.
7549
7550 2011-04-30  Bruno Haible  <bruno@clisp.org>
7551
7552         manywarnings: fix indentation
7553         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7554
7555 2011-04-30  Pádraig Brady <P@draigBrady.com>
7556
7557         manywarnings: add -Wno-missing-field-initializers if needed.
7558         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7559         option if it's needed to allow initialization with { 0, }
7560
7561 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7562
7563         announce-gen: cosmetic improvement
7564         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7565
7566 2011-04-29  Jim Meyering  <meyering@redhat.com>
7567
7568         vc-list-files: indent with spaces, not TABs
7569         * build-aux/vc-list-files: Convert leading TABs to spaces,
7570         to match the style of most other files in gnulib.
7571
7572         announce-gen: indent with spaces, not TABs
7573         * build-aux/announce-gen: Convert all TABs to spaces, to match
7574         the style of most other files in gnulib.
7575
7576 2011-04-29  Eric Blake  <eblake@redhat.com>
7577
7578         quotearg: avoid uninitialized variable use
7579         * lib/quotearg.c (quoting_options_from_style): Initialize
7580         remaining fields, and ensure that custom styles are only used via
7581         quoting_options rather than quoting_style.
7582
7583 2011-04-29  Jim Meyering  <meyering@redhat.com>
7584
7585         maint.mk: remove unused VC-tag variable
7586         * top/maint.mk (VC-tag): Remove unused variable.
7587
7588 2011-04-29  Bruno Haible  <bruno@clisp.org>
7589
7590         netdb: fix gai_strerror replacements
7591         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7592         * modules/netdb: Substitute it.
7593
7594 2011-04-29  Jim Meyering  <meyering@redhat.com>
7595
7596         test-getcwd.c: avoid new set-but-not-used warning
7597         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7598         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7599         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7600         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7601
7602         test-hash.c: avoid a new shadowing warning
7603         * tests/test-hash.c (main): Don't shadow "dup".
7604
7605 2011-04-28  Eric Blake  <eblake@redhat.com>
7606
7607         getaddrinfo: fix gai_strerror signature
7608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7609         and work around mingw with UNICODE defined.
7610         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7611         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7612         * modules/netdb (Makefile.am): Substitute it.
7613         * lib/netdb.in.h (gai_strerror): Declare replacement.
7614         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7615         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7616         the fix.
7617
7618         getsockopt: avoid compiler warning
7619         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7620         Reported by Matthias Bolte.
7621
7622         tests: drop unused link dependency
7623         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7624         * modules/dirent-safer-tests (Makefile.am): Likewise.
7625         * modules/fdopendir-tests (Makefile.am): Likewise.
7626         * modules/mkfifoat-tests (Makefile.am): Likewise.
7627         * modules/openat-safer-tests (Makefile.am): Likewise.
7628         * modules/openat-tests (Makefile.am): Likewise.
7629         * modules/readlinkat-tests (Makefile.am): Likewise.
7630         * modules/symlinkat-tests (Makefile.am): Likewise.
7631         * modules/linkat-tests (Makefile.am): Likewise.
7632         (Depends-on): Switch to filenamecat-lgpl.
7633         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7634         LIBINTL.
7635         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7636         * tests/test-linkat.c (main): Don't require xalloc.
7637
7638         hash, mgetgroups: drop xalloc dependency
7639         * lib/hash.c (includes): Adjust includes.
7640         * lib/mgetgroups.c (includes): Likewise.
7641         (xgetgroups): Move...
7642         * lib/xgetgroups.c: ...to new file.
7643         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7644         * modules/xgetgroups: New file, split from...
7645         * modules/mgetgroups: ...here.
7646         (Depends-on): Add xalloc-oversized.
7647         * modules/hash (Depends-on): Likewise.
7648         * modules/hash-tests (Depends-on): Drop xalloc.
7649         (test_hash_LDADD): Drop unused library.
7650         * tests/test-hash.c (main): Break xalloc dependency.
7651         (includes): Drop unused include.
7652
7653         xalloc-oversized: new module
7654         * modules/xalloc-oversized: New module.
7655         * modules/xalloc (Depends-on): Add it.
7656         * lib/xalloc.h (xalloc_oversized): Move...
7657         * lib/xalloc-oversized.h: ...into new file.
7658
7659         utimecmp: drop dependency on xmalloc
7660         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7661         due to memory pressure.
7662         * modules/utimecmp (Depends-on): Drop xalloc.
7663
7664 2011-04-27  Eric Blake  <eblake@redhat.com>
7665
7666         getcwd: fix mingw bugs
7667         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7668         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7669         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7670
7671 2011-04-27  Bruno Haible  <bruno@clisp.org>
7672
7673         mkstemps: Ensure declaration on MacOS X 10.5.
7674         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7675         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7676         MacOS X.
7677
7678 2011-04-27  Bruno Haible  <bruno@clisp.org>
7679
7680         mkstemp: More documentation.
7681         * doc/posix-functions/mkstemp.texi: Document header file problem on
7682         MacOS X.
7683
7684 2011-04-27  Bruno Haible  <bruno@clisp.org>
7685
7686         mkstemp: Tweak configure message when cross-compiling.
7687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7688         result as a guess.
7689
7690 2011-04-27  Bruno Haible  <bruno@clisp.org>
7691
7692         clean-temp: Clarify what it does.
7693         * lib/clean-temp.h: Add more comments.
7694         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7695         module.
7696         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7697         * doc/glibc-functions/mkstemps.texi: Likewise.
7698         * doc/glibc-functions/mkostemps.texi: Likewise.
7699
7700 2011-04-27  Eric Blake  <eblake@redhat.com>
7701
7702         fchdir: avoid extra chdir and fix test
7703         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7704         getcwd-lgpl.
7705         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7706         have to be canonical.
7707         (canonicalize_file_name): Drop unused macro.
7708         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7709
7710         filenamecat-lgpl: fix licence
7711         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7712         when it was first created.
7713
7714         linkat, renameat: add missing dependency
7715         * modules/linkat (Depends-on): Require getcwd-lgpl.
7716         * modules/renameat (Depends-on): Likewise.
7717
7718         tests: reduce dependencies
7719         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7720         * tests/test-renameat.c (main): Likewise.
7721         * modules/linkat-tests (Depends-on): Relax dependency.
7722         * modules/renameat-tests (Depends-on): Likewise.
7723         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7724         dependency explicit.
7725
7726         save-cwd: reduce default dependency
7727         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7728         * lib/save-cwd.c: Update comments.
7729         * NEWS: Document the semantic change.
7730
7731         getcwd: enhance tests
7732         * tests/test-getcwd-lgpl.c: New file, taken from...
7733         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7734         repeat long path stress tests from m4 probe.
7735         * modules/getcwd-lgpl-tests: New module.
7736         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7737         * m4/getcwd-abort-bug.m4: Update comment.
7738         * m4/getcwd-path-max.m4: Likewise.
7739
7740         getcwd-lgpl: new module
7741         * modules/getcwd-lgpl: New module.
7742         * lib/getcwd-lgpl.c: New file.
7743         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7744         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7745         * modules/getcwd (configure.ac): Set C witness.
7746         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7747
7748         getcwd: tweak comments
7749         * m4/getcwd-abort-bug.m4: Fix comments.
7750         * m4/getcwd-path-max.m4: Likewise.
7751         * m4/getcwd.m4: Likewise.
7752
7753 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7754         and Eric Blake  <eblake@redhat.com>
7755
7756         mkstemp: replace if system version uses wrong permissions
7757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7758         read/write mode bits set in file created by mkstemp.
7759         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7760
7761 2011-04-27  Eric Blake  <eblake@redhat.com>
7762
7763         passfd: avoid compiler warning
7764         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7765         Reported by Laine Stump.
7766
7767 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7768
7769         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7770         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7771
7772 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7773         and Eric Blake  <eblake@redhat.com>
7774
7775         mkstemp: mention clean-temp module
7776         * lib/mkstemp.c: Add comment.
7777         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7778
7779 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7780
7781         inttypes: also provide default values for 32-bit tests
7782         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7783         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7784
7785 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7786
7787         strtoumax: remove dependency on strtoimax
7788         This is like the strtoull change of yesterday.
7789         * modules/strtoumax (Files): Add lib/strtoimax.c.
7790         (Depends-on): Remove strtoimax and add verify.
7791
7792         inttypes-incomplete: new module
7793         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7794         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7795         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7796         of gl_INTTYPES_H.
7797         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7798         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7799         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7800         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7801         * modules/strtoumax, modules/xstrtol (Depends-on):
7802         Depend on inttypes-incomplete, not inttypes.
7803         * modules/inttypes-incomplete: New module, containing the contents
7804         of the old modules/inttypes module, except that the Files: section
7805         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7806         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7807         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7808         (Depends-on): Depend only on inttypes-incomplete.
7809         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7810
7811         inttypes: omit now-redundant strtoimax and strtoumax work
7812         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7813         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7814
7815         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7816         This supports apps that need pointers to strtoimax and strtoumax,
7817         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7818         nonexistent functions.  See
7819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7820         et seq.
7821         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7822         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7823         a macro.
7824         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7825
7826 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7827
7828         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7829
7830 2011-04-25  Bruno Haible  <bruno@clisp.org>
7831
7832         strtol, strtoul: Mark modules as obsolete.
7833         * modules/strtol (Status, Notice): New sections.
7834         * modules/strtoul (Status, Notice): New sections.
7835
7836 2011-04-25  Bruno Haible  <bruno@clisp.org>
7837
7838         strtod: Remove check for strtod, unless supporting old platforms.
7839         * modules/strtod-obsolete: New file.
7840         * m4/strtod-obsolete.m4: New file.
7841         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7842         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7843         * modules/strtod (Depends-on): Add strtod-obsolete.
7844         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7845
7846 2011-04-25  Bruno Haible  <bruno@clisp.org>
7847
7848         strcase: Make module obsolete.
7849         * modules/strcase (Status, Notice): New sections.
7850
7851 2011-04-25  Bruno Haible  <bruno@clisp.org>
7852
7853         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7854         * modules/dup2-obsolete: New file.
7855         * m4/dup2-obsolete.m4: New file.
7856         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7857         gl_FUNC_DUP2_OBSOLETE is not also defined.
7858         * modules/dup2 (Depends-on): Add dup2-obsolete.
7859         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7860
7861 2011-04-25  Bruno Haible  <bruno@clisp.org>
7862
7863         strnlen: Avoid memchr related link error on old obsolete platforms.
7864         * modules/memchr-obsolete: New file.
7865         * m4/memchr-obsolete.m4: New file.
7866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7867         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7868         * modules/memchr (Depends-on): Add memchr-obsolete.
7869         * modules/strnlen (Depends-on): Likewise.
7870         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7871
7872 2011-04-25  Jim Meyering  <meyering@redhat.com>
7873
7874         maint.mk: makefile_at_at_check extend and clean up
7875         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7876         in addition to */Makefile.am.
7877         Exempt legitimate uses of @VAR@ notation, e.g.,
7878         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7879         Remove obsolete coreutils-specific comment.
7880         Prompted by discussion here:
7881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7882
7883 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7884
7885         strtoul: remove dependency on strtol
7886         This is so that 'configure' need not check for strtol merely because
7887         the application needs strtoul.
7888         * modules/strtoul (Files): Add lib/strtol.c.
7889         (Depends-on): Remove strtol.
7890
7891         strtoull: remove dependency on strtoul
7892         This is like the strtoll change.
7893         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7894         (Depends-on): Remove strtoul.
7895
7896         strtoll: remove dependency on strtol
7897         This is so that 'configure' need not check for strtol merely because
7898         the application needs strtoll.
7899         * modules/strtoll (Files): Add lib/strtol.c.
7900         (Depends-on): Remove strtol.
7901
7902 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7903
7904         inttypes: Move some configure check to module 'imaxdiv'.
7905         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7906         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7907         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7908
7909 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7910
7911         inttypes: Move some configure check to module 'imaxabs'.
7912         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7913         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7914         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7915
7916 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7917
7918         inttypes: Remove configure tests that are not needed since 2009-12-31.
7919         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7920         gl_cv_header_working_inttypes_h.
7921
7922 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7923
7924         * modules/strnlen (Depends-on): Remove memchr.
7925         The strnlen implementation doesn't need the memchr module's fixes; see
7926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7927
7928         strtol: remove dependency on wchar
7929         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7930         * modules/strtol (Depends-on): Remove wchar.
7931
7932 2011-04-21  Eric Blake  <eblake@redhat.com>
7933
7934         passfd: fix test regression on Linux
7935         * modules/passfd-tests (configure.ac): Correct socketpair check.
7936
7937         passfd: speed up configure and drop unused code
7938         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7939         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7940         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7941         Instead of probing at configure for unix_scm_rights_bsd44_way,
7942         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7943         check to a struct member probe.
7944         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7945         (sendfd, recvfd): Update preprocessor checks.
7946         * modules/passfd (Files): Reflect rename, and drop unused file.
7947         (Depends-on): Drop unused dependency.
7948
7949         passfd: allow compilation on mingw
7950         * modules/sys_socket (Depends-on): Add sys_uio.
7951         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7952         iovec and a minimal struct msghdr.
7953         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7954         * tests/test-sys_socket.c (main): Enhance test.
7955         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7956         guaranteed to provide what we need.
7957         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7958         * modules/passfd-tests (Depends-on): Add sys_wait.
7959         * tests/test-passfd.c (main): Skip test on mingw, for now.
7960         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7961         partial 'struct msghdr' implementation.
7962
7963         sys_uio: new module
7964         * modules/sys_uio: New module.
7965         * modules/sys_uio-tests: Likewise.
7966         * lib/sys_uio.in.h: New file.
7967         * m4/sys_uio_h.m4: Likewise.
7968         * tests/test-sys_uio.c: Likewise.
7969         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7970         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7971
7972 2011-04-20  Jim Meyering  <meyering@redhat.com>
7973
7974         useless-if-before-free: avoid false-positive
7975         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7976         disjunct so that it too requires a terminating ";".  Without that,
7977         this script would identify as useless one statement from gcc that
7978         was not:
7979           if (aligned_ptr)
7980             free (((void **) aligned_ptr) [-1]);
7981
7982 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7983
7984         doc: update users.txt.
7985         * users.txt: Add barcode.
7986
7987 2011-04-19  Bruno Haible  <bruno@clisp.org>
7988
7989         ioctl: Remove link dependency on native Windows.
7990         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7991         (gl_close_fn, gl_ioctl_fn): New types.
7992         (struct fd_hook): Renamed from struct close_hook. Change type of
7993         private_close_fn field. Add private_ioctl_fn field.
7994         (close_hook_fn): Add parameter for primary close method.
7995         (execute_close_hooks, execute_all_close_hooks): Likewise.
7996         (ioctl_hook_fn): New type.
7997         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7998         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7999         argument.
8000         (unregister_fd_hook): Renamed from unregister_close_hook.
8001         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8002         Don't include <unistd.h>.
8003         (close): Remove undef.
8004         (anchor): Update.
8005         (execute_close_hooks): Add argument for primary close method.
8006         (execute_all_close_hooks): Likewise.
8007         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8008         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8009         argument. Allow each argument to be NULL.
8010         (unregister_fd_hook): Renamed from unregister_close_hook.
8011         * lib/close.c (rpl_close): Pass 'close' function pointer to
8012         execute_all_close_hooks.
8013         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8014         (primary_ioctl): New function.
8015         (ioctl): Don't call ioctlsocket here. Instead, call
8016         execute_all_ioctl_hooks.
8017         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8018         close method.
8019         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8020         (fd_sockets_hook): Renamed from close_sockets_hook.
8021         (gl_sockets_startup, gl_sockets_cleanup): Update.
8022         * modules/fd-hook: Renamed from modules/close-hook. Update.
8023         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8024         * modules/sockets (Depends-on): Likewise.
8025         * modules/ioctl (Depends-on): Add fd-hook.
8026         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8027         GNULIB_SOCKET.
8028
8029 2011-04-19  Bruno Haible  <bruno@clisp.org>
8030
8031         Move the support of O_NONBLOCK in open() to the 'open' module.
8032         * modules/nonblocking (Depends-on): Remove 'open'.
8033         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8034         gl_cv_have_open_O_NONBLOCK.
8035         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8036         O_NONBLOCK support.
8037         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8038
8039 2011-04-17  Bruno Haible  <bruno@clisp.org>
8040
8041         pipe2: Simplify code.
8042         * lib/pipe2.c (pipe2): Reduce code duplication.
8043
8044 2011-04-17  Bruno Haible  <bruno@clisp.org>
8045
8046         nonblocking: Add comment.
8047         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8048
8049 2011-04-17  Bruno Haible  <bruno@clisp.org>
8050
8051         nonblocking: Add tests for sockets.
8052         * tests/test-nonblocking-socket.sh: New file.
8053         * tests/test-nonblocking-socket-main.c: New file.
8054         * tests/test-nonblocking-socket-child.c: New file.
8055         * tests/test-nonblocking-socket.h: New file.
8056         * tests/socket-server.h: New file.
8057         * tests/socket-client.h: New file.
8058         * modules/nonblocking-socket-tests: New file.
8059         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8060
8061 2011-04-17  Bruno Haible  <bruno@clisp.org>
8062
8063         nonblocking: Add tests for pipes.
8064         * tests/test-nonblocking-pipe.sh: New file.
8065         * tests/test-nonblocking-pipe-main.c: New file.
8066         * tests/test-nonblocking-pipe-child.c: New file.
8067         * tests/test-nonblocking-pipe.h: New file.
8068         * tests/test-nonblocking-writer.h: New file.
8069         * tests/test-nonblocking-reader.h: New file.
8070         * tests/test-nonblocking-misc.h: New file.
8071         * modules/nonblocking-pipe-tests: New file.
8072         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8073
8074 2011-04-16  Bruno Haible  <bruno@clisp.org>
8075
8076         gettext: Clarify the needed programmer actions.
8077         * modules/gettext (Notice): New field.
8078         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8079
8080 2011-04-16  Bruno Haible  <bruno@clisp.org>
8081
8082         strchrnul: Tweak last commit.
8083         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8084         bug.
8085         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8086         as in _GL_FUNCDECL_SYS.
8087         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8088         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8089
8090 2011-04-15  Eric Blake  <eblake@redhat.com>
8091
8092         strchrnul: work around cygwin bug
8093         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8094         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8096         * modules/string (Makefile.am): Substitute it.
8097         * lib/string.in.h (strchrnul): Use it.
8098
8099 2011-04-15  Bruno Haible  <bruno@clisp.org>
8100
8101         Don't require lib/stdio-write.c when only module 'stdio' is used.
8102         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8103         invocation.
8104         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8105
8106 2011-04-14  Bruno Haible  <bruno@clisp.org>
8107
8108         Support non-blocking pipe I/O in read() on native Windows.
8109         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8110         (read): New declaration.
8111         * lib/read.c: New file.
8112         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8113         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8114         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8115         vscanf): New declarations.
8116         * lib/stdio-read.c: New file.
8117         * m4/read.m4: New file.
8118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8119         REPLACE_READ.
8120         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8121         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8122         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8123         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8124         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8125         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8126         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8127         * modules/read: New file.
8128         * modules/nonblocking (Files): Add lib/stdio-read.c.
8129         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8130         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8131         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8132         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8133         * modules/pread (Depends-on): Add read.
8134         * modules/safe-read (Depends-on): Likewise.
8135         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8136         gets, scanf, vfscanf, vscanf): Verify signatures.
8137         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8138         problem with non-blocking pipes.
8139         * doc/posix-functions/fgetc.texi: Likewise.
8140         * doc/posix-functions/fgets.texi: Likewise.
8141         * doc/posix-functions/fread.texi: Likewise.
8142         * doc/posix-functions/fscanf.texi: Likewise.
8143         * doc/posix-functions/getc.texi: Likewise.
8144         * doc/posix-functions/getchar.texi: Likewise.
8145         * doc/posix-functions/gets.texi: Likewise.
8146         * doc/posix-functions/scanf.texi: Likewise.
8147         * doc/posix-functions/vfscanf.texi: Likewise.
8148         * doc/posix-functions/vscanf.texi: Likewise.
8149
8150 2011-04-14  Bruno Haible  <bruno@clisp.org>
8151
8152         Support non-blocking pipe I/O in write() on native Windows.
8153         * lib/write.c (rpl_write): Split a write request that failed merely
8154         because the byte count was larger than the pipe buffer's size.
8155         * doc/posix-functions/write.texi: Mention the problem with large byte
8156         counts.
8157
8158 2011-04-14  Bruno Haible  <bruno@clisp.org>
8159
8160         wchar: Ensure that wchar_t gets defined on uClibc.
8161         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8162         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8163
8164 2011-04-13  Bruno Haible  <bruno@clisp.org>
8165
8166         safe-write, full-read: Avoid unnecessary compilation units.
8167         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8168         (Depends-on): Remove safe-read. Add ssize_t.
8169         * modules/full-read (Files): Add lib/full-write.c.
8170         (Depends-on): Add full-write.
8171
8172 2011-04-13  Bruno Haible  <bruno@clisp.org>
8173
8174         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8175         * modules/pwrite (Depends-on): Add 'write'.
8176
8177 2011-04-13  Bruno Haible  <bruno@clisp.org>
8178
8179         Support non-blocking pipe I/O in write() on native Windows.
8180         * lib/unistd.in.h (write): Enable replacement also if
8181         GNULIB_UNISTD_H_NONBLOCKING is 1.
8182         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8183         (rpl_write): When failing to write on a non-blocking pipe, change
8184         errno from ENOSPC to EAGAIN.
8185         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8186         putchar, puts, vfprintf, vprintf): Enable replacement also if
8187         GNULIB_STDIO_H_NONBLOCKING is 1.
8188         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8189         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8190         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8191         CALL_WITH_SIGPIPE_EMULATION.
8192         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8193         * m4/nonblocking.m4: New file.
8194         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8195         for non-blocking I/O support.
8196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8197         GNULIB_UNISTD_H_NONBLOCKING.
8198         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8199         required for non-blocking I/O support.
8200         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8201         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8202         lib/stdio-write.c, m4/asm-underscore.m4.
8203         (Depends-on): Add stdio, unistd.
8204         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8205         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8206         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8207         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8208         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8209         problem with non-blocking pipes.
8210         * doc/posix-functions/fputc.texi: Likewise.
8211         * doc/posix-functions/fputs.texi: Likewise.
8212         * doc/posix-functions/fwrite.texi: Likewise.
8213         * doc/posix-functions/printf.texi: Likewise.
8214         * doc/posix-functions/putc.texi: Likewise.
8215         * doc/posix-functions/putchar.texi: Likewise.
8216         * doc/posix-functions/puts.texi: Likewise.
8217         * doc/posix-functions/vfprintf.texi: Likewise.
8218         * doc/posix-functions/vprintf.texi: Likewise.
8219         * doc/posix-functions/write.texi: Likewise.
8220
8221 2011-04-10  Jim Meyering  <meyering@redhat.com>
8222
8223         maint.mk: prohibit doubled words
8224         Detect them also when they're separated by a newline.
8225         There are 3 ways to customize it:
8226           - disable the test on a per file basis, as usual with rules using
8227             $(VC_LIST_EXCEPT)
8228           - replace the default doubled-word-selecting regexp (affects all files)
8229           - ignore a particular file-vs-doubled-word match
8230         I nearly used that last one to ignore the "is is" match in
8231         coreutils' NEWS file, since the text was "ls -is is ..."
8232         To do that, I would have added this line to cfg.mk:
8233           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8234         but it would have ignored any "is is" match in NEWS.
8235         Low probability, but still...
8236         Instead, I changed the text, slightly:
8237           -  ls -is is now consistent with ls -lis in ignoring values returned
8238           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8239         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8240         (prohibit_doubled_word_): Define.
8241         (sc_prohibit_doubled_word): New rule.
8242         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8243
8244 2011-04-10  Jim Meyering  <meyering@redhat.com>
8245
8246         maint: fix doubled-word typo in comment
8247         * m4/gethostname.m4: s/is is/it is/
8248         * m4/getdomainname.m4: Likewise.
8249
8250 2011-04-10  Jim Meyering  <meyering@redhat.com>
8251
8252         maint: remove doubled word: s/it it/it/
8253         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8254
8255 2011-04-10  Jim Meyering  <meyering@redhat.com>
8256
8257         maint.mk: remove useless semicolon and backslash
8258         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8259         semicolon and backslash.
8260
8261 2011-04-10  Bruno Haible  <bruno@clisp.org>
8262
8263         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8264         * modules/stdint-tests (Depends-on): Add wchar.
8265
8266 2011-04-10  Jim Meyering  <meyering@redhat.com>
8267
8268         maint: remove doubled words in comments, e.g., s/a a/a/
8269         * lib/strptime.c (day_of_the_week): s/the the/the/
8270         * tests/test-chown.h (test_chown): s/a a/a/
8271
8272         test-chown.h: correct a cast
8273         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8274         when the destination is a stat.st_gid.
8275
8276 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8277
8278         getaddrinfo: Fix test for sa_len member.
8279         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8280         include <sys/types.h> before <sys/socket.h>.
8281
8282 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8283
8284         maint: change "can not" to "cannot"
8285         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8286         boundaries.
8287
8288 2011-04-09  Jim Meyering  <meyering@redhat.com>
8289
8290         maint: change "a a" to "a"
8291         * tests/test-lchown.h (test_lchown): s/a a/a/
8292
8293         maint.mk: prohibit \<the the\>
8294         * top/maint.mk (sc_prohibit_the_the): New rule.
8295
8296         maint: fix "the the" in comment
8297         * lib/count-one-bits.h: s/the the/the/
8298
8299         maint: change "can not" to "cannot"
8300         But do not change the occurrences in maintain.texi or in
8301         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8302         * doc/gnulib-tool.texi: s/can not/cannot/
8303         * doc/posix-functions/accept.texi (accept): Likewise.
8304         * doc/posix-functions/socket.texi (socket): Likewise.
8305         * lib/mbrtowc.c: Likewise.
8306
8307         maint.mk: prohibit use of "can not"
8308         * top/maint.mk (sc_prohibit_can_not): New rule.
8309         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8310
8311 2011-04-09  Bruno Haible  <bruno@clisp.org>
8312
8313         careadlinkat: Guard against misuse of careadlinkatcwd.
8314         * lib/careadlinkat.c: Include <stdlib.h>.
8315         (careadlinkatcwd): Check that the fd argument is as expected.
8316
8317 2011-04-09  Bruno Haible  <bruno@clisp.org>
8318
8319         careadlinkat: Use common coding style.
8320         * lib/careadlinkat.c: Move gnulib includes after system includes.
8321
8322 2011-04-09  Bruno Haible  <bruno@clisp.org>
8323
8324         careadlinkat: Clarify specification.
8325         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8326         (careadlinkatcwd): Add comment.
8327         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8328
8329 2011-04-09  Bruno Haible  <bruno@clisp.org>
8330
8331         areadlinkat: Avoid link error on many platforms.
8332         * modules/areadlinkat (Depends-on): Add areadlink.
8333
8334 2011-04-09  Bruno Haible  <bruno@clisp.org>
8335
8336         allocator, careadlinkat: Fix double-inclusion guard.
8337         * lib/allocator.h: Fix double-inclusion guard.
8338         * lib/careadlinkat.h: Likewise.
8339
8340 2011-04-09  Bruno Haible  <bruno@clisp.org>
8341
8342         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8343         * lib/relocwrapper.c: Update dependencies hierarchy.
8344         * build-aux/install-reloc: Update list of files to be compiled.
8345         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8346         lib/allocator.[hc].
8347
8348 2011-04-08  Eric Blake  <eblake@redhat.com>
8349
8350         strftime: silence gnulib-tool warning
8351         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8352
8353 2011-04-08  Bruno Haible  <bruno@clisp.org>
8354
8355         verify: Fix syntax error with GCC 4.6 in C++ mode.
8356         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8357         (HAVE_STATIC_ASSERT): New macro.
8358         (verify_true, verify): Use 'static_assert' if it is supported and
8359         '_Static_assert' is not supported.
8360
8361 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8362
8363         allocator: New module.
8364         * modules/allocator, lib/allocator.c: New files.
8365         * lib/allocator.h (stdlib_allocator): New decl.
8366         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8367         Remove.  Do not include <stdlib.h>.
8368         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8369         * modules/careadlinkat (Files): Remove lib/allocator.h.
8370         (Depends-on): Add allocator.
8371
8372         stdlib: let modules use system malloc, realloc
8373         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8374         if !_GL_USE_STDLIB_ALLOC.
8375         (malloc, realloc): Limit this change to a smaller scope.
8376
8377         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8378         (malloc, realloc): Don't #undef; no longer needed.
8379         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8380         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8381         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8382         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8383         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8384         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8385         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8386         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8387
8388         careadlinkat: rename members to avoid problem
8389         * lib/allocator.h (struct allocator): Rename members from
8390         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8391         and realloc are #define'd.  Reported by Eric Blake in
8392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8393         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8394
8395 2011-04-08  Eric Blake  <eblake@redhat.com>
8396
8397         nonblocking: reduce dependency
8398         * tests/test-nonblocking.c: Only test sockets when in use.
8399         * modules/nonblocking-tests (Depends-on): Drop socket.
8400         (Makefile.am): Link even if sockets are not present.
8401         * modules/pipe2-tests (Makefile.am): Likewise.
8402         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8403
8404         pipe2: fix O_NONBLOCK support on mingw
8405         * modules/pipe2 (Depends-on): Add nonblocking.
8406         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8407         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8408         * tests/test-nonblocking.c (main): Likewise.
8409         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8410
8411         fcntl-h: fix O_ACCMODE on cygwin
8412         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8413         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8414
8415         pipe-filter: drop O_NONBLOCK workarounds
8416         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8417         * modules/pipe-filter-ii (Depends-on): Likewise.
8418         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8419
8420         nonblocking: provide O_NONBLOCK for mingw
8421         * modules/nonblocking (Depends-on): Add open.
8422         (configure.ac): Set new witness macro.
8423         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8424         * modules/fcntl-h (Makefile.am): Substitute it.
8425         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8426         nonblocking module is in use.
8427         * lib/nonblocking.c: Adjust portability test.
8428         * lib/open.c (open): Don't let native open see gnulib flag.
8429         * tests/test-fcntl-h.c (main): Enhance test.
8430         * tests/test-open.h (test_open): Likewise.
8431         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8432
8433         careadlinkat: fix compilation error on mingw
8434         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8435         within struct allocator.
8436
8437 2011-04-06  Eric Blake  <eblake@redhat.com>
8438
8439         binary-io: relicense under LGPLv2+
8440         * modules/binary-io (License): Relax to LGPLv2+.
8441         Requested for libvirt, and required by pipe2.
8442
8443 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8444
8445         verify: use _Static_assert if available
8446         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8447         (verify_true, verify): Use it if available.  This generates better
8448         diagnostics with GCC 4.6.0 and later.
8449
8450 2011-04-05  Bruno Haible  <bruno@clisp.org>
8451
8452         Remove leftover generated .h files after config.status changed.
8453
8454         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8455         GL_GENERATE_ALLOCA_H.
8456         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8457         GL_GENERATE_ALLOCA_H evaluates to false.
8458
8459         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8460         GL_GENERATE_ARGZ_H.
8461         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8462         evaluates to false.
8463
8464         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8465         GL_GENERATE_BYTESWAP_H.
8466         * modules/byteswap (Makefile.am): Remove byteswap.h if
8467         GL_GENERATE_BYTESWAP_H evaluates to false.
8468
8469         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8470         GL_GENERATE_ERRNO_H.
8471         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8472         evaluates to false.
8473
8474         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8475         GL_GENERATE_FLOAT_H.
8476         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8477         evaluates to false.
8478
8479         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8480         GL_GENERATE_FNMATCH_H.
8481         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8482         GL_GENERATE_FNMATCH_H evaluates to false.
8483
8484         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8485         GL_GENERATE_GLOB_H.
8486         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8487         evaluates to false.
8488
8489         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8490         automake conditional GL_GENERATE_ICONV_H.
8491         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8492         evaluates to false.
8493
8494         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8495         GL_GENERATE_NETINET_IN_H.
8496         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8497         GL_GENERATE_NETINET_IN_H evaluates to false.
8498
8499         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8500         conditional GL_GENERATE_PTHREAD_H.
8501         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8502         * modules/pthread (Makefile.am): Remove pthread.h if
8503         GL_GENERATE_PTHREAD_H evaluates to false.
8504
8505         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8506         GL_GENERATE_SCHED_H.
8507         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8508         evaluates to false.
8509
8510         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8511         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8512         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8513         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8514
8515         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8516         GL_GENERATE_STDARG_H.
8517         * modules/stdarg (Makefile.am): Remove stdarg.h if
8518         GL_GENERATE_STDARG_H evaluates to false.
8519
8520         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8521         GL_GENERATE_STDBOOL_H.
8522         * modules/stdbool (Makefile.am): Remove stdbool.h if
8523         GL_GENERATE_STDBOOL_H evaluates to false.
8524
8525         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8526         conditional GL_GENERATE_STDDEF_H.
8527         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8528         * modules/stddef (Makefile.am): Remove stddef.h if
8529         GL_GENERATE_STDDEF_H evaluates to false.
8530
8531         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8532         GL_GENERATE_STDINT_H.
8533         * modules/stdint (Makefile.am): Remove stdint.h if
8534         GL_GENERATE_STDINT_H evaluates to false.
8535
8536         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8537         GL_GENERATE_SYSEXITS_H.
8538         * modules/sysexits (Makefile.am): Remove sysexits.h if
8539         GL_GENERATE_SYSEXITS_H evaluates to false.
8540
8541         Reported by Karl Berry and Ralf Wildenhues.
8542
8543 2011-04-05  Bruno Haible  <bruno@clisp.org>
8544
8545         Ensure to rebuild generated .h files when config.status has changed.
8546         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8547         config.status.
8548         * modules/ctype (Makefile.am): Likewise.
8549         * modules/dirent (Makefile.am): Likewise.
8550         * modules/errno (Makefile.am): Likewise.
8551         * modules/fcntl-h (Makefile.am): Likewise.
8552         * modules/float (Makefile.am): Likewise.
8553         * modules/getopt-posix (Makefile.am): Likewise.
8554         * modules/glob (Makefile.am): Likewise.
8555         * modules/iconv-h (Makefile.am): Likewise.
8556         * modules/inttypes (Makefile.am): Likewise.
8557         * modules/langinfo (Makefile.am): Likewise.
8558         * modules/locale (Makefile.am): Likewise.
8559         * modules/math (Makefile.am): Likewise.
8560         * modules/netdb (Makefile.am): Likewise.
8561         * modules/netinet_in (Makefile.am): Likewise.
8562         * modules/poll-h (Makefile.am): Likewise.
8563         * modules/pthread (Makefile.am): Likewise.
8564         * modules/pty (Makefile.am): Likewise.
8565         * modules/sched (Makefile.am): Likewise.
8566         * modules/search (Makefile.am): Likewise.
8567         * modules/selinux-h (Makefile.am): Likewise.
8568         * modules/signal (Makefile.am): Likewise.
8569         * modules/spawn (Makefile.am): Likewise.
8570         * modules/stdarg (Makefile.am): Likewise.
8571         * modules/stdbool (Makefile.am): Likewise.
8572         * modules/stddef (Makefile.am): Likewise.
8573         * modules/stdint (Makefile.am): Likewise.
8574         * modules/stdio (Makefile.am): Likewise.
8575         * modules/stdlib (Makefile.am): Likewise.
8576         * modules/string (Makefile.am): Likewise.
8577         * modules/strings (Makefile.am): Likewise.
8578         * modules/sys_file (Makefile.am): Likewise.
8579         * modules/sys_ioctl (Makefile.am): Likewise.
8580         * modules/sys_select (Makefile.am): Likewise.
8581         * modules/sys_socket (Makefile.am): Likewise.
8582         * modules/sys_stat (Makefile.am): Likewise.
8583         * modules/sys_time (Makefile.am): Likewise.
8584         * modules/sys_times (Makefile.am): Likewise.
8585         * modules/sys_utsname (Makefile.am): Likewise.
8586         * modules/sys_wait (Makefile.am): Likewise.
8587         * modules/sysexits (Makefile.am): Likewise.
8588         * modules/termios (Makefile.am): Likewise.
8589         * modules/time (Makefile.am): Likewise.
8590         * modules/unistd (Makefile.am): Likewise.
8591         * modules/wchar (Makefile.am): Likewise.
8592         * modules/wctype-h (Makefile.am): Likewise.
8593         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8594
8595 2011-04-05  Bruno Haible  <bruno@clisp.org>
8596
8597         pipe2: Relicense under LGPLv2+.
8598         * modules/pipe2 (License): Change to LGPLv2+.
8599         Requested by Eric Blake, for libvirt.
8600
8601 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8602
8603         bootstrap: compute gnulib_extra_files after updating build_aux
8604         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8605         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8606
8607 2011-04-05  Eric Blake  <eblake@redhat.com>
8608
8609         bootstrap: preserve git whitelist item sorting
8610         * build-aux/bootstrap (sort_patterns): New function.
8611         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8612
8613 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8614
8615         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8616         sc_space_tab check.
8617
8618 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8619
8620         areadlink, areadlinkat: rewrite in terms of careadlinkat
8621         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8622         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8623         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8624         (malloc, realloc): Remove #undefs.
8625         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8626         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8627         readlink, ssize_t, stdint, unistd.
8628         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8629         areadlink, stdint.
8630
8631         careadlinkat: new module
8632         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8633         * modules/careadlinkat: New files, written by me with
8634         a review and feedback from Ben Pfaff in
8635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8636
8637 2011-04-01  Bruno Haible  <bruno@clisp.org>
8638
8639         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8640         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8641         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8642         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8643         Reported by Bruce Korb <bruce.korb@gmail.com>.
8644
8645 2011-04-01  Bruno Haible  <bruno@clisp.org>
8646
8647         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8648         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8649         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8650         * modules/wcpcpy (Depends-on): Add extensions.
8651         * modules/wcpncpy (Depends-on): Likewise.
8652         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8653         systems.
8654         * doc/posix-functions/wcpncpy.texi: Likewise.
8655         * doc/posix-functions/wcwidth.texi: Likewise.
8656
8657 2011-03-31  Eric Blake  <eblake@redhat.com>
8658
8659         nonblocking: fix mingw test failures
8660         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8661         non-blocking flag on regular file.
8662         (get_nonblocking_flag): Set errno on invalid fd.
8663         * tests/test-nonblocking.c (main): Avoid test failure on
8664         directories if fchdir is not active.
8665         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8666
8667 2011-03-31  Bruno Haible  <bruno@clisp.org>
8668
8669         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8670         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8671         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8672         Reported by Simon Josefsson <simon@josefsson.org>.
8673
8674 2011-03-31  Bruno Haible  <bruno@clisp.org>
8675         and Eric Blake  <eblake@redhat.com>
8676
8677         nonblocking: new module
8678         * modules/nonblocking: New module.
8679         * modules/nonblocking-tests: Likewise.
8680         * lib/nonblocking.h: New file.
8681         * lib/nonblocking.c: Likewise.
8682         * tests/test-nonblocking.c: New test.
8683         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8684
8685 2011-03-30  Bruno Haible  <bruno@clisp.org>
8686
8687         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8688         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8689         instead of 'printf' format for GCC >= 4.4.
8690         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8691         (fprintf, printf, vfprintf, vprintf): Declare with
8692         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8693         the system's vfprintf() function.
8694         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8695
8696 2011-03-30  Eric Blake  <eblake@redhat.com>
8697
8698         passfd: fix scoping bug
8699         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8700         before sendmsg/recvmsg.
8701
8702         passfd: standardize coding conventions
8703         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8704         can be learned at compile time.
8705         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8706         ifdefs.
8707         (sendfd, recvfd): Follow gnulib code conventions.
8708
8709         passfd: fix incorrect sendmsg arguments
8710         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8711         incorrect msg_controllen value.
8712         * modules/passfd-tests (Depends-on): Check for alarm.
8713         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8714         Reported by Bastien ROUCARIES.
8715
8716 2011-03-30  Bruno Haible  <bruno@clisp.org>
8717
8718         c-strcasestr: Relicense under LGPLv2+.
8719         * modules/c-strcasestr (License): Change to LGPLv2+.
8720         Requested by Eric Blake, for libvirt.
8721
8722 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8723
8724         * users.txt: Add libidn2.  Fix libtasn1 link.
8725
8726 2011-03-30  Jim Meyering  <meyering@redhat.com>
8727
8728         tests: readlink* ("",... fails with EINVAL on newer kernels
8729         readlink and readlinkat have typically failed with ENOENT for
8730         the invalid, empty file name,  "".  However, with the advent
8731         of linux-2.6.39, they fail with EINVAL.
8732         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8733         when operating on the empty file name.
8734         * tests/test-readlink.h (test_readlink): Likewise.
8735
8736 2011-03-29  Bruno Haible  <bruno@clisp.org>
8737
8738         Relicense some modules under LGPLv2+, for libidn2.
8739         * modules/array-mergesort (License): Change to LGPLv2+.
8740         * modules/c-strcaseeq (License): Likewise.
8741         * modules/striconveh (License): Likewise.
8742         * modules/striconveha (License): Likewise.
8743         * modules/uniconv/base (License): Likewise.
8744         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8745         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8746         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8747         * modules/unictype/base (License): Likewise.
8748         * modules/unictype/bidiclass-of (License): Likewise.
8749         * modules/unictype/category-M (License): Likewise.
8750         * modules/unictype/category-none (License): Likewise.
8751         * modules/unictype/category-of (License): Likewise.
8752         * modules/unictype/category-test (License): Likewise.
8753         * modules/unictype/category-test-withtable (License): Likewise.
8754         * modules/unictype/combining-class (License): Likewise.
8755         * modules/unictype/joiningtype-of (License): Likewise.
8756         * modules/unictype/scripts (License): Likewise.
8757         * modules/uninorm/base (License): Likewise.
8758         * modules/uninorm/canonical-decomposition (License): Likewise.
8759         * modules/uninorm/composition (License): Likewise.
8760         * modules/uninorm/decompose-internal (License): Likewise.
8761         * modules/uninorm/decomposition-table (License): Likewise.
8762         * modules/uninorm/nfc (License): Likewise.
8763         * modules/uninorm/nfd (License): Likewise.
8764         * modules/uninorm/u32-normalize (License): Likewise.
8765         * modules/unistr/base (License): Likewise.
8766         * modules/unistr/u32-cpy (License): Likewise.
8767         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8768         * modules/unistr/u32-to-u8 (License): Likewise.
8769         * modules/unistr/u32-uctomb (License): Likewise.
8770         * modules/unistr/u8-check (License): Likewise.
8771         * modules/unistr/u8-mblen (License): Likewise.
8772         * modules/unistr/u8-mbtouc (License): Likewise.
8773         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8774         * modules/unistr/u8-mbtoucr (License): Likewise.
8775         * modules/unistr/u8-prev (License): Likewise.
8776         * modules/unistr/u8-strlen (License): Likewise.
8777         * modules/unistr/u8-to-u32 (License): Likewise.
8778         * modules/unistr/u8-uctomb (License): Likewise.
8779         * modules/unitypes (License): Likewise.
8780         Requested by Simon Josefsson.
8781
8782 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8783
8784         lib-symbol-visibility: Add a notice.
8785         * modules/lib-symbol-visibility (Notice): New field.
8786
8787 2011-03-29  Bruno Haible  <bruno@clisp.org>
8788
8789         getaddrinfo: Doc fix.
8790         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8791         section "fixed in Gnulib".
8792
8793 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8794
8795         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8796         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8797
8798 2011-03-26  Bruno Haible  <bruno@clisp.org>
8799
8800         unictype/property-byname: Reduce the number of load-time relocations.
8801         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8802         (UC_PROPERTY_INDEX_*): New enumeration values.
8803         (uc_property_byname): Convert an index from the lookup table to an
8804         uc_property_t.
8805         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8806         values.
8807
8808 2011-03-26  Bruno Haible  <bruno@clisp.org>
8809
8810         unictype/property-byname: Allow omitted word separators and aliases.
8811         * lib/unictype/pr_byname.gperf: Add property names without word
8812         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8813         for 'space'.
8814
8815 2011-03-26  Bruno Haible  <bruno@clisp.org>
8816
8817         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8818         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8819         also hyphens to space.
8820         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8821         without spaces.
8822         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8823
8824 2011-03-26  Bruno Haible  <bruno@clisp.org>
8825
8826         unictype/joiningtype-byname: Recognize long names as well.
8827         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8828         a long name.
8829         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8830         unictype/joiningtype_byname.h.
8831         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8832         * lib/unictype/joiningtype_byname.gperf: New file.
8833         * modules/unictype/joiningtype-byname (Files): Add
8834         lib/unictype/joiningtype_byname.gperf.
8835         (Depends-on): Add gperf.
8836         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8837         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8838         long names.
8839
8840         Tests for module 'unictype/joiningtype-longname'.
8841         * modules/unictype/joiningtype-longname-tests: New file.
8842         * tests/unictype/test-joiningtype_longname.c: New file.
8843
8844         New module 'unictype/joiningtype-longname'.
8845         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8846         * lib/unictype/joiningtype_longname.c: New file.
8847         * modules/unictype/joiningtype-longname: New file.
8848         * modules/unictype/joiningtype-all (Depends-on): Add
8849         unictype/joiningtype-longname.
8850
8851 2011-03-26  Bruno Haible  <bruno@clisp.org>
8852
8853         unictype/bidiclass-byname: Recognize long names as well.
8854         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8855         name.
8856         * lib/unictype/bidi_byname.c: Include <string.h>,
8857         unictype/bidi_byname.h.
8858         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8859         * lib/unictype/bidi_byname.gperf: New file.
8860         * modules/unictype/bidiclass-byname (Files): Add
8861         lib/unictype/bidi_byname.gperf.
8862         (Depends-on): Add gperf.
8863         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8864         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8865         long names.
8866
8867         Tests for module 'unictype/bidiclass-longname'.
8868         * modules/unictype/bidiclass-longname-tests: New file.
8869         * tests/unictype/test-bidi_longname.c: New file.
8870
8871         New module 'unictype/bidiclass-longname'.
8872         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8873         * lib/unictype/bidi_longname.c: New file.
8874         * modules/unictype/bidiclass-longname: New file.
8875         * modules/unictype/bidiclass-all (Depends-on): Add
8876         unictype/bidiclass-longname.
8877
8878 2011-03-26  Bruno Haible  <bruno@clisp.org>
8879
8880         unictype/bidi*: Rename modules.
8881         * modules/unictype/bidiclass-all: Renamed from
8882         modules/unictype/bidicategory-all.
8883         * modules/unictype/bidiclass-name: Renamed from
8884         modules/unictype/bidiclass-name.
8885         (Description): Update.
8886         * modules/unictype/bidiclass-name-tests: Renamed from
8887         modules/unictype/bidicategory-name-tests.
8888         * modules/unictype/bidiclass-byname: Renamed from
8889         modules/unictype/bidicategory-byname.
8890         (Description): Update.
8891         * modules/unictype/bidiclass-byname-tests: Renamed from
8892         modules/unictype/bidicategory-byname-tests.
8893         * modules/unictype/bidiclass-of: Renamed from
8894         modules/unictype/bidicategory-of.
8895         (Description): Update.
8896         * modules/unictype/bidiclass-of-tests: Renamed from
8897         modules/unictype/bidicategory-of-tests.
8898         * modules/unictype/bidiclass-test: Renamed from
8899         modules/unictype/bidicategory-test.
8900         (Description): Update.
8901         * modules/unictype/bidiclass-test-tests: Renamed from
8902         modules/unictype/bidicategory-test-tests.
8903         * modules/unictype/bidicategory-all: New file, a simple redirection.
8904         * modules/unictype/bidicategory-name: Likewise.
8905         * modules/unictype/bidicategory-byname: Likewise.
8906         * modules/unictype/bidicategory-of: Likewise.
8907         * modules/unictype/bidicategory-test: Likewise.
8908         * modules/unictype/property-bidi-* (Dependencies): Update.
8909         * lib/unictype/bidi_*.c: Update comment.
8910
8911 2011-03-26  Bruno Haible  <bruno@clisp.org>
8912
8913         unictype/bidi*: Rename functions, part 2.
8914         * modules/unictype/bidicategory-name (configure.ac): Update required
8915         libunistring version.
8916         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8917
8918 2011-03-25  Bruno Haible  <bruno@clisp.org>
8919
8920         New module 'unictype/combining-class-all'.
8921         * modules/unictype/combining-class-all: New file.
8922
8923         Tests for module 'unictype/combining-class-byname'.
8924         * modules/unictype/combining-class-byname-tests: New file.
8925         * tests/unictype/test-combiningclass_byname.c: New file.
8926
8927         New module 'unictype/combining-class-byname'.
8928         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8929         * lib/unictype/combiningclass_byname.c: New file.
8930         * lib/unictype/combiningclass_byname.gperf: New file.
8931         * modules/unictype/combining-class-byname: New file.
8932
8933         Tests for module 'unictype/combining-class-longname'.
8934         * modules/unictype/combining-class-longname-tests: New file.
8935         * tests/unictype/test-combiningclass_longname.c: New file.
8936
8937         New module 'unictype/combining-class-longname'.
8938         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8939         * lib/unictype/combiningclass_longname.c: New file.
8940         * modules/unictype/combining-class-longname: New file.
8941
8942         Tests for module 'unictype/combining-class-name'.
8943         * modules/unictype/combining-class-name-tests: New file.
8944         * tests/unictype/test-combiningclass_name.c: New file.
8945
8946         New module 'unictype/combining-class-name'.
8947         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8948         * lib/unictype/combiningclass_name.c: New file.
8949         * modules/unictype/combining-class-name: New file.
8950
8951 2011-03-25  Bruno Haible  <bruno@clisp.org>
8952
8953         unictype/combining-class: Rename source files.
8954         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8955         of unictype/combining.h.
8956         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8957         Update.
8958         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8959         * modules/unictype/combining-class (Description): Fix.
8960         (Files, Makefile.am): Update.
8961         * tests/unictype/test-combiningclass.c: Renamed from
8962         tests/unictype/test-combining.c.
8963         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8964
8965 2011-03-25  Bruno Haible  <bruno@clisp.org>
8966
8967         unictype: Update list of canonical combining classes.
8968         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8969
8970 2011-03-25  Bruno Haible  <bruno@clisp.org>
8971
8972         unictype/category-byname: Recognize long names as well.
8973         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8974         a long name.
8975         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8976         unictype/categ_byname.h.
8977         (UC_CATEGORY_INDEX_*): New enumeration values.
8978         (uc_general_category_byname): Use uc_general_category_lookup and
8979         convert from index to value.
8980         * lib/unictype/categ_byname.gperf: New file.
8981         * modules/unictype/category-byname (Files): Add
8982         lib/unictype/categ_byname.gperf.
8983         (Depends-on): Add gperf.
8984         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8985         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8986         long names.
8987
8988         Tests for module 'unictype/category-longname'.
8989         * modules/unictype/category-longname-tests: New file.
8990         * tests/unictype/test-categ_longname.c: New file.
8991
8992         New module 'unictype/category-longname'.
8993         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8994         * lib/unictype/categ_longname.c: New file.
8995         * modules/unictype/category-longname: New file.
8996         * modules/unictype/category-all (Depends-on): Add it.
8997
8998 2011-03-25  Bruno Haible  <bruno@clisp.org>
8999
9000         Tests for module 'unictype/category-LC'.
9001         * modules/unictype/category-LC-tests: New file.
9002         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9003
9004         New module 'unictype/category-LC'.
9005         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9006         (UC_CATEGORY_LC): New declaration.
9007         (UC_CASED_LETTER): New macro.
9008         * lib/gen-uni-tables.c (is_category_LC): New function.
9009         (output_categories): Also handle category LC.
9010         (UC_CATEGORY_MASK_LC): New enumeration value.
9011         (general_category_byname): Also handle category LC.
9012         * lib/unictype/categ_LC.c: New file.
9013         * lib/unictype/categ_LC.h: New file, automatically generated.
9014         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9015         category LC.
9016         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9017         * modules/unictype/category-LC: New file.
9018         * modules/unictype/category-byname (Depends-on): Add
9019         unictype/category-LC.
9020         * modules/unictype/category-all (Depends-on): Likewise.
9021
9022 2011-03-25  Eric Blake  <eblake@redhat.com>
9023
9024         xmalloc: revert yesterday's regression
9025         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9026         realloc's underlying behavior (allowing allocation of zero-size
9027         objects, especially if malloc-gnu is also in use).
9028
9029 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9030
9031         maint.mk: add missing version to VC-tag
9032         * top/maint.mk: git tag was missing actual tag name; add it.
9033
9034         valgrind: do leak checking, and exit with code 1 on error (not 0)
9035         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9036         to VALGRIND.
9037
9038 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9039
9040         posix-modules: say what it does.
9041         * posix-modules: Add a line to the --help output saying what it does.
9042
9043 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9044
9045         xmalloc: Do not leak if underlying realloc is C99 compatible.
9046         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9047         This avoids a leak on C99-based systems.  See
9048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9049
9050 2011-03-24  Eric Blake  <eblake@redhat.com>
9051
9052         realloc: document portability problem
9053         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9054         passing 0 size to realloc.
9055
9056 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9057
9058         doc: update users.txt
9059         * users.txt: Add cvsps, tmpwatch
9060
9061 2011-03-23  Matt Rice  <ratmice@gmail.com>
9062
9063         doc: update users.txt
9064         * users.txt: Add gdb.
9065
9066 2011-03-23  Jim Meyering  <meyering@redhat.com>
9067
9068         doc: update users.txt
9069         Looking through matches up to the following URL (there are still
9070         several more pages), I found several projects that use gnulib:
9071         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9072         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9073         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9074
9075 2011-03-22  Bruno Haible  <bruno@clisp.org>
9076
9077         unictype/bidi*: Rename functions.
9078         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9079         uc_bidi_class, uc_is_bidi_class): New declarations.
9080         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9081         uc_bidi_category_byname.
9082         (uc_bidi_category_byname): New function.
9083         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9084         u_bidi_category_name.
9085         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9086         (uc_bidi_category_name): New function.
9087         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9088         uc_bidi_category.
9089         (uc_bidi_category): New function.
9090         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9091         uc_is_bidi_category. Invoke uc_bidi_class.
9092         (uc_is_bidi_category): New function.
9093         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9094         instead of uc_bidi_category_byname.
9095         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9096         instead of uc_bidi_category_name.
9097         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9098         uc_bidi_category.
9099         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9100         instead of uc_is_bidi_category.
9101
9102 2011-03-21  Bruno Haible  <bruno@clisp.org>
9103
9104         New module 'unictype/joininggroup-all'.
9105         * modules/unictype/joininggroup-all: New file.
9106
9107         Tests for module 'unictype/joininggroup-of'.
9108         * modules/unictype/joininggroup-of-tests: New file.
9109         * tests/unictype/test-joininggroup_of.c: New file.
9110         * tests/unictype/test-joininggroup_of.h: New file, automatically
9111         generated by gen-uni-tables.
9112
9113         New module 'unictype/joininggroup-of'.
9114         * modules/unictype/joininggroup-of: New file.
9115         * lib/unictype/joininggroup_of.c: New file.
9116         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9117         gen-uni-tables.
9118
9119         Tests for module 'unictype/joininggroup-byname'.
9120         * modules/unictype/joininggroup-byname-tests: New file.
9121         * tests/unictype/test-joininggroup_byname.c: New file.
9122
9123         New module 'unictype/joininggroup-byname'.
9124         * modules/unictype/joininggroup-byname: New file.
9125         * lib/unictype/joininggroup_byname.c: New file.
9126         * lib/unictype/joininggroup_byname.gperf: New file.
9127
9128         Tests for module 'unictype/joininggroup-name'.
9129         * modules/unictype/joininggroup-name-tests: New file.
9130         * tests/unictype/test-joininggroup_name.c: New file.
9131
9132         New module 'unictype/joininggroup-name'.
9133         * modules/unictype/joininggroup-name: New file.
9134         * lib/unictype/joininggroup_name.c: New file.
9135         * lib/unictype/joininggroup_name.h: New file.
9136
9137         New module 'unictype/joiningtype-all'.
9138         * modules/unictype/joiningtype-all: New file.
9139
9140         Tests for module 'unictype/joiningtype-of'.
9141         * modules/unictype/joiningtype-of-tests: New file.
9142         * tests/unictype/test-joiningtype_of.c: New file.
9143         * tests/unictype/test-joiningtype_of.h: New file, automatically
9144         generated by gen-uni-tables.
9145
9146         New module 'unictype/joiningtype-of'.
9147         * modules/unictype/joiningtype-of: New file.
9148         * lib/unictype/joiningtype_of.c: New file.
9149         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9150         gen-uni-tables.
9151
9152         Tests for module 'unictype/joiningtype-byname'.
9153         * modules/unictype/joiningtype-byname-tests: New file.
9154         * tests/unictype/test-joiningtype_byname.c: New file.
9155
9156         New module 'unictype/joiningtype-byname'.
9157         * modules/unictype/joiningtype-byname: New file.
9158         * lib/unictype/joiningtype_byname.c: New file.
9159
9160         Tests for module 'unictype/joiningtype-name'.
9161         * modules/unictype/joiningtype-name-tests: New file.
9162         * tests/unictype/test-joiningtype_name.c: New file.
9163
9164         New module 'unictype/joiningtype-name'.
9165         * modules/unictype/joiningtype-name: New file.
9166         * lib/unictype/joiningtype_name.c: New file.
9167
9168         unictype: Add support for Arabic shaping properties.
9169         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9170         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9171         declarations.
9172         (UC_JOINING_GROUP_*): New enumeration values.
9173         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9174         declarations.
9175         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9176         (unicode_joining_type): New variable.
9177         (UC_JOINING_GROUP_*): New enumeration values.
9178         (unicode_joining_group): New variable.
9179         (fill_arabicshaping, joining_type_as_c_identifier,
9180         output_joining_type_test, output_joining_type,
9181         joining_group_as_c_identifier, output_joining_group_test,
9182         output_joining_group): New functions.
9183         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9184         fill_arabicshaping and output_joining_type_test, output_joining_type,
9185         output_joining_group_test, output_joining_group.
9186         Reported by Simon Josefsson.
9187
9188 2011-03-21  Jim Meyering  <meyering@redhat.com>
9189
9190         strftime: fix a bug in yesterday's change
9191         * lib/strftime.c (add): Accommodate width's initial value of -1.
9192         Otherwise, nstrftime would copy uninitialized data into
9193         the result buffer.
9194
9195 2011-03-21  Jim Meyering  <meyering@redhat.com>
9196
9197         tests: add strftime-tests module
9198         * tests/test-strftime.c: New file.
9199         * modules/strftime-tests: New module.
9200
9201 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9202
9203         strftime: don't assume a byte count fits in 'int'
9204         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9205         found this problem by static analysis, using gcc -Wstrict-overflow
9206         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9207         on an integer overflow having undefined behavior, but it turns out
9208         that the argument is a size, which might not fit in 'int' anyway,
9209
9210 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         stdio: don't require ignore_value around fwrite
9213
9214         This patch works around libc bug 11959
9215         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9216         Without this patch, applications must often write
9217         ignore_value (fwrite (...)) even though the ignore_value is
9218         not helpful here.  It's common to write many objects, using
9219         fwrite/printf/etc., and then use ferror to detect output error.
9220
9221         I considered making this patch optional, but decided against it,
9222         because libc is obviously being inconsistent here: there is no
9223         reason libc should insist that user code must inspect fwrite
9224         return's value without also insisting that it inspect printf's,
9225         putchar's, etc.  If user code wants to have a strict style where
9226         all these functions' values are checked (so that ferror need not
9227         be checked), we could add support for that style in a new gnulib
9228         module, but in the meantime it's better to be consistent and to
9229         support common usage.
9230
9231         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9232         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9233         that we are compiling in checking mode, and if not C++, and
9234         if not already wrapping fwrite for some other reason.
9235         (fwrite): #define to rpl_fwrite if the latter is defined.
9236
9237 2011-03-20  Bruno Haible  <bruno@clisp.org>
9238
9239         verror: Fix compilation error introduced on 2011-02-13.
9240         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9241         instead of __attribute__.
9242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9243
9244 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9245             Bruno Haible  <bruno@clisp.org>
9246
9247         socklen: do not depend on sys_socket
9248         While trying to modify Emacs to use gnulib's socklen module,
9249         I discovered a circular dependency: socklen depends on sys_socket
9250         and vice versa.  Emacs can use socklen, but it does not need
9251         sys_socket because it has its own substitute for sys/socket.h.
9252         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9253         gl_TYPE_SOCKLEN_T.
9254         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9255         gl_PREREQ_SYS_H_SOCKET.
9256         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9257         gl_PREREQ_SYS_H_SOCKET.
9258         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9259         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9260         * modules/socklen (Depends-on): Do not depend on sys_socket.
9261         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9262
9263 2011-03-20  Jim Meyering  <meyering@redhat.com>
9264
9265         maint.mk: sort file names *after* new transformation
9266         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9267         prefix would have led to an unwarranted failure in GNU parted.
9268         Sort after that transformation.
9269
9270 2011-03-19  Jim Meyering  <meyering@redhat.com>
9271
9272         maint.mk: fix po-file syntax-check rule
9273         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9274         Patch by Bruno Haible.
9275
9276 2011-03-19  Bruno Haible  <bruno@clisp.org>
9277
9278         socklen: Update comment.
9279         * m4/socklen.m4: Update comment about platforms.
9280
9281 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9282             Bruno Haible  <bruno@clisp.org>
9283
9284         inet_ntop, inet_pton: Simplify.
9285         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9286         documented to provide socklen_t and we already depend on sys_socket.
9287         * modules/inet_pton (Depends-on): Likewise.
9288         * lib/arpa_inet.in.h: Adjust comment.
9289
9290 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9291             Bruno Haible  <bruno@clisp.org>
9292
9293         netdb: Simplify.
9294         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9295         documented to provide socklen_t and we already depend on sys_socket.
9296         * lib/netdb.in.h: Adjust comment.
9297
9298 2011-03-19  Bruno Haible  <bruno@clisp.org>
9299
9300         sys_socket, netdb: Document problem with socklen_t.
9301         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9302         platforms.
9303         * doc/posix-headers/netdb.texi: Likewise.
9304
9305 2011-03-18  Eric Blake  <eblake@redhat.com>
9306
9307         maint.mk: let po check work in VPATH build
9308         * top/maint.mk (po_file): Allow cfg.mk override.
9309         (sc_po_check): Allow VPATH use.
9310         Reported by Jiri Denemark.
9311
9312 2011-03-16  Jim Meyering  <meyering@redhat.com>
9313
9314         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9315         Before, you would have had to create one .x-sc_ file per rule in order
9316         to exempt offending files.  Now, you may instead use a Make variable --
9317         usually defined in cfg.mk -- whose name identifies the affected rule.
9318         * top/maint.mk (_sc_excl): Define.
9319         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9320         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9321
9322 2011-03-13  Bruno Haible  <bruno@clisp.org>
9323
9324         ignore-value tests: Avoid warnings.
9325         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9326         empty for gcc < 3.4.
9327
9328 2011-03-13  Bruno Haible  <bruno@clisp.org>
9329
9330         passfd: Fix link error on Solaris.
9331         * modules/passfd (Description): Correct.
9332         (Depends-on): Add socketlib.
9333         (Link): New section.
9334         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9335
9336 2011-03-13  Bruno Haible  <bruno@clisp.org>
9337
9338         passfd: Fix link error on AIX 5.2.
9339         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9340
9341 2011-03-13  Bruno Haible  <bruno@clisp.org>
9342
9343         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9344         * lib/sys_socket.in.h: Include <stddef.h>.
9345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9346         CMSG_FIRSTHDR. Remove unused variable.
9347
9348 2011-03-13  Bruno Haible  <bruno@clisp.org>
9349
9350         passfd: Fix compilation error on OpenBSD.
9351         * lib/passfd.c: Include <sys/uio.h>.
9352
9353 2011-03-13  Bruno Haible  <bruno@clisp.org>
9354
9355         passfd test: Fix warnings.
9356         * tests/test-passfd.c: Include <sys/wait.h>.
9357         (main): Fix typo.
9358
9359 2011-03-13  Bruno Haible  <bruno@clisp.org>
9360
9361         passfd module, part 4, tweaks.
9362         * tests/test-passfd.c: Reorder includes.
9363         (main): Fix perror and printf calls.
9364
9365 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9366
9367         passfd module, part 4.
9368         * modules/passfd-tests: New file.
9369         * tests/test-passfd.c: New file.
9370
9371 2011-03-13  Jim Meyering  <meyering@redhat.com>
9372
9373         Makefile: rely on GNU make; derive syntax-check rule names
9374         Rather than requiring that each sc_ rule be listed as a dependent
9375         of "check", use features of GNU make to derive the list.
9376         * Makefile (syntax-check-rules): Define.
9377         (check): Depend on the new variable, not the hard-coded list.
9378
9379 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9380             Bruno Haible  <bruno@clisp.org>
9381
9382         passfd module, part 3.
9383         * lib/passfd.h (recvfd): Add a flags argument.
9384         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9385         (recvfd): Add a flags argument.
9386         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9387         exists.
9388         * modules/passfd (Depends-on): Add cloexec.
9389         Suggested by Eric Blake.
9390
9391 2011-03-13  Bruno Haible  <bruno@clisp.org>
9392
9393         passfd module, part 2, tweaks.
9394         * modules/passfd (Files): Reorder.
9395         (Depends-on): Remove errno.
9396         (Include): Remove <sys/socket.h>, <sys/un.h>.
9397         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9398         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9399         specification header. Include <sys/socket.h> always. Don't include
9400         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9401         (sendfd): Clarify that it sets errno when it fails.
9402         (recvfd): Fix specification.
9403
9404 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9405
9406         passfd module, part 2.
9407         * modules/passfd: New file.
9408         * lib/passfd.h: New file.
9409         * lib/passfd.c: New file.
9410
9411 2011-03-12  Bruno Haible  <bruno@clisp.org>
9412
9413         wcswidth, mbswidth: Avoid integer overflow.
9414         * lib/wcswidth.c: Include <limits.h>.
9415         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9416         * lib/mbswidth.c: Include <limits.h>.
9417         (mbsnwidth): Avoid 'int' overflow.
9418         Reported by Jim Meyering.
9419
9420 2011-03-12  Bruno Haible  <bruno@clisp.org>
9421
9422         futimens, utimensat: Avoid endless recursion on Solaris 10.
9423         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9424         Solaris.
9425         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9426         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9427
9428 2011-03-11  Jim Meyering  <meyering@redhat.com>
9429
9430         maint.mk: relax a regexp to accommodate other formatting styles
9431         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9432         between "ngettext" and the following "(".
9433
9434 2011-03-11  Pádraig Brady <P@draigBrady.com>
9435
9436         maint.mk: suppress a false positive warning
9437         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9438         diagnostics are marked with ngettext.
9439
9440 2011-03-10  Eric Blake  <eblake@redhat.com>
9441
9442         wchar: add explicit dependencies, for Tru64
9443         * modules/mbmemcasecoll (Depends-on): Add wchar.
9444         * modules/mbtowc (Depends-on): Likewise.
9445         * modules/vasnprintf (Depends-on): Likewise.
9446         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9447         * modules/wctomb (Depends-on): Likewise.
9448         Reported by Peter O'Gorman.
9449
9450 2011-03-08  Bruno Haible  <bruno@clisp.org>
9451
9452         passfd module, part 1, tweaks.
9453         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9454         Improve indentation. Improve AC_MSG_CHECKING messages.
9455         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9456         gl_SOCKET_FAMILIES.
9457
9458 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9459
9460         passfd module, part 1.
9461         * m4/afunix.m4: New file.
9462         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9463         sockets.
9464
9465 2011-03-08  Bruno Haible  <bruno@clisp.org>
9466
9467         regex-quote: New API.
9468         * lib/regex-quote.h: Include <stdbool.h>.
9469         (struct regex_quote_spec): New type.
9470         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9471         New declarations.
9472         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9473         'const struct regex_quote_spec *' argument.
9474         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9475         (pcre_special): New constant.
9476         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9477         New functions.
9478         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9479         'const struct regex_quote_spec *' argument.
9480         * modules/regex-quote (Depends-on): Add stdbool.
9481         * tests/test-regex-quote.c (check): Update for new API. Add test for
9482         anchored results.
9483         * NEWS: Mention the API change.
9484         Reported by Reuben Thomas and Eric Blake.
9485
9486 2011-03-06  Bruno Haible  <bruno@clisp.org>
9487
9488         regex-quote: Fix creation of POSIX extended regular expressions.
9489         * lib/regex-quote.c (ere_special): Add grouping and alternation
9490         operators.
9491
9492 2011-03-05  Bruno Haible  <bruno@clisp.org>
9493
9494         doc: Improve doc regarding autopoint vs. gnulib.
9495         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9496         disable autopoint while running autoreconf.
9497         Suggested by Ralf Wildenhues.
9498
9499 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9500
9501         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9502         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9503
9504 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9505
9506         parse-duration: remove xalloc.h dependency
9507         * lib/parse-duration.c (parse_period): handle NULL return from
9508         strdup instead of calling xstrdup().
9509         * modules/parse-duration: remove "xalloc" dependency
9510
9511 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9512
9513         bootstrap: honor m4_base when running aclocal
9514         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9515
9516 2011-03-02  Jim Meyering  <meyering@redhat.com>
9517
9518         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9519         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9520         on request from Matt Booth.
9521
9522 2011-03-01  Eric Blake  <eblake@redhat.com>
9523
9524         test-link: work on Hurd
9525         * tests/test-link.h (test_link): Hurd rejects linking directories
9526         with EISDIR instead of the POSIX-mandated EPERM.
9527
9528 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9529
9530         stdio: simplify by moving files to printf-posix, sigpipe
9531         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9532         since this symbol is needed only if printf is replaced.
9533         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9534         Require gl_ASM_SYMBOL_PREFIX.
9535         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9536         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9537         (Depends-on): Add 'raise'.
9538         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9539         * modules/stdio (Files): Remove lib/stdio-write.c,
9540         m4/asm-underscore.m4.
9541         (Depends-on): Remove 'raise'.
9542
9543         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9544         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9545         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9546         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9547
9548 2011-02-28  Bruno Haible  <bruno@clisp.org>
9549
9550         localcharset: Assume ANSI C behaviour of free().
9551         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9552         calling free().
9553         Suggested by Simon Josefsson <simon@josefsson.org>.
9554
9555 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9556             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9557             Bruno Haible  <bruno@clisp.org>  (tiny change)
9558
9559         On Cygwin, use /proc file system instead of win32 API.
9560         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9561         Win32 file names.
9562         (DllMain): Simplify by removing Cygwin specific code.
9563         (find_shared_library_fullname): Use Linux specific implementation also
9564         for Cygwin.
9565         (get_shared_library_fullname): Update accordingly.
9566         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9567         Win32 file names.
9568         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9569         Cygwin specific code.
9570
9571 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9572             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9573
9574         Fix OpenMP flag detection for various Fortran compilers.
9575         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9576         OpenMP-conditional compilation construct, to force compile
9577         failure with missing OpenMP flag.
9578         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9579
9580 2011-02-25  Eric Blake  <eblake@redhat.com>
9581
9582         strstr: expand test coverage
9583         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9584         compilation.
9585         * tests/test-memmem.c (main): Duplicate tests.
9586         * tests/test-strcasestr.c (main): Likewise.
9587         * tests/test-c-strcasestr.c (main): Likewise.
9588
9589 2011-02-25  Jim Meyering  <meyering@redhat.com>
9590
9591         maint.mk: detect missing-NL-at-EOF, too
9592         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9593         it also detects when a file lacks a newline at EOF.
9594         (require_exactly_one_NL_at_EOF_): Renamed from
9595         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9596         since people may well have .x-sc_... file names tied to the
9597         existing name.  Suggested by Eric Blake.
9598
9599 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9600
9601         dirname: move m4/dos.m4 functionality into lib/dosname.h
9602
9603         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9604         extracts symbols from it, puts them into config.h; but it's much
9605         easier to use the symbols directly.  filename.h already does this,
9606         but it disagrees with dos.m4 in some respects.  This patch
9607         introduces a different include file dosname.h that packages up
9608         dos.m4, and then later we can work on merging filename.h and
9609         dosname.h.  Applications that need only the easy-to-configure
9610         symbols should consider including dosname.h rather than dirname.h.
9611         * NEWS: Mention incompatible changes.
9612         * m4/dos.m4: Remove.
9613         * lib/dosname.h, modules/dosname: New files.
9614         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9615         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9616         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9617         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9618         Include dosname.h, not dirname.h.
9619         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9620         Include dosname.h, for definitions of symbols like ISSLASH
9621         that used to be in config.h.
9622         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9623         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9624         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9625         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9626         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9627         * modules/rmdir (Files): Likewise.
9628         * modules/stat (Files): Likewise.
9629         * modules/unlink (Files): Likewise.
9630         * modules/dirname-lgpl (Depends-on): Add dosname.
9631         * modules/lstat (Depends-on): Likewise.
9632         * modules/openat (Depends-on): Likewise.
9633         * modules/rmdir (Depends-on): Likewise.
9634         * modules/savewd (Depends-on): Likewise.
9635         * modules/stat (Depends-on): Likewise.
9636         * modules/unlink (Depends-on): Likewise.
9637         * modules/openat (Depends-on): Remove dirname-lgpl.
9638         * modules/savewd (Depends-on): Likewise.
9639         * tests/test-dirname.c: Do not use removed symbols like
9640         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9641         the remaining symbols, e.g., ISSLASH ('\\').
9642
9643 2011-02-25  Eric Blake  <eblake@redhat.com>
9644
9645         strstr: revert patches that introduced bug and pessimization
9646         * lib/str-two-way.h: Add another reference.
9647         (two_way_short_needle, two_way_long_needle): Revert changes from
9648         2011-02-24; they pessimize search speed.
9649         (critical_factorization): Partially revert changes from
9650         2010-06-22; they violate the requirement that the left half of the
9651         needle be smaller than the period of the needle.
9652
9653 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9654
9655         filenamecat: remove unnecessary dependency on dirname-lgpl
9656         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9657         is no direct dependency, just an indirect one via filenamecat-lgpl.
9658
9659         remove: remove unnecessary use of m4/dos.m4
9660         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9661         * modules/remove (FILES): Remove m4/dos.m4.
9662
9663         * lib/openat-proc.c: Don't include dirname.h; not needed.
9664
9665         backupfile: remove unnecessary use of m4/dos.m4
9666         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9667         of its symbols are used by the backupfile code.  backupfile.c does
9668         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9669         for the rare case of programs that want all their backup file
9670         names to live within 8+3 limits, and dos.m4 doesn't address that.
9671         * modules/backupfile (Files): Remove m4/dos.m4.
9672
9673 2011-02-24  Jim Meyering  <meyering@redhat.com>
9674
9675         strstr: fix a bug whereby strstr would mistakenly return NULL
9676         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9677         in period calculation.
9678         (two_way_long_needle): Likewise.
9679         The original problem was reported by Mike Stump in
9680         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9681         Ralf Wildenhues provided the short needle and haystack.
9682         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9683         Add a more involved test to trigger the bug in two_way_long_needle.
9684
9685 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9686
9687         gnulib-tool: remove use of bold display in help screen
9688         * gnulib-tool (func_usage): Do not use bold display anymore in the
9689         help screen.  That was just meant to be a temporary emphasis for a
9690         backward-incompatible change.
9691
9692 2011-02-23  Bruno Haible  <bruno@clisp.org>
9693
9694         Fix misindentation of preprocessor directives.
9695         * lib/argp-namefrob.h: Reindent preprocessor directives.
9696         * lib/getopt_int.h (struct _getopt_data): Likewise.
9697         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9698         * lib/vasnprintf.c (decode_long_double): Likewise.
9699         * tests/test-argmatch.c: Insert blank lines, for clarity.
9700         * tests/test-exclude.c: Likewise.
9701
9702 2011-02-22  Bruno Haible  <bruno@clisp.org>
9703
9704         ioctl: Fix for MacOS X in 64-bit mode.
9705         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9706         value.
9707         Suggested by Eric Blake.
9708         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9709
9710 2011-02-22  Jim Meyering  <meyering@redhat.com>
9711
9712         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9713         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9714         in lib/.
9715
9716 2011-02-22  Eric Blake  <eblake@redhat.com>
9717
9718         maint: avoid any CDPATH issue
9719         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9720
9721         maint: adjust cpp indentation for my modules, as well
9722         * Makefile (sc_cpp_indent_check): Add my name.
9723         * lib/fbufmode.c: Filter through cppi.
9724         * lib/fpurge.c: Likewise.
9725         * lib/freadable.c: Likewise.
9726         * lib/freading.c: Likewise.
9727         * lib/fwritable.c: Likewise.
9728         * lib/fwriting.c: Likewise.
9729         * lib/sigaction.c: Likewise.
9730
9731 2011-02-22  Jim Meyering  <meyering@redhat.com>
9732
9733         maint: adjust cpp indentation to reflect nesting depth
9734         I.e., in a block of code that begins with an unnested "#if",
9735         put one space between the "#" in column 1 and following token.
9736         For example,
9737         -#include <sys/vfs.h>
9738         +# include <sys/vfs.h>
9739         Do this only in .c files that are part of a module I maintain.
9740         * lib/linkat.c: Filter through cppi.
9741         * lib/nanosleep.c: Likewise.
9742         * lib/openat.c: Likewise.
9743         * lib/openat-die.c: Likewise.
9744         * lib/dup3.c: Likewise.
9745         * lib/fchownat.c: Likewise.
9746         * lib/flock.c: Likewise.
9747         * lib/fsync.c: Likewise.
9748         * lib/fts.c: Likewise.
9749         * lib/getpass.c: Likewise.
9750         * lib/gettimeofday.c: Likewise.
9751         * lib/userspec.c: Likewise.
9752         * Makefile (sc_cpp_indent_check): New rule, to check this.
9753
9754 2011-02-22  Bruno Haible  <bruno@clisp.org>
9755
9756         New module 'wctomb'.
9757         * lib/stdlib.in.h (wctomb): New declaration.
9758         * lib/wctomb.c: New file.
9759         * lib/wctomb-impl.h: New file.
9760         * m4/wctomb.m4: New file.
9761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9762         REPLACE_WCTOMB.
9763         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9764         REPLACE_WCTOMB.
9765         * modules/wctomb: New file.
9766         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9767         * doc/posix-functions/wctomb.texi: Mention the new module.
9768         * modules/wctob (Depends-on): Add wctomb.
9769
9770 2011-02-22  Bruno Haible  <bruno@clisp.org>
9771
9772         New module 'mbtowc'.
9773         * lib/stdlib.in.h (mbtowc): New declaration.
9774         * lib/mbtowc.c: New file.
9775         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9776         * m4/mbtowc.m4: New file.
9777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9778         REPLACE_MBTOWC.
9779         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9780         REPLACE_MBTOWC.
9781         * modules/mbtowc: New file.
9782         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9783         * doc/posix-functions/mbtowc.texi: Mention the new module.
9784         * modules/btowc (Depends-on): Add mbtowc.
9785
9786 2011-02-22  Bruno Haible  <bruno@clisp.org>
9787
9788         wcrtomb: Add more tests for native Windows platforms.
9789         * tests/test-wcrtomb-w32-1.sh: New file.
9790         * tests/test-wcrtomb-w32-2.sh: New file.
9791         * tests/test-wcrtomb-w32-3.sh: New file.
9792         * tests/test-wcrtomb-w32-4.sh: New file.
9793         * tests/test-wcrtomb-w32-5.sh: New file.
9794         * tests/test-wcrtomb-w32.c: New file.
9795         * modules/wcrtomb-tests (Files): Add them.
9796         (Makefile.am): Arrange to run these tests.
9797         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9798         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9799
9800 2011-02-20  Bruno Haible  <bruno@clisp.org>
9801
9802         wcrtomb: Enhance test.
9803         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9804
9805 2011-02-20  Bruno Haible  <bruno@clisp.org>
9806
9807         mbrtowc: Tiny optimization.
9808         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9809
9810 2011-02-20  Jim Meyering  <meyering@redhat.com>
9811
9812         test-exclude.c: remove unmatched #endif
9813         * tests/test-exclude.c: Remove stray #endif, left over from
9814         the change of a week ago.
9815
9816 2011-02-19  Jim Meyering  <meyering@redhat.com>
9817
9818         git-version-gen: skip "-dirty" check when appropriate
9819         * build-aux/git-version-gen: Don't run any git commands when the
9820         version string comes from .tarball-version.  Prior to this, we
9821         would run git update-index --refresh even from a just-unpacked
9822         tarball directory, and that could affect a .git/ directory in a
9823         parent of the build directory.  Reported by Mike Frysinger.
9824
9825 2011-02-19  Bruno Haible  <bruno@clisp.org>
9826
9827         unictype/property-byname: Reduce the size of the 'data' segment.
9828         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9829
9830 2011-02-19  Bruno Haible  <bruno@clisp.org>
9831
9832         unictype/scripts: Reduce the size of the 'data' segment.
9833         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9834         '%pic'.
9835         * lib/unictype/scripts_byname.gperf: Regenerated.
9836
9837 2011-02-19  Bruno Haible  <bruno@clisp.org>
9838
9839         stdint: Update documentation.
9840         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9841
9842 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9843
9844         stdint: omit redundant check for wchar.h
9845         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9846         always tests whether wchar.h exists, so remove the now-redundant test.
9847
9848 2011-02-18  Bruno Haible  <bruno@clisp.org>
9849
9850         stdint: Cut dependency to module 'wchar'.
9851         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9852         include the necessary prerequisites.
9853         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9854         * modules/stdint (Depends-on): Remove wchar.
9855         (Makefile.am): Substitute HAVE_WCHAR_H.
9856         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9857
9858 2011-02-18  Eric Blake  <eblake@redhat.com>
9859
9860         longlong: skip, rather than fail, on cross-compilation
9861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9862         when cross-compiling; regression from 2011-02-16.
9863
9864 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9865
9866         * NEWS: Mention 2011-02-08 change to stdlib.
9867
9868 2011-02-17  Bruno Haible  <bruno@clisp.org>
9869
9870         getloadavg: Add comments about platforms.
9871         * m4/getloadavg.m4: Add comment.
9872         * lib/getloadavg.c: Likewise.
9873
9874 2011-02-17  Bruno Haible  <bruno@clisp.org>
9875
9876         getloadavg: Fix link error on Solaris 2.6.
9877         * modules/getloadavg (Link): New section.
9878         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9879         linking test-getloadavg.
9880         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9881         getloadavg.
9882
9883 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9884
9885         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9886         It was 'int', but this doesn't match the IRIX 6.5 manual.
9887         Suggested by Bruno Haible in
9888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9889
9890 2011-02-17  Bruno Haible  <bruno@clisp.org>
9891
9892         havelib: Fix comments.
9893         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9894         change.
9895
9896 2011-02-17  Bruno Haible  <bruno@clisp.org>
9897
9898         havelib: Update config.rpath.
9899         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9900
9901 2011-02-17  Bruno Haible  <bruno@clisp.org>
9902
9903         getloadavg test: Add some plausibility checks.
9904         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9905         is improbable.
9906
9907 2011-02-16  Eric Blake  <eblake@redhat.com>
9908
9909         maintainer-makefile: make syntax-check a no-op from tarballs
9910         * top/maint.mk (no-vc-detected): New rule.
9911         (local-checks-available): Use it to avoid hanging if someone tries
9912         'make syntax-check' from a tarball.  Also append to any non-syntax
9913         checks already defined in cfg.mk.
9914
9915 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9916
9917         longlong: tune, particularly for common case of c99
9918
9919         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9920         or running anything if c99, or if unsigned long long int does not
9921         work.  In either case, we know the answer without further tests.
9922         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9923         it at most once, and use its results for both long long int and
9924         unsigned long long int.  This is more likely to be efficient in
9925         the common case where the program wants to check for both long
9926         long int and unsigned long long int.
9927         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9928         since the answer is already known.
9929
9930 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9931
9932         getloadavg: set errno
9933         * lib/getloadavg.c: Set errno when returning -1.  If no other
9934         error number looks appropriate, set it to ENOSYS if the getloadavg
9935         looks like it can't possibly ever work, ENOTSUP otherwise.
9936         Suggested by Bruno Haible in
9937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9938
9939         getloadavg: trim unused parts and speed up 'configure'
9940         * NEWS: Document this.
9941         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9942         always compiled if getloadavg is absent.
9943         Move test code to ...
9944         * tests/test-getloadavg.c: New file, containing previous
9945         contents of test from lib/getloadavg.c.  It also contains
9946         suggestions by Bruno Haible in
9947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9948         * modules/getloadavg-tests: New file.
9949         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9950         Do tests in the same order as they're needed for getloadavg.c.
9951         Omit setgid-related tests that generate symbols KMEM_GROUP,
9952         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9953         Do only the tests that are needed to see whether the system has
9954         getloadavg, moving the other tests into ...
9955         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9956         NLIST_NAME_UNION; nobody should be using it.  Do not define
9957         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9958         relevant, as the user of this module shouldn't care how getloadavg
9959         is implemented.
9960
9961         getloadavg: omit unused var
9962         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9963
9964 2011-02-15  Jim Meyering  <meyering@redhat.com>
9965
9966         doc: update users.txt
9967         * users.txt: Update iwhd's URL.
9968
9969 2011-02-13  Bruno Haible  <bruno@clisp.org>
9970
9971         Consistent macro naming for macros that use GCC __attribute__.
9972         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9973         _ATTRIBUTE_NONNULL_.
9974         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9975         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9976         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9977         ATTRIBUTE_DEPRECATED.
9978         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9979         ATTRIBUTE_NORETURN.
9980         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9981         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9982         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9983         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9984         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9985         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9986         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9987         ATTRIBUTE_SENTINEL.
9988         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9989         ATTRIBUTE_RETURN_CHECK.
9990         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9991         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9992         ATTRIBUTE_NORETURN.
9993         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9994         Reported by Paul Eggert.
9995
9996 2011-02-13  Bruno Haible  <bruno@clisp.org>
9997
9998         Don't interfere with a program's definition of __attribute__.
9999         * lib/argp.h (__attribute__): Remove definition.
10000         (_GL_ATTRIBUTE_FORMAT): New macro.
10001         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10002         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10003         (_GL_ATTRIBUTE_FORMAT): New macro.
10004         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10005         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10006         GCC 3 or newer.
10007         * lib/error.h (__attribute__): Remove definition.
10008         (_GL_ATTRIBUTE_FORMAT): New macro.
10009         (error, error_at_line): Use it.
10010         * lib/hash.h (__attribute__): Remove definition.
10011         (ATTRIBUTE_WUR): Update definition. Define always.
10012         * lib/openat.h (__attribute__): Remove definition.
10013         (ATTRIBUTE_NORETURN): Update definition. Define always.
10014         * lib/sigpipe-die.h (__attribute__): Remove definition.
10015         (ATTRIBUTE_NORETURN): Update definition. Define always.
10016         * lib/vasnprintf.h (__attribute__): Remove definition.
10017         (_GL_ATTRIBUTE_FORMAT): New macro.
10018         (asnprintf, vasnprintf): Use it.
10019         * lib/xalloc.h (__attribute__): Remove definition.
10020         (ATTRIBUTE_NORETURN): Update definition. Define always.
10021         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10022         * lib/xmemdup0.h (__attribute__): Remove definition.
10023         (ATTRIBUTE_NORETURN): Update definition. Define always.
10024         * lib/xprintf.h (__attribute__): Remove definition.
10025         (_GL_ATTRIBUTE_FORMAT): New macro.
10026         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10027         * lib/xstrtol.h (__attribute__): Remove definition.
10028         (ATTRIBUTE_NORETURN): Update definition. Define always.
10029         * lib/xvasprintf.h (__attribute__): Remove definition.
10030         (_GL_ATTRIBUTE_FORMAT): New macro.
10031         (xasprintf, xvasprintf): Use it.
10032         * tests/test-argmatch.c (__attribute__): Remove definition.
10033         (ATTRIBUTE_NORETURN): Update definition. Define always.
10034         * tests/test-exclude.c (__attribute__): Remove definition.
10035         (ATTRIBUTE_NORETURN): Update definition. Define always.
10036         Reported by Paul Eggert.
10037
10038 2011-02-13  Bruno Haible  <bruno@clisp.org>
10039
10040         mbrtowc: Add more tests for native Windows platforms.
10041         * tests/test-mbrtowc-w32-1.sh: New file.
10042         * tests/test-mbrtowc-w32-2.sh: New file.
10043         * tests/test-mbrtowc-w32-3.sh: New file.
10044         * tests/test-mbrtowc-w32-4.sh: New file.
10045         * tests/test-mbrtowc-w32-5.sh: New file.
10046         * tests/test-mbrtowc-w32.c: New file.
10047         * modules/mbrtowc-tests (Files): Add them.
10048         (Makefile.am): Arrange to run these tests.
10049         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10050         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10051
10052 2011-02-13  Bruno Haible  <bruno@clisp.org>
10053
10054         mbrtowc: Work around native Windows bug.
10055         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10056         guess when no suitable locale for testing was found.
10057         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10058
10059 2011-02-13  Bruno Haible  <bruno@clisp.org>
10060
10061         mbsinit: Work around mingw bug.
10062         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10063         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10064         Windows.
10065         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10066
10067 2011-02-13  Bruno Haible  <bruno@clisp.org>
10068
10069         mbsinit: Don't crash for a NULL argument.
10070         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10071         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10072
10073 2011-02-13  Bruno Haible  <bruno@clisp.org>
10074
10075         Don't interfere with a program's definition of __attribute__.
10076         * lib/stdio.in.h (__attribute__): Remove definition.
10077         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10078         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10079         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10080         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10081         * lib/string.in.h (__attribute__): Remove definition.
10082         Reported by Paul Eggert.
10083
10084 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10085
10086         stdlib: don't get in the way of non-GCC __attribute__
10087         See thread starting at
10088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10089         Revert previous stdlib change, installing the following instead:
10090         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10091         to get in the way of a non-GCC compiler that supports __attribute__.
10092         (_GL_ATTRIBUTE_RETURN): New macro.
10093         (_Exit): Use it instead of __attribute__.
10094
10095 2011-02-12  Bruno Haible  <bruno@clisp.org>
10096
10097         quotearg test: Avoid test failure on mingw.
10098         * tests/test-quotearg.sh: Convert the locale identifier from native
10099         Windows syntax to Unix syntax.
10100
10101 2011-02-12  Bruno Haible  <bruno@clisp.org>
10102
10103         setlocale: Prefer gnulib's override over libintl's override.
10104         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10105         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10106         GNULIB_defined_setlocale is set.
10107
10108 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10109
10110         stdlib: support non-GCC __attribute__
10111
10112         Fix a serious and tricky problem encountered when attempting to
10113         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10114         5.5, but it crashed due to memory corruption on Solaris 10 with
10115         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10116         bits that are otherwise zero.  This tagging is optional inside
10117         Emacs but is preferred and is used when __attribute__ ((__aligned
10118         (8))) works, as it does with both recent-enough GCC and with Sun C
10119         5.11.  However, Sun C 5.11 is not GCC and does not #define
10120         __GNUC__ and __GNUC_MINOR__.
10121
10122         When I added the getloadavg module to Emacs, it brought in
10123         stdlib.in.h, which contained this fragment:
10124
10125            #ifndef __attribute__
10126            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10127            #  define __attribute__(Spec)   /* empty */
10128            # endif
10129            #endif
10130
10131         When files that include <stdlib.h> were compiled with Sun C 5.11,
10132         the above code disabled __attribute__ ((__aligned (8))), which
10133         caused variables to not be properly aligned, which eventually led
10134         to the pointer corruption mentioned above.  (This was a bit hard
10135         to diagnose, unfortunately.)
10136
10137         Several "#define __attribute__(X) /* empty */" code snippets need
10138         to be eradicated from Gnulib to work with non-GCC compilers that
10139         support __attribute__.  The Autoconf way to do this is to test for
10140         each kind of attribute that we want support for, and selectively
10141         enable that in source code.
10142
10143         Fix this problem just for stdlib.h, by adding a test for the
10144         __noreturn__ attribute, and change stdlib.in.h to use that test
10145         when needed.  This technique can be easily generalized to the
10146         other *.in.h files and attributes, and a similar technique can be
10147         used for *.h and *.c files.  This patch is enough to solve the
10148         problem for Emacs + getloadavg, and I thought I'd publish it for
10149         feedback before undertaking further, similar fixes in other
10150         modules.
10151
10152         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10153         because it's not needed for stdlib.h.  It merely substitutes the
10154         value directly into stdlib.h.  We may well need to #define it, or
10155         similar symbols, for other modules, but it's nice to also have an
10156         option to not #define it for applications like Emacs that do not
10157         need it.
10158
10159         * lib/stdlib.in.h (__attribute__): Do not #define.
10160         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10161         be defined only if the _Exit module is also used.
10162         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10164         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10165         platforms.
10166         * modules/_Exit (Files): Add m4/attribute.m4.
10167         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10168         * m4/attribute.m4: New file.
10169
10170 2011-02-12  Bruno Haible  <bruno@clisp.org>
10171
10172         wcsrtombs: Work around bug on native Windows.
10173         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10174         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10175         instead of len.
10176         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10177
10178 2011-02-12  Bruno Haible  <bruno@clisp.org>
10179
10180         mbsrtowcs: Work around bug on native Windows.
10181         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10182         against mingw bug.
10183         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10184
10185 2011-02-12  Bruno Haible  <bruno@clisp.org>
10186
10187         Avoid setlocale bugs in tests.
10188         * modules/btowc (Dependencies): Add setlocale.
10189         * modules/c-strcase (Dependencies): Likewise.
10190         * modules/mbmemcasecmp (Dependencies): Likewise.
10191         * modules/mbmemcasecoll (Dependencies): Likewise.
10192         * modules/mbrtowc (Dependencies): Likewise.
10193         * modules/mbscasecmp (Dependencies): Likewise.
10194         * modules/mbscasestr (Dependencies): Likewise.
10195         * modules/mbschr (Dependencies): Likewise.
10196         * modules/mbscspn (Dependencies): Likewise.
10197         * modules/mbsinit (Dependencies): Likewise.
10198         * modules/mbsncasecmp (Dependencies): Likewise.
10199         * modules/mbsnrtowcs (Dependencies): Likewise.
10200         * modules/mbspbrk (Dependencies): Likewise.
10201         * modules/mbspcasecmp (Dependencies): Likewise.
10202         * modules/mbsrchr (Dependencies): Likewise.
10203         * modules/mbsrtowcs (Dependencies): Likewise.
10204         * modules/mbsspn (Dependencies): Likewise.
10205         * modules/mbsstr (Dependencies): Likewise.
10206         * modules/nl_langinfo (Dependencies): Likewise.
10207         * modules/quotearg (Dependencies): Likewise.
10208         * modules/unicase/locale-language (Dependencies): Likewise.
10209         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10210         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10211         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10212         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10213         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10214         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10215         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10216         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10217         * modules/vasnprintf-posix (Dependencies): Likewise.
10218         * modules/wcrtomb (Dependencies): Likewise.
10219         * modules/wcsnrtombs (Dependencies): Likewise.
10220         * modules/wcsrtombs (Dependencies): Likewise.
10221
10222 2011-02-12  Bruno Haible  <bruno@clisp.org>
10223
10224         setlocale: Workaround native Windows bug.
10225         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10226         succeeds but sets LC_CTYPE to "C", report a failure.
10227         * tests/test-setlocale2.sh: New file.
10228         * tests/test-setlocale2.c: New file.
10229         * modules/setlocale-tests (Files): Add the new files.
10230         (Makefile.am): Enable test-setlocale2.sh test.
10231         * doc/posix-functions/setlocale.texi: Mention workaround.
10232
10233 2011-02-11  Bruno Haible  <bruno@clisp.org>
10234
10235         Tests for module 'setlocale'.
10236         * modules/setlocale-tests: New file.
10237         * tests/test-setlocale1.sh: New file.
10238         * tests/test-setlocale1.c: New file.
10239
10240         New module 'setlocale'.
10241         * lib/locale.in.h (setlocale): New declaration.
10242         * lib/setlocale.c: New file, based on
10243         gettext/gettext-runtime/intl/setlocale.c.
10244         * m4/setlocale.m4: New file.
10245         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10246         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10247         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10248         REPLACE_SETLOCALE.
10249         * modules/setlocale: New file.
10250         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10251         * doc/posix-functions/setlocale.texi: Mention the new module.
10252
10253 2011-02-11  Bruno Haible  <bruno@clisp.org>
10254
10255         Prepare for locale dependent tests on mingw.
10256         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10257         because it has the wrong locale encoding.
10258         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10259         French_France.1252 instead of "fr".
10260         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10261         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10262         because it has the wrong locale encoding.
10263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10264         native Windows, try Turkish_Turkey.65001.
10265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10266         Chinese_China.54936.
10267
10268         Prepare for locale dependent tests on mingw.
10269         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10270         differently.
10271         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10272         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10273         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10274         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10275
10276 2011-02-11  Eric Blake  <eblake@redhat.com>
10277
10278         strptime: avoid compiler warnings
10279         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10280         compiler warnings about dead code.
10281         Reported by Daniel P. Berrange.
10282
10283 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10284
10285         doc: update users.txt
10286         * users.txt: Add rcs.
10287
10288 2011-02-10  John W. Eaton  <jwe@gnu.org>
10289
10290         doc: update users.txt
10291         * users.txt: Add octave.
10292
10293 2011-02-10  Jim Meyering  <meyering@redhat.com>
10294
10295         doc: update users.txt
10296         * users.txt: Add iwhd.
10297
10298 2011-02-09  Bruno Haible  <bruno@clisp.org>
10299
10300         gnulib-tool: Make copyright notice adjustment more robust.
10301         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10302         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10303         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10304         License".
10305         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10306
10307 2011-02-06  Bruno Haible  <bruno@clisp.org>
10308
10309         New module 'towctrans'.
10310         * modules/towctrans: New file.
10311         * lib/wctype.in.h (towctrans): New declaration.
10312         * lib/towctrans.c: New file.
10313         * lib/towctrans-impl.h: New file.
10314         * m4/towctrans.m4: New file.
10315         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10316         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10317         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10318         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10319         * doc/posix-functions/towctrans.texi: Mention the new module.
10320
10321 2011-02-06  Bruno Haible  <bruno@clisp.org>
10322
10323         New module 'wctrans'.
10324         * modules/wctrans: New file.
10325         * lib/wctype.in.h (wctrans): New declaration.
10326         * lib/wctrans.c: New file.
10327         * lib/wctrans-impl.h: New file.
10328         * m4/wctrans.m4: New file.
10329         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10330         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10331         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10332         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10333         * doc/posix-functions/wctrans.texi: Mention the new module.
10334
10335 2011-02-06  Bruno Haible  <bruno@clisp.org>
10336
10337         New module 'iswctype'.
10338         * modules/iswctype: New file.
10339         * lib/wctype.in.h (iswctype): New declaration.
10340         * lib/iswctype.c: New file.
10341         * lib/iswctype-impl.h: New file.
10342         * m4/iswctype.m4: New file.
10343         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10344         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10345         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10346         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10347         * doc/posix-functions/iswctype.texi: Mention the new module and the
10348         HP-UX 11.00 problem.
10349
10350 2011-02-06  Bruno Haible  <bruno@clisp.org>
10351
10352         New module 'wctype'.
10353         * modules/wctype: Change to represent the wctype() substitute.
10354         * lib/wctype.in.h (wctype): New declaration.
10355         * lib/wctype.c: New file.
10356         * lib/wctype-impl.h: New file.
10357         * m4/wctype.m4: New file.
10358         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10359         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10360         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10361         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10362         * doc/posix-functions/wctype.texi: Mention the new module and the
10363         HP-UX 11.00 problem.
10364
10365 2011-02-06  Bruno Haible  <bruno@clisp.org>
10366
10367         wctype-h: Ensure wctype_t and wctrans_t are defined.
10368         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10369         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10370         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10371         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10372         HAVE_WCTRANS_T.
10373         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10374
10375 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         flock: fix license typo
10378
10379         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10380         omitted.
10381
10382 2011-02-08  Bruno Haible  <bruno@clisp.org>
10383
10384         Split large sed scripts, for HP-UX sed.
10385         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10386         to avoid HP-UX limit of 99 commands, in the near future.
10387         * modules/stdlib (Makefile.am): Likewise.
10388         * modules/unistd (Makefile.am): Likewise.
10389         * modules/wchar (Makefile.am): Likewise.
10390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10391         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10393
10394 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10395             Bruno Haible  <bruno@clisp.org>
10396
10397         stdlib: improve random_r modularization
10398         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10399         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10400         you also need the random_r module to get this material right.
10401         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10402         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10403         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10404
10405 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10406
10407         stdlib: don't depend on stdint
10408         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10409         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10410         be independent of whether stdint.h is needed.
10411         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10412         here, instead of ...
10413         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10414         struct random_data should be using the random_r module, not just
10415         the stdlib module (which wouldn't make sense: what package needs
10416         just struct random_data without also needing random_r?).
10417         * modules/stdlib (Depends-on): Remove stdint.
10418
10419         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10420         See the thread rooted at
10421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10422         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10423         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10424         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10425         __VMS)); previously it was always included (via fcntl--.h).
10426         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10427         hand; this is good enough for load averages.  Also, do not use
10428         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10429         flags directly if available and don't bother otherwise.  (Packages
10430         that need the extra reliability should use the modules that define
10431         these flags on older platforms that lack them.)
10432         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10433         fcntl-safer.
10434
10435 2011-02-08  Jim Meyering  <meyering@redhat.com>
10436
10437         di-set.h, ino-map.h: add multiple-inclusion guard
10438         Technically, the guard is required only for ino-map.h, due to its
10439         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10440         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10441         * lib/ino-map.h: Likewise.
10442
10443 2011-02-06  Bruno Haible  <bruno@clisp.org>
10444
10445         iswblank: Ensure declaration on glibc systems.
10446         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10447         * modules/iswblank (Dependencies): Add 'extensions'.
10448         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10449
10450 2011-02-06  Bruno Haible  <bruno@clisp.org>
10451
10452         New module 'iswblank'.
10453         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10454         * modules/iswblank: New file.
10455         * modules/wctype-h (Files): Remove lib/iswblank.c.
10456         (Makefile.am): Substitute GNULIB_ISWBLANK.
10457         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10458         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10459         (gl_WCTYPE_H_DEFAULTS): New macro.
10460         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10461         * modules/iswblank-tests: New file.
10462         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10463         * tests/test-wctype-h.c (main): Remove iswblank tests.
10464         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10465         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10466         of 'wctype-h'.
10467         * NEWS: Mention the change.
10468         * modules/mbchar (Depends-on): Add iswblank.
10469
10470 2011-02-08  Bruno Haible  <bruno@clisp.org>
10471
10472         di-set tests: Refactor.
10473         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10474         unnecessary includes.
10475         (ASSERT): Remove macro.
10476         (main): Make C90 compliant by avoiding variable declaration after
10477         statement.
10478         * modules/di-set-tests (Files): Add tests/macros.h.
10479
10480 2011-02-08  Bruno Haible  <bruno@clisp.org>
10481
10482         ino-map tests: Refactor.
10483         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10484         unnecessary includes.
10485         (ASSERT): Remove macro.
10486         (main): Make C90 compliant by avoiding variable declaration after
10487         statement.
10488         * modules/ino-map-tests (Files): Add tests/macros.h.
10489
10490 2011-02-08  Jim Meyering  <meyering@redhat.com>
10491
10492         di-set: add "const" to a cast
10493         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10494         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10495
10496 2011-02-06  Bruno Haible  <bruno@clisp.org>
10497
10498         Rename module 'wctype' to 'wctype-h'.
10499         * modules/wctype-h: Renamed from modules/wctype.
10500         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10501         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10502         (Files, Depends-on, Makefile.am): Update.
10503         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10504         (Files, Makefile.am): Update.
10505         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10506         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10507         * doc/posix-headers/wctype.texi: Update.
10508         * doc/posix-functions/iswalnum.texi: Update.
10509         * doc/posix-functions/iswalpha.texi: Update.
10510         * doc/posix-functions/iswblank.texi: Update.
10511         * doc/posix-functions/iswcntrl.texi: Update.
10512         * doc/posix-functions/iswdigit.texi: Update.
10513         * doc/posix-functions/iswgraph.texi: Update.
10514         * doc/posix-functions/iswlower.texi: Update.
10515         * doc/posix-functions/iswprint.texi: Update.
10516         * doc/posix-functions/iswpunct.texi: Update.
10517         * doc/posix-functions/iswspace.texi: Update.
10518         * doc/posix-functions/iswupper.texi: Update.
10519         * doc/posix-functions/iswxdigit.texi: Update.
10520         * doc/posix-functions/towlower.texi: Update.
10521         * doc/posix-functions/towupper.texi: Update.
10522         * NEWS: Mention the change.
10523         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10524         * modules/mbchar (Dependencies): Likewise.
10525         * modules/mbswidth (Dependencies): Likewise.
10526         * modules/quotearg (Dependencies): Likewise.
10527         * modules/regex (Dependencies): Likewise.
10528         * modules/wcscasecmp (Dependencies): Likewise.
10529         * modules/wcsncasecmp (Dependencies): Likewise.
10530         * modules/wcwidth (Dependencies): Likewise.
10531
10532 2011-02-06  Bruno Haible  <bruno@clisp.org>
10533
10534         New module 'wcswidth'.
10535         * modules/wcswidth: New file.
10536         * lib/wchar.in.h (wcswidth): New declaration.
10537         * lib/wcswidth.c: New file.
10538         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10539         * m4/wcswidth.m4: New file.
10540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10542         REPLACE_WCSWIDTH.
10543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10544         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10545         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10546         * doc/posix-functions/wcswidth.texi: Mention the new module.
10547
10548 2011-02-06  Bruno Haible  <bruno@clisp.org>
10549
10550         New module 'wcstok'.
10551         * modules/wcstok: New file.
10552         * lib/wchar.in.h (wcstok): New declaration.
10553         * lib/wcstok.c: New file.
10554         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10555         * m4/wcstok.m4: New file.
10556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10559         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10560         * doc/posix-functions/wcstok.texi: Mention the new module.
10561
10562 2011-02-06  Bruno Haible  <bruno@clisp.org>
10563
10564         New module 'wcsstr'.
10565         * modules/wcsstr: New file.
10566         * lib/wchar.in.h (wcsstr): New declaration.
10567         * lib/wcsstr.c: New file.
10568         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10569         * m4/wcsstr.m4: New file.
10570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10573         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10574         * doc/posix-functions/wcsstr.texi: Mention the new module.
10575
10576 2011-02-06  Bruno Haible  <bruno@clisp.org>
10577
10578         New module 'wcspbrk'.
10579         * modules/wcspbrk: New file.
10580         * lib/wchar.in.h (wcspbrk): New declaration.
10581         * lib/wcspbrk.c: New file.
10582         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10583         * m4/wcspbrk.m4: New file.
10584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10587         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10588         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10589
10590 2011-02-06  Bruno Haible  <bruno@clisp.org>
10591
10592         New module 'wcsspn'.
10593         * modules/wcsspn: New file.
10594         * lib/wchar.in.h (wcsspn): New declaration.
10595         * lib/wcsspn.c: New file.
10596         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10597         * m4/wcsspn.m4: New file.
10598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10601         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10602         * doc/posix-functions/wcsspn.texi: Mention the new module.
10603
10604 2011-02-06  Bruno Haible  <bruno@clisp.org>
10605
10606         New module 'wcscspn'.
10607         * modules/wcscspn: New file.
10608         * lib/wchar.in.h (wcscspn): New declaration.
10609         * lib/wcscspn.c: New file.
10610         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10611         * m4/wcscspn.m4: New file.
10612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10615         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10616         * doc/posix-functions/wcscspn.texi: Mention the new module.
10617
10618 2011-02-06  Bruno Haible  <bruno@clisp.org>
10619
10620         New module 'wcsrchr'.
10621         * modules/wcsrchr: New file.
10622         * lib/wchar.in.h (wcsrchr): New declaration.
10623         * lib/wcsrchr.c: New file.
10624         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10625         * m4/wcsrchr.m4: New file.
10626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10629         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10630         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10631
10632 2011-02-06  Bruno Haible  <bruno@clisp.org>
10633
10634         New module 'wcschr'.
10635         * modules/wcschr: New file.
10636         * lib/wchar.in.h (wcschr): New declaration.
10637         * lib/wcschr.c: New file.
10638         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10639         * m4/wcschr.m4: New file.
10640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10643         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10644         * doc/posix-functions/wcschr.texi: Mention the new module.
10645
10646 2011-02-06  Bruno Haible  <bruno@clisp.org>
10647
10648         New module 'wcsdup'.
10649         * modules/wcsdup: New file.
10650         * lib/wchar.in.h (wcsdup): New declaration.
10651         * lib/wcsdup.c: New file.
10652         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10653         * m4/wcsdup.m4: New file.
10654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10657         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10658         * doc/posix-functions/wcsdup.texi: Mention the new module.
10659
10660 2011-02-06  Bruno Haible  <bruno@clisp.org>
10661
10662         New module 'wcsxfrm'.
10663         * modules/wcsxfrm: New file.
10664         * lib/wchar.in.h (wcsxfrm): New declaration.
10665         * lib/wcsxfrm.c: New file.
10666         * lib/wcsxfrm-impl.h: New file.
10667         * m4/wcsxfrm.m4: New file.
10668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10671         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10672         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10673
10674 2011-02-06  Bruno Haible  <bruno@clisp.org>
10675
10676         New module 'wcscoll'.
10677         * modules/wcscoll: New file.
10678         * lib/wchar.in.h (wcscoll): New declaration.
10679         * lib/wcscoll.c: New file.
10680         * lib/wcscoll-impl.h: New file.
10681         * m4/wcscoll.m4: New file.
10682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10685         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10686         * doc/posix-functions/wcscoll.texi: Mention the new module.
10687
10688 2011-02-06  Bruno Haible  <bruno@clisp.org>
10689
10690         New module 'wcsncasecmp'.
10691         * modules/wcsncasecmp: New file.
10692         * lib/wchar.in.h (wcsncasecmp): New declaration.
10693         * lib/wcsncasecmp.c: New file.
10694         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10695         * m4/wcsncasecmp.m4: New file.
10696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10699         HAVE_WCSNCASECMP.
10700         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10701         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10702
10703 2011-02-06  Bruno Haible  <bruno@clisp.org>
10704
10705         New module 'wcscasecmp'.
10706         * modules/wcscasecmp: New file.
10707         * lib/wchar.in.h (wcscasecmp): New declaration.
10708         * lib/wcscasecmp.c: New file.
10709         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10710         * m4/wcscasecmp.m4: New file.
10711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10714         HAVE_WCSCASECMP.
10715         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10716         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10717
10718 2011-02-05  Bruno Haible  <bruno@clisp.org>
10719
10720         New module 'wcsncmp'.
10721         * modules/wcsncmp: New file.
10722         * lib/wchar.in.h (wcsncmp): New declaration.
10723         * lib/wcsncmp.c: New file.
10724         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10725         * m4/wcsncmp.m4: New file.
10726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10729         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10730         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10731
10732 2011-02-05  Bruno Haible  <bruno@clisp.org>
10733
10734         New module 'wcscmp'.
10735         * modules/wcscmp: New file.
10736         * lib/wchar.in.h (wcscmp): New declaration.
10737         * lib/wcscmp.c: New file.
10738         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10739         * m4/wcscmp.m4: New file.
10740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10743         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10744         * doc/posix-functions/wcscmp.texi: Mention the new module.
10745
10746 2011-02-05  Bruno Haible  <bruno@clisp.org>
10747
10748         New module 'wcsncat'.
10749         * modules/wcsncat: New file.
10750         * lib/wchar.in.h (wcsncat): New declaration.
10751         * lib/wcsncat.c: New file.
10752         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10753         * m4/wcsncat.m4: New file.
10754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10757         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10758         * doc/posix-functions/wcsncat.texi: Mention the new module.
10759
10760 2011-02-05  Bruno Haible  <bruno@clisp.org>
10761
10762         New module 'wcscat'.
10763         * modules/wcscat: New file.
10764         * lib/wchar.in.h (wcscat): New declaration.
10765         * lib/wcscat.c: New file.
10766         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10767         * m4/wcscat.m4: New file.
10768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10771         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10772         * doc/posix-functions/wcscat.texi: Mention the new module.
10773
10774 2011-02-05  Bruno Haible  <bruno@clisp.org>
10775
10776         New module 'wcpncpy'.
10777         * modules/wcpncpy: New file.
10778         * lib/wchar.in.h (wcpncpy): New declaration.
10779         * lib/wcpncpy.c: New file.
10780         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10781         * m4/wcpncpy.m4: New file.
10782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10784         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10785         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10786         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10787
10788 2011-02-05  Bruno Haible  <bruno@clisp.org>
10789
10790         New module 'wcsncpy'.
10791         * modules/wcsncpy: New file.
10792         * lib/wchar.in.h (wcsncpy): New declaration.
10793         * lib/wcsncpy.c: New file.
10794         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10795         * m4/wcsncpy.m4: New file.
10796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10799         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10800         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10801
10802 2011-02-05  Bruno Haible  <bruno@clisp.org>
10803
10804         New module 'wcpcpy'.
10805         * modules/wcpcpy: New file.
10806         * lib/wchar.in.h (wcpcpy): New declaration.
10807         * lib/wcpcpy.c: New file.
10808         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10809         * m4/wcpcpy.m4: New file.
10810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10812         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10813         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10814         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10815
10816 2011-02-05  Bruno Haible  <bruno@clisp.org>
10817
10818         New module 'wcscpy'.
10819         * modules/wcscpy: New file.
10820         * lib/wchar.in.h (wcscpy): New declaration.
10821         * lib/wcscpy.c: New file.
10822         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10823         * m4/wcscpy.m4: New file.
10824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10827         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10828         * doc/posix-functions/wcscpy.texi: Mention the new module.
10829
10830 2011-02-05  Bruno Haible  <bruno@clisp.org>
10831
10832         New module 'wcsnlen'.
10833         * modules/wcsnlen: New file.
10834         * lib/wchar.in.h (wcsnlen): New declaration.
10835         * lib/wcsnlen.c: New file.
10836         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10837         * m4/wcsnlen.m4: New file.
10838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10841         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10842         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10843
10844 2011-02-05  Bruno Haible  <bruno@clisp.org>
10845
10846         New module 'wcslen'.
10847         * modules/wcslen: New file.
10848         * lib/wchar.in.h (wcslen): New declaration.
10849         * lib/wcslen.c: New file.
10850         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10851         * m4/wcslen.m4: New file.
10852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10855         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10856         * doc/posix-functions/wcslen.texi: Mention the new module.
10857
10858 2011-02-05  Bruno Haible  <bruno@clisp.org>
10859
10860         New module 'wmemset'.
10861         * modules/wmemset: New file.
10862         * lib/wchar.in.h (wmemset): New declaration.
10863         * lib/wmemset.c: New file.
10864         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10865         * m4/wmemset.m4: New file.
10866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10868         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10869         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10870         * doc/posix-functions/wmemset.texi: Mention the new module.
10871
10872 2011-02-05  Bruno Haible  <bruno@clisp.org>
10873
10874         New module 'wmemmove'.
10875         * modules/wmemmove: New file.
10876         * lib/wchar.in.h (wmemmove): New declaration.
10877         * lib/wmemmove.c: New file.
10878         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10879         * m4/wmemmove.m4: New file.
10880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10882         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10883         HAVE_WMEMMOVE.
10884         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10885         * doc/posix-functions/wmemmove.texi: Mention the new module.
10886
10887 2011-02-05  Bruno Haible  <bruno@clisp.org>
10888
10889         New module 'wmemcpy'.
10890         * modules/wmemcpy: New file.
10891         * lib/wchar.in.h (wmemcpy): New declaration.
10892         * lib/wmemcpy.c: New file.
10893         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10894         * m4/wmemcpy.m4: New file.
10895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10897         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10898         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10899         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10900
10901 2011-02-05  Bruno Haible  <bruno@clisp.org>
10902
10903         New module 'wmemcmp'.
10904         * modules/wmemcmp: New file.
10905         * lib/wchar.in.h (wmemcmp): New declaration.
10906         * lib/wmemcmp.c: New file.
10907         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10908         * m4/wmemcmp.m4: New file.
10909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10911         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10912         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10913         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10914
10915 2011-02-07  Jim Meyering  <meyering@redhat.com>
10916
10917         di-set, ino-map: new modules, from coreutils
10918         * lib/di-set.c: New file.
10919         * lib/di-set.h: Likewise.
10920         * lib/ino-map.c: Likewise.
10921         * lib/ino-map.h: Likewise.
10922         * modules/di-set: Likewise.
10923         * modules/di-set-tests: Likewise.
10924         * modules/ino-map: Likewise.
10925         * modules/ino-map-tests: Likewise.
10926         * tests/test-di-set.c: Likewise.
10927         * tests/test-ino-map.c: Likewise.
10928
10929 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         getloadavg: merge minor changes from Emacs
10932
10933         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10934         (getloadavg): Use memset, not bzero.
10935
10936         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10937         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10938         clash (bug#86).
10939
10940 2010-11-14  Bruno Haible  <bruno@clisp.org>
10941
10942         Allow multiple gnulib generated replacements to coexist.
10943         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10944         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10945         * lib/langinfo.in.h (nl_item): Likewise.
10946         * lib/math.in.h (_NaN, NAN): Likewise.
10947         * lib/netdb.in.h (struct addrinfo): Likewise.
10948         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10949         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10950         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10951         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10952         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10953         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10954         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10955         pthread_mutexattr_init, pthread_mutexattr_settype,
10956         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10957         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10958         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10959         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10960         * lib/sched.in.h (struct sched_param): Likewise.
10961         * lib/se-selinux.in.h (security_class_t, security_context_t,
10962         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10963         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10964         lsetfilecon, fsetfilecon, security_check_context,
10965         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10966         Likewise.
10967         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10968         Likewise.
10969         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10970         _gl_function_taking_int_returning_void_t, union sigval,
10971         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10972         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10973         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10974         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10975         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10976         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10977         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10978         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10979         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10980         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10981         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10982         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10983         socklen_t, rpl_fd_isset): Likewise.
10984         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10985         * lib/sys_time.in.h (struct timeval): Likewise.
10986         * lib/sys_times.in.h (struct tms): Likewise.
10987         * lib/sys_utsname.in.h (struct utsname):
10988         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10989         * lib/unistd.in.h (getpagesize): Likewise.
10990         * lib/wchar.in.h (mbstate_t): Likewise.
10991         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10992         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10993         towlower, towupper): Likewise.
10994         Reported by Sam Steingold <sds@gnu.org>.
10995
10996 2011-02-05  Eric Blake  <eblake@redhat.com>
10997
10998         unsetenv: work around Haiku issues
10999         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11000         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11001
11002 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11003
11004         libposix: avoid calling error() within libposix
11005         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11006         is defined.
11007
11008 2011-02-05  Eric Blake  <eblake@redhat.com>
11009
11010         strerror_r-posix: port to cygwin
11011         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11012         implementation.
11013         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11014         * tests/test-strerror_r.c (main): Fix test.
11015         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11016         issue.
11017
11018 2011-02-05  Bruno Haible  <bruno@clisp.org>
11019
11020         New module 'wmemchr'.
11021         * modules/wmemchr: New file.
11022         * lib/wchar.in.h (wmemchr): New declaration.
11023         * lib/wmemchr.c: New file.
11024         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11025         * m4/wmemchr.m4: New file.
11026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11028         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11029         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11030         * doc/posix-functions/wmemchr.texi: Mention the new module.
11031
11032 2011-02-04  Eric Blake  <eblake@redhat.com>
11033
11034         fdopendir: detect FreeBSD bug
11035         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11036         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11037
11038 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11039
11040         stdbool: do not define HAVE_STDBOOL_H
11041         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11042         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11043         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11044         imported from the latest Autoconf git.  It was motivated by Emacs,
11045         which uses gnulib but does not need HAVE_STDBOOL_H.
11046
11047 2011-02-04  Bruno Haible  <bruno@clisp.org>
11048
11049         wcsnrtombs: Prepare for new module wwcsnrtombs.
11050         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11051         * lib/wcsnrtombs.c: Include it.
11052         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11053
11054         wcsrtombs: Prepare for new module wwcsrtombs.
11055         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11056         * lib/wcsrtombs.c: Include it.
11057         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11058
11059         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11060         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11061         * lib/mbsnrtowcs.c: Include it.
11062         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11063
11064         mbsrtowcs: Prepare for new module mbsrtowwcs.
11065         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11066         * lib/mbsrtowcs.c: Include it.
11067         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11068
11069 2011-02-04  Bruno Haible  <bruno@clisp.org>
11070
11071         vasnprintf: Reduce use of malloc for small format strings.
11072         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11073         (arguments): Add room for the first 7 arguments.
11074         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11075         (char_directives, u8_directives, u16_directives, u32_directives): Add
11076         room for the first 7 directives.
11077         * lib/printf-parse.c: Include <string.h>.
11078         (PRINTF_PARSE): Change memory handling code so that it uses the first
11079         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11080         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11081         Reported by Pádraig Brady <P@draigbrady.com>.
11082
11083 2011-01-31  Eric Blake  <eblake@redhat.com>
11084
11085         dup2: work around Haiku bug
11086         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11087         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11088         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11089         * tests/test-dup2.c (main): Enhance test.
11090
11091 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11092
11093         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11094         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11095         declared by eglibc 2.11.2.
11096         * lib/stdio.in.h: Likewise.
11097
11098 2011-01-31  Eric Blake  <eblake@redhat.com>
11099
11100         ignore-value: add missing test dependency
11101         * tests/test-ignore-value.c: Revert previous change; stdio.h
11102         provides off_t.
11103         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11104
11105 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11106
11107         mktime: clarify long_int width checking
11108         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11109         the top level, to make it clearer that the assumption about
11110         long_int width is being checked.  See
11111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11112
11113 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11114
11115         ignore-value: Fix self-test.
11116         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11117
11118 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11119
11120         TYPE_MAXIMUM: avoid theoretically undefined behavior
11121         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11122         negative number, which the C Standard says has undefined behavior.
11123         In practice this is not a problem, but might as well do it by the book.
11124         Reported by Rich Felker and Eric Blake; see
11125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11126         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11127         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11129         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11130         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11131         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11132
11133         mktime: #undef mktime before #defining it
11134         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11135
11136         mktime: systematically normalize tm_isdst comparisons
11137         * lib/mktime.c (isdst_differ): New function.
11138         (__mktime_internal): Use it systematically for all isdst comparisons.
11139         This completes the fix for libc BZ #6723, and removes the need for
11140         normalizing tm_isdst.  See
11141         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11142         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11143
11144         mktime: fix some integer overflow issues and sidestep the rest
11145
11146         This was prompted by a bug report by Benjamin Lindner for MinGW
11147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11148         His bug is due to signed integer overflow (0 - INT_MIN), and I
11149         I scanned through mktime.c looking for other integer overflow
11150         problems, fixing all the bugs I found.
11151
11152         Although the C Standard says the resulting code is still not safe
11153         in the presence of integer overflow, in practice it should be good
11154         enough for all real-world two's-complement implementations, except
11155         for debugging environments that deliberately trap on integer
11156         overflow (e.g., gcc -ftrapv).
11157
11158         * lib/mktime.c (WRAPV): New macro.
11159         (SHR): Also check that long_int and time_t shift right in the
11160         usual way, before using the fast-but-unportable method.
11161         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11162         used.  The code already assumed two's complement, so there's
11163         no need to test for alternatives.  All uses removed.
11164         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11165         the C standard.  Problem reported by Rich Felker in
11166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11167         (twos_complement_arithmetic): Also check long_int and time_t.
11168         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11169         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11170         (__mktime_internal): Avoid integer overflow with unary subtraction
11171         in two instances where -1 - X is an adequate replacement for -X,
11172         since the calculations are approximate.
11173
11174 2011-01-29  Eric Blake  <eblake@redhat.com>
11175
11176         mktime: avoid infinite loop
11177         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11178         type; behavior is still undefined but portable to all known targets.
11179         Reported by Rich Felker.
11180
11181 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11182
11183         rename, unlink, same-inode: Relicense.
11184         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11185         * modules/unlink (License): Likewise.
11186         * modules/same-inode (License): Likewise.
11187
11188 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11189
11190         mktime: avoid problems on NetBSD 5 / i386
11191         * lib/mktime.c (long_int): New type.  This works around a problem
11192         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11193         but time_t is 64 bits, and where I expect the existing code is
11194         wrong in some cases.
11195         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11196         (ydhms_diff): Bring back the compile-time check for wide-enough
11197         year and yday.
11198
11199         mktime: fix misspelling in comment
11200         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11201         This merges all recent glibc changes of importance.
11202
11203 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11204
11205         move-if-change: cope with concurrent mv of identical file.
11206         * build-aux/move-if-change (CMPPROG): Accept environment
11207         variable as an override for `cmp'.
11208         (usage): Document CMPPROG.
11209         Adjust comparison to drop stdout.  Cope with failure of mv if
11210         the target file exists and is identical to the source, for
11211         parallel builds.
11212         Report from H.J. Lu against binutils in PR binutils/12283.
11213
11214 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11215
11216         * users.txt: Mention sharutils.
11217
11218 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11219
11220         * users.txt: Mention OATH Toolkit.
11221
11222 2011-01-27  Bruno Haible  <bruno@clisp.org>
11223
11224         Prepare for supporting FreeBSD 10.
11225         * build-aux/config.libpath: Remove handling of freebsd1*.
11226
11227 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11228
11229         Prepare for supporting FreeBSD 10.
11230         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11231         match FreeBSD 10.0.
11232
11233 2011-01-27  Bruno Haible  <bruno@clisp.org>
11234
11235         vma-iter, get-rusage-as: Add OpenBSD support.
11236         * modules/vma-iter (configure.ac): Test for mquery.
11237         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11238         * lib/vma-iter.c: Include <sys/mman.h>.
11239         (vma_iterate): Add an implementation based on mquery().
11240         * lib/resource-ext.h (get_rusage_as): Update comments.
11241         * lib/get-rusage-as.c: Likewise.
11242         * lib/get-rusage-data.c: Likewise.
11243
11244 2011-01-26  Karl Berry  <karl@gnu.org>
11245
11246         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11247         variables to make it easier to override the makeinfo program used.
11248
11249 2011-01-26  Eric Blake  <eblake@redhat.com>
11250
11251         fcntl: work around Haiku F_DUPFD bugs
11252         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11253         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11254         cloexec bit on duplication.
11255         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11256
11257 2011-01-26  Bruno Haible  <bruno@clisp.org>
11258
11259         Enable memory leak tests on AIX.
11260         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11261         * tests/test-fprintf-posix3.c (main): Likewise.
11262
11263 2011-01-26  Bruno Haible  <bruno@clisp.org>
11264
11265         Tests for module 'get-rusage-data'.
11266         * modules/get-rusage-data-tests: New file.
11267         * tests/test-get-rusage-data.c: New file.
11268
11269         New module 'get-rusage-data'.
11270         * lib/resource-ext.h (get_rusage_data): New declaration.
11271         * lib/get-rusage-data.c: New file.
11272         * modules/get-rusage-data: New file.
11273
11274 2011-01-25  Bruno Haible  <bruno@clisp.org>
11275
11276         get-rusage-as: Allow for easier testing.
11277         * lib/resource-ext.h (get_rusage_as): Add comment.
11278         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11279         (main): New function for interactive testing.
11280
11281 2011-01-25  Bruno Haible  <bruno@clisp.org>
11282
11283         vma-iter: Treat Haiku like BeOS.
11284         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11285         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11286
11287 2011-01-25  Eric Blake  <eblake@redhat.com>
11288
11289         c-stack: fix regression on cygwin when libsigsegv is present
11290         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11291
11292 2011-01-24  Bruno Haible  <bruno@clisp.org>
11293
11294         vma-iter: Avoid empty intervals.
11295         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11296         on an empty interval.
11297
11298 2011-01-24  Jim Meyering  <meyering@redhat.com>
11299
11300         u64: remove unnecessary #include
11301         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11302
11303 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11306         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11307
11308 2011-01-23  Bruno Haible  <bruno@clisp.org>
11309
11310         New module 'vma-iter'.
11311         * lib/vma-iter.h: New file.
11312         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11313         * modules/vma-iter: New file.
11314         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11315         for get_rusage_as_via_iterator.
11316         (vma_iterate_callback): New function.
11317         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11318         * modules/get-rusage-as (Depends-on): Add vma-iter.
11319
11320 2011-01-23  Bruno Haible  <bruno@clisp.org>
11321
11322         uninorm: Tweak includes.
11323         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11324         Reported by Jim Meyering.
11325
11326 2011-01-23  Bruno Haible  <bruno@clisp.org>
11327
11328         get-rusage-as: Improve on NetBSD.
11329         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11330         /proc, like on FreeBSD.
11331
11332 2011-01-23  Jim Meyering  <meyering@redhat.com>
11333
11334         xreadlink.h: remove unnecessary #include
11335         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11336
11337         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11338         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11339
11340 2011-01-23  Bruno Haible  <bruno@clisp.org>
11341
11342         get-rusage-as: Fix bug.
11343         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11344         original limit when aborting the first loop.
11345
11346 2011-01-23  Bruno Haible  <bruno@clisp.org>
11347
11348         wctype: Ensure valid C syntax.
11349         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11350         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11351
11352 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11353
11354         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11356         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11357         as they are needed only for configure's test case.
11358         This removes two unnecessary symbols from config.h.
11359
11360         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11361         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11363         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11364         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11365         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11366         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11367         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11368         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11369         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11370         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11372         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11374         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11375         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11376         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11377         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11378
11379 2011-01-21  Eric Blake  <eblake@redhat.com>
11380
11381         maintainer-makefile: work with older git for submodule check
11382         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11383         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11384         Reported by Matthias Bolte.
11385
11386         bootstrap: minor portability fixes
11387         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11388         (usage): Omit leading capital and trailing . on help phrases, per
11389         GNU Coding Standards.
11390         (check_versions, top level): Prefix messages with script name.
11391
11392 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11393
11394         bootstrap: support --no-git option
11395         * build-aux/bootstrap: Add --no-git option, to be used when
11396         --gnulib-srcdir points to the exact desired checkout.
11397
11398 2011-01-21  Eric Blake  <eblake@redhat.com>
11399
11400         strerror_r-posix: work with glibc 2.13
11401         * lib/strerror_r.c (strerror_r): Fix return type.
11402
11403 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11404             Bruno Haible  <bruno@clisp.org>
11405
11406         uN_strstr: New unit tests.
11407         * modules/unistr/u8-strstr-tests: New file.
11408         * modules/unistr/u16-strstr-tests: New file.
11409         * modules/unistr/u32-strstr-tests: New file.
11410         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11411         * tests/unistr/test-u8-strstr.c: New file.
11412         * tests/unistr/test-u16-strstr.c: New file.
11413         * tests/unistr/test-u32-strstr.c: New file.
11414
11415 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11416             Bruno Haible  <bruno@clisp.org>
11417
11418         Make uN_strstr functions O(n) worst-case.
11419         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11420         16-bit and 32-bit unit cases, use the unibyte algorithm from
11421         lib/mbsstr.c.
11422         * lib/unistr/u8-strstr.c: Include <string.h>.
11423         (UNIT_IS_UINT8_T): New macro.
11424         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11425         (U_STRLEN, U_STRNLEN): New macros.
11426         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11427         (U_STRLEN, U_STRNLEN): New macros.
11428         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11429         (configure.ac): Update required libunistring version.
11430         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11431         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11432         malloca.
11433         (configure.ac): Update required libunistring version.
11434         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11435         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11436         malloca.
11437         (configure.ac): Update required libunistring version.
11438
11439 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11440             Bruno Haible  <bruno@clisp.org>
11441
11442         Prepare for faster uN_strstr functions.
11443         * lib/str-kmp.h: Support definable UNITs.
11444         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11445         needle_len argument.
11446         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11447         * lib/mbscasestr.c (mbscasestr): Likewise.
11448
11449 2011-01-21  Pádraig Brady <P@draigBrady.com>
11450
11451         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11452         * tests/test-malloca.c (main): Unset the environment variable
11453         to greatly speed up the test.
11454         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11455         * modules/malloca-tests: Depend on unsetenv.
11456
11457 2011-01-21  Pádraig Brady <P@draigBrady.com>
11458
11459         ignore-value: remove stdint dependency
11460         * lib/ignore-value.h: Remove <stdint.h>
11461         * modules/ignore-value: Remove stdint dependency.
11462
11463 2011-01-21  Jim Meyering  <meyering@redhat.com>
11464
11465         maint.mk: adjust variable name to be consistent with other gl_ vars
11466         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11467         to be lower case.
11468
11469 2011-01-20  Jim Meyering  <meyering@redhat.com>
11470
11471         maint.mk: make "check" depend on public-submodule-commit by default
11472         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11473
11474 2011-01-20  Bruno Haible  <bruno@clisp.org>
11475
11476         mbfile, mbiter: Complete change from 2008-12-21.
11477         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11478         * m4/mbiter.m4 (gl_MBITER): Likewise.
11479
11480 2011-01-20  Jim Meyering  <meyering@redhat.com>
11481
11482         init.sh: insert space between each function name and "()"
11483         * tests/init.sh: Make it a little easier to see that a function's
11484         name is "warn_", and not "warn" when looking at the first part of
11485         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11486
11487 2011-01-20  Jim Meyering  <meyering@redhat.com>
11488
11489         mountlist: clean up code formatting
11490         * lib/mountlist.c (read_file_system_list): Split a long line,
11491         correct bracing style, use NULL in place of "(struct statfs *)0",
11492         don't parenthesize return value, add spaces around "=" and after
11493         ";-in-for-stmt".
11494
11495 2011-01-14  Markus Duft <mduft@gentoo.org>
11496
11497         mountlist: add support for Interix
11498         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11499         Apply statvfs to all entries of /dev/fs.
11500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11501         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11502
11503 2011-01-20  Jim Meyering  <meyering@redhat.com>
11504
11505         maint.mk: improve the public-submodule-commit rule
11506         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11507         to suppress printing of its commands... unless V=1.
11508         Add git submodule's --quiet option to suppress printing of e.g.,
11509         "Entering gnulib" output.
11510         "cd" into $(srcdir) before running git submodule.
11511
11512 2011-01-20  Bruno Haible  <bruno@clisp.org>
11513
11514         include_next: Fix bug introduced on 2011-01-18.
11515         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11516         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11517         ac_cv_header_... variable if the second argument is not 'check'.
11518         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11519         gl_NEXT_HEADERS_INTERNAL.
11520
11521 2011-01-20  Bruno Haible  <bruno@clisp.org>
11522
11523         Allow the user to avoid the GNULIB_TEST_* macros.
11524         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11525         Suggested by Paul Eggert.
11526
11527 2011-01-14  Jim Meyering  <meyering@redhat.com>
11528
11529         bootstrap: avoid failure when there is no .gitmodules file
11530         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11531         has been assigned to, even when its value is the empty string.
11532         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11533         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11534         Reported by John W. Eaton <jwe@gnu.org>.
11535
11536 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11537
11538         assume <ctype.h>, ..., <time.h> exist
11539         For years gnulib has been assuming the existence of the headers
11540         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11541         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11542         them, since they don't appear to be needed.
11543         * README (Portability guidelines): Document this.
11544         * lib/flock.c: Assume <fcntl.h> exists.
11545         * lib/regex_internal.h: Assume <locale.h> exists.
11546         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11548         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11549         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11550         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11551         * m4/regex.m4 (gl_REGEX): Likewise.
11552         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11553         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11554         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11555         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11556         * tests/test-argp.c: Likewise.
11557         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11558
11559         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11560         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11561         AA_APPLE_UNIVERSAL_BUILD.  See
11562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11563         * NEWS: Document this.
11564
11565 2011-01-19  Eric Blake  <eblake@redhat.com>
11566
11567         c-stack: assume stack overflow if SA_SIGINFO unsupported
11568         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11569         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11570         sigaction will work.
11571         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11572         behavior match Linux.
11573         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11574
11575         stdbool-tests: accomodate Haiku
11576         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11577
11578         binary-io: fix O_TEXT on Haiku
11579         * modules/binary-io (Depends-on): Add fcntl-h.
11580         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11581         than blindly undefining O_TEXT.
11582         Reported by Scott McCreary.
11583
11584 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         include_next: do not check for standard headers like stddef.h
11587
11588         I found this problem when modifying Emacs to use gnulib.
11589         I noticed that it added HAVE_STDDEF_H to config.h, even though
11590         gnulib always assumes <stddef.h> exists as per README and this
11591         symbol is unnecessary.
11592         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11593         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11594         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11595         faster for headers like stddef.h that are known to exist.
11596         (gl_CHECK_NEXT_HEADERS): Use it.
11597         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11598         rather than gl_CHECK_NEXT_HEADERS.
11599         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11600         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11601
11602 2011-01-18  Eric Blake  <eblake@redhat.com>
11603
11604         ansi-c++-opt: skip C++ dependency style if C++ is unused
11605         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11606         tests when we know C++ compilation is not desired.
11607         Reported by Scott McCreary.
11608
11609 2011-01-18  Bruno Haible  <bruno@clisp.org>
11610
11611         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11612         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11613         (main): Perform test also when getrlimit and setrlimit don't exist or
11614         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11615         limiting the address space size using setrlimit, compare the address
11616         space size before and after the the test.
11617         * tests/test-dprintf-posix2.c: Likewise.
11618         * tests/test-fprintf-posix3.sh: Update skip messages.
11619         * tests/test-dprintf-posix2.sh: Likewise.
11620         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11621         * modules/dprintf-posix-tests (Depends-on): Likewise.
11622         Reported by Bruce Korb <bkorb@gnu.org> and
11623         Gary V. Vaughan <gary@gnu.org>.
11624
11625 2011-01-18  Bruno Haible  <bruno@clisp.org>
11626
11627         get-rusage-as: Improvement for Cygwin.
11628         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11629         areas that are merely reserved.
11630
11631 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11632
11633         strftime: remove dependencies on multibyte modules
11634
11635         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11636         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11637         only if __osf__ is defined, and I suspect OSF doesn't need these
11638         other modules.  If my guess is wrong, we'll need to come up with a
11639         variant of strftime that doesn't need the multibyte modules.
11640
11641         I discovered this problem when attempting modify Emacs to use the
11642         strftime module.  With the previous gnulib, this caused Emacs to
11643         need 31 new files, ranging from lib/config.charset to
11644         m4/wint_t.m4.  This was overkill and I expect would be offputting
11645         to the Emacs maintainers.  After this change, only 6 new files are
11646         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11647         stdbool.m4, and tm_gmtoff.m4.
11648
11649         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11650         Suggested by Bruno Haible in
11651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11652         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11653         and do not check for wchar.h.
11654         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11655         (Depends-on): Remove mbrlen, mbsinit, wchar.
11656
11657 2011-01-18  Bruno Haible  <bruno@clisp.org>
11658
11659         Tests for module 'get-rusage-as'.
11660         * modules/get-rusage-as-tests: New file.
11661         * tests/test-get-rusage-as.c: New file.
11662
11663         New module 'get-rusage-as'.
11664         * modules/get-rusage-as: New file.
11665         * lib/resource-ext.h: New file.
11666         * lib/get-rusage-as.c: New file.
11667
11668 2011-01-17  Eric Blake  <eblake@redhat.com>
11669
11670         sigaction: relax license from LGPLv3+ to LGPLv2+
11671         * modules/sigaction (License): Relax to LGPLv2+.
11672
11673 2011-01-14  Bruno Haible  <bruno@clisp.org>
11674
11675         filemode: Make function declarations usable in C++ mode.
11676         * lib/filemode.h: Enclose function declarations in extern "C" block.
11677         Reported by John W. Eaton <jwe@gnu.org>.
11678
11679 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11680
11681         save-cwd: no longer include "xgetcwd.h"
11682         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11683         This avoids a compilation failure in projects that use save-cwd
11684         without also using the xgetcwd module.
11685
11686 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11687
11688         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11689         This is so that a program like Emacs, which needs only dtoastr,
11690         does not have to bother with distributing and compiling ftoastr
11691         and ldtoastr.
11692         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11693         * modules/dtoastr, modules/ldtoastr: New files.
11694         * modules/ftoastr: Now works just for 'float'.
11695         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11696         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11697         dtoastr.c, ldtoastr.c.
11698
11699 2011-01-11  Jim Meyering  <meyering@redhat.com>
11700
11701         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11702         There is no need to work around the lack of the fchdir function,
11703         since gnulib can now provide a replacement when required.
11704         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11705         * modules/save-cwd (Depends-on): Add fchdir.
11706
11707 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         openat, save-cwd: avoid xmalloc
11710
11711         This removes a direct (but undocumented) dependency of openat on
11712         xalloc, along with an indirect dependency via save-cwd.  It also
11713         removes a dependency of save-cwd on xgetcwd, and thereby
11714         indirectly on xalloc.  This change causes the openat substitute
11715         to fall back on save_cwd when memory is tight, and for save_cwd to
11716         fail instead of dying when memory is tight, but that's good enough.
11717         Problem and initial idea for fix reported by Bastien Roucaries in
11718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11719
11720         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11721         xalloc.h (for xmalloc).
11722         (openat_proc_name): Use malloc, not xmalloc.
11723         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11724         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11725
11726         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11727         This avoids heap allocation for file names whose lengths are in
11728         the range 512..1023, with the upper bound increasing to at most
11729         4031 depending on the platform's PATH_MAX.  (We do not want
11730         pathmax.h here as it might supply a non-constant PATH_MAX.)
11731         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11732         Perhaps they should be moved to malloca.h?
11733         (OPENAT_BUFFER_SIZE): Use them.
11734
11735 2011-01-10  Bruno Haible  <bruno@clisp.org>
11736
11737         doc: Update users.txt.
11738         * users.txt: Add recutils.
11739
11740 2011-01-09  Karl Berry  <karl@gnu.org>
11741
11742         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11743
11744         * doc/configmake.texi: New file.
11745         * doc/gnulib.texi: Include it.
11746         * modules/configmake: Move documentation from here.
11747
11748 2011-01-09  Bruno Haible  <bruno@clisp.org>
11749
11750         Update to Unicode 6.0.0.
11751         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11752         (get_lbp): Update for Unicode 6.0.0.
11753         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11754         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11755         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11756         U+11001, U+11038..U+11046. Remove U+06DE.
11757         (uc_width): Fix bounds of planes.
11758         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11759         lib/uniwidth/width.c.
11760         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11761         trailing whitespace removed.
11762         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11763         without comments, but with the original copyright notice.
11764         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11765         * lib/unicase/ignorable.h: Likewise.
11766         * lib/unicase/tocasefold.h: Likewise.
11767         * lib/unicase/tolower.h: Likewise.
11768         * lib/unicase/totitle.h: Likewise.
11769         * lib/unicase/toupper.h: Likewise.
11770         * lib/unictype/bidi_of.h: Likewise.
11771         * lib/unictype/blocks.h: Likewise.
11772         * lib/unictype/categ_C.h: Likewise.
11773         * lib/unictype/categ_Cn.h: Likewise.
11774         * lib/unictype/categ_L.h: Likewise.
11775         * lib/unictype/categ_Ll.h: Likewise.
11776         * lib/unictype/categ_Lm.h: Likewise.
11777         * lib/unictype/categ_Lo.h: Likewise.
11778         * lib/unictype/categ_Lu.h: Likewise.
11779         * lib/unictype/categ_M.h: Likewise.
11780         * lib/unictype/categ_Mc.h: Likewise.
11781         * lib/unictype/categ_Me.h: Likewise.
11782         * lib/unictype/categ_Mn.h: Likewise.
11783         * lib/unictype/categ_N.h: Likewise.
11784         * lib/unictype/categ_Nd.h: Likewise.
11785         * lib/unictype/categ_No.h: Likewise.
11786         * lib/unictype/categ_P.h: Likewise.
11787         * lib/unictype/categ_Po.h: Likewise.
11788         * lib/unictype/categ_S.h: Likewise.
11789         * lib/unictype/categ_Sc.h: Likewise.
11790         * lib/unictype/categ_Sk.h: Likewise.
11791         * lib/unictype/categ_Sm.h: Likewise.
11792         * lib/unictype/categ_So.h: Likewise.
11793         * lib/unictype/categ_of.h: Likewise.
11794         * lib/unictype/combining.h: Likewise.
11795         * lib/unictype/ctype_alnum.h: Likewise.
11796         * lib/unictype/ctype_alpha.h: Likewise.
11797         * lib/unictype/ctype_graph.h: Likewise.
11798         * lib/unictype/ctype_lower.h: Likewise.
11799         * lib/unictype/ctype_print.h: Likewise.
11800         * lib/unictype/ctype_punct.h: Likewise.
11801         * lib/unictype/ctype_upper.h: Likewise.
11802         * lib/unictype/decdigit.h: Likewise.
11803         * lib/unictype/digit.h: Likewise.
11804         * lib/unictype/numeric.h: Likewise.
11805         * lib/unictype/pr_alphabetic.h: Likewise.
11806         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11807         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11808         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11809         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11810         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11811         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11812         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11813         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11814         * lib/unictype/pr_case_ignorable.h: Likewise.
11815         * lib/unictype/pr_cased.h: Likewise.
11816         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11817         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11818         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11819         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11820         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11821         * lib/unictype/pr_combining.h: Likewise.
11822         * lib/unictype/pr_composite.h: Likewise.
11823         * lib/unictype/pr_currency_symbol.h: Likewise.
11824         * lib/unictype/pr_decimal_digit.h: Likewise.
11825         * lib/unictype/pr_deprecated.h: Likewise.
11826         * lib/unictype/pr_format_control.h: Likewise.
11827         * lib/unictype/pr_grapheme_base.h: Likewise.
11828         * lib/unictype/pr_grapheme_extend.h: Likewise.
11829         * lib/unictype/pr_grapheme_link.h: Likewise.
11830         * lib/unictype/pr_id_continue.h: Likewise.
11831         * lib/unictype/pr_id_start.h: Likewise.
11832         * lib/unictype/pr_ideographic.h: Likewise.
11833         * lib/unictype/pr_lowercase.h: Likewise.
11834         * lib/unictype/pr_math.h: Likewise.
11835         * lib/unictype/pr_numeric.h: Likewise.
11836         * lib/unictype/pr_other_alphabetic.h: Likewise.
11837         * lib/unictype/pr_other_id_continue.h: Likewise.
11838         * lib/unictype/pr_other_math.h: Likewise.
11839         * lib/unictype/pr_punctuation.h: Likewise.
11840         * lib/unictype/pr_sentence_terminal.h: Likewise.
11841         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11842         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11843         * lib/unictype/pr_unified_ideograph.h: Likewise.
11844         * lib/unictype/pr_uppercase.h: Likewise.
11845         * lib/unictype/pr_xid_continue.h: Likewise.
11846         * lib/unictype/pr_xid_start.h: Likewise.
11847         * lib/unictype/scripts.h: Likewise.
11848         * lib/unictype/scripts_byname.gperf: Likewise.
11849         * lib/unictype/sy_java_ident.h: Likewise.
11850         * lib/unigbrk/gbrkprop.h: Likewise.
11851         * lib/unilbrk/lbrkprop1.h: Likewise.
11852         * lib/unilbrk/lbrkprop2.h: Likewise.
11853         * lib/uninorm/decomposition-table2.h: Likewise.
11854         * lib/uniwbrk/wbrkprop.h: Likewise.
11855         * tests/unicase/test-cased.c: Likewise.
11856         * tests/unicase/test-ignorable.c: Likewise.
11857         * tests/unicase/test-uc_tolower.c: Likewise.
11858         * tests/unicase/test-uc_totitle.c: Likewise.
11859         * tests/unicase/test-uc_toupper.c: Likewise.
11860         * tests/unictype/test-categ_C.c: Likewise.
11861         * tests/unictype/test-categ_Cn.c: Likewise.
11862         * tests/unictype/test-categ_L.c: Likewise.
11863         * tests/unictype/test-categ_Ll.c: Likewise.
11864         * tests/unictype/test-categ_Lm.c: Likewise.
11865         * tests/unictype/test-categ_Lo.c: Likewise.
11866         * tests/unictype/test-categ_Lu.c: Likewise.
11867         * tests/unictype/test-categ_M.c: Likewise.
11868         * tests/unictype/test-categ_Mc.c: Likewise.
11869         * tests/unictype/test-categ_Me.c: Likewise.
11870         * tests/unictype/test-categ_Mn.c: Likewise.
11871         * tests/unictype/test-categ_N.c: Likewise.
11872         * tests/unictype/test-categ_Nd.c: Likewise.
11873         * tests/unictype/test-categ_No.c: Likewise.
11874         * tests/unictype/test-categ_P.c: Likewise.
11875         * tests/unictype/test-categ_Po.c: Likewise.
11876         * tests/unictype/test-categ_S.c: Likewise.
11877         * tests/unictype/test-categ_Sc.c: Likewise.
11878         * tests/unictype/test-categ_Sk.c: Likewise.
11879         * tests/unictype/test-categ_Sm.c: Likewise.
11880         * tests/unictype/test-categ_So.c: Likewise.
11881         * tests/unictype/test-ctype_alnum.c: Likewise.
11882         * tests/unictype/test-ctype_alpha.c: Likewise.
11883         * tests/unictype/test-ctype_graph.c: Likewise.
11884         * tests/unictype/test-ctype_lower.c: Likewise.
11885         * tests/unictype/test-ctype_print.c: Likewise.
11886         * tests/unictype/test-ctype_punct.c: Likewise.
11887         * tests/unictype/test-ctype_upper.c: Likewise.
11888         * tests/unictype/test-decdigit.h: Likewise.
11889         * tests/unictype/test-digit.h: Likewise.
11890         * tests/unictype/test-numeric.h: Likewise.
11891         * tests/unictype/test-pr_alphabetic.c: Likewise.
11892         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11893         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11894         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11895         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11896         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11897         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11898         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11899         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11900         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11901         * tests/unictype/test-pr_cased.c: Likewise.
11902         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11903         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11904         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11905         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11906         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11907         * tests/unictype/test-pr_combining.c: Likewise.
11908         * tests/unictype/test-pr_composite.c: Likewise.
11909         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11910         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11911         * tests/unictype/test-pr_deprecated.c: Likewise.
11912         * tests/unictype/test-pr_format_control.c: Likewise.
11913         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11914         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11915         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11916         * tests/unictype/test-pr_id_continue.c: Likewise.
11917         * tests/unictype/test-pr_id_start.c: Likewise.
11918         * tests/unictype/test-pr_ideographic.c: Likewise.
11919         * tests/unictype/test-pr_lowercase.c: Likewise.
11920         * tests/unictype/test-pr_math.c: Likewise.
11921         * tests/unictype/test-pr_numeric.c: Likewise.
11922         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11923         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11924         * tests/unictype/test-pr_other_math.c: Likewise.
11925         * tests/unictype/test-pr_punctuation.c: Likewise.
11926         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11927         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11928         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11929         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11930         * tests/unictype/test-pr_uppercase.c: Likewise.
11931         * tests/unictype/test-pr_xid_continue.c: Likewise.
11932         * tests/unictype/test-pr_xid_start.c: Likewise.
11933         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11934         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11935         changes.
11936         * lib/unictype/categ_Cc.h: Likewise.
11937         * lib/unictype/categ_Cf.h: Likewise.
11938         * lib/unictype/categ_Co.h: Likewise.
11939         * lib/unictype/categ_Cs.h: Likewise.
11940         * lib/unictype/categ_Lt.h: Likewise.
11941         * lib/unictype/categ_Nl.h: Likewise.
11942         * lib/unictype/categ_Pc.h: Likewise.
11943         * lib/unictype/categ_Pd.h: Likewise.
11944         * lib/unictype/categ_Pe.h: Likewise.
11945         * lib/unictype/categ_Pf.h: Likewise.
11946         * lib/unictype/categ_Pi.h: Likewise.
11947         * lib/unictype/categ_Ps.h: Likewise.
11948         * lib/unictype/categ_Z.h: Likewise.
11949         * lib/unictype/categ_Zl.h: Likewise.
11950         * lib/unictype/categ_Zp.h: Likewise.
11951         * lib/unictype/categ_Zs.h: Likewise.
11952         * lib/unictype/ctype_blank.h: Likewise.
11953         * lib/unictype/ctype_cntrl.h: Likewise.
11954         * lib/unictype/ctype_digit.h: Likewise.
11955         * lib/unictype/ctype_space.h: Likewise.
11956         * lib/unictype/ctype_xdigit.h: Likewise.
11957         * lib/unictype/mirror.h: Likewise.
11958         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11959         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11960         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11961         * lib/unictype/pr_bidi_control.h: Likewise.
11962         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11963         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11964         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11965         * lib/unictype/pr_bidi_pdf.h: Likewise.
11966         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11967         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11968         * lib/unictype/pr_dash.h: Likewise.
11969         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11970         * lib/unictype/pr_diacritic.h: Likewise.
11971         * lib/unictype/pr_extender.h: Likewise.
11972         * lib/unictype/pr_hex_digit.h: Likewise.
11973         * lib/unictype/pr_hyphen.h: Likewise.
11974         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11975         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11976         * lib/unictype/pr_ignorable_control.h: Likewise.
11977         * lib/unictype/pr_iso_control.h: Likewise.
11978         * lib/unictype/pr_join_control.h: Likewise.
11979         * lib/unictype/pr_left_of_pair.h: Likewise.
11980         * lib/unictype/pr_line_separator.h: Likewise.
11981         * lib/unictype/pr_logical_order_exception.h: Likewise.
11982         * lib/unictype/pr_non_break.h: Likewise.
11983         * lib/unictype/pr_not_a_character.h: Likewise.
11984         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11985         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11986         * lib/unictype/pr_other_id_start.h: Likewise.
11987         * lib/unictype/pr_other_lowercase.h: Likewise.
11988         * lib/unictype/pr_other_uppercase.h: Likewise.
11989         * lib/unictype/pr_paired_punctuation.h: Likewise.
11990         * lib/unictype/pr_paragraph_separator.h: Likewise.
11991         * lib/unictype/pr_pattern_syntax.h: Likewise.
11992         * lib/unictype/pr_pattern_white_space.h: Likewise.
11993         * lib/unictype/pr_private_use.h: Likewise.
11994         * lib/unictype/pr_quotation_mark.h: Likewise.
11995         * lib/unictype/pr_radical.h: Likewise.
11996         * lib/unictype/pr_soft_dotted.h: Likewise.
11997         * lib/unictype/pr_space.h: Likewise.
11998         * lib/unictype/pr_titlecase.h: Likewise.
11999         * lib/unictype/pr_variation_selector.h: Likewise.
12000         * lib/unictype/pr_white_space.h: Likewise.
12001         * lib/unictype/pr_zero_width.h: Likewise.
12002         * lib/unictype/sy_c_ident.h: Likewise.
12003         * lib/unictype/sy_c_whitespace.h: Likewise.
12004         * lib/unictype/sy_java_whitespace.h: Likewise.
12005         * lib/uninorm/composition-table.gperf: Likewise.
12006         * lib/uninorm/decomposition-table1.h: Likewise.
12007         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12008         LB8.
12009         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12010         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12011         * modules/unictype/*: Bump version number of expected libunistring
12012         version.
12013
12014 2011-01-09  Bruno Haible  <bruno@clisp.org>
12015
12016         Update to Unicode 5.2.0.
12017         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12018         trailing whitespace removed.
12019
12020 2011-01-09  Bruno Haible  <bruno@clisp.org>
12021
12022         New Unicode character properties, from Unicode 5.2.0.
12023         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12024         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12025         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12026         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12027         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12028         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12029         uc_is_property_cased, uc_is_property_case_ignorable,
12030         uc_is_property_changes_when_lowercased,
12031         uc_is_property_changes_when_uppercased,
12032         uc_is_property_changes_when_titlecased,
12033         uc_is_property_changes_when_casefolded,
12034         uc_is_property_changes_when_casemapped): New declarations.
12035         * lib/unictype/pr_byname.gperf: Add the new properties.
12036         * modules/unictype/property-byname (Depends-on): Depend on the new
12037         properties modules.
12038         * modules/unictype/property-all (Depends-on): Likewise.
12039         * MODULES.html.sh (Unicode string functions): Add
12040         unictype/property-case-ignorable, unictype/property-cased,
12041         unictype/property-changes-when-casefolded,
12042         unictype/property-changes-when-casemapped,
12043         unictype/property-changes-when-lowercased,
12044         unictype/property-changes-when-titlecased,
12045         unictype/property-changes-when-uppercased.
12046
12047         New module 'unictype/property-changes-when-casemapped'.
12048         * modules/unictype/property-changes-when-casemapped: New file.
12049         * lib/unictype/pr_changes_when_casemapped.c: New file.
12050         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12051         generated by gen-uni-tables.
12052         * modules/unictype/property-changes-when-casemapped-tests: New file.
12053         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12054         automatically generated by gen-uni-tables.
12055
12056         New module 'unictype/property-changes-when-casefolded'.
12057         * modules/unictype/property-changes-when-casefolded: New file.
12058         * lib/unictype/pr_changes_when_casefolded.c: New file.
12059         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12060         generated by gen-uni-tables.
12061         * modules/unictype/property-changes-when-casefolded-tests: New file.
12062         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12063         automatically generated by gen-uni-tables.
12064
12065         New module 'unictype/property-changes-when-titlecased'.
12066         * modules/unictype/property-changes-when-titlecased: New file.
12067         * lib/unictype/pr_changes_when_titlecased.c: New file.
12068         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12069         generated by gen-uni-tables.
12070         * modules/unictype/property-changes-when-titlecased-tests: New file.
12071         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12072         automatically generated by gen-uni-tables.
12073
12074         New module 'unictype/property-changes-when-uppercased'.
12075         * modules/unictype/property-changes-when-uppercased: New file.
12076         * lib/unictype/pr_changes_when_uppercased.c: New file.
12077         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12078         generated by gen-uni-tables.
12079         * modules/unictype/property-changes-when-uppercased-tests: New file.
12080         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12081         automatically generated by gen-uni-tables.
12082
12083         New module 'unictype/property-changes-when-lowercased'.
12084         * modules/unictype/property-changes-when-lowercased: New file.
12085         * lib/unictype/pr_changes_when_lowercased.c: New file.
12086         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12087         generated by gen-uni-tables.
12088         * modules/unictype/property-changes-when-lowercased-tests: New file.
12089         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12090         automatically generated by gen-uni-tables.
12091
12092         New module 'unictype/property-case-ignorable'.
12093         * modules/unictype/property-case-ignorable: New file.
12094         * lib/unictype/pr_case_ignorable.c: New file.
12095         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12096         by gen-uni-tables.
12097         * modules/unictype/property-case-ignorable-tests: New file.
12098         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12099         generated by gen-uni-tables.
12100
12101         New module 'unictype/property-cased'.
12102         * modules/unictype/property-cased: New file.
12103         * lib/unictype/pr_cased.c: New file.
12104         * lib/unictype/pr_cased.h: New file, automatically generated by
12105         gen-uni-tables.
12106         * modules/unictype/property-cased-tests: New file.
12107         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12108         gen-uni-tables.
12109
12110 2011-01-09  Bruno Haible  <bruno@clisp.org>
12111
12112         Update to Unicode 5.2.0.
12113         * lib/gen-uni-tables.c (output_predicate, output_category,
12114         output_combclass, output_bidi_category, output_decimal_digit_test,
12115         output_decimal_digit, output_digit_test, output_digit,
12116         output_numeric_test, output_numeric, output_mirror, output_scripts,
12117         output_scripts_byname, output_blocks, output_ident_category): Fix
12118         comment header.
12119         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12120         get_wbp.
12121         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12122         items.
12123         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12124         Changes_When_Lowercased, Changes_When_Uppercased,
12125         Changes_When_Titlecased, Changes_When_Casefolded,
12126         Changes_When_Casemapped.
12127         (is_property_alphabetic, is_property_default_ignorable_code_point):
12128         Update for Unicode 5.2.0.
12129         (is_property_cased, is_property_case_ignorable,
12130         is_property_changes_when_lowercased,
12131         is_property_changes_when_uppercased,
12132         is_property_changes_when_titlecased,
12133         is_property_changes_when_casefolded,
12134         is_property_changes_when_casemapped): New functions.
12135         (output_properties): Output also the properties cased, case_ignorable,
12136         changes_when_lowercased, changes_when_uppercased,
12137         changes_when_titlecased, changes_when_casefolded,
12138         changes_when_casemapped.
12139         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12140         Unicode TR#11 revision 17 -> 19.
12141         (LBP_CP): New enumeration value.
12142         (LBP_*): Adjust values accordingly.
12143         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12144         TR#14 revision 22 -> 24.
12145         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12146         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12147         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12148         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12149         is_WBP_MIDLETTER.
12150         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12151         the code1 and code2 of each composition rule.
12152         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12153         * lib/unicase/ignorable.h: Likewise.
12154         * lib/unicase/tocasefold.h: Likewise.
12155         * lib/unicase/tolower.h: Likewise.
12156         * lib/unicase/totitle.h: Likewise.
12157         * lib/unicase/toupper.h: Likewise.
12158         * lib/unictype/bidi_of.h: Likewise.
12159         * lib/unictype/blocks.h: Likewise.
12160         * lib/unictype/categ_C.h: Likewise.
12161         * lib/unictype/categ_Cf.h: Likewise.
12162         * lib/unictype/categ_Cn.h: Likewise.
12163         * lib/unictype/categ_L.h: Likewise.
12164         * lib/unictype/categ_Ll.h: Likewise.
12165         * lib/unictype/categ_Lm.h: Likewise.
12166         * lib/unictype/categ_Lo.h: Likewise.
12167         * lib/unictype/categ_Lu.h: Likewise.
12168         * lib/unictype/categ_M.h: Likewise.
12169         * lib/unictype/categ_Mc.h: Likewise.
12170         * lib/unictype/categ_Mn.h: Likewise.
12171         * lib/unictype/categ_N.h: Likewise.
12172         * lib/unictype/categ_Nd.h: Likewise.
12173         * lib/unictype/categ_Nl.h: Likewise.
12174         * lib/unictype/categ_No.h: Likewise.
12175         * lib/unictype/categ_P.h: Likewise.
12176         * lib/unictype/categ_Pd.h: Likewise.
12177         * lib/unictype/categ_Po.h: Likewise.
12178         * lib/unictype/categ_S.h: Likewise.
12179         * lib/unictype/categ_Sc.h: Likewise.
12180         * lib/unictype/categ_So.h: Likewise.
12181         * lib/unictype/categ_of.h: Likewise.
12182         * lib/unictype/combining.h: Likewise.
12183         * lib/unictype/ctype_alnum.h: Likewise.
12184         * lib/unictype/ctype_alpha.h: Likewise.
12185         * lib/unictype/ctype_graph.h: Likewise.
12186         * lib/unictype/ctype_lower.h: Likewise.
12187         * lib/unictype/ctype_print.h: Likewise.
12188         * lib/unictype/ctype_punct.h: Likewise.
12189         * lib/unictype/ctype_upper.h: Likewise.
12190         * lib/unictype/decdigit.h: Likewise.
12191         * lib/unictype/digit.h: Likewise.
12192         * lib/unictype/numeric.h: Likewise.
12193         * lib/unictype/pr_alphabetic.h: Likewise.
12194         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12195         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12196         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12197         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12198         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12199         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12200         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12201         * lib/unictype/pr_combining.h: Likewise.
12202         * lib/unictype/pr_composite.h: Likewise.
12203         * lib/unictype/pr_currency_symbol.h: Likewise.
12204         * lib/unictype/pr_dash.h: Likewise.
12205         * lib/unictype/pr_decimal_digit.h: Likewise.
12206         * lib/unictype/pr_deprecated.h: Likewise.
12207         * lib/unictype/pr_diacritic.h: Likewise.
12208         * lib/unictype/pr_extender.h: Likewise.
12209         * lib/unictype/pr_grapheme_base.h: Likewise.
12210         * lib/unictype/pr_grapheme_extend.h: Likewise.
12211         * lib/unictype/pr_grapheme_link.h: Likewise.
12212         * lib/unictype/pr_id_continue.h: Likewise.
12213         * lib/unictype/pr_id_start.h: Likewise.
12214         * lib/unictype/pr_ideographic.h: Likewise.
12215         * lib/unictype/pr_ignorable_control.h: Likewise.
12216         * lib/unictype/pr_logical_order_exception.h: Likewise.
12217         * lib/unictype/pr_lowercase.h: Likewise.
12218         * lib/unictype/pr_numeric.h: Likewise.
12219         * lib/unictype/pr_other_alphabetic.h: Likewise.
12220         * lib/unictype/pr_punctuation.h: Likewise.
12221         * lib/unictype/pr_sentence_terminal.h: Likewise.
12222         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12223         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12224         * lib/unictype/pr_unified_ideograph.h: Likewise.
12225         * lib/unictype/pr_uppercase.h: Likewise.
12226         * lib/unictype/pr_xid_continue.h: Likewise.
12227         * lib/unictype/pr_xid_start.h: Likewise.
12228         * lib/unictype/pr_zero_width.h: Likewise.
12229         * lib/unictype/scripts.h: Likewise.
12230         * lib/unictype/scripts_byname.gperf: Likewise.
12231         * lib/unictype/sy_java_ident.h: Likewise.
12232         * lib/unigbrk/gbrkprop.h: Likewise.
12233         * lib/unilbrk/lbrkprop1.h: Likewise.
12234         * lib/unilbrk/lbrkprop2.h: Likewise.
12235         * lib/unilbrk/lbrktables.h: Likewise.
12236         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12237         LBP_CP. Implement rule LB30.
12238         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12239         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12240         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12241         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12242         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12243         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12244         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12245         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12246         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12247         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12248         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12249         bits instead of 16 bits in the code1 and code2 of each composition
12250         rule.
12251         (uc_composition): Update for Unicode 5.2.0.
12252         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12253         * lib/uninorm/decomposition-table2.h: Likewise.
12254         * lib/uniwbrk/wbrkprop.h: Likewise.
12255         * tests/unicase/test-cased.c: Likewise.
12256         * tests/unicase/test-ignorable.c: Likewise.
12257         * tests/unicase/test-uc_tolower.c: Likewise.
12258         * tests/unicase/test-uc_totitle.c: Likewise.
12259         * tests/unicase/test-uc_toupper.c: Likewise.
12260         * tests/unictype/test-categ_C.c: Likewise.
12261         * tests/unictype/test-categ_Cf.c: Likewise.
12262         * tests/unictype/test-categ_Cn.c: Likewise.
12263         * tests/unictype/test-categ_L.c: Likewise.
12264         * tests/unictype/test-categ_Ll.c: Likewise.
12265         * tests/unictype/test-categ_Lm.c: Likewise.
12266         * tests/unictype/test-categ_Lo.c: Likewise.
12267         * tests/unictype/test-categ_Lu.c: Likewise.
12268         * tests/unictype/test-categ_M.c: Likewise.
12269         * tests/unictype/test-categ_Mc.c: Likewise.
12270         * tests/unictype/test-categ_Mn.c: Likewise.
12271         * tests/unictype/test-categ_N.c: Likewise.
12272         * tests/unictype/test-categ_Nd.c: Likewise.
12273         * tests/unictype/test-categ_Nl.c: Likewise.
12274         * tests/unictype/test-categ_No.c: Likewise.
12275         * tests/unictype/test-categ_P.c: Likewise.
12276         * tests/unictype/test-categ_Pd.c: Likewise.
12277         * tests/unictype/test-categ_Po.c: Likewise.
12278         * tests/unictype/test-categ_S.c: Likewise.
12279         * tests/unictype/test-categ_Sc.c: Likewise.
12280         * tests/unictype/test-categ_So.c: Likewise.
12281         * tests/unictype/test-ctype_alnum.c: Likewise.
12282         * tests/unictype/test-ctype_alpha.c: Likewise.
12283         * tests/unictype/test-ctype_graph.c: Likewise.
12284         * tests/unictype/test-ctype_lower.c: Likewise.
12285         * tests/unictype/test-ctype_print.c: Likewise.
12286         * tests/unictype/test-ctype_punct.c: Likewise.
12287         * tests/unictype/test-ctype_upper.c: Likewise.
12288         * tests/unictype/test-decdigit.h: Likewise.
12289         * tests/unictype/test-digit.h: Likewise.
12290         * tests/unictype/test-numeric.h: Likewise.
12291         * tests/unictype/test-pr_alphabetic.c: Likewise.
12292         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12293         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12294         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12295         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12296         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12297         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12298         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12299         * tests/unictype/test-pr_combining.c: Likewise.
12300         * tests/unictype/test-pr_composite.c: Likewise.
12301         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12302         * tests/unictype/test-pr_dash.c: Likewise.
12303         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12304         * tests/unictype/test-pr_deprecated.c: Likewise.
12305         * tests/unictype/test-pr_diacritic.c: Likewise.
12306         * tests/unictype/test-pr_extender.c: Likewise.
12307         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12308         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12309         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12310         * tests/unictype/test-pr_id_continue.c: Likewise.
12311         * tests/unictype/test-pr_id_start.c: Likewise.
12312         * tests/unictype/test-pr_ideographic.c: Likewise.
12313         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12314         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12315         * tests/unictype/test-pr_lowercase.c: Likewise.
12316         * tests/unictype/test-pr_numeric.c: Likewise.
12317         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12318         * tests/unictype/test-pr_punctuation.c: Likewise.
12319         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12320         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12321         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12322         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12323         * tests/unictype/test-pr_uppercase.c: Likewise.
12324         * tests/unictype/test-pr_xid_continue.c: Likewise.
12325         * tests/unictype/test-pr_xid_start.c: Likewise.
12326         * tests/unictype/test-pr_zero_width.c: Likewise.
12327         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12328         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12329         changed behaviour: line breaking is now disallowed between a letter
12330         or '=' and '('.
12331         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12332         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12333         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12334         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12335         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12336         lib/uniwidth/width.c.
12337         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12338         without comments, but with the original copyright notice.
12339         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12340         changes.
12341         * lib/unictype/categ_Cc.h: Likewise.
12342         * lib/unictype/categ_Co.h: Likewise.
12343         * lib/unictype/categ_Cs.h: Likewise.
12344         * lib/unictype/categ_Lt.h: Likewise.
12345         * lib/unictype/categ_Me.h: Likewise.
12346         * lib/unictype/categ_Pc.h: Likewise.
12347         * lib/unictype/categ_Pe.h: Likewise.
12348         * lib/unictype/categ_Pf.h: Likewise.
12349         * lib/unictype/categ_Pi.h: Likewise.
12350         * lib/unictype/categ_Ps.h: Likewise.
12351         * lib/unictype/categ_Sk.h: Likewise.
12352         * lib/unictype/categ_Sm.h: Likewise.
12353         * lib/unictype/categ_Z.h: Likewise.
12354         * lib/unictype/categ_Zl.h: Likewise.
12355         * lib/unictype/categ_Zp.h: Likewise.
12356         * lib/unictype/categ_Zs.h: Likewise.
12357         * lib/unictype/ctype_blank.h: Likewise.
12358         * lib/unictype/ctype_cntrl.h: Likewise.
12359         * lib/unictype/ctype_digit.h: Likewise.
12360         * lib/unictype/ctype_space.h: Likewise.
12361         * lib/unictype/ctype_xdigit.h: Likewise.
12362         * lib/unictype/mirror.h: Likewise.
12363         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12364         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12365         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12366         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12367         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12368         * lib/unictype/pr_bidi_control.h: Likewise.
12369         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12370         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12371         * lib/unictype/pr_bidi_pdf.h: Likewise.
12372         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12373         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12374         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12375         * lib/unictype/pr_format_control.h: Likewise.
12376         * lib/unictype/pr_hex_digit.h: Likewise.
12377         * lib/unictype/pr_hyphen.h: Likewise.
12378         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12379         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12380         * lib/unictype/pr_iso_control.h: Likewise.
12381         * lib/unictype/pr_join_control.h: Likewise.
12382         * lib/unictype/pr_left_of_pair.h: Likewise.
12383         * lib/unictype/pr_line_separator.h: Likewise.
12384         * lib/unictype/pr_math.h: Likewise.
12385         * lib/unictype/pr_non_break.h: Likewise.
12386         * lib/unictype/pr_not_a_character.h: Likewise.
12387         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12388         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12389         * lib/unictype/pr_other_id_continue.h: Likewise.
12390         * lib/unictype/pr_other_id_start.h: Likewise.
12391         * lib/unictype/pr_other_lowercase.h: Likewise.
12392         * lib/unictype/pr_other_math.h: Likewise.
12393         * lib/unictype/pr_other_uppercase.h: Likewise.
12394         * lib/unictype/pr_paired_punctuation.h: Likewise.
12395         * lib/unictype/pr_paragraph_separator.h: Likewise.
12396         * lib/unictype/pr_pattern_syntax.h: Likewise.
12397         * lib/unictype/pr_pattern_white_space.h: Likewise.
12398         * lib/unictype/pr_private_use.h: Likewise.
12399         * lib/unictype/pr_quotation_mark.h: Likewise.
12400         * lib/unictype/pr_radical.h: Likewise.
12401         * lib/unictype/pr_soft_dotted.h: Likewise.
12402         * lib/unictype/pr_space.h: Likewise.
12403         * lib/unictype/pr_titlecase.h: Likewise.
12404         * lib/unictype/pr_variation_selector.h: Likewise.
12405         * lib/unictype/pr_white_space.h: Likewise.
12406         * lib/unictype/sy_c_ident.h: Likewise.
12407         * lib/unictype/sy_c_whitespace.h: Likewise.
12408         * lib/unictype/sy_java_whitespace.h: Likewise.
12409         * modules/uni*/*: Bump version number of expected libunistring version.
12410         Reported by Simon Josefsson.
12411
12412 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12413
12414         useless-if-before-free: fix typo in --help and make the internal,
12415         automatic version date update process work once again.
12416         --help output contained a NUL character instead of the
12417         backslash-zero that was intended.  Also, the "must lie within
12418         the first 8 lines" line is on line 9, and hence not getting
12419         automatically updated.
12420         * build-aux/useless-if-before-free: Fix the former by adding a
12421         backslash, and the latter by condensing the three lines of what-it-does
12422         to a single line, leaving one line of slack for the future.
12423
12424 2011-01-09  Bruno Haible  <bruno@clisp.org>
12425
12426         uniwidth/width: Fix width of U+1D173..U+1D17A.
12427         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12428         symbolic_width, output_width_property_test): New functions.
12429         (main): Invoke output_nonspacing_property, output_width_property_test.
12430         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12431         U+1D173..U+1D17A.
12432         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12433         1.
12434         * modules/uniwidth/*: Bump version number of expected libunistring
12435         version.
12436         * modules/unilbrk/*: Likewise.
12437
12438 2011-01-08  Bruno Haible  <bruno@clisp.org>
12439
12440         uninorm tests: Preserve copyright of Unicode data file.
12441         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12442         Mention modifications.
12443
12444 2011-01-08  Bruno Haible  <bruno@clisp.org>
12445
12446         gen-uni-tables: Prepare for Unicode 5.2.0.
12447         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12448         (debug_output_lbp, output_lbp): Update.
12449
12450 2011-01-08  Bruno Haible  <bruno@clisp.org>
12451
12452         unilbrk: Clarify gen-uni-tables.c code.
12453         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12454         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12455         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12456
12457 2011-01-07  Bruno Haible  <bruno@clisp.org>
12458
12459         strtod: Restore errno when successfully parsing Infinity or NaN.
12460         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12461         restore the original errno.
12462
12463 2011-01-07  Bruno Haible  <bruno@clisp.org>
12464
12465         remove test: Avoid failure on HP-UX 11.
12466         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12467
12468 2011-01-07  Bruno Haible  <bruno@clisp.org>
12469
12470         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12471         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12472         error code.
12473
12474 2011-01-07  Pádraig Brady <P@draigBrady.com>
12475
12476         ignore-value: fixup comments, and add Eric Blake
12477         as an author since he rewrote the macros.
12478         * lib/ignore-value.h (ignore_value):  State that
12479         we now support aggregates.  Also specify exactly
12480         when the GCC warn_unused_result feature was added.
12481
12482 2011-01-06  Eric Blake  <eblake@redhat.com>
12483
12484         ignore-value: support aggregate types
12485         * lib/ignore-value.h (ignore_value): Provide separate gcc
12486         definition.
12487         * modules/ignore-value-tests: New test module.
12488         * tests/test-ignore-value.c: New test.
12489
12490         maint.mk: improve sc_prohibit_strcmp regex
12491         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12492         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12493         definition of STRNEQ.
12494
12495         signal: work around Haiku issue with SIGBUS
12496         * lib/siglist.h: Add comment.
12497         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12498         strsignal's favoring of SIGSEGV.
12499         * tests/test-signal.c (main): Avoid test failure.
12500         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12501         Reported by Scott McCreary.
12502
12503         maint.mk: add pre-release check to ensure submodule commits are public
12504         * top/maint.mk (public-submodule-commit): New rule.
12505         (submodule-checks): New variable.
12506         (alpha beta stable): Depend on the variable.
12507
12508 2011-01-05  Pádraig Brady <P@draigBrady.com>
12509         and Jim Meyering  <meyering@redhat.com>
12510
12511         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12512         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12513         (ATTRIBUTE_DEPRECATED): Define.
12514         (_ignore_case): New function.
12515         (ignore_value): New macro, to replace the old function.
12516         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12517         * modules/ignore-value (Depends-on): Add stdint.
12518
12519 2011-01-04  Eric Blake  <eblake@redhat.com>
12520
12521         doc: regenerate INSTALL
12522         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12523         @firstparagraphindent support, now that autoconf dropped it.
12524         (INSTALL_PRELUDE): Reinstate old macro.
12525         * doc/install.texi: Resync from autoconf.
12526         * doc/INSTALL: Reflect recent autoconf update.
12527         * doc/INSTALL.ISO: Likewise.
12528         * doc/INSTALL.UTF-8: Likewise.
12529         Reported by Karl Berry.
12530
12531 2011-01-04  Bruce Korb  <address@hidden>
12532
12533         git-version-gen: avoid a sub-shell
12534         * build-aux/git-version-gen: Redirect stderr in `...` via
12535         "exec 2>...", rather than via an added sub-shell.
12536
12537 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12538
12539         git-version-gen: use (...) rather than sh -c '...'
12540         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12541         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12542
12543 2011-01-03  Jim Meyering  <meyering@redhat.com>
12544
12545         git-version-gen: convert leading TABs to spaces
12546         * build-aux/git-version-gen: Expand leading TABs.
12547
12548         git-version-gen: handle failed "git rev-list"
12549         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12550         from git and proceeding as if it had succeeded but printed no SHA1
12551         checksums, suppress the diagnostic and handle the failure.
12552         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12553
12554         git-version-gen: include command name in one more diagnostic
12555         * build-aux/git-version-gen: When the required .tarball-version file
12556         was missing or unreadable, you might see the diagnostic from "cat",
12557         but no trace of the name of the invoking script.  Now, you still see
12558         the diagnostic from cat, but also get one from "git-version-gen: ".
12559         Inspired by a patch from Bruce Korb.
12560
12561         update-copyright: adjust test to match changed code
12562         * tests/test-update-copyright.sh: Change test's expected output
12563         to match new actual output.
12564
12565 2011-01-02  Bruno Haible  <bruno@clisp.org>
12566
12567         getlogin_r: Avoid test failure on HP-UX 11.
12568         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12569         ERANGE when the second argument is zero.
12570         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12571         portability problem.
12572
12573 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12574
12575         * build-aux/update-copyright: doc Simon's changes
12576
12577 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12578
12579         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12580         environment variable.
12581
12582 2011-01-02  Bruno Haible  <bruno@clisp.org>
12583
12584         unigbrk: Avoid gcc warnings.
12585         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12586         unused variable.
12587         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12588         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12589         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12590         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12591         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12592         Change type of first argument to 'const char *'.
12593         (main): Remove unused variable.
12594         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12595         type of first argument to 'const char *'.
12596         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12597         Likewise.
12598         (main): Change type of variable 's'.
12599         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12600         to 'int'.
12601
12602 2011-01-02  Bruno Haible  <bruno@clisp.org>
12603
12604         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12605         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12606         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12607         bug.
12608         * lib/pwrite.c: Undo 2010-12-31 patch.
12609         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12610
12611 2011-01-02  Bruno Haible  <bruno@clisp.org>
12612
12613         pread: Fix test whether it works.
12614         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12615
12616 2011-01-02  Bruno Haible  <bruno@clisp.org>
12617
12618         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12619         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12620         ends in "6". Don't require a specific month name. Try also the locale
12621         names found on HP-UX 11 and Solaris 7.
12622
12623 2011-01-02  Bruno Haible  <bruno@clisp.org>
12624
12625         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12626         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12627         C linkage.
12628         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12629
12630 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12631
12632         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12633         for consistency, since the "cluster" term is not used elsewhere.
12634         * lib/unigbrk.in.h: Update name.
12635         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12636         * lib/unigbrk/u16-grapheme-next.c: Update name.
12637         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12638         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12639         * lib/unigbrk/u32-grapheme-next.c: Update name.
12640         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12641         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12642         * lib/unigbrk/u8-grapheme-next.c: Update name.
12643         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12644         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12645         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12646         Suggested by Bruno Haible.
12647
12648 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12649
12650         Remove module 'u8-grapheme-len' as too redundant with
12651         'u8-grapheme-next'.
12652         * modules/unigbrk/u8-grapheme-len: Delete file.
12653         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12654         * lib/unigbrk.in.h: Remove prototype for deleted function.
12655         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12656         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12657
12658         Remove module 'u16-grapheme-len' as too redundant with
12659         'u16-grapheme-next'.
12660         * modules/unigbrk/u16-grapheme-len: Delete file.
12661         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12662         * lib/unigbrk.in.h: Remove prototype for deleted function.
12663         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12664         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12665
12666         Remove module 'u32-grapheme-len' as too redundant with
12667         'u32-grapheme-next'.
12668         * modules/unigbrk/u32-grapheme-len: Delete file.
12669         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12670         * lib/unigbrk.in.h: Remove prototype for deleted function.
12671         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12672         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12673
12674         Suggested by Bruno Haible.
12675
12676 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12677
12678         * unigbrk.in.h: Fix typo: "ben" => "been".
12679         Reported by Bruno Haible.
12680
12681 2011-01-01  Jim Meyering  <meyering@redhat.com>
12682
12683         maint: update almost all copyright ranges to include 2011
12684         Run the new "make update-copyright" rule.
12685
12686 2011-01-01  Jim Meyering  <meyering@redhat.com>
12687
12688         maint: update-copyright: exempt doc/INSTALL*
12689         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12690         since they are generated.  Suggested by Bruno Haible.
12691
12692 2011-01-01  Jim Meyering  <meyering@redhat.com>
12693
12694         maint: refine the update-copyright rule
12695         * Makefile (update-copyright): Also exclude any file that includes
12696         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12697         code that merely generates the comment.
12698
12699 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12700
12701         New module 'u8-grapheme-len'.
12702         * modules/unigbrk/u8-grapheme-len: New file.
12703         * modules/unigbrk/u8-grapheme-len-tests: New file.
12704         * lib/unigbrk.in.h: Add prototype for new function.
12705         * lib/unigbrk/u8-grapheme-len.c: New file.
12706         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12707
12708         New module 'u16-grapheme-len'.
12709         * modules/unigbrk/u16-grapheme-len: New file.
12710         * modules/unigbrk/u16-grapheme-len-tests: New file.
12711         * lib/unigbrk.in.h: Add prototype for new function.
12712         * lib/unigbrk/u16-grapheme-len.c: New file.
12713         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12714
12715         New module 'u32-grapheme-len'.
12716         * modules/unigbrk/u32-grapheme-len: New file.
12717         * modules/unigbrk/u32-grapheme-len-tests: New file.
12718         * lib/unigbrk.in.h: Add prototype for new function.
12719         * lib/unigbrk/u32-grapheme-len.c: New file.
12720         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12721
12722         New module 'u8-grapheme-next'.
12723         * modules/unigbrk/u8-grapheme-next: New file.
12724         * modules/unigbrk/u8-grapheme-next-tests: New file.
12725         * lib/unigbrk.in.h: Add prototype for new function.
12726         * lib/unigbrk/u8-grapheme-next.c: New file.
12727         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12728
12729         New module 'u16-grapheme-next'.
12730         * modules/unigbrk/u16-grapheme-next: New file.
12731         * modules/unigbrk/u16-grapheme-next-tests: New file.
12732         * lib/unigbrk.in.h: Add prototype for new function.
12733         * lib/unigbrk/u16-grapheme-next.c: New file.
12734         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12735
12736         New module 'u32-grapheme-next'.
12737         * modules/unigbrk/u32-grapheme-next: New file.
12738         * modules/unigbrk/u32-grapheme-next-tests: New file.
12739         * lib/unigbrk.in.h: Add prototype for new function.
12740         * lib/unigbrk/u32-grapheme-next.c: New file.
12741         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12742
12743         New module 'u8-grapheme-prev'.
12744         * modules/unigbrk/u8-grapheme-prev: New file.
12745         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12746         * lib/unigbrk.in.h: Add prototype for new function.
12747         * lib/unigbrk/u8-grapheme-prev.c: New file.
12748         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12749
12750         New module 'u16-grapheme-prev'.
12751         * modules/unigbrk/u16-grapheme-prev: New file.
12752         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12753         * lib/unigbrk.in.h: Add prototype for new function.
12754         * lib/unigbrk/u16-grapheme-prev.c: New file.
12755         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12756
12757         New module 'u32-grapheme-prev'.
12758         * modules/unigbrk/u32-grapheme-prev: New file.
12759         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12760         * lib/unigbrk.in.h: Add prototype for new function.
12761         * lib/unigbrk/u32-grapheme-prev.c: New file.
12762         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12763
12764         New module 'u8-grapheme-breaks'.
12765         * modules/unigbrk/u8-grapheme-breaks: New file.
12766         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12767         * lib/unigbrk.in.h: Add prototype for new function.
12768         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12769         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12770
12771         New module 'u16-grapheme-breaks'.
12772         * modules/unigbrk/u16-grapheme-breaks: New file.
12773         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12774         * lib/unigbrk.in.h: Add prototype for new function.
12775         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12776         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12777
12778         New module 'u32-grapheme-breaks'.
12779         * modules/unigbrk/u32-grapheme-breaks: New file.
12780         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12781         * lib/unigbrk.in.h: Add prototype for new function.
12782         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12783         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12784
12785         New module 'ulc-grapheme-breaks'.
12786         * modules/unigbrk/ulc-grapheme-breaks: New file.
12787         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12788         * m4/locale-ar.m4: New file.
12789         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12790         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12791         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12792
12793 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12794
12795         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12796         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12797         modified how this file was generated before I initially submitted
12798         the module, but failed to regenerate it.  This meant that several
12799         of the level2 entries were wrong.
12800         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12801         Remove the division-by-2 that is folded into the table now that
12802         gbrkprop.h has been regenerated properly.  Now -1 entries are
12803         handled correctly.
12804
12805         New module 'unigbrk/uc-gbrk-prop-tests'.
12806         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12807         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12808         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12809         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12810
12811 2011-01-01  Bruno Haible  <bruno@clisp.org>
12812
12813         Avoid use of hexadecimal escapes.
12814         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12815         instead of hexadecimal escapes.
12816
12817 2011-01-01  Jim Meyering  <meyering@redhat.com>
12818
12819         maint: new rule to update copyright year ranges
12820         * Makefile (update-copyright): New rule.
12821
12822         maint: indent with TABs in Makefile
12823         * Makefile: Expand leading sequences of spaces to TABs
12824
12825         version-etc: update the copyright year it reports
12826         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12827
12828 2010-12-31  Bruno Haible  <bruno@clisp.org>
12829
12830         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12831         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12832         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12833         zero.
12834
12835 2010-12-31  Bruno Haible  <bruno@clisp.org>
12836
12837         pwrite: Work around HP-UX 11.11 bug.
12838         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12839         works and set REPLACE_PWRITE if not.
12840         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12841         function.
12842         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12843
12844 2010-12-31  Bruno Haible  <bruno@clisp.org>
12845
12846         pread: Work around HP-UX 11 bugs.
12847         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12848         and set REPLACE_PREAD if not.
12849         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12850
12851 2010-12-31  Eric Blake  <eblake@redhat.com>
12852
12853         nl_langinfo: fix YESEXPR on Irix 6.5
12854         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12855         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12856         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12857         it.
12858
12859 2010-12-31  Bruno Haible  <bruno@clisp.org>
12860
12861         iconv: Document HP-UX 11 bug.
12862         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12863
12864 2010-12-31  Bruno Haible  <bruno@clisp.org>
12865
12866         ldexpl: Fix link error on HP-UX 11.
12867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12868         LDEXPL_LIBM, using $ISNANL_LIBM.
12869
12870 2010-12-31  Eric Blake  <eblake@redhat.com>
12871
12872         ftello: avoid compilation failure with SunStudio c89
12873         * lib/ftello.c (ftello): Use lseek, not llseek.
12874
12875         tests: avoid failing coreutils tests on cygwin
12876         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12877         (create_exe_shims_): Return 0 when skipping.
12878
12879 2010-12-31  Bruno Haible  <bruno@clisp.org>
12880
12881         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12882         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12883
12884 2010-12-31  Bruno Haible  <bruno@clisp.org>
12885
12886         waitpid: Fix link error in C++ mode.
12887         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12888
12889 2010-12-31  Bruno Haible  <bruno@clisp.org>
12890
12891         isnan: Use GCC built-ins when possible.
12892         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12893         __builtin_isnan.
12894         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12895         (isnan): Define using GCC built-ins for GCC >= 4.0.
12896
12897 2010-12-31  Bruno Haible  <bruno@clisp.org>
12898
12899         isnand: Fix mistake.
12900         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12901         __builtin_isnand.
12902
12903 2010-12-31  Bruno Haible  <bruno@clisp.org>
12904
12905         open: Avoid C++ error on HP-UX 11.
12906         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12907
12908 2010-12-31  Bruno Haible  <bruno@clisp.org>
12909
12910         time_r: Add missing declarations on HP-UX 11.
12911         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12912         instead of HAVE_LOCALTIME_R.
12913         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12914         HAVE_LOCALTIME_R always.
12915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12916         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12917         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12918         HAVE_LOCALTIME_R.
12919         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12920         * doc/posix-functions/localtime_r.texi: Likewise.
12921
12922 2010-12-29  Eric Blake  <eblake@redhat.com>
12923
12924         mountlist: tweak previous commit
12925         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12926         Reported by Paul Eggert.
12927
12928         mountlist: fix local drive detection on cygwin
12929         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12930         that works for cygwin.
12931
12932 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12933
12934         ftoastr, snprintf: ftoastr + snprintf module
12935         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12936         since the snprintf module now should be good enough here.
12937         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12938         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12939         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12940         GNULIB_SNPRINTF only for the test directory, and the latter
12941         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12942         seems to suffice by itself.
12943
12944 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12945
12946         alloca: one step towards thread-safety
12947         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12948         need for a static variable.  All callers changed.  This does not
12949         make the alloca replacement thread-safe, but it's one step.
12950
12951         tests: minor indenting change
12952         * tests/init.sh: Sync from coreutils housekeeping patch
12953         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12954         to keep lines within 80 columns.
12955
12956 2010-12-28  Jim Meyering  <meyering@redhat.com>
12957
12958         regex: don't infloop on persistent failing calloc
12959         * lib/regexec.c (build_trtable): Return failure indication upon
12960         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12961         In glibc, this was fixed for version 2.13:
12962         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12963
12964 2010-12-28  Bruno Haible  <bruno@clisp.org>
12965             Paul Eggert <eggert@cs.ucla.edu>
12966
12967         linkat: Make implementation robust against system behaviour variations.
12968         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12969         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12970         way, and to -2 if it needs a generic runtime test.
12971         * lib/linkat.c (solaris_optimized_link_immediate,
12972         solaris_optimized_link_follow): New functions.
12973         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12974         (check_same_link): Use it.
12975
12976 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12977
12978         New module 'unigbrk/base'.
12979         * modules/unigbrk/base: New file.
12980         * lib/unigbrk.in.h: New file.
12981
12982         New module 'unigbrk/uc-gbrk-prop'.
12983         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12984         * modules/unigbrk/uc-gbrk-prop: New file.
12985         * lib/unigbrk/gbrkprop.h: New file.
12986         * lib/unigbrk/uc-gbrk-prop.c: New file.
12987
12988         New module 'unigbrk/uc-is-grapheme-break'.
12989         * modules/unigbrk/uc-is-grapheme-break: New file.
12990         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12991         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12992         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12993         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12994         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12995
12996         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12997
12998 2010-12-27  Bruno Haible  <bruno@clisp.org>
12999
13000         linkat test: Avoid failure on Solaris 11 2010-11.
13001         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13002
13003 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13004
13005         utimens: work around glibc rounding bug on more platforms
13006         * lib/utimens.c (fdutimens): Work around rounding bug even if
13007         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13009
13010 2010-12-27  Bruno Haible  <bruno@clisp.org>
13011
13012         select tests: Improve comments.
13013         * tests/test-select.c (do_select): Add comments.
13014
13015 2010-12-27  Bruno Haible  <bruno@clisp.org>
13016
13017         select tests: Safer way of handling timeout.
13018         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13019         at every invocation.
13020
13021 2010-12-27  Bruno Haible  <bruno@clisp.org>
13022
13023         select tests: Use 'bool' where appropriate.
13024         * tests/test-select.c (connect_to_socket): Change argument type to
13025         'bool'.
13026
13027 2010-12-27  Bruno Haible  <bruno@clisp.org>
13028
13029         select tests: Use existing modules.
13030         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13031         (configure.ac): Don't test for unistd.h.
13032         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13033         declared in <unistd.h>.
13034
13035 2010-12-27  Bruno Haible  <bruno@clisp.org>
13036
13037         mbrtowc: Work around a Solaris 7 bug.
13038         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13039         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13040         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13041         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13042         MBRTOWC_NULL_ARG1_BUG.
13043         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13044         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13045         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13046         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13047
13048 2010-12-27  Jim Meyering  <meyering@redhat.com>
13049
13050         read-file.c: tweak syntax
13051         * lib/read-file.c (fread_file): Remove space after "*" in function
13052         definitions.
13053
13054 2010-12-27  Bruno Haible  <bruno@clisp.org>
13055
13056         times test: Avoid gcc warnings on OSF/1.
13057         * tests/test-times.c (main): Cast printf arguments from clock_t to
13058         'long int'.
13059
13060 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13061
13062         utimens: work around glibc rounding bug on older Linux kernels
13063         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13064         on Linux with a glibc whose utimes might not work, then work
13065         around a longstanding glibc bug involving rounding rather than
13066         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13068
13069 2010-12-26  Bruno Haible  <bruno@clisp.org>
13070
13071         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13072         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13073         _GL_CXXALIAS_SYS.
13074         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13075
13076 2010-12-26  Bruno Haible  <bruno@clisp.org>
13077
13078         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13079         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13080         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13081         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13082         looking for the declaration.
13083         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13084         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13085         problem.
13086         * doc/posix-functions/inet_pton.texi: Likewise.
13087
13088 2010-12-26  Bruno Haible  <bruno@clisp.org>
13089
13090         arpa_inet: Use the common idioms with C++ support.
13091         * lib/arpa_inet.in.h: Include c++defs.h.
13092         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13093         support.
13094         * modules/arpa_inet (Depends-on): Add c++defs.
13095         (Makefile.am): Substitute the contents of c++defs.h.
13096         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13097         * modules/arpa_inet-c++-tests: New file.
13098         * tests/test-arpa_inet-c++.cc: New file.
13099
13100 2010-12-25  Bruno Haible  <bruno@clisp.org>
13101
13102         Fix more C++ link errors on Solaris 8.
13103         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13104         $(LIB_EACCESS).
13105         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13106         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13107         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13108         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13109         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13110
13111 2010-12-25  Bruno Haible  <bruno@clisp.org>
13112
13113         printf-posix: Fix link error when a non-GCC compiler is used.
13114         * lib/stdio.in.h (printf): When not using GCC, override printf
13115         correctly.
13116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13117
13118 2010-12-25  Bruno Haible  <bruno@clisp.org>
13119
13120         strerror_r-posix: Update doc.
13121         * doc/posix-functions/strerror_r.texi: Update doc about the return
13122         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13123
13124 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13125
13126         utimens: simplify the logic of the previous change
13127         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13128         This should not affect whether the test succeeds or fails.
13129
13130         utimens: configure better on hosts with NFS clock skew
13131         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13132         uses the clock of the local host.  It might use the clock of the
13133         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13135
13136 2010-12-25  Bruno Haible  <bruno@clisp.org>
13137
13138         ptsname test: Avoid failure on Solaris.
13139         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13140         open a pseudo-terminal; don't use BSD-style ptys.
13141         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13142
13143 2010-12-25  Bruno Haible  <bruno@clisp.org>
13144
13145         ptsname: Avoid ERANGE failure on some systems.
13146         * lib/ptsname.c (buffer): Increase size.
13147
13148 2010-12-25  Bruno Haible  <bruno@clisp.org>
13149
13150         rename, renameat: Avoid test failures at NFS mounted locations.
13151         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13152         so that subsequent mkdir calls succeed.
13153
13154 2010-12-25  Bruno Haible  <bruno@clisp.org>
13155
13156         iswblank: Fix C++ link error on Solaris 8.
13157         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13158         _GL_FUNCDECL_SYS.
13159
13160 2010-12-25  Bruno Haible  <bruno@clisp.org>
13161
13162         unistd: Fix C++ link error on Solaris 8.
13163         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13164
13165 2010-12-25  Bruno Haible  <bruno@clisp.org>
13166
13167         readlink doc: Mention an old glibc bug.
13168         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13169
13170 2010-12-25  Bruno Haible  <bruno@clisp.org>
13171
13172         fcntl-h: Fix for use of C++ on glibc systems.
13173         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13174         also on glibc systems in C++ mode.
13175         Reported by Gary V. Vaughan <gary@gnu.org>.
13176
13177 2010-12-25  Bruno Haible  <bruno@clisp.org>
13178
13179         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13180         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13181
13182 2010-12-25  Bruno Haible  <bruno@clisp.org>
13183
13184         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13185         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13186         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13187         test whether truncl works according to ISO C 99 with IEC 60559.
13188         * m4/truncl-ieee.m4: New file.
13189         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13190         m4/signbit.m4.
13191         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13192
13193 2010-12-25  Bruno Haible  <bruno@clisp.org>
13194
13195         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13196         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13197         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13198         test whether ceill works according to ISO C 99 with IEC 60559.
13199         * m4/ceill-ieee.m4: New file.
13200         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13201         m4/signbit.m4.
13202         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13203
13204 2010-12-25  Bruno Haible  <bruno@clisp.org>
13205
13206         Ensure all prerequisites of <wchar.h> are included.
13207         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13208         before <wchar.h>.
13209         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13210         gl_MBRLEN_NUL_RETVAL): Likewise.
13211         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13212         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13213         AC_FUNC_MBRTOWC): Likewise.
13214         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13215         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13217         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13218         Likewise.
13219         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13220         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13221         (gl_WCHAR_H): Improve comments.
13222         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13223
13224 2010-12-25  Bruno Haible  <bruno@clisp.org>
13225
13226         strtok_r: Fix C syntax error in autoconf macro.
13227         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13228         characters in test program.
13229
13230 2010-12-24  Bruno Haible  <bruno@clisp.org>
13231
13232         ceil, trunc, round: Fix gcc warnings.
13233         * lib/ceil.c (MIN): Undefine before redefining.
13234         * lib/trunc.c (MIN): Likewise.
13235         * lib/round.c (MIN): Likewise.
13236         Include <math.h> first.
13237
13238 2010-12-24  Bruno Haible  <bruno@clisp.org>
13239
13240         select tests: Avoid failures on OSF/1 5.1.
13241         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13242         failure of closing the last socket; it may fail with ECONNRESET.
13243
13244 2010-12-24  Eric Blake  <eblake@redhat.com>
13245
13246         stdint: avoid HP-UX 10.20 preprocessor bug
13247         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13248         than #if.
13249         * tests/test-floor2.c (main): Likewise.
13250         Reported by Peter O'Gorman.
13251
13252         pipe: make obsoletion transition easier
13253         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13254         * modules/pipe (Files): Include revived file.
13255         (Include): Drop reference, to mirror getdate's behavior.
13256
13257 2010-12-24  Bruno Haible  <bruno@clisp.org>
13258
13259         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13260         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13261         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13263
13264 2010-12-24  Bruno Haible  <bruno@clisp.org>
13265
13266         gethostname: Ensure declaration on NonStop Kernel.
13267         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13268         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13269
13270 2010-12-24  Bruno Haible  <bruno@clisp.org>
13271
13272         sys_select: Ensure all necessary types on NonStop Kernel.
13273         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13274         include <sys/time.h>.
13275         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13276         NonStop Kernel.
13277         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13278
13279 2010-12-24  Bruno Haible  <bruno@clisp.org>
13280
13281         sys_select: Remove unneeded include.
13282         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13283         have <sys/select.h>.
13284
13285 2010-12-24  Bruno Haible  <bruno@clisp.org>
13286
13287         gethostname: Provide a fallback for HOST_NAME_MAX.
13288         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13289         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13290         instead.
13291         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13292
13293 2010-12-24  Bruno Haible  <bruno@clisp.org>
13294
13295         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13296         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13297         (SA_RESTART): Likewise.
13298         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13299
13300 2010-12-24  Bruno Haible  <bruno@clisp.org>
13301
13302         signal: Define NSIG.
13303         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13304         * tests/test-signal.c (nsig): New variable.
13305         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13306
13307 2010-12-24  Bruno Haible  <bruno@clisp.org>
13308
13309         rename, renameat: Avoid test failures on OSF/1 5.1.
13310         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13311         alternative error codes.
13312         * tests/test-renameat.c (main): Likewise.
13313
13314 2010-12-24  Bruno Haible  <bruno@clisp.org>
13315
13316         *printf: Detect large precisions bug on Solaris 10/SPARC.
13317         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13318         by Paul Eggert.
13319         * tests/test-snprintf-posix.h (test_function): Add this test code here
13320         too.
13321         * tests/test-sprintf-posix.h (test_function): Likewise.
13322         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13323         * tests/test-vasprintf-posix.c (test_function): Likewise.
13324         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13325         around by gnulib.
13326         * doc/posix-functions/printf.texi: Likewise.
13327         * doc/posix-functions/snprintf.texi: Likewise.
13328         * doc/posix-functions/sprintf.texi: Likewise.
13329         * doc/posix-functions/vfprintf.texi: Likewise.
13330         * doc/posix-functions/vprintf.texi: Likewise.
13331         * doc/posix-functions/vsnprintf.texi: Likewise.
13332         * doc/posix-functions/vsprintf.texi: Likewise.
13333         * doc/posix-functions/dprintf.texi: Undo last commit.
13334         * doc/posix-functions/vdprintf.texi: Likewise.
13335
13336 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13337
13338         tests: port test-fdutimensat.c to Solaris 8
13339         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13340         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13341         On Solaris 8, it fails with errno == ENOSYS, because there is no
13342         futimens (so it can't use the fd), and there is no lutimens (so it
13343         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13344
13345         vsnprintf: make more consistent with snprintf; doc fixes
13346
13347         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13348         the byte count return problem was promoted from the snprintf-posix
13349         to the snprintf module.
13350         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13351         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13352         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13353         * tests/test-snprintf.c (main): Check the byte count returned.
13354         * tests/test-vsnprintf.c (main): Likewise.
13355
13356 2010-12-23  Eric Blake  <eblake@redhat.com>
13357
13358         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13359         * modules/sigpipe (License): Relax license.
13360
13361 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         doc: document Solaris printf bug with large float precisions
13364         * doc/posix-functions/dprintf.texi (dprintf):
13365         * doc/posix-functions/fprintf.texi (fprintf):
13366         * doc/posix-functions/printf.texi (printf):
13367         * doc/posix-functions/snprintf.texi (snprintf):
13368         * doc/posix-functions/sprintf.texi (sprintf):
13369         * doc/posix-functions/vdprintf.texi (vdprintf):
13370         * doc/posix-functions/vfprintf.texi (vfprintf):
13371         * doc/posix-functions/vprintf.texi (vprintf):
13372         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13373         * doc/posix-functions/vsprintf.texi (vsprintf):
13374         Mention that these functions mishandle large floating point
13375         precisions on Solaris 10.  The same bug is also present in Solaris
13376         8, and I assume earlier.  This causes "cd gnulib-tests; make
13377         check" to fail on Solaris 8 (and I assume, later) when building
13378         the latest coreutils, in test-vasprintf-posix's call to
13379         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13380         the wide flavors (e.g., wprintf) so this patch just updates the
13381         documentation for the narrow ones.
13382
13383         test-posixtm.c: add two tests
13384         * tests/test-posixtm.c: Add two tests, to highlight the
13385         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13386         around this bug; this is merely to document it.
13387
13388 2010-12-22  Bruno Haible  <bruno@clisp.org>
13389
13390         getlogin_r: Work around portability problem on OSF/1.
13391         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13392         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13393         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13394         test for a truncated result.
13395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13396         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13397         * modules/getlogin_r (Depends-on): Add memchr.
13398         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13399
13400 2010-12-22  Bruno Haible  <bruno@clisp.org>
13401
13402         ptsname: Avoid test failure on OSF/1 5.1.
13403         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13404         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13405         (same_slave): New function.
13406         (main): Use it to compare ptsname's result with the expected file name.
13407
13408 2010-12-22  Bruno Haible  <bruno@clisp.org>
13409
13410         Port extended stdio modules to HP NonStop Kernel.
13411         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13412         macros.
13413         * lib/fbufmode.c: Update comments.
13414         * lib/fflush.c: Likewise.
13415         * lib/fpurge.c: Likewise.
13416         * lib/freadable.c: Likewise.
13417         * lib/freadahead.c: Likewise.
13418         * lib/freading.c: Likewise.
13419         * lib/freadptr.c: Likewise.
13420         * lib/freadseek.c: Likewise.
13421         * lib/fseeko.c: Likewise.
13422         * lib/fseterr.c: Likewise.
13423         * lib/fwritable.c: Likewise.
13424         * lib/fwriting.c: Likewise.
13425         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13426
13427 2010-12-22  Bruno Haible  <bruno@clisp.org>
13428
13429         ttyname_r: Work around bug on OSF/1 5.1.
13430         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13431         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13432         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13433         present.
13434         * lib/ttyname_r.c (ttyname_r): Update comments.
13435
13436 2010-12-22  Bruno Haible  <bruno@clisp.org>
13437
13438         round: Implement result sign according to IEEE 754.
13439         * lib/round.c (MIN, MINUS_ZERO): New macros.
13440         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13441         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13442         * tests/test-round-ieee.c (main): Likewise.
13443         * tests/test-roundl-ieee.c (main): Likewise.
13444
13445         trunc: Implement result sign according to IEEE 754.
13446         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13447         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13448         * tests/test-trunc2.c: Include minus-zero.h.
13449         (MINUS_ZERO): New macro.
13450         (trunc_reference): Keep in sync with lib/trunc.c.
13451         * tests/test-truncf2.c: Include minus-zero.h.
13452         (MINUS_ZERO): New macro.
13453         (truncf_reference): Keep in sync with lib/trunc.c.
13454         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13455         * tests/test-trunc-ieee.c (main): Likewise.
13456         * tests/test-truncl-ieee.c (main): Likewise.
13457
13458         ceil: Implement result sign according to IEEE 754.
13459         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13460         (FUNC): Return -0.0 for -1 < x < 0.
13461         * tests/test-ceil2.c: Include minus-zero.h.
13462         (MINUS_ZERO): New macro.
13463         (ceil_reference): Keep in sync with lib/ceil.c.
13464         * tests/test-ceilf2.c: Include minus-zero.h.
13465         (MINUS_ZERO): New macro.
13466         (ceilf_reference): Keep in sync with lib/ceil.c.
13467         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13468         * tests/test-ceil-ieee.c (main): Likewise.
13469         * tests/test-ceill-ieee.c (main): Likewise.
13470
13471         floor: Implement result sign according to IEEE 754.
13472         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13473         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13474         * tests/test-floorf2.c (floorf_reference): Likewise.
13475         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13476         * tests/test-floor-ieee.c (main): Likewise.
13477         * tests/test-floorl-ieee.c (main): Likewise.
13478
13479 2010-12-22  Bruno Haible  <bruno@clisp.org>
13480
13481         getaddrinfo: Update doc.
13482         * doc/posix-functions/gai_strerror.texi: Return type is also different
13483         on AIX and HP-UX.
13484
13485 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13486
13487         getaddrinfo, inet_ntop: Update doc for Solaris.
13488         * doc/posix-functions/gai_strerror.texi: Return type is also an
13489         issue on Solaris 9 and earlier.
13490         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13491         on Solaris 10 and earlier.
13492
13493 2010-12-21  Bruno Haible  <bruno@clisp.org>
13494
13495         New module 'roundl-ieee'.
13496         * modules/roundl-ieee: New file.
13497         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13498         test whether roundl works according to ISO C 99 with IEC 60559.
13499         * m4/roundl-ieee.m4: New file.
13500         * modules/roundl-ieee-tests: New file.
13501         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13502         * tests/test-roundl.c (main): Remove signbit tests.
13503         * modules/roundl-tests (Depends-on): Remove signbit.
13504         * doc/posix-functions/roundl.texi: Mention the new module.
13505
13506 2010-12-21  Bruno Haible  <bruno@clisp.org>
13507
13508         New module 'truncl-ieee'.
13509         * modules/truncl-ieee: New file.
13510         * modules/truncl-ieee-tests: New file.
13511         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13512         * tests/test-truncl.c (main): Remove signbit tests.
13513         * modules/truncl-tests (Depends-on): Remove signbit.
13514         * doc/posix-functions/truncl.texi: Mention the new module.
13515
13516 2010-12-21  Bruno Haible  <bruno@clisp.org>
13517
13518         New module 'ceill-ieee'.
13519         * modules/ceill-ieee: New file.
13520         * modules/ceill-ieee-tests: New file.
13521         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13522         * tests/test-ceill.c (main): Remove signbit tests.
13523         * modules/ceill-tests (Depends-on): Remove signbit.
13524         * doc/posix-functions/ceill.texi: Mention the new module.
13525
13526 2010-12-21  Bruno Haible  <bruno@clisp.org>
13527
13528         New module 'floorl-ieee'.
13529         * modules/floorl-ieee: New file.
13530         * modules/floorl-ieee-tests: New file.
13531         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13532         * tests/test-floorl.c (main): Remove signbit tests.
13533         * modules/floorl-tests (Depends-on): Remove signbit.
13534         * doc/posix-functions/floorl.texi: Mention the new module.
13535
13536 2010-12-21  Bruno Haible  <bruno@clisp.org>
13537
13538         New module 'round-ieee'.
13539         * modules/round-ieee: New file.
13540         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13541         whether round works according to ISO C 99 with IEC 60559.
13542         * m4/round-ieee.m4: New file.
13543         * modules/round-ieee-tests: New file.
13544         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13545         * tests/test-round1.c (main): Remove signbit tests.
13546         * modules/round-tests (Depends-on): Remove 'signbit'.
13547         * doc/posix-functions/round.texi: Mention the new module.
13548
13549 2010-12-21  Bruno Haible  <bruno@clisp.org>
13550
13551         New module 'trunc-ieee'.
13552         * modules/trunc-ieee: New file.
13553         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13554         whether trunc works according to ISO C 99 with IEC 60559.
13555         * m4/trunc-ieee.m4: New file.
13556         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13558         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13559         * modules/trunc-ieee-tests: New file.
13560         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13561         * tests/test-trunc1.c (main): Remove signbit tests.
13562         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13563         * doc/posix-functions/trunc.texi: Mention the new module.
13564
13565 2010-12-21  Bruno Haible  <bruno@clisp.org>
13566
13567         New module 'ceil-ieee'.
13568         * modules/ceil-ieee: New file.
13569         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13570         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13571         ISO C 99 with IEC 60559.
13572         * m4/ceil-ieee.m4: New file.
13573         * modules/ceil (Files): Add lib/ceil.c.
13574         (Depends-on): Add 'float'.
13575         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13576         * lib/math.in.h (ceil): New declaration.
13577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13578         REPLACE_CEIL.
13579         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13580         * modules/ceil-ieee-tests: New file.
13581         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13582         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13583         * doc/posix-functions/ceil.texi: Mention the new module.
13584
13585 2010-12-21  Bruno Haible  <bruno@clisp.org>
13586
13587         New module 'floor-ieee'.
13588         * modules/floor-ieee: New file.
13589         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13590         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13591         ISO C 99 with IEC 60559.
13592         * m4/floor-ieee.m4: New file.
13593         * modules/floor (Files): Add lib/floor.c.
13594         (Depends-on): Add 'float'.
13595         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13596         * lib/math.in.h (floor): New declaration.
13597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13598         REPLACE_FLOOR.
13599         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13600         * modules/floor-ieee-tests: New file.
13601         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13602         * tests/test-math-c++.cc: Check the signature of 'floor'.
13603         * doc/posix-functions/floor.texi: Mention the new module.
13604
13605 2010-12-21  Bruno Haible  <bruno@clisp.org>
13606
13607         New module 'roundf-ieee'.
13608         * modules/roundf-ieee: New file.
13609         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13610         test whether roundf works according to ISO C 99 with IEC 60559.
13611         * m4/roundf-ieee.m4: New file.
13612         * modules/roundf-ieee-tests: New file.
13613         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13614         * tests/test-roundf1.c (main): Remove signbit tests.
13615         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13616         * doc/posix-functions/roundf.texi: Mention the new module.
13617
13618 2010-12-21  Bruno Haible  <bruno@clisp.org>
13619
13620         New module 'truncf-ieee'.
13621         * modules/truncf-ieee: New file.
13622         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13623         test whether truncf works according to ISO C 99 with IEC 60559.
13624         * m4/truncf-ieee.m4: New file.
13625         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13627         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13628         * modules/truncf-ieee-tests: New file.
13629         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13630         * tests/test-truncf1.c (main): Remove signbit tests.
13631         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13632         * doc/posix-functions/truncf.texi: Mention the new module.
13633
13634 2010-12-21  Bruno Haible  <bruno@clisp.org>
13635
13636         New module 'ceilf-ieee'.
13637         * modules/ceilf-ieee: New file.
13638         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13639         test whether ceilf works according to ISO C 99 with IEC 60559.
13640         * m4/ceilf-ieee.m4: New file.
13641         * modules/ceilf-ieee-tests: New file.
13642         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13643         * tests/test-ceilf1.c (main): Remove signbit tests.
13644         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13645         * doc/posix-functions/ceilf.texi: Mention the new module.
13646
13647 2010-12-21  Bruno Haible  <bruno@clisp.org>
13648
13649         New module 'floorf-ieee'.
13650         * modules/floorf-ieee: New file.
13651         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13652         test whether floorf works according to ISO C 99 with IEC 60559.
13653         * m4/floorf-ieee.m4: New file.
13654         * modules/floorf-ieee-tests: New file.
13655         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13656         * tests/test-floorf1.c (main): Remove signbit tests.
13657         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13658         * doc/posix-functions/floorf.texi: Mention the new module.
13659
13660 2010-12-21  Bruno Haible  <bruno@clisp.org>
13661
13662         Support for minus zero in autoconf macros.
13663         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13664         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13665         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13666         * tests/minus-zero.h: Update comments.
13667
13668 2010-12-21  Bruno Haible  <bruno@clisp.org>
13669
13670         Tests for module 'ceil'.
13671         * modules/ceil-tests: New file.
13672         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13673         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13674
13675 2010-12-21  Bruno Haible  <bruno@clisp.org>
13676
13677         Tests for module 'floor'.
13678         * modules/floor-tests: New file.
13679         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13680         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13681
13682 2010-12-21  Bruno Haible  <bruno@clisp.org>
13683
13684         math: Fix indentation.
13685         * lib/math.in.h (floorf): Fix indentation.
13686
13687 2010-12-21  Bruno Haible  <bruno@clisp.org>
13688
13689         Fix cross-compilation guesses on Solaris.
13690         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13691         not match "solaris2.10".
13692         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13693         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13694         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13695
13696 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13697
13698         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13699         This fixes a problem observed with the latest coreutils snapshot
13700         that caused a test to fail on Solaris 8.  src/csplit.c's call
13701         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13702         earlier, instead of returning the number of bytes that would have
13703         been generated; this causes csplit to incorrectly report memory
13704         exhaustion.
13705         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13706         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13707         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13708         comments to match.
13709         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13710         Fix typo in matching older versions of Solaris: "solaris2.10"
13711         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13712         only for guessing while cross-compiling.
13713         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13714
13715 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         ftoastr: fix comment again
13718         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13719         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13720         Also, simplify example a bit by using flags = 0.
13721
13722 2010-12-20  Bruno Haible  <bruno@clisp.org>
13723
13724         round*, trunc*: Update documentation regarding glibc.
13725         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13726         * doc/posix-functions/round.texi: Likewise.
13727         * doc/posix-functions/roundl.texi: Likewise.
13728         * doc/posix-functions/truncf.texi: Likewise.
13729         * doc/posix-functions/trunc.texi: Likewise.
13730         * doc/posix-functions/truncl.texi: Likewise.
13731
13732 2010-12-20  Bruno Haible  <bruno@clisp.org>
13733
13734         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13735         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13736         * doc/posix-functions/round.texi: Likewise.
13737         * doc/posix-functions/roundl.texi: Likewise.
13738
13739 2010-12-20  Bruno Haible  <bruno@clisp.org>
13740
13741         ttyname_r: Add missing declaration on HP-UX 11.
13742         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13743         HAVE_TTYNAME_R.
13744         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13745         declared. Set HAVE_TTYNAME_R always.
13746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13747         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13748         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13749         HAVE_TTYNAME_R.
13750         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13751
13752 2010-12-20  Bruno Haible  <bruno@clisp.org>
13753
13754         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13755         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13756         * doc/posix-functions/getlogin_r.texi: Likewise.
13757         * tests/test-getlogin.c: Include <errno.h>.
13758         (main): Avoid test failure on HP-UX 11.11.
13759         * tests/test-getlogin_r.c (main): Likewise.
13760
13761 2010-12-20  Bruno Haible  <bruno@clisp.org>
13762
13763         getlogin_r: Add missing declaration on HP-UX 11.
13764         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13765         declared also when it exists as a function.
13766         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13767
13768 2010-12-20  Bruno Haible  <bruno@clisp.org>
13769
13770         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13771         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13772         through wcrtomb.
13773
13774 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13775
13776         ftoastr: fix comment
13777         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13778         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13779
13780 2010-12-19  Bruno Haible  <bruno@clisp.org>
13781
13782         isnan: Ensure it is a macro.
13783         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13784         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13785         Solaris.
13786
13787 2010-12-19  Bruno Haible  <bruno@clisp.org>
13788
13789         ldexpl test: Fix link error on OSF/1 5.1.
13790         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13791
13792 2010-12-19  Bruno Haible  <bruno@clisp.org>
13793
13794         wctype: Make it work in C++ mode on OSF/1 5.1.
13795         * lib/wctype.in.h (iswblank): Declare but not define here.
13796         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13797         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13798         * modules/wctype (Files): Add lib/iswblank.c.
13799
13800 2010-12-19  Bruno Haible  <bruno@clisp.org>
13801
13802         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13803         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13804         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13805
13806 2010-12-19  Bruno Haible  <bruno@clisp.org>
13807
13808         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13810         _POSIX_PII_SOCKET.
13811         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13812         * doc/posix-functions/recvfrom.texi: Likewise.
13813         * doc/posix-functions/send.texi: Likewise.
13814         * doc/posix-functions/sendto.texi: Likewise.
13815
13816 2010-12-19  Bruno Haible  <bruno@clisp.org>
13817
13818         tcgetsid: Add missing declaration on OSF/1 5.1.
13819         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13820         HAVE_TCGETSID.
13821         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13822         Don't set HAVE_TCGETSID.
13823         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13824         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13825         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13826         HAVE_TCGETSID.
13827         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13828
13829 2010-12-19  Bruno Haible  <bruno@clisp.org>
13830
13831         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13832         * lib/stdio.in.h: During the include_next statement, let recursive
13833         includes of this file include only the system header file.
13834
13835 2010-12-19  Bruno Haible  <bruno@clisp.org>
13836
13837         iconv_open: Fix regression from 2010-12-04.
13838         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13839         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13840
13841 2010-12-19  Bruno Haible  <bruno@clisp.org>
13842
13843         stdbool test: Avoid a gcc warning.
13844         * tests/test-stdbool.c (main): Fail if e1 is false.
13845         Reported by Jim Meyering.
13846
13847 2010-12-19  Jim Meyering  <meyering@redhat.com>
13848
13849         setenv: restore to working order
13850         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13851         mistakenly removed.
13852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13853         HAVE_SETENV.
13854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13855         HAVE_SETENV.
13856
13857 2010-12-19  Bruno Haible  <bruno@clisp.org>
13858
13859         Document some different function declarations on OSF/1 5.1.
13860         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13861         * doc/posix-functions/inet_ntop.texi: Likewise.
13862         * doc/posix-functions/gethostname.texi: Likewise.
13863         * lib/unistd.in.h (gethostname): Update comment.
13864
13865 2010-12-19  Bruno Haible  <bruno@clisp.org>
13866
13867         doc: Mention vasprintf-posix module.
13868         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13869         the 'vasprintf-posix' module.
13870         * doc/glibc-functions/vasprintf.texi: Likewise.
13871
13872 2010-12-19  Bruno Haible  <bruno@clisp.org>
13873
13874         unsetenv: Add missing declaration on OSF/1 5.1.
13875         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13876         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13877         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13879         not HAVE_UNSETENV.
13880         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13881         HAVE_UNSETENV.
13882         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13883
13884 2010-12-19  Bruno Haible  <bruno@clisp.org>
13885
13886         setenv: Add missing declaration on OSF/1 5.1.
13887         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13889         declared. Don't set HAVE_SETENV.
13890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13891         not HAVE_SETENV.
13892         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13893         HAVE_SETENV.
13894         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13895
13896 2010-12-19  Bruno Haible  <bruno@clisp.org>
13897
13898         nl_langinfo tests: Avoid gcc warning.
13899         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13900
13901 2010-12-19  Bruno Haible  <bruno@clisp.org>
13902
13903         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13904         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13905         _GL_CXXALIAS_SYS.
13906
13907 2010-12-19  Bruno Haible  <bruno@clisp.org>
13908
13909         stdbool: Relax test.
13910         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13911         address to 'bool' work in static initializer, for compilers other than
13912         GCC.
13913
13914 2010-12-19  Bruno Haible  <bruno@clisp.org>
13915
13916         ftello: Add missing declaration on OSF/1 5.1.
13917         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13918         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13920         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13921         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13922
13923 2010-12-19  Bruno Haible  <bruno@clisp.org>
13924
13925         fseeko: Add missing declaration on OSF/1 5.1.
13926         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13929         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13930         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13931
13932 2010-12-19  Bruno Haible  <bruno@clisp.org>
13933
13934         fchdir: Add missing declaration on OSF/1 5.1.
13935         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13938         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13939         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13940
13941 2010-12-19  Bruno Haible  <bruno@clisp.org>
13942
13943         relocatable-prog-wrapper: Separate from relocatable-prog.
13944         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13945         uninstall-relocwrapper rule here.
13946         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13947         Reported by Ian Beckwith <ianb@erislabs.net>.
13948
13949 2010-12-19  Bruno Haible  <bruno@clisp.org>
13950
13951         unistr/u8-mbsnlen: Add missing dependency.
13952         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13953         Reported by Ian Beckwith <ianb@erislabs.net>.
13954
13955 2010-12-19  Bruno Haible  <bruno@clisp.org>
13956
13957         iconv: Make it possible again to use this module without 'iconv-h'.
13958         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13959         if it is not defined.
13960         Reported by Ian Beckwith <ianb@erislabs.net>.
13961
13962 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         acl: port to Solaris 8 when copying from tmpfs to ufs
13965         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13966         error number.  Problem observed on Solaris 8 with latest
13967         coreutils, with "mv A B", where A is on a tmpfs file system and B
13968         is on a ufs file system.  This caused coreutils' mv/part-symlink
13969         test to fail.
13970
13971         tests: set fail=0 at start
13972         * tests/init.sh (setup_): Move fail=0 initialization here ...
13973         (mktempd_): ... from here, so that tests can rely on fail being
13974         set to 0 initially.  This fixes a problem in coreutils; see:
13975         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13976
13977 2010-12-18  Bruno Haible  <bruno@clisp.org>
13978
13979         memmem-simple: Stylistic changes.
13980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13981         Fix preprocessor directive indentation.
13982
13983 2010-12-15  Pádraig Brady <P@draigBrady.com>
13984
13985         memmem, memmem-simple: reorganize and expand empty needle check
13986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13987         functional checks to memmem-simple so that one has a fully functional
13988         memmem by using just this module.
13989         Restrict the performance only check to the memmem module.
13990         Also expand the empty needle check to ensure the correct
13991         pointer is returned, not just a non NULL pointer.
13992         * doc/glibc-functions/memmem.texi: Rearrange the portability
13993         documentation to correlate with the rearranged checks.
13994         Clarify exactly how the memmem and memmem-simple modules
13995         relate to each other.
13996
13997 2010-12-15  Pádraig Brady <P@draigBrady.com>
13998             Bruno Haible  <bruno@clisp.org>
13999
14000         Improve cross-compilation guesses for uClibc.
14001         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14002         that uClibc does not have the glibc bug.
14003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14004         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14005
14006 2010-12-14  Eric Blake  <eblake@redhat.com>
14007
14008         configmake: provide fallbacks for oldest supported autotools
14009         * m4/configmake.m4: New file.
14010         * modules/configmake (Files): Ship it.
14011         (configure.ac): Use it to guarantee fallbacks.
14012
14013 2010-12-13  Pádraig Brady <P@draigBrady.com>
14014
14015         read-file: Improve handling of large files
14016         * lib/read-file.c (fread_file): Minimize realloc()s
14017         for regular files, and better manage sizes around SIZE_MAX.
14018
14019 2010-12-13  Eric Blake  <eblake@redhat.com>
14020
14021         cloexec, fcntl: relax license
14022         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14023         consent from all contributors.
14024         * modules/fcntl (License): Likewise.
14025
14026 2010-12-10  Bruno Haible  <bruno@clisp.org>
14027
14028         Tests for module 'pipe-posix'.
14029         * modules/pipe-posix-tests: New file.
14030         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14031
14032 2010-12-10  Bruno Haible  <bruno@clisp.org>
14033
14034         pipe-posix: Make it work in C++ mode.
14035         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14036         (pipe): Use common idiom, not a macro definition.
14037         * lib/pipe.c: New file.
14038         * m4/pipe.m4: New file.
14039         * modules/pipe-posix (Description): Enhance.
14040         (Files): Add lib/pipe.c, m4/pipe.m4.
14041         (configure.ac): Invoke gl_FUNC_PIPE.
14042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14043         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14044         * tests/test-unistd-c++.cc: Check the signature of pipe.
14045
14046 2010-12-10  Bruno Haible  <bruno@clisp.org>
14047
14048         Rename module 'pipe' to 'spawn-pipe'.
14049         * modules/spawn-pipe: New file, renamed from modules/pipe.
14050         (Files, configure.ac, Makefile.am): Update.
14051         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14052         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14053         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14054         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14055         "spawn-pipe.h" instead of "pipe.h".
14056         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14057         to gl_SPAWN_PIPE.
14058         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14059         (Files, Makefile.am): Update.
14060         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14061         Update.
14062         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14063         Include "spawn-pipe.h" instead of "pipe.h".
14064         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14065         * lib/javacomp.c: Likewise.
14066         * lib/javaversion.c: Likewise.
14067         * lib/pipe-filter-gi.c: Likewise.
14068         * lib/pipe-filter-ii.c: Likewise.
14069         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14070         * modules/javacomp (Depends-on): Likewise.
14071         * modules/javaversion (Depends-on): Likewise.
14072         * modules/pipe-filter-gi (Depends-on): Likewise.
14073         * modules/pipe-filter-ii (Depends-on): Likewise.
14074         * MODULES.html.sh (Executing programs): Update.
14075         * NEWS: Mention the change.
14076
14077 2010-12-10  Eric Blake  <eblake@redhat.com>
14078
14079         pipe-posix: new module
14080         * modules/pipe-posix: New file.
14081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14082         (gl_UNISTD_H): Check for declaration.
14083         * modules/unistd (Makefile.am): Substitute it.
14084         * lib/unistd.in.h (pipe): Provide it for mingw.
14085         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14086         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14087
14088 2010-12-07  Bruno Haible  <bruno@clisp.org>
14089
14090         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14091         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14092         u8_strcmp_gnu.
14093         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14094
14095 2010-12-06  Bruno Haible  <bruno@clisp.org>
14096
14097         Update internal documentation.
14098         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14099
14100 2010-12-04  Bruno Haible  <bruno@clisp.org>
14101
14102         Put more information about failed tests into the test return codes.
14103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14104         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14105         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14107         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14110         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14111         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14114         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14115         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14116         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14117         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14118         returns a bit mask.
14119         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14120         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14121         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14122         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14123         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14124         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14127         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14129         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14130         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14131         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14133         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14134         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14135         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14136         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14137         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14140         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14142         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14143         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14144         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14145         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14146         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14147         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14148         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14149         gl_PRINTF_PRECISION): Likewise.
14150         * m4/regex.m4 (gl_REGEX): Likewise.
14151         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14152         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14153         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14154         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14157         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14158         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14159         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14160         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14161         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14162         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14163         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14164         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14165         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14166         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14167         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14168         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14171         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14172         enumerated value.
14173         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14174
14175 2010-12-04  Bruno Haible  <bruno@clisp.org>
14176
14177         Update for Solaris 11 2010-11.
14178         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14179         Express, released in November 2010.
14180
14181 2010-12-04  Bruno Haible  <bruno@clisp.org>
14182
14183         nproc: Relax license.
14184         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14185         and Paul Eggert.
14186         Requested by Ludovic Courtès <ludo@gnu.org>.
14187
14188 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14189
14190         utimecmp: fine-grained src to nearby coarse-grained dest
14191
14192         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14193         and the source is on a file system with higher-resolution time
14194         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14195         not work, and the time stamps are close together, the algorithm to
14196         determine the exact resolution from the read-back mtime was buggy:
14197         it had a "!=" where it should have had an "==".  This bug has been
14198         in the code ever since it was introduced to gnulib.
14199         Problem reported by Dan Jacobson in
14200         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14201
14202 2010-11-30  Bruno Haible  <bruno@clisp.org>
14203
14204         strerror_r-posix: Fix autoconf test.
14205         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14206
14207 2010-11-28  Bruno Haible  <bruno@clisp.org>
14208             Paul Eggert  <eggert@cs.ucla.edu>
14209
14210         Tests for module 'getdomainname'.
14211         * modules/getdomainname-tests: New file.
14212         * tests/test-getdomainname.c: New file, based on
14213         tests/test-gethostname.c.
14214
14215 2010-11-28  Bruno Haible  <bruno@clisp.org>
14216             Paul Eggert  <eggert@cs.ucla.edu>
14217
14218         getdomainname: Use the system function when possible.
14219         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14220         (getdomainname): Replace if needed. Provide the declaration if it is
14221         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14222         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14223         (getdomainname): When the system has getdomainname, call the system
14224         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14225         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14226         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14227         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14228         the function if its second argument is of type 'int' or if it is found
14229         in libnsl.
14230         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14231         <sys/systeminfo.h> and sysinfo().
14232         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14234         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14235         HAVE_GETDOMAINNAME.
14236         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14237         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14238         * doc/glibc-functions/getdomainname.texi: Document the problems with
14239         the getdomainname declaration.
14240
14241 2010-11-28  Bruno Haible  <bruno@clisp.org>
14242
14243         sys_socket: Ensure ss_family field on AIX.
14244         * lib/sys_socket.in.h (ss_family): New macro definition.
14245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14246         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14247         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14248         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14249         * modules/sys_socket (Makefile.am): Substitute
14250         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14251         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14252
14253 2010-11-27  Bruno Haible  <bruno@clisp.org>
14254
14255         readline: Improve configure output.
14256         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14257         "checking for readline..." result understandable.
14258
14259 2010-11-27  Bruno Haible  <bruno@clisp.org>
14260
14261         *printf-posix: Detect a bug on Solaris 10/x86.
14262         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14263         for floating-point output.
14264         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14265         directive.
14266         * tests/test-snprintf-posix.h (test_function): Likewise.
14267         * tests/test-sprintf-posix.h (test_function): Likewise.
14268         * tests/test-vasprintf-posix.c (test_function): Likewise.
14269         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14270         * doc/posix-functions/printf.texi: Likewise.
14271         * doc/posix-functions/snprintf.texi: Likewise.
14272         * doc/posix-functions/sprintf.texi: Likewise.
14273         * doc/posix-functions/vfprintf.texi: Likewise.
14274         * doc/posix-functions/vprintf.texi: Likewise.
14275         * doc/posix-functions/vsnprintf.texi: Likewise.
14276         * doc/posix-functions/vsprintf.texi: Likewise.
14277         * doc/glibc-functions/obstack_printf.texi: Likewise.
14278         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14279
14280 2010-11-27  Bruno Haible  <bruno@clisp.org>
14281
14282         Fix link error when module libunistring-optional is in use.
14283         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14284         * modules/striconveha-tests (Makefile.am): Likewise.
14285
14286 2010-11-27  Bruno Haible  <bruno@clisp.org>
14287
14288         regex: Mention link dependencies.
14289         * modules/regex (Link): New section.
14290         * modules/rpmatch (Link): Likewise.
14291         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14292
14293 2010-11-27  Bruno Haible  <bruno@clisp.org>
14294
14295         ftoastr: Fix compilation error on Solaris.
14296         * lib/ftoastr.c: Include <config.h>.
14297
14298 2010-11-27  Bruno Haible  <bruno@clisp.org>
14299
14300         getloadavg: Update documentation.
14301         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14302
14303 2010-11-27  Bruno Haible  <bruno@clisp.org>
14304
14305         sys_socket: Fix test whether the functions are declared.
14306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14307         not <sys/select.h>.
14308
14309 2010-11-27  Bruno Haible  <bruno@clisp.org>
14310
14311         getpass: Make sure to get system declaration on some platforms.
14312         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14313         gl_USE_SYSTEM_EXTENSIONS.
14314         * modules/getpass (Depends-on): Add extensions.
14315
14316 2010-11-26  Bruno Haible  <bruno@clisp.org>
14317
14318         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14319         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14320         'iconv' module is present.
14321         (ICONV_CONST): New macro.
14322         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14323         ICONV_CONST.
14324         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14325         set ICONV_CONST.
14326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14327         here.
14328         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14329         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14330         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14331         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14332         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14333         present.
14334
14335 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14336
14337         ftoastr: comment fix
14338         * lib/ftoastr.c: "little" -> "little or no" in comment
14339
14340 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14341
14342         stdint: port to GCC 4.3 + OSX + Octave
14343         On this platform, stdint.h is buggy and defines int64_t to long
14344         long int.  The replacement defined it to long int, causing
14345         problems with C++ style name mangling.  Instead, trust the system
14346         definition if INT64_MAX is defined, and likewise for the unsigned
14347         variant.   Problem reported by Jarno Rajahalme in
14348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14349         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14350         and don't mess with int64_t and INT64_MAX in this case.
14351         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14352
14353 2010-11-24  Bruno Haible  <bruno@clisp.org>
14354
14355         doc: Corrections regarding MacOS X 10.4 and 10.5.
14356         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14357         MacOS X.
14358         Reported by Simon Josefsson.
14359
14360 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14361
14362         Uninstall ".bin" files installed by relocwrapper.
14363         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14364         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14365         unless it is already there.
14366
14367 2010-11-21  Bruno Haible  <bruno@clisp.org>
14368
14369         Update for NetBSD 5.0.
14370         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14371         NetBSD; the test fails on NetBSD 5.0.
14372         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14373         about NetBSD.
14374
14375 2010-11-21  Bruno Haible  <bruno@clisp.org>
14376
14377         Update for HP-UX 11.23 and HP-UX 11.31.
14378         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14379         HP-UX.
14380
14381 2010-11-21  Bruno Haible  <bruno@clisp.org>
14382
14383         Update for MacOS X 10.5.
14384         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14385         MacOS X; the test fails on MacOS X 10.5.8.
14386         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14387         about MacOS X.
14388
14389 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14390
14391         bootstrap: add bootstrap_sync option.
14392         See discussion at
14393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14395         * build-aux/bootstrap: Accept --bootstrap-sync to update
14396         bootstrap if it is not identical to the local gnulib's
14397         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14398         enable this by default.  Accept --no-bootstrap-sync to disable
14399         it.
14400
14401 2010-11-20  Bruno Haible  <bruno@clisp.org>
14402
14403         Ensure that <features.h> is included before __GLIBC__ is tested.
14404         * lib/printf-parse.h: Include <features.h>.
14405         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14406         Reported by Mike Frysinger <vapier@gentoo.org>.
14407
14408         Ensure that <features.h> is included before __GLIBC__ is tested.
14409         * lib/wchar.in.h: Include <features.h>.
14410         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14411         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14412         Reported by Mike Frysinger <vapier@gentoo.org>.
14413
14414         Ensure that <features.h> is included before __GLIBC__ is tested.
14415         * lib/arpa_inet.in.h: Include <features.h>.
14416         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14417         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14418         Reported by Mike Frysinger <vapier@gentoo.org>.
14419
14420         Ensure that <features.h> is included before __GLIBC__ is tested.
14421         * build-aux/link-warning.h: Include <features.h>.
14422         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14423         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14424         Reported by Mike Frysinger <vapier@gentoo.org>.
14425
14426         Ensure that <features.h> is included before __GLIBC__ is tested.
14427         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14428         Reported by Mike Frysinger <vapier@gentoo.org>.
14429
14430 2010-11-20  Bruno Haible  <bruno@clisp.org>
14431
14432         memmem: Fix autoconf test.
14433         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14434
14435 2010-11-20  Bruno Haible  <bruno@clisp.org>
14436
14437         Port to uClibc.
14438         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14439         * lib/fcntl.in.h: Likewise.
14440         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14441         * lib/mbrtowc.c (mbrtowc): Likewise.
14442         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14443         * lib/strerror_r.c: Likewise.
14444         * lib/unistr/u8-strnlen.c: Likewise.
14445         * lib/vasnprintf.c (decimal_point_char): Likewise.
14446         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14447         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14448         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14449         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14450         * tests/test-sigaction.c (handler, main): Likewise.
14451         * lib/freading.h: Treat uClibc like a non-glibc platform.
14452         * lib/freading.c: Likewise.
14453         * lib/gettext.h: Likewise.
14454         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14455         Likewise.
14456         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14457         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14458         * lib/propername.c (proper_name_utf8): Likewise.
14459         * lib/spawn.in.h: Likewise.
14460         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14461         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14462         mem_cd_iconveh_internal): Likewise.
14463         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14464         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14465         strstr, strcasestr): Likewise.
14466         * lib/unicodeio.c (unicode_to_mb): Likewise.
14467         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14468         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14469         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14470         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14471         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14472         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14473         * lib/unistr/u8-stpncpy.c: Likewise.
14474         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14475         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14477         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14478         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14479         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14480         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14483         Likewise.
14484         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14485         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14489         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14490         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14491         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14492         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14493         * tests/test-striconveha.c (main): Likewise.
14494         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14495         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14496         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14497         * doc/posix-functions/getline.texi: Likewise.
14498         Reported by Mike Frysinger <vapier@gentoo.org>.
14499
14500 2010-11-20  Bruno Haible  <bruno@clisp.org>
14501
14502         nproc: Fix condition.
14503         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14504         HAVE_PTHREAD_AFFINITY_NP.
14505
14506 2010-11-20  Bruno Haible  <bruno@clisp.org>
14507
14508         Fix a comment.
14509         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14510
14511 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14512
14513         ftoastr: don't assume snprintf
14514         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14515         Implement a subset of snprintf here, by using sprintf safely.
14516         * modules/ftoastr (Depends-on): Remove snprintf.
14517
14518 2010-11-19  Jim Meyering  <meyering@redhat.com>
14519
14520         test-rename.h: fix compilation failure
14521         * tests/test-rename.h (test_rename): Add omitted "}".
14522
14523 2010-11-17  Jim Meyering  <meyering@redhat.com>
14524
14525         maint.mk: add a URL discussing the no-@acronym policy
14526         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14527
14528 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14529
14530         ftoastr: depend on snprintf, improve comments
14531         * lib/ftoastr.c: Also mention Loitsch's draft.
14532         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14533         needed in the current implementation, but it might simplify
14534         speeding up the code later.
14535         * modules/ftoastr: Depend on snprintf; this improves portability.
14536         Suggested by Bruno Haible in the same email.
14537
14538         ftoastr: port to hosts lacking strtof and strtold
14539         Problem reported by Bruno Haible in
14540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14541         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14542         environment and strtold (and presumably strtof) are not available.
14543         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14544         (configure.ac): Require gl_C99_STRTOLD.
14545
14546 2010-11-18  Bruno Haible  <bruno@clisp.org>
14547
14548         c-strtold: Avoid link error on AIX 7.
14549         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14550         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14551         (gl_C_STRTOLD): Test whether strtold_l exists.
14552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14553
14554 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14555
14556         intprops: new macro INT_BITS_STRLEN_BOUND
14557         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14558         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14559         not exposed.  Also, it uses a slightly tighter bound than before;
14560         though this makes no practical difference, we might as well be as
14561         tight as we easily can.
14562
14563         ftoastr: new module, for lossless conversion of floats to short strings
14564         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14565         * modules/ftoastr: New files.
14566
14567 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14568
14569         bootstrap: port to Solaris sed
14570         * build-aux/bootstrap (get_version): Port to Solaris sed.
14571         See Ralf Wildenhues's note in
14572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14573
14574 2010-11-14  Jim Meyering  <meyering@redhat.com>
14575
14576         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14577         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14578         and move definition closer to sole use.
14579
14580 2010-11-13  Jim Meyering  <meyering@redhat.com>
14581
14582         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14583         Now we require at least autoconf-2.59, which means the work-around
14584         is no longer needed.
14585         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14587         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14588         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14589         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14590
14591 2010-11-13  Bruno Haible  <bruno@clisp.org>
14592
14593         rename, renameat: Avoid test failures at NFS mounted locations.
14594         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14595         functions.
14596         (test_rename): Use assert_nonexistent.
14597         * tests/test-rename.c: Include <dirent.h>.
14598         * tests/test-renameat.c: Likewise.
14599         Reported by Gary V. Vaughan <gary@gnu.org>.
14600
14601         rename, renameat: Document Linux bug with NFS
14602         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14603         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14604         * doc/posix-functions/renameat.texi: Likewise.
14605         Suggested by Eric Blake.
14606
14607 2010-11-13  Bruno Haible  <bruno@clisp.org>
14608
14609         rename test: Add comments.
14610         * tests/test-rename.h (test_rename): Add structure and comments.
14611
14612 2010-11-13  Eric Blake  <eblake@redhat.com>
14613
14614         maintainer-makefile: cover a few more files
14615         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14616         scripts generated within C files, for libvirt.
14617
14618 2010-11-13  Bruno Haible  <bruno@clisp.org>
14619
14620         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14621         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14622         character, return the number of bytes that belong together, not always
14623         1.
14624         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14625         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14626         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14627         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14628         number of bytes of an invalid character.
14629         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14630         (main): Invoke it.
14631         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14632         results.
14633         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14634         malformed byte sequences.
14635         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14636         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14637         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14638         Reported by Ben Pfaff and Paolo Bonzini.
14639
14640 2010-11-13  Bruno Haible  <bruno@clisp.org>
14641
14642         openat: Work around glibc bug with fchownat() and empty file names.
14643         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14644         (gl_FUNC_FCHOWNAT): Invoke it.
14645         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14646         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14647         Reported by Gary V. Vaughan <gary@gnu.org>.
14648
14649 2010-11-13  Bruno Haible  <bruno@clisp.org>
14650
14651         openat: Ensure autoconf macro ordering.
14652         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14653         gl_USE_SYSTEM_EXTENSIONS.
14654         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14655
14656 2010-11-13  Bruno Haible  <bruno@clisp.org>
14657
14658         Update comments.
14659         * lib/unistr/u8-check.c: Update file name in comments.
14660         * lib/unistr/u8-mblen.c: Likewise.
14661         * lib/unistr/u8-prev.c: Likewise.
14662         * lib/unistr/u8-strmblen.c: Likewise.
14663         * lib/unistr/u8-strmbtouc.c: Likewise.
14664
14665 2010-11-13  Jim Meyering  <meyering@redhat.com>
14666
14667         tests: avoid test failure on Solaris 10 due to lack of PATH export
14668         * tests/test-update-copyright.sh: Don't forget to export PATH.
14669
14670         init.sh: ensure that IFS is defined, just in case...
14671         * tests/init.sh (setup_): Ensure that IFS is defined,
14672         so that saving and restoring it works as expected.  This
14673         appears to be useful at least for an old version of dash
14674         from a long time ago (RH 6).  See here for details:
14675         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14676
14677         maint.mk: tighten "test a == b" check
14678         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14679         test to files that contain something like #!/bin/sh.
14680         Without this, coreutils would get two false positives in
14681         the comments of C source files.
14682
14683 2010-11-12  Eric Blake  <eblake@redhat.com>
14684
14685         bootstrap: fix typo in previous attempt
14686         * build-aux/bootstrap (buildreq): Correct the grouping.
14687         Reported by Paul Eggert.
14688
14689         maintainer-makefile: prohibit test x == x
14690         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14691         Based on a report by Matthias Bolte.
14692
14693         bootstrap: allow FreeBSD gzip
14694         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14695         which has no '.' and goes to stderr.
14696         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14697         Reported by Matthias Bolte.
14698
14699         maintainer-makefile: check for i18n setup
14700         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14701         will likely work.
14702
14703 2010-11-12  Bruno Haible  <bruno@clisp.org>
14704
14705         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14706         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14707         * lib/nanosleep.c (nanosleep): Likewise.
14708
14709 2010-11-11  Bruno Haible  <bruno@clisp.org>
14710
14711         fcntl-h: Fix for use of C++ on glibc systems.
14712         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14713         also on glibc systems in C++ mode.
14714         Reported by Gary V. Vaughan <gary@gnu.org>.
14715
14716 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14717
14718         mknod: avoid false failure with dash
14719         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14720
14721 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         unlink: Fix "is it should" typo in diagnostic.
14724         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14726
14727 2010-11-11  Bruno Haible  <bruno@clisp.org>
14728
14729         Tests for module 'strerror_r-posix'.
14730         * modules/strerror_r-posix-tests: New file.
14731         * tests/test-strerror_r.c: New file.
14732         * tests/test-string-c++.cc: Check the signature of strerror_r.
14733
14734         New module 'strerror_r-posix'.
14735         * lib/string.in.h (strerror_r): New declaration.
14736         * lib/strerror_r.c: New file.
14737         * m4/strerror_r.m4: New file.
14738         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14739         of strerror_r.
14740         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14741         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14742         * modules/strerror_r-posix: New file.
14743         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14744         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14745         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14746         portability problems.
14747
14748 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14749
14750         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14751         line is also considered for output. Quoted function name in shell
14752         command, so temporary files for functions like MyClass::operator()
14753         are removed correctly without errors.
14754
14755 2010-11-09  Bruno Haible  <bruno@clisp.org>
14756
14757         * doc/posix-functions/strerror.texi: List more failing platforms.
14758
14759         * doc/posix-functions/strerror.texi: Add a comment.
14760
14761 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14762
14763         fdopendir: fix bug on MacOS X when low on file descriptors
14764
14765         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14766         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14767         All callers changed.
14768         (fdopendir): Invoke save_cwd at the top level, not after using
14769         multiple dup() calls to use up file descriptors.  Then retry
14770         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14771         less than the maximum number of open file descriptors, because
14772         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14773         on Mac OS X 10.6.4 for tar 1.24
14774         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14775         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14776         and for tar 1.25
14777         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14778
14779 2010-11-07  Bruno Haible  <bruno@clisp.org>
14780
14781         vasnprintf: Support I flag on glibc systems.
14782         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14783         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14784         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14785         snprintf function.
14786         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14787         glibc systems.
14788         * tests/test-vasnprintf-posix3.c: New file.
14789         * modules/vasnprintf-posix-tests (Files): Add it.
14790         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14791
14792 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14793
14794         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14795         * MODULES.html.sh: For compiler warnings, use name
14796         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14797
14798 2010-11-05  Eric Blake  <eblake@redhat.com>
14799
14800         ceil, floor: avoid spurious failure with icc
14801         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14802         [denormals-as-zero] when optimizing without -mieee-fp option.
14803         * tests/test-floorf2.c (floorf_reference): Likewise.
14804         * tests/test-ceilf1.c (dummy): New function.
14805         (main): Use it to outsmart icc's optimization.
14806         * tests/test-floorf1.c (dummy, main): Likewise.
14807
14808         tests: require working signbit
14809         * modules/ceilf-tests (Depends-on): Add signbit.
14810         * modules/ceill-tests (Depends-on): Likewise.
14811         * modules/floorf-tests (Depends-on): Likewise.
14812         * modules/floorl-tests (Depends-on): Likewise.
14813         * modules/round-tests (Depends-on): Likewise.
14814         * modules/roundf-tests (Depends-on): Likewise.
14815         * modules/roundl-tests (Depends-on): Likewise.
14816         * modules/trunc-tests (Depends-on): Likewise.
14817         * modules/truncf-tests (Depends-on): Likewise.
14818         * modules/truncl-tests (Depends-on): Likewise.
14819
14820         strtod: work around icc bug
14821         * lib/strtod.c (minus_zero): Define to working value.
14822         (strtod): Use it to avoid icc bug.
14823
14824         copysign: enhance tests
14825         * modules/copysign-tests (Files): Add minus-zero.h.
14826         * tests/test-copysign.c (main): Also test zeros.
14827
14828 2010-11-04  Eric Blake  <eblake@redhat.com>
14829
14830         ceil, floor, round, trunc: enhance tests of -0
14831         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14832         * tests/test-ceill.c (main): Likewise.
14833         * tests/test-floorf1.c (main): Likewise.
14834         * tests/test-floorl.c (main): Likewise.
14835         * tests/test-round1.c (main): Likewise.
14836         * tests/test-roundf1.c (main): Likewise.
14837         * tests/test-roundl.c (main): Likewise.
14838         * tests/test-trunc1.c (main): Likewise.
14839         * tests/test-truncf1.c (main): Likewise.
14840         * tests/test-truncl.c (main): Likewise.
14841
14842 2010-11-04  Eric Blake  <eblake@redhat.com>
14843
14844         frexp, tests: work around ICC bug with -zero
14845         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14846         works with more compilers.
14847         * tests/minus-zero.h: New file.
14848         * modules/ceilf-tests (Files): Include it.
14849         * modules/ceill-tests (Files): Likewise.
14850         * modules/floorf-tests (Files): Likewise.
14851         * modules/floorl-tests (Files): Likewise.
14852         * modules/frexp-nolibm-tests (Files): Likewise.
14853         * modules/frexp-tests (Files): Likewise.
14854         * modules/frexpl-nolibm-tests (Files): Likewise.
14855         * modules/frexpl-tests (Files): Likewise.
14856         * modules/isnan-tests (Files): Likewise.
14857         * modules/isnand-nolibm-tests (Files): Likewise.
14858         * modules/isnand-tests (Files): Likewise.
14859         * modules/isnanf-nolibm-tests (Files): Likewise.
14860         * modules/isnanf-tests (Files): Likewise.
14861         * modules/isnanl-nolibm-tests (Files): Likewise.
14862         * modules/isnanl-tests (Files): Likewise.
14863         * modules/round-tests (Files): Likewise.
14864         * modules/roundf-tests (Files): Likewise.
14865         * modules/roundl-tests (Files): Likewise.
14866         * modules/ldexpl-tests (Files): Likewise.
14867         * modules/signbit-tests (Files): Likewise.
14868         * modules/snprintf-posix-tests (Files): Likewise.
14869         * modules/sprintf-posix-tests (Files): Likewise.
14870         * modules/strtod-tests (Files): Likewise.
14871         * modules/trunc-tests (Files): Likewise.
14872         * modules/truncf-tests (Files): Likewise.
14873         * modules/truncl-tests (Files): Likewise.
14874         * modules/vsnprintf-posix-tests (Files): Likewise.
14875         * modules/vsprintf-posix-tests (Files): Likewise.
14876         * modules/vasnprintf-posix-tests (Files): Likewise.
14877         * modules/vasprintf-posix-tests (Files): Likewise.
14878         * tests/test-ceilf1.c (main): Use it.
14879         * tests/test-ceill.c (main): Likewise.
14880         * tests/test-floorf1.c (main): Likewise.
14881         * tests/test-floorl.c (main): Likewise.
14882         * tests/test-frexp.c (main): Likewise.
14883         * tests/test-frexpl.c (main): Likewise.
14884         * tests/test-isnan.c (main): Likewise.
14885         * tests/test-isnand.h (main): Likewise.
14886         * tests/test-isnanf.h (main): Likewise.
14887         * tests/test-isnanl.h (main): Likewise.
14888         * tests/test-ldexpl.c (main): Likewise.
14889         * tests/test-round.c (main): Likewise.
14890         * tests/test-roundf.c (main): Likewise.
14891         * tests/test-roundl.c (main): Likewise.
14892         * tests/test-signbit.c (test_signbitf, test_signbitd)
14893         (test_signbitl): Likewise.
14894         * tests/test-snprintf-posix.h (test_function): Likewise.
14895         * tests/test-sprintf-posix.h (test_function): Likewise.
14896         * tests/test-strtod.c (main): Likewise.
14897         * tests/test-trunc1.c (main): Likewise.
14898         * tests/test-truncf1.c (main): Likewise.
14899         * tests/test-truncl.c (main): Likewise.
14900
14901         isnanl: work around icc bug
14902         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14903
14904 2010-11-03  Eric Blake  <eblake@redhat.com>
14905
14906         tests: fix compiler warnings
14907         * tests/test-getopt.h (test_getopt): Fix condition.
14908         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14909         * tests/test-pipe2.c (main): Likewise.
14910         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14911
14912         utimens: fix broken m4 test
14913         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14914
14915 2010-10-28  Bruno Haible  <bruno@clisp.org>
14916
14917         posix_spawn*, getdtablesize: Relax license.
14918         * modules/posix_spawn (License): Change to LGPLv2+.
14919         * modules/posix_spawnp (License): Likewise.
14920         * modules/posix_spawn-internal (License): Likewise.
14921         * modules/posix_spawnattr_init (License): Likewise.
14922         * modules/posix_spawnattr_getflags (License): Likewise.
14923         * modules/posix_spawnattr_setflags (License): Likewise.
14924         * modules/posix_spawnattr_getpgroup (License): Likewise.
14925         * modules/posix_spawnattr_setpgroup (License): Likewise.
14926         * modules/posix_spawnattr_getschedparam (License): Likewise.
14927         * modules/posix_spawnattr_setschedparam (License): Likewise.
14928         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14929         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14930         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14931         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14932         * modules/posix_spawnattr_getsigmask (License): Likewise.
14933         * modules/posix_spawnattr_setsigmask (License): Likewise.
14934         * modules/posix_spawnattr_destroy (License): Likewise.
14935         * modules/posix_spawn_file_actions_init (License): Likewise.
14936         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14937         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14938         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14939         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14940         * modules/getdtablesize (License): Likewise.
14941         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14942
14943 2010-10-26  Bruno Haible  <bruno@clisp.org>
14944
14945         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14946         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14947         Cygwin and mingw.
14948         Suggested by Eric Blake.
14949
14950 2010-10-26  Bruno Haible  <bruno@clisp.org>
14951
14952         stdio: Work around compilation error due to renameat() on Solaris 10.
14953         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14954         * lib/renameat.c: Don't include <unistd.h> here.
14955         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14956         Reported by Paul Eggert and Eric Blake.
14957
14958 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14959
14960         renameat: port to Solaris 10, which declares renameat in unistd.h
14961
14962         * lib/renameat.c: Include unistd.h before stdio.h, because
14963         Solaris 10 declares renameat in unistd.h.  Problem encountered
14964         when building GNU tar 1.24 on Solaris 10.
14965
14966 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14967
14968         fdopendir: fix C89 compilation
14969         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14970         compilers.
14971
14972 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         inttostr: simplify by removing unnecessary redundancy
14975         * lib/anytostr.c: Don't include verify.h.
14976         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14977         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14978         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14979         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14980         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14981         Likewise.
14982         * modules/inttostr (Depends-on): Remove 'verify'.
14983
14984 2010-10-23  Bruno Haible  <bruno@clisp.org>
14985
14986         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14987         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14988         Reported by Eric Blake.
14989
14990 2010-10-23  Bruno Haible  <bruno@clisp.org>
14991
14992         Tests: Fix LOCALE_JA on MirBSD 10.
14993         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14994         to an UTF-8 locale.
14995         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14997         Reported by Eric Blake.
14998
14999 2010-10-21  Bruno Haible  <bruno@clisp.org>
15000
15001         nl_langinfo test: Avoid test failure on NetBSD 5.
15002         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15003         Reported by Eric Blake.
15004
15005 2010-10-21  Eric Blake  <eblake@redhat.com>
15006
15007         c-stack: work around libsigsegv 2.8 bug
15008         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15009         overflow on at least PowerPC64.
15010
15011 2010-10-17  Bruno Haible  <bruno@clisp.org>
15012
15013         userspec: Drop redundant file.
15014         * modules/userspec (Files): Remove lib/inttostr.h.
15015
15016 2010-10-17  Bruno Haible  <bruno@clisp.org>
15017
15018         nl_langinfo tests: Silence some warnings.
15019         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15020         Reported by Jim Meyering.
15021
15022 2010-10-17  Bruno Haible  <bruno@clisp.org>
15023
15024         Make use of GCC's attribute __alloc_size__.
15025         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15026         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15027         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15028         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15029         __alloc_size__.
15030         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15031         Suggested by Jim Meyering.
15032
15033 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15034
15035         bootstrap: anchor .gitignore entries.
15036         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15037         with...
15038         (insert_vc_ignore): ... this new function, which prepends `/' to
15039         all .gitignore entries before passing them to
15040         insert_sorted_if_absent.
15041
15042 2010-10-16  Bruno Haible  <bruno@clisp.org>
15043
15044         nextafter: Fix configure check.
15045         * modules/nextafter (configure.ac): Correct expected prototype.
15046
15047 2010-10-16  Bruno Haible  <bruno@clisp.org>
15048
15049         termios: Update documentation.
15050         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15051
15052 2010-10-16  Bruno Haible  <bruno@clisp.org>
15053
15054         tests: Make them compile with TinyCC.
15055         * tests/test-strstr.c (main): Remove parentheses around array
15056         initializer.
15057
15058 2010-10-15  Eric Blake  <eblake@redhat.com>
15059
15060         ignore-value: make header idempotent
15061         * lib/ignore-value.h: Add double-inclusion guards.
15062         Reported by Stefan Berger.
15063
15064 2010-10-15  Jim Meyering  <meyering@redhat.com>
15065
15066         GNUmakefile: handle "stable" target, not "major"
15067         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15068         lists in maint.mk and announce-gen.  Without this, "make stable"
15069         would fail to ensure that $(VERSION) is up to date.
15070
15071 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15072
15073         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15074         & co.
15075
15076 2010-10-14  Bruno Haible  <bruno@clisp.org>
15077
15078         vasnprintf: Don't set errno to 0.
15079         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15080         block that sets it to 0.
15081         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15082
15083 2010-10-14  Bruno Haible  <bruno@clisp.org>
15084
15085         socketlib: Fix.
15086         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15087         gl_PREREQ_SYS_H_WINSOCK2.
15088         Reported by Ian Beckwith <ianb@erislabs.net>.
15089
15090 2010-10-13  Jim Meyering  <meyering@redhat.com>
15091
15092         test-select-stdin.c: avoid warn_unused_result warnings
15093         * tests/test-select-stdin.c: Include "macros.h".
15094         ASSERT that read and fflush succeed.
15095
15096 2010-10-13  Jim Meyering  <meyering@redhat.com>
15097
15098         git-version-gen: do require git-VC'd files in cwd
15099         * build-aux/git-version-gen: Reject a git version string
15100         if there are no commits associated with the current directory.
15101         This avoids an unlikely false-positive (unrelated dir whose parent
15102         repository also contains a tag matching v*), as pointed out
15103         by Giuseppe Scrivano in
15104         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15105
15106 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15107
15108         argv-iter: omit nonconforming declaration
15109         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15110         enum arg_iter_err declaration, which doesn't conform to C99.
15111         Solaris 10 cc warns about this.
15112
15113 2010-10-13  Eric Blake  <eblake@redhat.com>
15114
15115         termios: fix compilation on mingw
15116         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15117         (gl_TERMIOS_H): Adjust it on mingw.
15118         * modules/termios (Makefile.am): Substitute new key.
15119         * lib/termios.in.h (includes): Make include_next conditional.
15120         * doc/posix-headers/termios.texi (termios.h): Update
15121         documentation.
15122         Reported by Daniel P. Berrange.
15123
15124 2010-10-13  Jim Meyering  <meyering@redhat.com>
15125
15126         git-version-gen: don't require that .git/ be in the current dir
15127         * build-aux/git-version-gen: Adjust this script so that it works
15128         when run from any working directory beneath the top-level .git/-
15129         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15130         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15131
15132         test-select: avoid warn_unused_result warnings
15133         * tests/test-select.c: Include "macros.h".
15134         ASSERT that each call to read, write, and pipe succeeds.
15135         While not technically required, also check each "close".
15136         * modules/select-tests (Files): Add tests/macros.h.
15137
15138         test-symlinkat: remove declaration of unused local
15139         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15140
15141         test-inttostr: avoid shadowing warnings
15142         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15143         and use malloc rather than the stack for the same reason as
15144         mentioned in the comment justifying the other allocation.
15145
15146 2010-10-11  Bruno Haible  <bruno@clisp.org>
15147
15148         stdlib: Allow multiple gnulib generated replacements to coexist.
15149         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15150         Reported by Sam Steingold <sds@gnu.org>.
15151
15152 2010-10-11  Jim Meyering  <meyering@redhat.com>
15153
15154         fix a documentation typo
15155         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15156
15157 2010-10-11  Eric Blake  <eblake@redhat.com>
15158
15159         futimens: work around Solaris 11 bug
15160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15161         * tests/test-futimens.h (test_futimens): Enhance, rather than
15162         weaken test.
15163         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15164
15165 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15166
15167         Indentation.
15168         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15169         higher-level operators more to the left.
15170
15171 2010-10-11  Jim Meyering  <meyering@redhat.com>
15172
15173         test-futimens: avoid unwarranted test failure on Solaris 5.11
15174         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15175         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15176         because it tries to dereference the NULL name argument.
15177
15178 2010-10-11  Bruno Haible  <bruno@clisp.org>
15179
15180         Indentation.
15181         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15182         indentation.
15183
15184 2010-10-11  Jim Meyering  <meyering@redhat.com>
15185
15186         spawn.in.h: make indentation consistent with parentheses
15187         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15188         Make indentation consistent with parentheses.
15189
15190 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15191
15192         Fix mismatched parens in previous commit
15193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15194         parens.
15195
15196 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15199
15200         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15201         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15202         * lib/malloca.c: Include "verify.h".
15203         (verify1): Remove, replacing with a verify call.
15204         * lib/relocwrapper.c (verify1): Likewise.
15205         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15206         Likewise.
15207         * modules/malloca (Depends-on): Add 'verify'.
15208         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15209         * modules/vasnprintf (Depends-on): Add 'verify'.
15210         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15211         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15212         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15213         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15214         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15215         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15216         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15217
15218         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15219
15220         Formerly the style was sometimes 2*X - 1, because the C standard
15221         was wrongly thought to disallow ?: in integral constant expressions.
15222         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15223         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15224         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15225         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15226         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15227         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15228         verify that time_t cannot be floating.
15229
15230 2010-10-08  Eric Blake  <eblake@redhat.com>
15231
15232         time: enforce recent POSIX ruling that time_t is integral
15233         * lib/time.in.h (__time_t_must_be_integral): Detect any
15234         problematic systems, allowing the rest of gnulib to assume POSIX.
15235
15236 2010-10-08  Jim Meyering  <meyering@redhat.com>
15237
15238         fdopendir: fix a bug on systems lacking openat and /proc support
15239         OpenBSD 4.7 is one such system.  The most noticeable effect was
15240         failure of any application making nontrivial use of fts: rm, du,
15241         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15242           ./rm: traversal failed: `a': Bad file descriptor
15243         Debugging that, you see that even though FD 6 was closed just
15244         prior to the opendir call in fd_clone_opendir, its resulting
15245         dir->dd_fd was 8, rather than the expected value of 6:
15246
15247         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15248         93                close (fd);
15249         (gdb) n
15250         94                dir = fd_clone_opendir (dupfd);
15251         (gdb) n
15252         95                saved_errno = errno;
15253         (gdb) p dir->dd_fd
15254         $11 = 8
15255
15256         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15257         The problem is that on OpenBSD, fd_clone_opendir has to resort
15258         to using the old-style save/restore CWD mechanism, due to its
15259         lack of openat/proc support, and *that* would steal the FD (6)
15260         that opendir was supposed to use.
15261
15262         The fix is to squirrel away the desired FD so that save_cwd uses a
15263         different one, and then free the dest FD right before calling opendir.
15264         That guarantees opendir will use the required file descriptor.
15265
15266         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15267
15268 2010-10-08  Bruno Haible  <bruno@clisp.org>
15269
15270         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15271         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15272
15273 2010-10-08  Bruno Haible  <bruno@clisp.org>
15274
15275         nanosleep: Make replacement POSIX compliant.
15276         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15277         is out of range.
15278         Reported by Jim Meyering.
15279
15280 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15281
15282         bootstrap: add hook for altering gnulib.mk, for Bison
15283         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15284         the Bison bootstrapping process can rewrite file names and variables
15285         in this file before later parts of 'bootstrap' use the file.
15286         Bison wants to include lib/gnulib.mk from the top-level makefile,
15287         so it needs the file names in this file to be relative to the top
15288         level, not relative to lib; plus it needs variable names to be
15289         rewritten.
15290         (slurp): Use the new function.
15291
15292         bootstrap: reformat for readability
15293         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15294
15295 2010-10-08  Eric Blake  <eblake@redhat.com>
15296
15297         docs: update cygwin progress
15298         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15299         1.7.7.
15300         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15301         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15302         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15303         * doc/posix-functions/carg.texi (carg): Likewise.
15304         * doc/posix-functions/cargf.texi (cargf): Likewise.
15305         * doc/posix-functions/casin.texi (casin): Likewise.
15306         * doc/posix-functions/casinf.texi (casinf): Likewise.
15307         * doc/posix-functions/casinh.texi (casinh): Likewise.
15308         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15309         * doc/posix-functions/catan.texi (catan): Likewise.
15310         * doc/posix-functions/catanf.texi (catanf): Likewise.
15311         * doc/posix-functions/catanh.texi (catanh): Likewise.
15312         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15313         * doc/posix-functions/ccos.texi (ccos): Likewise.
15314         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15315         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15316         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15317         * doc/posix-functions/cexp.texi (cexp): Likewise.
15318         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15319         * doc/posix-functions/cimag.texi (cimag): Likewise.
15320         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15321         * doc/posix-functions/clog.texi (clog): Likewise.
15322         * doc/posix-functions/clogf.texi (clogf): Likewise.
15323         * doc/posix-functions/conj.texi (conj): Likewise.
15324         * doc/posix-functions/conjf.texi (conjf): Likewise.
15325         * doc/posix-functions/cpow.texi (cpow): Likewise.
15326         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15327         * doc/posix-functions/cproj.texi (cproj): Likewise.
15328         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15329         * doc/posix-functions/creal.texi (creal): Likewise.
15330         * doc/posix-functions/crealf.texi (crealf): Likewise.
15331         * doc/posix-functions/csin.texi (csin): Likewise.
15332         * doc/posix-functions/csinf.texi (csinf): Likewise.
15333         * doc/posix-functions/csinh.texi (csinh): Likewise.
15334         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15335         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15336         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15337         * doc/posix-functions/ctan.texi (ctan): Likewise.
15338         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15339         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15340         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15341         * doc/posix-headers/complex.texi (complex.h): Likewise.
15342
15343 2010-10-07  Jim Meyering  <meyering@redhat.com>
15344
15345         parse-datetime: avoid compilation failure on OpenBSD 4.7
15346         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15347         This works around a compilation failure on OpenBSD 4.7:
15348         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15349
15350 2010-10-07  Eric Blake  <eblake@redhat.com>
15351
15352         docs: update cygwin progress
15353         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15354         1.7.6.
15355         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15356         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15357         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15358         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15359         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15360         Likewise.
15361         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15362         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15363         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15364         Likewise.
15365         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15366         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15367         Likewise.
15368         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15369         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15370         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15371         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15372         Likewise.
15373         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15374         Likewise.
15375         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15376
15377         docs: update parse-datetime history
15378         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15379         documentation of this function's history and alternatives.
15380
15381         cygwin: use more robust version check
15382         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15383         exclude an eventual cygwin 1.9.1.
15384         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15386         (gl_FUNC_STRCASESTR): Likewise.
15387         Reported by Bruno Haible.
15388
15389 2010-10-06  Bruno Haible  <bruno@clisp.org>
15390
15391         string, sys_select: Avoid #including large headers unless necessary.
15392         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15393         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15394         OSF/1, BeOS, Haiku.
15395         Reported by Jim Meyering.
15396
15397 2010-10-05  Eric Blake  <eblake@redhat.com>
15398
15399         memmem, strstr, strcasestr: fix bug with long periodic needle
15400         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15401         periodic needle having false positive.
15402         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15403         and cygwin 1.7.7.
15404         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15406         (gl_FUNC_STRCASESTR): Likewise.
15407         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15408         * tests/test-memmem.c (main): Expose the bug.
15409         * tests/test-strcasestr.c (main): Likewise.
15410         * tests/test-strstr.c (main): Likewise.
15411         * tests/test-c-strcasestr.c (main): Likewise.
15412         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15413         * doc/posix-functions/strstr.texi (strstr): Likewise.
15414         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15415         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15416
15417 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         parse-datetime: do some more renaming
15420         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15421         parse_datetime, not get_date.  Mention the renaming.
15422         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15423         in comments.
15424         * m4/bison.m4: Likewise.
15425
15426 2010-10-05  Eric Blake  <eblake@redhat.com>
15427
15428         parse-datetime: better name than get_date
15429         * NEWS: Reword the deprecation notice.
15430         * modules/get_date: Rename to modules/parse-datetime.
15431         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15432         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15433         * lib/get_date.y: Rename to lib/parse-datetime.y.
15434         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15435         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15436         * doc/getdate.texi: Provide fallback wrapper.
15437         * lib/getdate.h: Move guts, and wrap...
15438         * lib/parse-datetime.h: ...new file.
15439         * lib/parse-datetime.y (get_date): Rename...
15440         (parse_datetime): ...to this.
15441         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15442         (gl_PARSE_DATETIME): ...to this.
15443         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15444         documentation.
15445         * modules/getdate (Files): Provide fallback docs and header.
15446         (Notice, Depends-on): Update references.
15447         * tests/test-parse-datetime.c: Likewise.
15448         * DEPENDENCIES: Likewise.
15449         * MODULES.html.sh (Date and time <time.h>): Likewise.
15450         * doc/parse-datetime.texi (Date input formats)
15451         (Authors of parse_datetime): Likewise.
15452         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15453         (Include): Likewise.
15454         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15455         * gnulib-tool: Likewise.
15456         * m4/bison.m4 (gl_BISON): Likewise.
15457         Suggested by Bruno Haible.
15458
15459 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         more ports to Solaris tr, which needs [] around ranges
15462         * gnulib-tool: Solaris tr needs [] around ranges.
15463         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15464         * tests/test-pipe-filter-gi1.c (main): Likewise.
15465         * tests/test-pipe-filter-ii1.c (main): Likewise.
15466
15467 2010-10-05  Eric Blake  <eblake@redhat.com>
15468
15469         bootstrap: fix Solaris regression
15470         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15471         around ranges.
15472         Reported by Pádraig Brady.
15473
15474         bootstrap: work with pkg-config
15475         * build-aux/bootstrap (check_versions): Also transliterate - in
15476         prerequisite name.
15477         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15478         prerequisites that were already found, to avoid confusion.
15479         Reported by Justin Clift.
15480
15481         faccessat: remove unused wrappers
15482         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15483         presence of these wrappers dragged in -lgen on Solaris.
15484         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15485
15486 2010-10-05  Jim Meyering  <meyering@redhat.com>
15487
15488         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15489         * Makefile (sc_pragma_columns): New syntax-check rule.
15490
15491 2010-10-04  Bruno Haible  <bruno@clisp.org>
15492
15493         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15494         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15495         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15496         Reported by Bruce Korb and Eric Blake.
15497
15498 2010-10-04  Bruno Haible  <bruno@clisp.org>
15499
15500         threadlib: Make option --with-libpth-prefix work.
15501         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15502         use $LIBPTH, not just -lpth.
15503
15504 2010-10-04  Bruno Haible  <bruno@clisp.org>
15505
15506         Avoid line length limitation from HP NonStop system header files.
15507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15508         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15509         * lib/ctype.in.h: Likewise.
15510         * lib/dirent.in.h: Likewise.
15511         * lib/errno.in.h: Likewise.
15512         * lib/fcntl.in.h: Likewise.
15513         * lib/float.in.h: Likewise.
15514         * lib/getopt.in.h: Likewise.
15515         * lib/iconv.in.h: Likewise.
15516         * lib/inttypes.in.h: Likewise.
15517         * lib/langinfo.in.h: Likewise.
15518         * lib/locale.in.h: Likewise.
15519         * lib/math.in.h: Likewise.
15520         * lib/netdb.in.h: Likewise.
15521         * lib/netinet_in.in.h: Likewise.
15522         * lib/poll.in.h: Likewise.
15523         * lib/pthread.in.h: Likewise.
15524         * lib/pty.in.h: Likewise.
15525         * lib/sched.in.h: Likewise.
15526         * lib/se-selinux.in.h: Likewise.
15527         * lib/search.in.h: Likewise.
15528         * lib/signal.in.h: Likewise.
15529         * lib/spawn.in.h: Likewise.
15530         * lib/stdarg.in.h: Likewise.
15531         * lib/stddef.in.h: Likewise.
15532         * lib/stdint.in.h: Likewise.
15533         * lib/stdio.in.h: Likewise.
15534         * lib/stdlib.in.h: Likewise.
15535         * lib/string.in.h: Likewise.
15536         * lib/strings.in.h: Likewise.
15537         * lib/sys_file.in.h: Likewise.
15538         * lib/sys_ioctl.in.h: Likewise.
15539         * lib/sys_select.in.h: Likewise.
15540         * lib/sys_socket.in.h: Likewise.
15541         * lib/sys_stat.in.h: Likewise.
15542         * lib/sys_time.in.h: Likewise.
15543         * lib/sys_times.in.h: Likewise.
15544         * lib/sys_utsname.in.h: Likewise.
15545         * lib/sys_wait.in.h: Likewise.
15546         * lib/sysexits.in.h: Likewise.
15547         * lib/termios.in.h: Likewise.
15548         * lib/time.in.h: Likewise.
15549         * lib/unistd.in.h: Likewise.
15550         * lib/wchar.in.h: Likewise.
15551         * lib/wctype.in.h: Likewise.
15552         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15553         * modules/ctype (Makefile.am): Likewise.
15554         * modules/dirent (Makefile.am): Likewise.
15555         * modules/errno (Makefile.am): Likewise.
15556         * modules/fcntl-h (Makefile.am): Likewise.
15557         * modules/float (Makefile.am): Likewise.
15558         * modules/getopt-posix (Makefile.am): Likewise.
15559         * modules/iconv-h (Makefile.am): Likewise.
15560         * modules/inttypes (Makefile.am): Likewise.
15561         * modules/langinfo (Makefile.am): Likewise.
15562         * modules/locale (Makefile.am): Likewise.
15563         * modules/math (Makefile.am): Likewise.
15564         * modules/netdb (Makefile.am): Likewise.
15565         * modules/netinet_in (Makefile.am): Likewise.
15566         * modules/poll-h (Makefile.am): Likewise.
15567         * modules/pthread (Makefile.am): Likewise.
15568         * modules/pty (Makefile.am): Likewise.
15569         * modules/sched (Makefile.am): Likewise.
15570         * modules/search (Makefile.am): Likewise.
15571         * modules/selinux-h (Makefile.am): Likewise.
15572         * modules/signal (Makefile.am): Likewise.
15573         * modules/spawn (Makefile.am): Likewise.
15574         * modules/stdarg (Makefile.am): Likewise.
15575         * modules/stddef (Makefile.am): Likewise.
15576         * modules/stdint (Makefile.am): Likewise.
15577         * modules/stdio (Makefile.am): Likewise.
15578         * modules/stdlib (Makefile.am): Likewise.
15579         * modules/string (Makefile.am): Likewise.
15580         * modules/strings (Makefile.am): Likewise.
15581         * modules/sys_file (Makefile.am): Likewise.
15582         * modules/sys_ioctl (Makefile.am): Likewise.
15583         * modules/sys_select (Makefile.am): Likewise.
15584         * modules/sys_socket (Makefile.am): Likewise.
15585         * modules/sys_stat (Makefile.am): Likewise.
15586         * modules/sys_time (Makefile.am): Likewise.
15587         * modules/sys_times (Makefile.am): Likewise.
15588         * modules/sys_utsname (Makefile.am): Likewise.
15589         * modules/sys_wait (Makefile.am): Likewise.
15590         * modules/sysexits (Makefile.am): Likewise.
15591         * modules/termios (Makefile.am): Likewise.
15592         * modules/time (Makefile.am): Likewise.
15593         * modules/unistd (Makefile.am): Likewise.
15594         * modules/wchar (Makefile.am): Likewise.
15595         * modules/wctype (Makefile.am): Likewise.
15596
15597 2010-10-04  Bruno Haible  <bruno@clisp.org>
15598
15599         read-file tests: Avoid a test failure on NonStop Kernel.
15600         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15601         a regular file.
15602         Reported by Joachim Schmitz <schmitz@hp.com>.
15603
15604 2010-10-03  Bruno Haible  <bruno@clisp.org>
15605
15606         gnulib-tool: Fixes for --create-testdir with --libtool.
15607         * gnulib-tool (func_get_automake_snippet): Don't augment
15608         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15609         an executable.
15610         (func_create_testdir): Handle module 'alloca' like func_import.
15611         Reported by Bruce Korb <bruce.korb@gmail.com>.
15612
15613 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         Avoid some lines longer than 80 characters.
15616         * lib/stdint.in.h: Break long comment lines.
15617         * lib/math.in.h: Likewise.
15618         (_GL_NUM_UINT_WORDS): New macro, for readability.
15619         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15620         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15621         * lib/stdlib.in.h: Likewise.
15622         * lib/spawn.in.h: Likewise.
15623         * lib/sys_socket.in.h: Update an URL.
15624         * lib/sys_stat.in.h: Break long line.
15625
15626 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15627
15628         Improve pmccabe2html.
15629         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15630         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15631         when the sources change. Remove the line in the HTML about "Used
15632         ranges" (which implied that there might be other unused ranges),
15633         rename "Resume" to "Summary" (easier to understand for more users).
15634         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15635         styles, and some unnecessary blank lines.
15636
15637 2010-10-03  Bruno Haible  <bruno@clisp.org>
15638             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15639
15640         acl: Add support for ACLs on NonStop Kernel.
15641         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15642         Check whether the function aclsort() exists.
15643         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15644         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15645         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15646         (acl_nontrivial [HAVE_ACLSORT]: New function.
15647         (file_has_acl): Implement for NonStop Kernel.
15648         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15649         (qset_acl): Implement for NonStop Kernel.
15650         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15651         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15652         (main): Implement for NonStop Kernel.
15653         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15654         Kernel. Handle this flavor.
15655         * tests/test-set-mode-acl.sh: Likewise.
15656         * tests/test-copy-acl.sh: Likewise.
15657         * tests/test-copy-file.sh: Likewise.
15658
15659 2010-10-03  Bruno Haible  <bruno@clisp.org>
15660
15661         Info about ACLs on NonStop Kernel.
15662         * doc/acl-resources.txt: Add info about NonStop Kernel.
15663         References by Joachim Schmitz <schmitz@hp.com>.
15664
15665 2010-10-02  Bruno Haible  <bruno@clisp.org>
15666
15667         Define missing EDQUOT on NonStop Kernel.
15668         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15669         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15670         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15671         missing.
15672         * doc/posix-headers/errno.texi: Mention the NSK bug.
15673         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15674         Reported by Joachim Schmitz <schmitz@hp.com>.
15675
15676 2010-10-02  Bruno Haible  <bruno@clisp.org>
15677
15678         Update doc for POSIX:2008.
15679         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15680         Update URL of POSIX specification.
15681
15682 2010-10-02  Bruno Haible  <bruno@clisp.org>
15683
15684         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15685         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15686         from gnulib, not from Automake.
15687
15688 2010-10-02  Bruno Haible  <bruno@clisp.org>
15689
15690         New module 'system-posix'.
15691         * modules/system-posix: New file.
15692         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15693         module is present.
15694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15695         GNULIB_SYSTEM_POSIX.
15696         * modules/stdlib (Depends-on): Remove sys_wait.
15697         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15698         * doc/posix-functions/system.texi: Mention the new module.
15699         * doc/posix-headers/stdlib.texi: Likewise.
15700         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15701         define test_sys_wait_macros to a no-op.
15702         Reported by Sam Steingold <sds@gnu.org>.
15703
15704 2010-09-30  Bruno Haible  <bruno@clisp.org>
15705
15706         More renaming from 'getdate' to 'get_date'.
15707         * doc/get_date.texi: Renamed from doc/getdate.texi.
15708         * modules/get_date (Files): Update.
15709         * MODULES.html.sh (Date and time <time.h>): Update.
15710         * DEPENDENCIES: Update.
15711         * gnulib-tool: Update comment.
15712         * m4/bison.m4 (gl_BISON): Likewise.
15713         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15714
15715 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15716
15717         bootstrap: support ACLOCAL_FLAGS during aclocal
15718         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15719         can add additional -I dir for third-party .m4 files.
15720
15721 2010-09-30  Eric Blake  <eblake@redhat.com>
15722
15723         bootstrap: use glibtoolize on MacOS
15724         * build-aux/bootstrap (check_versions): Convert libtool into
15725         libtoolize.
15726         (tool search): Move libtool check earlier, and look for
15727         glibtoolize for MacOS.
15728         (gnulib_tool_options): Auto-add --libtool when appropriate.
15729         Reported by Justin Clift.
15730
15731         poll: fix typo that broke test on MacOS
15732         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15733         Reported by Justin Clift.
15734
15735         getdate: rename to get_date
15736         Note: getdate.h is not renamed, to minimize client impact.
15737         * modules/getdate: Mark obsolete.  Move old contents...
15738         * modules/get_date: ...to new module name.
15739         * modules/getdate-tests: Move...
15740         * modules/get_date-tests: ...here.
15741         * m4/getdate.m4: Move...
15742         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15743         * lib/getdate.y: Move...
15744         * lib/get_date.y: ...here.
15745         * tests/test-getdate.c: Move...
15746         * tests/test-get_date.c: ...here.
15747         * doc/posix-functions/getdate.texi (getdate): Update name.
15748         * NEWS: Mention the change.
15749
15750 2010-09-29  Bruno Haible  <bruno@clisp.org>
15751
15752         Separate the module 'waitpid' from the module 'sys_wait'.
15753         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15754         present.
15755         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15756         gl_MODULE_INDICATOR_FOR_TESTS.
15757         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15758         * modules/sys_wait (Depends-on): Remove waitpid.
15759         (Makefile.am): Substitute GNULIB_WAITPID.
15760         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15761         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15762         signature only if the 'waitpid' module is present.
15763         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15764         * NEWS: Mention the change.
15765         * modules/grantpt (Depends-on): Add waitpid.
15766         * modules/wait-process (Depends-on): Likewise.
15767
15768 2010-09-29  Bruno Haible  <bruno@clisp.org>
15769
15770         More tests for module 'sys_wait'.
15771         * modules/sys_wait-c++-tests: New file.
15772         * tests/test-sys_wait-c++.cc: New file.
15773         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15774         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15775
15776 2010-09-29  Bruno Haible  <bruno@clisp.org>
15777
15778         New module 'waitpid'.
15779         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15780         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15781         Don't include <process.h>.
15782         (waitpid): Declare only, using modern idiom.
15783         * m4/waitpid.m4: New file.
15784         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15785         * modules/waitpid: New file.
15786         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15787         (Makefile.am): Update.
15788         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15789
15790 2010-09-28  Bruno Haible  <bruno@clisp.org>
15791
15792         poll: Assume ANSI C.
15793         * lib/poll.c (poll): Use an ANSI C declaration.
15794
15795 2010-09-28  Bruno Haible  <bruno@clisp.org>
15796
15797         poll-h: Create poll.h on all platforms.
15798         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15799         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15800         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15801         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15802         (gl_REPLACE_POLL_H): Don't set POLL_H.
15803         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15804         * modules/poll-h (Depends-on): Add include_next.
15805         (Makefile.am): Create poll.h unconditionally. Substitute also
15806         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15807
15808 2010-09-28  Bruno Haible  <bruno@clisp.org>
15809
15810         Tests for module 'poll-h'.
15811         * modules/poll-h-c++-tests: New file.
15812         * tests/test-poll-h-c++.cc: New file.
15813
15814         Tests for module 'poll-h'.
15815         * modules/poll-h-tests: New file.
15816         * tests/test-poll-h.c: New file.
15817
15818 2010-09-28  Bruno Haible  <bruno@clisp.org>
15819
15820         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15821         * modules/poll-h (Depends-on): Add 'extensions'.
15822
15823 2010-09-28  Bruno Haible  <bruno@clisp.org>
15824
15825         New module 'poll-h'.
15826         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15827         (poll): Use modern idiom.
15828         * modules/poll-h: New file.
15829         * modules/poll (Files): Remove lib/poll.in.h.
15830         (Depends-on): Add poll-h.
15831         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15832         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15833         * m4/poll_h.m4: New file.
15834         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15835         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15836         and invoke gl_REPLACE_POLL_H.
15837         * lib/poll.c: Use common idiom.
15838         * tests/test-poll.c: Likewise.
15839         * doc/posix-headers/poll.texi: Mention the poll-h module.
15840         Suggested by Eric Blake.
15841
15842 2010-09-26  Bruno Haible  <bruno@clisp.org>
15843
15844         sys_wait: Implement WSTOPSIG.
15845         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15846         Reported by Simon Josefsson.
15847
15848 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15849
15850         stdlib, sys_wait: Avoid compilation error on mingw.
15851         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15852
15853 2010-09-26  Bruno Haible  <bruno@clisp.org>
15854
15855         stdlib tests: Avoid code duplication.
15856         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15857         * modules/sys_wait-tests (Files): Likewise.
15858         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15859         * tests/test-stdlib.c: Include test-sys_wait.h.
15860         (main): Invoke test_sys_wait_macros.
15861         * tests/test-sys_wait.c: Include test-sys_wait.h.
15862         (main): Invoke test_sys_wait_macros.
15863
15864 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15865
15866         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15867         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15868         sure Windows sockets are working before calling getaddrinfo.
15869         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15870         * doc/gnulib.texi (Windows sockets): Fix typo.
15871
15872 2010-09-25  Bruno Haible  <bruno@clisp.org>
15873
15874         Tests for module 'regex-quote'.
15875         * modules/regex-quote-tests: New file.
15876         * tests/test-regex-quote.c: New file.
15877
15878         New module 'regex-quote'.
15879         * lib/regex-quote.h: New file.
15880         * lib/regex-quote.c: New file.
15881         * modules/regex-quote: New file.
15882         Suggested by Reuben Thomas <rrt@sc3d.org>.
15883
15884 2010-09-24  Bruno Haible  <bruno@clisp.org>
15885
15886         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15887         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15888
15889 2010-09-23  Bruno Haible  <bruno@clisp.org>
15890
15891         setenv: Relax license.
15892         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15893         Blake.
15894         Requested by Eric Blake.
15895
15896 2010-09-22  Bruno Haible  <bruno@clisp.org>
15897
15898         termios: Relax license.
15899         * modules/termios (License): Change to LGPLv2+.
15900         Requested by Eric Blake.
15901
15902 2010-09-22  Bruno Haible  <bruno@clisp.org>
15903
15904         threadlib: Allow the package to change the default to 'no'.
15905         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15906         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15907         Reported by Paul Eggert.
15908
15909 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15910             Bruno Haible  <bruno@clisp.org>
15911
15912         Fix endless loop in mbmemcasecoll.
15913         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15914         byte.
15915         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15916
15917 2010-09-22  Bruno Haible  <bruno@clisp.org>
15918
15919         Tests for module 'memcoll'.
15920         * modules/memcoll-tests: New file.
15921         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15922
15923         memcoll, xmemcoll: Clarify size vs. length.
15924         * modules/memcoll.c (memcoll0): Clarify specification.
15925         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15926         passed to collate_error.
15927
15928 2010-09-22  Bruno Haible  <bruno@clisp.org>
15929
15930         Tests for module 'memcasecmp'.
15931         * modules/memcasecmp-tests: New file.
15932         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15933
15934 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         * lib/pthread.in.h: Add split double-inclusion guard, and include
15937         system <pthread.h> if there is one.  Use @@-style as in other
15938         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15939         pthread.h doesn't.
15940         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15941         (pthread_mutexattr_settype, pthread_mutex_trylock):
15942         New static inline functions, if there's no system <pthread.h>.
15943         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15944         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15945         Approximate with mutexes if the system lacks spinlocks, as in
15946         MacOS.
15947         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15948         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15949         @@-style.  Check for spinlocks separately.
15950         (gl_PTHREAD_DEFAULTS): New macro.
15951         * modules/pthread: Redo to use a more typical style for in.h files.
15952
15953 2010-09-21  Eric Blake  <eblake@redhat.com>
15954
15955         net_if: enhance tests
15956         * tests/test-net_if.c (main): Move signature checks earlier.
15957         Print failures to stderr.
15958         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15959         Document the bug that we do not yet fix.
15960
15961 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15962
15963         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15964         about gnulib, not GSS.
15965
15966 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15967
15968         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15969         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15970         for Emacs.
15971         * build-aux/pmccabe2html: Make Makefile.am example code more
15972         cut-and-paste friendly.
15973
15974 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15975
15976         * tests/test-net_if.c: New file.
15977         * modules/net_if-tests: New file.
15978
15979 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15980
15981         pthread: add pthread_spin_destroy
15982         * lib/pthread.in.h (pthread_spin_destroy): New function.
15983
15984 2010-09-19  Bruno Haible  <bruno@clisp.org>
15985
15986         gnulib-tool: Fix --help output.
15987         * gnulib-tool (func_usage): Fix help message.
15988         Reported by Reuben Thomas <rrt@sc3d.org>.
15989
15990 2010-09-18  Jim Meyering  <meyering@redhat.com>
15991
15992         maint.mk: avoid unexpanded \n in two diagnostics
15993         * top/maint.mk (sc_prohibit_always_true_header_tests):
15994         Don't use a literal \n in a halt=... assignment.  It would not be
15995         expanded, and the two \n bytes would appear in the diagnostic output
15996         rather than the desired newline.  Use halt=$$(printf ... instead.
15997         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15998
15999 2010-09-18  Bruno Haible  <bruno@clisp.org>
16000
16001         netinet_in: Doc tweak.
16002         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16003         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16004
16005 2010-09-18  Jim Meyering  <meyering@redhat.com>
16006
16007         init.sh: correct an outdated comment
16008         * tests/init.sh (create_exe_shims_):  s/function/alias/
16009
16010         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16011         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16012         a file named "*.exe" is removed between the glob expansion and the
16013         processing of that oddly named file.
16014
16015 2010-09-17  Eric Blake  <eblake@redhat.com>
16016
16017         mirbsd: add some more support
16018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16019         in BSD family.
16020         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16021         devices as OpenBSD.
16022         * m4/host-os.m4 (mirbsd): Add MirBSD.
16023
16024         tests: fix unportable assumption on sys/wait.h
16025         * tests/test-sys_wait.c (main): Relax test.
16026         * tests/test-stdlib.c (main): Likewise.
16027
16028         init.sh: accomodate directory with no .exes
16029         * tests/init.sh: Accomodate directory containing only scripts.
16030
16031         tests: avoid compiler warning
16032         * tests/test-stdlib.c (main): Use the variable.
16033
16034         fdutimens, fdutimensat: update signature, again
16035         * lib/utimens.h (gl_futimens): Delete, and move signature...
16036         (fdutimens): ...here.
16037         (fdutimensat): Rearrange signature.
16038         (lutimensat): Rename variable for clarity.
16039         * lib/fdutimensat.c (fdutimensat): Update signature.
16040         * lib/utimens.c (fdutimens): Likewise.
16041         (gl_futimens): Delete.
16042         (utimens, lutimens): Update callers.
16043         * lib/futimens.c (futimens): Likewise.
16044         * tests/test-fdutimensat.c: Likewise.
16045         * tests/test-utimens.c: Likewise.
16046         * tests/test-futimens.h: Update comment.
16047         * NEWS: Mention this.
16048         Suggested by Paul Eggert.
16049
16050 2010-09-17  Bruno Haible  <bruno@clisp.org>
16051
16052         Take over the maintenance of some older macros from Autoconf.
16053         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16054         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16055         GNU Autoconf.
16056         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16057         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16058
16059 2010-09-17  Eric Blake  <eblake@redhat.com>
16060
16061         fdutimensat: drop atflag validation
16062         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16063         with valid fd, to close a race scenario where futimens is
16064         unsupported and FILE was replaced by a symlink.
16065         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16066         accordingly.
16067         Suggested by Paul Eggert.
16068
16069 2010-09-16  Bruno Haible  <bruno@clisp.org>
16070
16071         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16072         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16073
16074 2010-09-16  Bruno Haible  <bruno@clisp.org>
16075
16076         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16077         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16078         login_tty exists.
16079         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16080
16081 2010-09-16  Bruno Haible  <bruno@clisp.org>
16082
16083         login_tty: Make the replacement code work on BSD systems.
16084         * lib/login_tty.c: Include <sys/ioctl.h>.
16085         (login_tty): Use ioctl TIOCSCTTY when available.
16086         * modules/login_tty (Depends-on): Add sys_ioctl.
16087         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16088
16089 2010-09-16  Bruno Haible  <bruno@clisp.org>
16090
16091         login_tty: Stricter unit test.
16092         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16093         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16094         and tcgetsid() after login_tty.
16095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16096
16097 2010-09-16  Bruno Haible  <bruno@clisp.org>
16098
16099         New module 'tcgetsid'.
16100         * lib/tcgetsid.c: New file.
16101         * m4/tcgetsid.m4: New file.
16102         * modules/tcgetsid: New file.
16103         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16104         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16105         GNULIB_TCGETSID, HAVE_TCGETSID.
16106         * lib/termios.in.h: Include <sys/types.h>.
16107         (tcgetsid): New declaration.
16108         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16109         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16110         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16111         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16112
16113 2010-09-16  Bruno Haible  <bruno@clisp.org>
16114
16115         Tests for module 'termios'.
16116         * modules/termios-c++-tests: New file.
16117         * modules/termios-tests: New file.
16118         * tests/test-termios-c++.cc: New file.
16119         * tests/test-termios.c: New file.
16120
16121         New module 'termios'.
16122         * modules/termios: New file.
16123         * lib/termios.in.h: New file.
16124         * m4/termios_h.m4: New file.
16125         * doc/posix-headers/termios.texi: Mention the new module.
16126
16127 2010-09-16  Eric Blake  <eblake@redhat.com>
16128
16129         fdutimensat: add an atflag parameter
16130         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16131         * lib/utimens.h (fdutimensat): Update prototype.
16132         * tests/test-fdutimensat.c: Adjust test to match.
16133         * NEWS: Document the change.
16134         Suggested by Paul Eggert.
16135
16136 2010-09-16  Bruno Haible  <bruno@clisp.org>
16137
16138         Fix typos in comments.
16139         * lib/striconveh.h: Fix typo in comment.
16140         * lib/login_tty.c (login_tty): Likewise.
16141
16142 2010-09-15  Bruno Haible  <bruno@clisp.org>
16143
16144         stdlib: clarify MirBSD WEXITSTATUS bug
16145         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16146         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16147
16148 2010-09-15  Eric Blake  <eblake@redhat.com>
16149
16150         stdlib: work around MirBSD WEXITSTATUS bug
16151         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16152         * modules/stdlib (Depends-on): Add sys_wait.
16153         * tests/test-sys_wait.c (main): Enhance test.
16154         * tests/test-stdlib.c (main): Likewise.
16155         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16156
16157         docs: mention MacOS issue with WEXITSTATUS(constant)
16158         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16159         issue.
16160         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16161
16162         strnlen: add tests
16163         * modules/strnlen-tests: New file.
16164         * tests/test-strnlen.c: Likewise.
16165
16166 2010-09-14  Bruno Haible  <bruno@clisp.org>
16167
16168         unistr/base: Avoid link errors when module 'libunistring' is also used.
16169         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16170         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16171         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16172         Declare also when HAVE_LIBUNISTRING is set.
16173         Reported by Pádraig Brady <P@draigbrady.com>.
16174
16175 2010-09-14  Eric Blake  <eblake@redhat.com>
16176
16177         test-rawmemchr: make more robust
16178         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16179         (Depends-on, configure.ac): Add needed prerequisites to use it.
16180         * modules/memchr-tests (Files, Depends-on, configure.ac):
16181         Likewise, to avoid implicit reliance on memchr module prereqs.
16182         * tests/test-memchr.c (main): Ensure proper masking.
16183         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16184         reads.
16185
16186         memchr: detect glibc Alpha bug
16187         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16188         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16189         Alpha.
16190         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16191         * tests/test-memchr.c (main): Enhance test.
16192         Reported by Nelson H. F. Beebe.
16193
16194 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16195
16196         fts, getcwd, glob: audit for dirfd returning -1
16197         * lib/fts.c (opendir): Remove #define; no longer used.
16198         (opendirat): New arg PDIR_FD.  All callers changed.
16199         (fts_build, _opendir2): Use new opendirat to avoid the need for
16200         dirfd, or for checking whether dirfd returns a negative value.
16201         Don't use opendir; always use openat followed by fdopendir.
16202         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16203         it.
16204         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16205         returns -1 here.
16206         * modules/fts (Depends-on): Remove dirfd.
16207         * modules/getcwd (Depends-on): Likewise.
16208
16209 2010-09-13  Eric Blake  <eblake@redhat.com>
16210
16211         float: fix broken MirBSD header
16212         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16213         * doc/posix-headers/float.texi (float.h): Document it.
16214
16215 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16216
16217         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16218         * lib/fts.c (opendirat): New arg extra_flags.
16219         (__opendir2): Use it to avoid following symlinks when opening
16220         a directory, if symlinks are not supposed to be followed.  See
16221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16222
16223         fdopendir: preserve argument fd before returning
16224         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16225         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16226         (fdopendir): Use them, arranging for FD to be open to the same
16227         directory that it was when it started.  (It might be temporarily
16228         closed while fdopendir is running, so this not thread- or
16229         signal-safe.)  Be careful to do the right thing even when file
16230         descriptors are scarce and dup fails with errno == EMFILE.  See
16231         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16232
16233 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16234
16235         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16236         * NEWS: Document change.
16237         * m4/regex.m4: Disable test for regoff_t size.
16238
16239 2010-09-13  Jim Meyering  <meyering@redhat.com>
16240
16241         fts: don't operate on an invalid file descriptor after failed dup
16242         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16243         negative file descriptor.
16244
16245 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16246
16247         savedir: add streamsavedir, deprecate fdsavedir
16248         * NEWS: Mention deprecation of fdsavedir.
16249         * lib/savedir.c (streamsavedir): New extern function, whose name
16250         ends in "savedir" to be consistent with the others.  This differs
16251         from savedirstream in that it doesn't close its argument.  The
16252         next version of GNU tar will use this instead of fdsavedir, to
16253         avoid some race conditions and conserve file descriptors.
16254         (savedirstream): Reimplement as a wrapper around streamsavedir.
16255         (fdsavedir): Add a comment deprecating this function.  As far as
16256         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16257         * lib/savedir.h (streamsavedir): New decl.
16258         (fdsavedir): Add a comment deprecating this.
16259
16260 2010-09-10  Bruno Haible  <bruno@clisp.org>
16261
16262         langinfo: Fix last commit.
16263         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16264         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16266
16267 2010-09-10  Bruno Haible  <bruno@clisp.org>
16268
16269         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16270         * lib/progreloc.c (O_EXEC): Define fallback.
16271
16272 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16273
16274         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16275         * NEWS: Document recent changes to fcntl-h.
16276         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16277         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16278         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16279         Similarly for O_SEARCH; this last was already true, but not documented.
16280         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16281         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16282         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16283         Likewise.
16284         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16285         is zero, not whether it is defined.
16286         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16287         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16288         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16289
16290 2010-09-10  Bruno Haible  <bruno@clisp.org>
16291
16292         langinfo, nl_langinfo: Fix for IRIX 5.3.
16293         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16294         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16295         HAVE_LANGINFO_YESEXPR.
16296         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16297         HAVE_LANGINFO_YESEXPR.
16298         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16299         HAVE_LANGINFO_T_FMT_AMPM is 0.
16300         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16301         HAVE_LANGINFO_YESEXPR is 0.
16302         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16303         NOEXPR.
16304         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16305         * doc/posix-functions/nl_langinfo.texi: Likewise.
16306         Reported by Eric Blake.
16307
16308 2010-09-10  Bruno Haible  <bruno@clisp.org>
16309
16310         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16311         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16312         on FreeBSD 8.0 and OpenBSD 4.6.
16313         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16314         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16315         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16316         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16317         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16318         ac_includes_default.
16319         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16320
16321 2010-09-09  Eric Blake  <eblake@redhat.com>
16322
16323         strsignal: work around NetBSD bug
16324         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16325         * lib/string.in.h (includes): Likewise.
16326         * doc/posix-functions/strsignal.texi (strsignal): Document the
16327         bug.
16328         Reported by Nelson H. F. Beebe.
16329
16330         gnulib-tool: work with NetBSD /bin/sh
16331         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16332         (func_get_description, func_get_comment, func_get_status)
16333         (func_get_notice, func_get_applicability, func_get_filelist)
16334         (func_get_dependencies, func_get_autoconf_early_snippet)
16335         (func_get_autoconf_snippet, func_get_automake_snippet)
16336         (func_get_include_directive, func_get_link_directive)
16337         (func_get_license, func_get_maintainer, func_import): Avoid
16338         shell syntax errors from parsing syntax extensions.
16339
16340 2010-09-09  Bruno Haible  <bruno@clisp.org>
16341
16342         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16343         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16344         a reliable way to determine whether the 'alias' command works.
16345
16346 2010-09-08  Jim Meyering  <meyering@redhat.com>
16347
16348         init.sh: penalize a set-x-impaired shell; don't disqualify it
16349         * tests/init.sh: Too many shells corrupt application stderr when
16350         you set -x, so we can't afford to disqualify them, since at least
16351         on Irix-6.5, that would disqualify all bourne shells.
16352         Instead, use a two-pass approach.
16353         On the first pass, try to find a shell that meets the stricter
16354         condition that set -x does not corrupt stderr.
16355         If no shell meets the stricter condition, retest each candidate
16356         shell, but without that extra condition.  Finally, when
16357         VERBOSE=yes is requested and set -x might cause trouble, simply
16358         issue a warning and refrain from enabling debug output.
16359
16360 2010-09-08  Eric Blake  <eblake@redhat.com>
16361
16362         unsetenv: fix OpenBSD bug
16363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16364         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16365         documentation.
16366         Reported by Jim Meyering.
16367
16368         strtod: work around IRIX 6.5 bug
16369         * lib/strtod.c (strtod): Reparse number on shorter string if
16370         exponent parse was invalid.
16371         * tests/test-strtod.c (main): Add check for "0x1p 2".
16372         Reported by Tom G. Christensen.
16373
16374         getopt: optimize previous patch
16375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16376         empty variable.  Speed up awk script.
16377         Reported by Paolo Bonzini.
16378
16379 2010-09-08  Jim Meyering  <meyering@redhat.com>
16380
16381         test.sh: disqualify shells for which set -x corrupts stderr
16382         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16383         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16384         appear in stderr output.  For example, this command:
16385             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16386         prints "P=1" on those two systems:
16387
16388 2010-09-08  Bruno Haible  <bruno@clisp.org>
16389
16390         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16391         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16392         commands, because some shells ignore redirections when there is an
16393         error in the command lookup.
16394         Reported by Eric Blake.
16395
16396 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16397
16398         * lib/regex.h: Fix a mention of `regex_compile' (should be
16399         `re_compile_pattern').
16400         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16401         (re_set_registers): Correct name of parameter in comment.
16402
16403         * doc/regex.texi: Add documentation for missing syntax flags.
16404         Remove commented-out documentation of defunct syntax option
16405         RE_NO_EMPTY_ALTS.
16406         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16407         Add documentation of re_set_registers.
16408         Document trick to re-use a pattern buffer by setting fastmap manually.
16409         Update documentation of struct re_pattern_buffer per public members.
16410         Uncomment documentation of equivalence class operators and
16411         collating symbol operators, since they are now implemented,
16412         Explain leftmost-longest matching in relation to alternatives.
16413         Tidy documentation of substring matching.
16414         Remove POSIX documentation, which is done better in
16415         glibc, and refer the reader there. Keep BSD API documentation, as
16416         that is not readily available elsewhere.
16417
16418 2010-09-07  Eric Blake  <eblake@redhat.com>
16419
16420         getopt: handle POSIXLY_CORRECT set but not exported
16421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16422         export state of POSIXLY_CORRECT, due to bash set -o posix.
16423         Reported by Dustin J. Mitchell.
16424
16425 2010-09-05  Bruno Haible  <bruno@clisp.org>
16426
16427         gnulib-tool: Highlight the changed options.
16428         * gnulib-tool (func_usage): Display the --import, --add-import,
16429         --remove-import explanations in bold font.
16430
16431 2010-09-06  Karl Berry  <karl@gnu.org>
16432
16433         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16434
16435 2010-09-05  Bruno Haible  <bruno@clisp.org>
16436
16437         uniwidth/width: Update comment.
16438         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16439         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16440
16441 2010-09-05  Bruno Haible  <bruno@clisp.org>
16442
16443         isinf, isnan: Relax license.
16444         * modules/isinf (License): Change from GPL to LGPL, with consent from
16445         Ben Pfaff.
16446         * modules/isnan (License): Likewise.
16447         Requested by Ludovic Courtès.
16448
16449 2010-09-04  Bruno Haible  <bruno@clisp.org>
16450
16451         gnulib-tool: Help migration from --import to --add-import or --update.
16452         * gnulib-tool: Emit a verbose error message when --import is used
16453         without any module name.
16454
16455 2010-09-04  Bruno Haible  <bruno@clisp.org>
16456
16457         Update doc about gnulib-tool.
16458         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16459         'gnulib-tool --update' in more detail.
16460         Reported by Eric Blake.
16461
16462 2010-09-04  Bruno Haible  <bruno@clisp.org>
16463
16464         gnulib-tool: Change --import. New options --add/remove-import.
16465         * gnulib-tool: New options --add-import, --remove-import.
16466         (func_usage): Document them.
16467         (have_associative): Define always.
16468         (func_import): In import mode, don't merge the specified settings with
16469         the cached settings. Implement remove-import mode.
16470         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16471         Explain when to use them versus --import.
16472         (Simple update): Use --add-import instead of --import.
16473         * NEWS: Mention the change.
16474
16475 2010-09-04  Bruno Haible  <bruno@clisp.org>
16476
16477         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16478         separate gnulib.mk.
16479
16480 2010-09-04  Bruno Haible  <bruno@clisp.org>
16481
16482         gnulib-tool: Don't talk about CVS any more.
16483         * gnulib-tool (func_usage, func_import): Write "version control"
16484         instead of CVS.
16485
16486 2010-09-04  Jim Meyering  <meyering@redhat.com>
16487
16488         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16489         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16490         false positives (whose names may be ill-chosen) when searching
16491         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16492         would cause a false-positive.
16493
16494         avoid coreutils "make distcheck" failure
16495         Coreutils tests with an absolute build directory name that contains
16496         a space.  Not quoting this directory name caused a failure.
16497         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16498         * tests/test-vc-list-files-cvs.sh: Likewise.
16499
16500 2010-09-04  Bruno Haible  <bruno@clisp.org>
16501
16502         gnulib-tool: Avoid error when run in a package without Makefile.am.
16503         * gnulib-tool: When collecting the m4dirs in a package that does not
16504         have a Makefile.am, eliminate those directories that contain no
16505         gnulib-cache.m4. Fix expression that counts these directories.
16506
16507 2010-09-04  Bruno Haible  <bruno@clisp.org>
16508
16509         update-copyright test: Improve output when perl is missing or too old.
16510         * tests/test-update-copyright.sh: Move test of Perl version down after
16511         the test whether Perl exists. Provide an explanation relating Perl's
16512         error message to Automake's SKIP: message.
16513
16514 2010-09-04  Bruno Haible  <bruno@clisp.org>
16515
16516         Don't augment PATH in TESTS_ENVIRONMENT.
16517         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16518         set abs_aux_dir instead of augmenting PATH.
16519         * modules/vc-list-files-tests (Makefile.am): Likewise.
16520         * tests/test-update-copyright.sh: Augment PATH here.
16521         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16522         path_prepend_.
16523         * tests/test-vc-list-files-git.sh: Likewise.
16524
16525 2010-09-04  Jim Meyering  <meyering@redhat.com>
16526
16527         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16528         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16529
16530 2010-09-04  Bruno Haible  <bruno@clisp.org>
16531
16532         strdup: Fix compilation error in C++ mode.
16533         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16534         the macro.
16535
16536 2010-09-04  Bruno Haible  <bruno@clisp.org>
16537
16538         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16539         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16540         macro into a function.
16541         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16542
16543 2010-09-04  Bruno Haible  <bruno@clisp.org>
16544
16545         Set PATH_SEPARATOR the same way autoconf does.
16546         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16547         the value of PATH_SEPARATOR the same way autoconf-generated configure
16548         scripts do.
16549         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16550         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16551
16552 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16553
16554         Set PATH_SEPARATOR the same way autoconf does.
16555         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16556         the same way autoconf-generated configure scripts do.
16557         * posix-modules: Likewise.
16558
16559 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16560
16561         hash: fix safe_hasher const typo
16562         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16563         const; otherwise, there is a type error later.
16564
16565 2010-09-02  Jim Meyering  <meyering@redhat.com>
16566
16567         test-update-copyright.sh: require perl 5.8.0
16568         * tests/test-update-copyright.sh: Require 5.8.0,
16569         which Tom G. Christensen has confirmed is adequate,
16570         while 5.6.1 is not.
16571
16572 2010-09-02  Eric Blake  <eblake@redhat.com>
16573
16574         tests: init.sh improvements for re-exec'ing with zsh
16575         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16576         -vx through shell re-exec.
16577         Reported by Tom G. Christensen.
16578
16579         wctype: fix typo in previous commit
16580         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16581         Reported by Ludovic Courtès.
16582
16583 2010-09-02  Jim Meyering  <meyering@redhat.com>
16584
16585         test-update-copyright.sh: skip test if Perl is too old
16586         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16587         Reported by Tom G. Christensen.
16588
16589 2010-09-02  Bruno Haible  <bruno@clisp.org>
16590
16591         wctype: Avoid compilation error on IRIX 6.5.30.
16592         * lib/wctype.in.h (iswblank): Declare with a replacement if
16593         REPLACE_ISWBLANK is set.
16594         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16595         declared. Set REPLACE_ISWBLANK.
16596         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16597         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16598         * doc/posix-headers/wctype.texi: Likewise.
16599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16600
16601 2010-09-01  Bruno Haible  <bruno@clisp.org>
16602
16603         New module 'socketlib'.
16604         * modules/socketlib: New file.
16605         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16606         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16607         * modules/sockets (Depends-on): Add socketlib.
16608         Suggested by Sam Steingold <sds@gnu.org>.
16609
16610 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16611
16612         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16613
16614         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16615         when one needs search access to a directory but not read access.
16616         On systems where it is available, it works in some cases where
16617         O_RDONLY does not, namely on directories that are searchable but
16618         not readable, and which need only to be searchable.  If O_SEARCH
16619         is not available, fall back to the traditional method of using
16620         O_RDONLY.
16621
16622         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16623         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16624         when opening a directory that needs only to be searchable.
16625         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16626         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16627         * lib/openat-proc.c (openat_proc_name): Likewise.
16628         * lib/openat.c (openat_needs_fchdir): Likewise.
16629         * lib/save-cwd.c (save_cwd): Likewise.
16630         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16631
16632 2010-08-28  Bruno Haible  <bruno@clisp.org>
16633
16634         New module 'host-cpu-c-abi'.
16635         * modules/host-cpu-c-abi: New file.
16636         * m4/host-cpu-c-abi.m4: New file, based on part of
16637         clisp/src/m4/general.m4.
16638         Requested by Sam Steingold <sds@gnu.org>.
16639
16640 2010-08-31  Eric Blake  <eblake@redhat.com>
16641         and Jim Meyering  <meyering@redhat.com>
16642
16643         hash: factor, and guard against misbehaving hasher function
16644         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16645         of table->hasher's return value.  Also protect against a hash value
16646         so large that adding it to table->bucket results in a NULL pointer.
16647         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16648         Use it in place of open-coded check-and-abort.
16649
16650 2010-08-30  Bruno Haible  <bruno@clisp.org>
16651
16652         hash: silence spurious clang warning
16653         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16654         Reported by Eric Blake.
16655
16656 2010-08-30  Eric Blake  <eblake@redhat.com>
16657
16658         strstr, memmem, strcasestr: avoid leaked shell message
16659         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16660         FreeBSD.
16661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16663
16664         tests: silence clang warning
16665         * tests/test-malloca.c (do_allocation): Avoid dead store.
16666
16667 2010-08-29  Bruno Haible  <bruno@clisp.org>
16668
16669         gettext: Fix recent mistake.
16670         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16671
16672 2010-08-29  Bruno Haible  <bruno@clisp.org>
16673
16674         selinux-h: Offer a --without-selinux option.
16675         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16676         --without-selinux was specified, skip all tests and define
16677         HAVE_SELINUX_SELINUX_H to 0.
16678         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16679         set LIB_SELINUX to empty.
16680         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16681         gl_LIBSELINUX. If --without-selinux was specified, replace
16682         selinux/context.h.
16683         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16684
16685 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16686             Bruno Haible  <bruno@clisp.org>
16687
16688         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16689         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16690         of HAVE_REALLOC.
16691         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16692         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16693         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16694         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16695
16696 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16697             Bruno Haible  <bruno@clisp.org>
16698
16699         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16700         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16701         HAVE_CALLOC.
16702         * lib/xmalloc.c: Update accordingly.
16703         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16704         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16705         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16706
16707 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16708             Bruno Haible  <bruno@clisp.org>
16709
16710         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16711         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16712         HAVE_MALLOC.
16713         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16714         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16715         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16716
16717 2010-08-29  Bruno Haible  <bruno@clisp.org>
16718
16719         Update modules list.
16720         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16721         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16722         (String handling <string.h>): Add astrxfrm.
16723         (File system functions): Add readlinkat.
16724
16725 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16726
16727         Tests for module 'realloc-gnu'.
16728         * modules/realloc-gnu-tests: New file.
16729         * tests/test-realloc-gnu.c: New file.
16730
16731         Tests for module 'calloc-gnu'.
16732         * modules/calloc-gnu-tests: New file.
16733         * tests/test-calloc-gnu.c: New file.
16734
16735         Tests for module 'malloc-gnu'.
16736         * modules/malloc-gnu-tests: New file.
16737         * tests/test-malloc-gnu.c: New file.
16738
16739 2010-08-28  Bruno Haible  <bruno@clisp.org>
16740
16741         Rename module 'realloc' -> 'realloc-gnu'.
16742         * modules/realloc-gnu: New file, copied from modules/realloc.
16743         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16744         obsolete.
16745         * modules/mgetgroups (Depends-on): Update.
16746         * doc/posix-functions/realloc.texi: Update.
16747         * NEWS: Mention the change.
16748
16749         Rename module 'calloc' -> 'calloc-gnu'.
16750         * modules/calloc-gnu: New file, copied from modules/calloc.
16751         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16752         obsolete.
16753         * doc/posix-functions/calloc.texi: Update.
16754         * NEWS: Mention the change.
16755
16756         Rename module 'malloc' -> 'malloc-gnu'.
16757         * modules/malloc-gnu: New file, copied from modules/malloc.
16758         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16759         obsolete.
16760         * modules/argp (Depends-on): Update.
16761         * modules/regex (Depends-on): Update.
16762         * doc/posix-functions/malloc.texi: Update.
16763         * NEWS: Mention the change.
16764
16765 2010-08-28  Eric Blake  <eblake@redhat.com>
16766
16767         pread, pwrite: add missing dependency
16768         * modules/pread (Depends-on): Add extensions.
16769         * modules/pwrite (Depends-on): Likewise.
16770
16771 2010-08-28  Bruno Haible  <bruno@clisp.org>
16772
16773         unistr/u*-strchr: Fix tests dependencies.
16774         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16775         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16776         Reported by Ian Beckwith <ianb@erislabs.net>.
16777
16778 2010-08-28  Bruno Haible  <bruno@clisp.org>
16779
16780         read-file: Don't occupy too much unused memory.
16781         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16782
16783 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16784             Eric Blake  <eblake@redhat.com>
16785             Bruno Haible  <bruno@clisp.org>
16786
16787         read-file: Avoid memory reallocations with regular files.
16788         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16789         (fread_file): With regular files, use the remaining length as the
16790         initial buffer size.  Check against overflow.
16791         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16792         sys_stat.
16793
16794 2010-08-28  Bruno Haible  <bruno@clisp.org>
16795
16796         ftello: Relax license.
16797         * modules/ftello (License): Relax to LGPLv2+.
16798         Reported by Eric Blake.
16799
16800 2010-08-28  Bruno Haible  <bruno@clisp.org>
16801
16802         Avoid relocwrapper link errors due to gnulib replacement functions.
16803         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16804         function.
16805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16806
16807 2010-08-28  Bruno Haible  <bruno@clisp.org>
16808
16809         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16810         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16811         defined.
16812         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16813         Suggested by Eric Blake.
16814
16815 2010-08-28  Bruno Haible  <bruno@clisp.org>
16816
16817         sys_socket, netdb: Ensure socklen_t gets defined.
16818         * modules/sys_socket (Depends-on): Add socklen.
16819         * modules/netdb (Depends-on): Likewise.
16820         * modules/getaddrinfo (Depends-on): Remove socklen.
16821         * modules/getsockopt (Depends-on): Likewise.
16822         * modules/setsockopt (Depends-on): Likewise.
16823         * tests/test-sys_socket.c: Check that socklen_t is defined.
16824         * tests/test-netdb.c: Likewise.
16825         * m4/socklen.m4: Update comments.
16826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16827
16828 2010-08-27  Eric Blake  <eblake@redhat.com>
16829
16830         login_tty: add missing dependency
16831         * modules/login_tty (Depends-on): Add pty.
16832
16833 2010-08-26  Eric Blake  <eblake@redhat.com>
16834
16835         lib-symbol-versions: fix m4 quoting
16836         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16837         format for AC_LINK_IFELSE.
16838
16839         glob: fix compile test
16840         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16841
16842         btowc: fix missing file
16843         * modules/btowc (Files): Also ship locale-fr.m4.
16844
16845         lseek: fix link test
16846         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16847         AC_LINK_IFELSE.
16848
16849         include_next: silence autoconf 2.68 warning
16850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16851         AC_COMPILE_IFELSE as special.
16852         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16853         autoconf < 2.68.
16854
16855         acl: fix compilation test
16856         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16857         AC_COMPILE_IFELSE.
16858
16859 2010-08-26  Bruno Haible  <bruno@clisp.org>
16860
16861         Modernize AC_TRY_RUN invocations.
16862         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16863         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16864         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16865         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16866         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16867         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16868         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16870         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16871         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16872         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16873         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16874         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16875         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16876         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16877         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16878         gl_MBRLEN_NUL_RETVAL): Likewise.
16879         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16880         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16881         Likewise.
16882         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16883         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16884         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16885         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16886         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16887         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16888         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16889         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16890         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16891         Likewise.
16892         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16893         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16895         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16898         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16899         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16900         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16902
16903 2010-08-26  Bruno Haible  <bruno@clisp.org>
16904
16905         Modernize AC_TRY_LINK invocations.
16906         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16907         AC_TRY_LINK.
16908         * m4/argp.m4 (gl_ARGP): Likewise.
16909         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16910         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16911         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16912         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16913         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16914         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16915         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16916         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16917         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16918         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16919         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16920         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16921         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16922         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16923         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16924         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16925         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16926         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16927         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16928         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16929         Likewise.
16930         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16931         Likewise.
16932         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16933         Likewise.
16934         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16936         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16937         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16938         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16939         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16940         * m4/servent.m4 (gl_SERVENT): Likewise.
16941         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16942         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16943         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16944         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16945         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16946         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16947         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16949         * modules/tsearch-tests (configure.ac): Likewise.
16950
16951 2010-08-26  Bruno Haible  <bruno@clisp.org>
16952
16953         Modernize AC_TRY_COMPILE invocations.
16954         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16955         AC_TRY_COMPILE.
16956         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16957         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16958         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16959         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16960         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16961         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16962         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16963         * m4/lock.m4 (gl_LOCK): Likewise.
16964         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16965         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16966         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16967         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16968         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16969         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16970         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16972         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16973         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16974         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16975         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16976         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16977         extraneous semicolon.
16978
16979 2010-08-26  Jim Meyering  <meyering@redhat.com>
16980
16981         stat-time: relax license LGPL
16982         * modules/stat-time (License): Change from GPL to LGPL,
16983         with consent from all contributors, for use in libguile.
16984         Requested by Ludovic Courtès.
16985
16986 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16987
16988         poll: return immediately on POLLHUP.
16989         * lib/poll.c (poll): Always set timeout before wait_timeout is
16990         computed.
16991
16992 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16993
16994         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16995         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16996         rmdir ("dir/.//"), unlinkat.
16997
16998 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16999
17000         stdbool: avoid spurious failure with modern xlc
17001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17002
17003 2010-08-24  Bruno Haible  <bruno@clisp.org>
17004
17005         getloadavg: simplify code
17006         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17007         gl_have_func. Update comments.
17008
17009 2010-08-24  Eric Blake  <eblake@redhat.com>
17010
17011         getloadavg: don't define SVR4 on cygwin
17012         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17013         only define SVR4 when -lkvm is required.
17014         Reported by Yaakov Selkowitz.
17015
17016 2010-08-24  Bruno Haible  <bruno@clisp.org>
17017
17018         priv-set: fix comment
17019         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17020
17021 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17022
17023         priv-set: fix comments
17024         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17025         to match code, as suggested by David Bartley in:
17026         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17027
17028 2010-08-23  Eric Blake  <eblake@redhat.com>
17029
17030         stdbool: avoid rejecting clang
17031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17032         * tests/test-stdbool.c: Enable more tests if using the system
17033         <stdbool.h> instead of the gnulib replacement.
17034         (main): Move xlc bug test to a runtime test for all compilers.
17035         Reported by Anders Kaseorg.
17036
17037         argz: fix shell quoting issue
17038         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17039         Reported by Charles Wilson.
17040
17041 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17042             Erik Faye-Lund <kusmabite@gmail.com>
17043
17044         poll, select: handle ERROR_BROKEN_PIPE.
17045         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17046         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17047         * lib/select.c (win32_compute_revents): Do not mark a pipe
17048         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17049
17050 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17051
17052         fts: allow compilation with C++
17053         * lib/fts_.h: Specify extern "C" linkage with C++.
17054
17055 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17056
17057         Fix gnulib-tool sed script de-commentation for AIX sed.
17058         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17059         sed.
17060
17061 2010-08-17  Eric Blake  <eblake@redhat.com>
17062
17063         test-stddef: test for (some) offsetof bugs
17064         * tests/test-stddef.c: Enhance test to ensure correct type of
17065         offsetof.
17066         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17067         that we are not fixing at this time.
17068
17069 2010-08-15  Bruno Haible  <bruno@clisp.org>
17070
17071         stpncpy: Allow stpncpy to be defined as a macro.
17072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17073         if it's already correctly declared.
17074         * lib/string.in.h (stpncpy): Undefine before redefining.
17075         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17076
17077 2010-08-14  Bruno Haible  <bruno@clisp.org>
17078
17079         Rename module 'memxfrm' to 'amemxfrm'.
17080         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17081         (amemxfrm): Renamed from memxfrm.
17082         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17083         (amemxfrm): Renamed from memxfrm.
17084         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17085         * NEWS: Mention the change.
17086         * MODULES.html.sh (String handling <string.h>): Update.
17087         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17088         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17089         * lib/unicase/u16-casexfrm.c: Likewise.
17090         * lib/unicase/u32-casexfrm.c: Likewise.
17091         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17092         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17093         * lib/uninorm/u16-normxfrm.c: Likewise.
17094         * lib/uninorm/u32-normxfrm.c: Likewise.
17095         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17096         memxfrm.
17097         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17098         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17099         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17100         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17101         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17102         Suggested by Paul Eggert.
17103
17104 2010-08-14  Bruno Haible  <bruno@clisp.org>
17105
17106         Tests for module 'astrxfrm'.
17107         * modules/astrxfrm-tests: New file.
17108         * tests/test-astrxfrm.c: New file.
17109
17110         New module 'astrxfrm'.
17111         * lib/astrxfrm.h: New file.
17112         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17113         * modules/astrxfrm: New file.
17114
17115 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17116
17117         regex: Tweak doc.
17118         * doc/regex.texi (Overview): Don't mention regex.c.
17119         (GNU Regular Expression Compiling): Likewise.
17120         (Match-end-of-line Operator): Mention 'not_eol'.
17121
17122 2010-08-14  Brian Gough  <bjg@gnu.org>
17123             Bruno Haible  <bruno@clisp.org>
17124
17125         git-merge-changelog: add doc relating to use with bzr and hg.
17126         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17127
17128 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17129
17130         pthread: fix pthread.h creation for srcdir != builddir
17131         * modules/pthread (Makefile.am): Fix the rule to work also in a
17132         non-srcdir build.
17133
17134 2010-08-13  Karl Berry  <karl@gnu.org>
17135
17136         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17137         * doc/posix-*/*: force line break before @url of POSIX
17138         specifications.
17139         Suggested by Werner Lemberg.
17140
17141 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17142
17143         strtod: fix const diagnostic
17144         * lib/strtod.c (strtod): Don't assign const char * to char *,
17145         as this elicits a warning from GCC when warnings are enabled.
17146
17147 2010-08-10  Pádraig Brady <P@draigbrady.com>
17148         and Eric Blake  <eblake@redhat.com>
17149
17150         copy-acl: ignore ENOTSUP on HP-UX
17151         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17152         so that it is available for HP-UX.
17153         * lib/copy-acl.c (qcopy_acl): Use it.
17154         Reported by Patrick M. Callahan.
17155
17156 2010-08-10  Eric Blake  <eblake@redhat.com>
17157
17158         open, chown: relax license
17159         * modules/open (License): Change to LGPLv2+, with consent by all
17160         authors, for use in augeas.
17161         * modules/chown (License): Likewise.
17162         * modules/lchown (Likewise): Likewise.
17163         Requested by Adam Stokes.
17164
17165 2010-08-09  Karl Berry  <karl@gnu.org>
17166
17167         * build-aux/ar-lib: new file, import from Automake.
17168         * config/srclist.txt: autocheck for updates.
17169
17170 2010-08-09  Eric Blake  <eblake@redhat.com>
17171
17172         readlinkat: adjust client modules
17173         * modules/areadlinkat (Depends-on): Use readlinkat, not
17174         symlinkat.
17175         * modules/areadlinkat-with-size (Depends-on): Likewise.
17176
17177         mknod: be more vocal about danger of running tests as root
17178         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17179         root, since that is just asking for problems.
17180         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17181
17182         readlinkat: split into its own module
17183         * modules/symlinkat: Split readlinkat...
17184         * modules/readlinkat: ...into separate module.
17185         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17186         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17187         * lib/symlinkat.c (readlinkat): Move...
17188         * lib/readlinkat.c: ...into new file.
17189         * modules/symlinkat-tests: Split readlinkat test...
17190         * modules/readlinkat-tests: ...into separate module.
17191         * tests/test-symlinkat.c: Split...
17192         * tests/test-readlinkat.c: ...into new file.
17193         * NEWS: Document the split.
17194         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17195         * lib/unistd.in.h (readlinkat): Likewise.
17196         Suggested by Bruno Haible.
17197
17198 2010-08-08  Bruno Haible  <bruno@clisp.org>
17199
17200         memxfrm: Speed up.
17201         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17202         that usually only one call to strxfrm is necessary for each string
17203         part.
17204         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17205
17206 2010-08-07  Karl Berry  <karl@gnu.org>
17207
17208         * doc/posix-headers/limits.texi,
17209         * doc/posix-functions/malloc.texi,
17210         * doc/posix-functions/strsignal.texi: missing @item.
17211         * doc/ld-version-script.texi: spurious leading i.
17212         * doc/regex.texi (Interval Operators): no commas inside @var.
17213
17214 2010-08-01  Bruno Haible  <bruno@clisp.org>
17215
17216         Integrate the regex documentation.
17217         * doc/gnulib.texi: Define 'cn' index.
17218         (Regular expressions): New a chapter that includes regex.texi and
17219         regexprops-generic.texi.
17220         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17221         syntax.
17222
17223         Whitespace cleanup.
17224         * doc/regex.texi: Remove trailing spaces.
17225
17226         Add regex documentation.
17227         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17228         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17229         Written by Kathy A. Hargreaves and Karl Berry.
17230
17231 2010-08-01  Bruno Haible  <bruno@clisp.org>
17232
17233         link: Update documentation.
17234         * doc/posix-functions/link.texi: Update regarding Solaris.
17235
17236 2010-07-31  Bruno Haible  <bruno@clisp.org>
17237
17238         Update modules list.
17239         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17240         (String handling <string.h>): Add memcmp2, memxfrm.
17241         (Container data structures): Add xlist, xsublist, xoset.
17242         (Core language properties): Add alignof, unused-parameter.
17243         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17244         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17245         (Unibyte characters <ctype.h>): New section.
17246         (String handling <string.h>): New section.
17247         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17248         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17249         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17250         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17251         tan, tanh, tanl, y0, y1, yn.
17252         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17253         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17254         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17255         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17256         unlockpt, vdprintf, vdprintf-posix.
17257         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17258         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17259         xconcat-filename.
17260         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17261         getdtablesize, pipe2, pipe2-safer.
17262         (Security): New section.
17263         (Networking functions): Add accept4.
17264         (Signal handling): Add sigpipe.
17265         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17266         mbmemcasecoll.
17267         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17268         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17269         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17270         pipe-filter-ii.
17271         (Misc): Add argp-version-etc, login_tty, parse-duration.
17272
17273 2010-07-31  Bruno Haible  <bruno@clisp.org>
17274
17275         Improve doc in MODULES.html.
17276         * modules/linkat (Description): Add the word "function".
17277         * modules/mkfifo (Description): Likewise.
17278         * modules/mknod (Description): Likewise.
17279         * modules/remove (Description): Likewise.
17280         * modules/renameat (Description): Likewise.
17281         * modules/stat (Description): Likewise.
17282         * modules/symlink (Description): Likewise.
17283         * modules/unlink (Description): Likewise.
17284
17285 2010-07-31  Bruno Haible  <bruno@clisp.org>
17286
17287         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17288         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17289         option --enable/disable-c++ instead of --enable/disable-cxx.
17290         * NEWS: Mention the change.
17291
17292 2010-07-31  Bruno Haible  <bruno@clisp.org>
17293
17294         readlink, areadlink: Relax test a bit.
17295         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17296         alternative to ENOTDIR.
17297         * tests/test-areadlink.h (test_areadlink): Likewise.
17298         Reported by Rainer Tammer.
17299
17300 2010-07-31  Bruno Haible  <bruno@clisp.org>
17301
17302         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17303         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17304         character, perform the search using U_STRCHR.
17305         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17306         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17307         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17308         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17309         Suggested by Paolo Bonzini.
17310
17311 2010-07-31  Bruno Haible  <bruno@clisp.org>
17312
17313         unistr/u*-strstr: Fix dependencies.
17314         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17315         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17316         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17317
17318 2010-07-31  Bruno Haible  <bruno@clisp.org>
17319
17320         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17321         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17322         the beginning of the loop.
17323         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17324         cases in 'switch' statement.
17325
17326         unistr/u8-strchr: Fix several bugs.
17327         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17328         the string. When not found, return NULL, not a pointer near the end.
17329
17330         More tests for unistr/u8-strchr.
17331         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17332         that the function does not read past the first occurrence of the byte
17333         being searched.
17334         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17335         * tests/unistr/test-u16-strchr.c (main): New function.
17336         * tests/unistr/test-u32-strchr.c (main): New function.
17337
17338 2010-07-31  Bruno Haible  <bruno@clisp.org>
17339
17340         posix-modules: Ignore backup files of documentation files.
17341         * posix-modules: grep only through files named *.texi.
17342
17343 2010-07-31  Bruno Haible  <bruno@clisp.org>
17344
17345         symlinkat: Fix documentation.
17346         * doc/posix-functions/readlinkat.texi: Fix module name.
17347
17348 2010-07-31  Bruno Haible  <bruno@clisp.org>
17349
17350         fchownat: Replace also when chown has the trailing slash bug.
17351         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17352         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17353         introduced on 2010-04-10.
17354         Reported by Rainer Tammer.
17355
17356 2010-07-31  Bruno Haible  <bruno@clisp.org>
17357
17358         linkat: Work around AIX 7.1 bug.
17359         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17360         whether linkat handles trailing slash correctly. If not, replace linkat
17361         and define LINKAT_TRAILING_SLASH_BUG.
17362         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17363         check whether (fd1,file1) points to a directory if file1 or file2 ends
17364         in a slash. Code taken from lib/link.c.
17365         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17366         Reported by Rainer Tammer.
17367
17368 2010-07-31  Bruno Haible  <bruno@clisp.org>
17369
17370         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17371         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17372         This disables an xlc optimization that was causing wrong test results.
17373         Reported by Rainer Tammer.
17374
17375 2010-07-31  Bruno Haible  <bruno@clisp.org>
17376
17377         iconv: Work around AIX 6.1..7.1 bug.
17378         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17379         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17380         cross-compiling, guess no on all versions of AIX.
17381         Reported by Rainer Tammer.
17382
17383 2010-07-31  Bruno Haible  <bruno@clisp.org>
17384
17385         readlink: Relax test a bit.
17386         * tests/test-readlink.h (test_readlink): Allow different errno value
17387         when readlink is called with a file name that ends in / and refers to
17388         a file.
17389         Suggested by Eric Blake.
17390         Reported by Rainer Tammer.
17391
17392 2010-07-31  Bruno Haible  <bruno@clisp.org>
17393
17394         copysign: Does not require -lm on glibc systems.
17395         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17396         gl_COMMON_DOUBLE_MATHFUNC.
17397         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17398
17399 2010-07-31  Bruno Haible  <bruno@clisp.org>
17400
17401         duplocale: Work around AIX 7.1 bug.
17402         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17403         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17404         * lib/duplocale.c (rpl_duplocale): Update comment.
17405         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17406         Reported by Rainer Tammer.
17407
17408 2010-07-30  Bruno Haible  <bruno@clisp.org>
17409
17410         dirfd: Avoid link error on AIX 7.1.
17411         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17412         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17413         exist, set REPLACE_DIRFD.
17414         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17415         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17416         * doc/posix-functions/dirfd.texi: Update.
17417         Reported by Rainer Tammer.
17418
17419 2010-07-30  Eric Blake  <eblake@redhat.com>
17420
17421         strtod: next round of AIX fixes
17422         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17423         exponent.
17424         * tests/test-strtod.c (main): Enhance tests.
17425         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17426         Reported by Rainer Tammer.
17427
17428         futimens: fix configure check
17429         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17430         Reported by Bruno Haible.
17431
17432 2010-07-30  Bruno Haible  <bruno@clisp.org>
17433
17434         getline: Update regarding AIX.
17435         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17436         Reported by Rainer Tammer.
17437
17438 2010-07-30  Bruno Haible  <bruno@clisp.org>
17439
17440         wcwidth: Drop replacement on AIX 7.
17441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17442         AIX 7.
17443         Reported by Rainer Tammer.
17444
17445 2010-07-30  Bruno Haible  <bruno@clisp.org>
17446
17447         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17449         a 'char *'.
17450         Reported by Rainer Tammer.
17451
17452 2010-07-30  Bruno Haible  <bruno@clisp.org>
17453
17454         unlink: Update regarding AIX.
17455         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17456         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17457         Reported by Rainer Tammer.
17458
17459 2010-07-30  Bruno Haible  <bruno@clisp.org>
17460
17461         symlink: Update regarding AIX.
17462         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17463         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17464         Reported by Rainer Tammer.
17465
17466 2010-07-30  Bruno Haible  <bruno@clisp.org>
17467
17468         strndup: Update regarding AIX.
17469         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17470         AIX 7.
17471         Reported by Rainer Tammer.
17472
17473 2010-07-30  Bruno Haible  <bruno@clisp.org>
17474
17475         stat: Update regarding AIX.
17476         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17477         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17478         Reported by Rainer Tammer.
17479
17480 2010-07-30  Bruno Haible  <bruno@clisp.org>
17481
17482         truncl: Fix autoconf test.
17483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17484         whether truncl works.
17485         Reported by Rainer Tammer.
17486
17487 2010-07-30  Bruno Haible  <bruno@clisp.org>
17488
17489         round: Update regarding AIX.
17490         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17491         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17492         Reported by Rainer Tammer.
17493
17494 2010-07-30  Bruno Haible  <bruno@clisp.org>
17495
17496         rename: Update regarding AIX.
17497         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17498         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17499         Reported by Rainer Tammer.
17500
17501 2010-07-30  Bruno Haible  <bruno@clisp.org>
17502
17503         printf.m4: Update regarding AIX.
17504         * m4/printf.m4: Update comments regarding AIX.
17505         Reported by Rainer Tammer.
17506
17507 2010-07-30  Bruno Haible  <bruno@clisp.org>
17508
17509         iconv: Update regarding AIX.
17510         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17511         AIX 7.
17512         Reported by Rainer Tammer.
17513
17514 2010-07-30  Bruno Haible  <bruno@clisp.org>
17515
17516         getopt: Update regarding AIX.
17517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17518         no on AIX.
17519         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17520         Reported by Rainer Tammer.
17521
17522 2010-07-30  Bruno Haible  <bruno@clisp.org>
17523
17524         ldexpl; Update regarding AIX.
17525         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17526         on AIX 7.
17527         Reported by Rainer Tammer.
17528
17529 2010-07-30  Bruno Haible  <bruno@clisp.org>
17530
17531         frexpl: Update regarding AIX.
17532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17533         on AIX 7.
17534         Reported by Rainer Tammer.
17535
17536 2010-07-30  Bruno Haible  <bruno@clisp.org>
17537
17538         open, fopen: Update regarding AIX.
17539         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17540         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17541         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17542         * doc/posix-functions/fopen.texi: Likewise.
17543         Reported by Rainer Tammer.
17544
17545 2010-07-30  Bruno Haible  <bruno@clisp.org>
17546
17547         chown: Update doc regarding AIX.
17548         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17549         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17550         Reported by Rainer Tammer.
17551
17552 2010-07-30  Eric Blake  <eblake@redhat.com>
17553
17554         strtod: fix bug in replacement function on AIX
17555         * lib/strtod.c (strtod): Special case broken "0x" parse in
17556         underlying strtod.
17557         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17558         * doc/posix-functions/strtod.texi (strtod): Likewise.
17559         Reported by Rainer Tammer.
17560
17561 2010-07-30  Bruno Haible  <bruno@clisp.org>
17562
17563         mbrlen: Fix cross-compilation guess for AIX.
17564         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17565         guess. Leftover from 2008-12-22.
17566
17567 2010-07-30  Bruno Haible  <bruno@clisp.org>
17568
17569         mbrtowc: Fix cross-compilation guess for AIX.
17570         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17571         guess. Leftover from 2008-12-21.
17572
17573 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17574
17575         init.sh: work around trap limitation of some shells
17576         * tests/init.sh (setup_): Move exit trap outside of shell function.
17577
17578 2010-07-29  Eric Blake  <eblake@redhat.com>
17579
17580         strtod: aid debugging
17581         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17582         understanding why strtod is rejected.
17583
17584 2010-07-28  Bruno Haible  <bruno@clisp.org>
17585
17586         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17587         * lib/unistr/u8-chr.c: Include <string.h>.
17588         * tests/unistr/test-u8-chr.c: Likewise.
17589         * tests/unistr/test-u16-chr.c: Likewise.
17590         * tests/unistr/test-u32-chr.c: Likewise.
17591         * tests/unistr/test-u8-strchr.c: Likewise.
17592         * tests/unistr/test-u16-strchr.c: Likewise.
17593         * tests/unistr/test-u32-strchr.c: Likewise.
17594         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17595         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17596         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17597         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17598
17599 2010-07-28  Bruno Haible  <bruno@clisp.org>
17600
17601         Use spaces for indentation, not tabs.
17602         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17603
17604 2010-07-27  Bruno Haible  <bruno@clisp.org>
17605
17606         mbspcasecmp: Fix function specification.
17607         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17608         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17609         Reported by Eric Blake <eblake@redhat.com>.
17610
17611 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17612
17613         timespec: use cast and not conditional, as truncation isn't possible
17614         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17615         instead of a conditional.  Comment about the situation in more detail.
17616         This undoes most of the 2009-10-29 patch.
17617
17618 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17619
17620         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17621         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17622         * lib/unistr/u8-strchr.c: Likewise.
17623         * modules/unistr/u8-chr: Depend on memchr.
17624
17625         unistr/u*-strchr: add tests
17626         * modules/unistr/u8-strchr-tests: New file.
17627         * modules/unistr/u16-strchr-tests: New file.
17628         * modules/unistr/u32-strchr-tests: New file.
17629         * tests/unistr/test-strchr.h: New file.
17630         * tests/unistr/test-u8-strchr.c: New file.
17631         * tests/unistr/test-u16-strchr.c: New file.
17632         * tests/unistr/test-u32-strchr.c: New file.
17633
17634         unistr/u*-chr: test multibyte sequences more
17635         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17636         test vector.
17637         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17638         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17639         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17640
17641         unistr/u*-chr: test multibyte sequences
17642         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17643
17644         unistr/u*-chr: prepare for multibyte tests
17645         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17646         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17647         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17648         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17649         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17650         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17651
17652 2010-07-18  Bruno Haible  <bruno@clisp.org>
17653
17654         unistr/u8-strchr: Optimize non-ASCII argument case.
17655         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17656         because the first byte often matches anyway.
17657         Reported by Pádraig Brady <P@draigbrady.com>.
17658
17659 2010-07-15  Karl Berry  <karl@gnu.org>
17660
17661         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17662
17663 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17664
17665         getcwd: on Solaris, work better if ancestors are inaccessible
17666         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17667         buffer and size, try again with a large buffer.  This works better
17668         on Solaris, since its getcwd succeeds even if the path to the root
17669         is inaccessible, and this is helpful in common cases such as .zfs
17670         hidden directories.  Problem reported by J Chapman Flack in
17671         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17672         Use system getcwd if it's declared, not merely if it's partly
17673         working; use the partly-working test only to avoid needless effort
17674         if the system getcwd fails.
17675         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17676         comment that was already obsolete and is now even more obsolete.
17677         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17678         now might call strdup.
17679
17680 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17681
17682         pthread: Add enough so that coreutils/src/sort.c compiles.
17683         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17684         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17685         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17686         Include <sys/types.h>, in case it defines pthread_t.
17687         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17688         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17689         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17690         (pthread_rwlockattr_t, pthread_spinlock_t):
17691         New typedefs, if HAVE_PTHREAD_T is not defined.
17692         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17693         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17694         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17695         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17696         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17697         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17698         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17699         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17700         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17701         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17702         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17703         New macros.
17704         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17705         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17706         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17707         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17708         (pthread_spin_unlock): New dummy functions.
17709         (pthread_create): Return EAGAIN; don't set errno.
17710         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17711         require AC_C_INLINE.
17712         * modules/pthread (Depends-on): Add sched, time.
17713         (pthread.h): Use AM_V_GEN.
17714
17715 2010-07-13  Bruno Haible  <bruno@clisp.org>
17716
17717         striconveh: Don't malloc memory if the result buffer is sufficient.
17718         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17719         buffer if its size is sufficient.
17720         Reported by Ludovic Courtès <ludo@gnu.org>.
17721
17722 2010-07-13  Bruno Haible  <bruno@clisp.org>
17723
17724         strtod: Add safety check.
17725         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17726
17727 2010-07-12  Bruno Haible  <bruno@clisp.org>
17728
17729         Unify tests that set gl_cv_func_ldexpl_no_libm.
17730         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17731         gl_FUNC_LDEXPL.
17732         (gl_FUNC_LDEXPL): Invoke it.
17733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17734
17735 2010-07-12  Bruno Haible  <bruno@clisp.org>
17736
17737         Unify tests that set gl_cv_func_ldexp_no_libm.
17738         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17739         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17740         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17741         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17742         * modules/strtod (Files): Add m4/ldexp.m4.
17743
17744 2010-07-12  Bruno Haible  <bruno@clisp.org>
17745
17746         Unify tests that set gl_cv_func_frexpl_no_libm.
17747         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17748         gl_FUNC_FREXPL_NO_LIBM.
17749         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17750         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17751
17752 2010-07-12  Bruno Haible  <bruno@clisp.org>
17753
17754         Unify tests that set gl_cv_func_frexp_no_libm.
17755         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17756         gl_FUNC_FREXP_NO_LIBM.
17757         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17758         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17759
17760 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17761
17762         memcoll: clarify sizes versus lengths, document better, and tweak perf
17763         * lib/memcoll.c (strcoll_loop, memcoll0):
17764         Improve quality of descriptive comments.  Name variables
17765         consistently as to whether they are lengths (which do not include
17766         terminating null) versus sizes (which do).
17767         * lib/xmemcoll.c (xmemcoll0): Likewise.
17768         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17769         returned when s1size == 0; this is easier to compile and saves
17770         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17771
17772 2010-07-12  Bruno Haible  <bruno@clisp.org>
17773
17774         Tests for module '_Exit'.
17775         * modules/_Exit-tests: New file.
17776         * tests/test-_Exit.sh: New file.
17777         * tests/test-_Exit.c: New file.
17778
17779         New module '_Exit'.
17780         * lib/stdlib.in.h (__attribute__): New macro.
17781         (_Exit): New declaration.
17782         * lib/_Exit.c: New file.
17783         * m4/_Exit.m4: New file.
17784         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17785         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17786         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17787         * modules/_Exit: New file.
17788         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17789         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17790
17791 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17792
17793         strtod: make it more-accurate typically, and don't require libm
17794         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17795         Include limits.h.  Don't include string.h.
17796         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17797         (locale_isspace): New function, so that no casts are needed to
17798         check whether *s is a space.
17799         (ldexp): Provide an unused dummy if not available.
17800         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17801         (strtod): Use them.  This implementation prefers to use the
17802         underlying strtod if available, falling back on our own code
17803         only to fix known bugs.  This is more likely to produce an
17804         accurate result.  Also, it avoids the use of libm functions.
17805         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17806         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17807         was absent, but it caused a test failure with coreutils.
17808         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17809         with libm.
17810         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17811         * modules/strtod-tests (Makefile.am): Likewise.
17812
17813 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17814             Bruno Haible  <bruno@clisp.org>
17815
17816         unistr/u8-strchr: Optimize ASCII argument case.
17817         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17818
17819 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17820
17821         (x)memcoll: minor tweaks
17822         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17823         is after the type that it qualifies.
17824         (memcoll0): Likewise.
17825         * lib/memcoll.h (memcoll0): Likewise.
17826         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17827         * lib/xmemcoll.h (xmemcoll0): Likewise.
17828         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17829         differs from memcoll in that the NUL byte is part of the argument.
17830         Omit the abort-checks, as performance is a real issue here.  Plus,
17831         the checks were wrong anyway (an off-by-one error).  Omit local
17832         variable 'diff', as it's a bit clearer that way.
17833         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17834         no longer needed.
17835
17836 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17837
17838         (x)memcoll: speedup when input is known to be NUL delimited
17839         * lib/memcoll.c: Include stdlib.
17840         (memcoll0): New function.
17841         (strcoll_loop): New function, refactored for use in both memcoll
17842         and memcoll0.
17843         * lib/memcoll.h (memcoll0): Add prototype.
17844         * lib/xmemcoll.c (xmemcoll0): New function.
17845         (collate_error): New function, refactored for use in both xmemcoll
17846         and xmemcoll0.
17847         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17848         * m4/memcoll.m4: add inline invocation.
17849
17850 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17851
17852         * build-aux/bootstrap: Remove any local translations
17853         from the translation project synchronization directory,
17854         so that local only translations are not distributed.
17855
17856 2010-07-04  Bruno Haible  <bruno@clisp.org>
17857
17858         fsusage: Clarify which code applies to which platforms.
17859         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17860         platform.
17861         * lib/fsusage.c (get_fs_usage): Likewise.
17862
17863 2010-07-04  Bruno Haible  <bruno@clisp.org>
17864
17865         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17866         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17867         Reported by Martin Lambers <marlam@marlam.de>.
17868
17869 2010-07-04  Jim Meyering  <meyering@redhat.com>
17870
17871         hash: once again explicitly disallow insertion of NULL
17872         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17873         inserting a NULL pointer cannot work with these functions.
17874         Add a comment with details.
17875         This reverts part of the 2010-07-01 commit, 5bef1a35
17876         "hash: extend module to deal with non-pointer keys".
17877
17878 2010-07-01  Bruno Haible  <bruno@clisp.org>
17879
17880         stdbool: Update doc.
17881         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17882         Info from Christian Weisgerber <naddy@mips.inka.de>.
17883
17884 2010-07-01  Jim Meyering  <meyering@redhat.com>
17885
17886         hash: extend module to deal with non-pointer keys
17887         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17888         but that allows insertion of non-pointer entries.
17889         Do not disallow an ENTRY value of NULL.
17890         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17891         * lib/hash.h (hash_insert0): Declare.
17892
17893 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17894
17895         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17896         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17897         not present (i.e. with autoconf 2.59 and when using gettextize, not
17898         gnulib), require AC_GNU_SOURCE instead.
17899
17900 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17901
17902         idpriv-drop: Fix tests.
17903         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17904         not to the test-idpriv-droptemp program.
17905
17906 2010-06-29  Bruno Haible  <bruno@clisp.org>
17907
17908         string: Fix syntax error with g++ 2.96.
17909         * lib/string.in.h (__pure__): Remove definition.
17910         (_GL_ATTRIBUTE_PURE): New macro.
17911         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17912         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17913         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17914
17915 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17916
17917         unitypes: Fix bug introduced on 2010-05-18.
17918         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17919
17920 2010-06-22  Eric Blake  <eblake@redhat.com>
17921
17922         memmem: slight optimization
17923         * lib/str-two-way.h (critical_factorization): Update comments.
17924         Reduce work during factorization phase.
17925         Reported by Carlos Bueno <carlos@bueno.org>.
17926
17927 2010-06-21  Bruno Haible  <bruno@clisp.org>
17928
17929         Fix HAVE_CALLOC_POSIX misnomer.
17930         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17931         !HAVE_CALLOC_POSIX.
17932         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17933         HAVE_CALLOC_POSIX.
17934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17935         instead of HAVE_CALLOC_POSIX.
17936         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17937         HAVE_CALLOC_POSIX.
17938
17939         Use modern idiom for calloc() replacement.
17940         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17941         AC_FUNC_CALLOC.
17942         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17943         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17944         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17945         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17946         (gl_REPLACE_CALLOC): New macro.
17947
17948 2010-06-21  Bruno Haible  <bruno@clisp.org>
17949
17950         Fix HAVE_REALLOC_POSIX misnomer.
17951         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17952         !HAVE_REALLOC_POSIX.
17953         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17954         HAVE_REALLOC_POSIX.
17955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17956         instead of HAVE_REALLOC_POSIX.
17957         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17958         HAVE_REALLOC_POSIX.
17959
17960         Use modern idiom for realloc() replacement.
17961         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17962         AC_FUNC_REALLOC.
17963         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17964         Autoconf's AC_FUNC_REALLOC.
17965         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17966         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17967         (gl_REPLACE_REALLOC): New macro.
17968         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17969
17970 2010-06-21  Bruno Haible  <bruno@clisp.org>
17971
17972         Fix HAVE_MALLOC_POSIX misnomer.
17973         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17974         !HAVE_MALLOC_POSIX.
17975         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17976         HAVE_MALLOC_POSIX.
17977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17978         instead of HAVE_MALLOC_POSIX.
17979         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17980         HAVE_MALLOC_POSIX.
17981
17982         Use modern idiom for malloc() replacement.
17983         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17984         AC_FUNC_MALLOC.
17985         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17986         Autoconf's AC_FUNC_MALLOC.
17987         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17988         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17989         (gl_REPLACE_MALLOC): New macro.
17990         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17991
17992 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17993
17994         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17995         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17996         This macro takes 3 arguments, not 4.
17997
17998 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17999
18000         ipv6: fix detection under mingw
18001         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18002         in6_addr.
18003
18004 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18005
18006         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18007         that strtod() works when cross-compiling to a glibc version known
18008         to work.
18009
18010 2010-06-15  Bruno Haible  <bruno@clisp.org>
18011
18012         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18013
18014 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18015
18016         select: Correct timeout.
18017         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18018
18019 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18020
18021         git-version-gen: init shell var to avoid env var influence
18022         * build-aux/git-version-gen (v): Init shell var to empty.
18023
18024 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18025
18026         priv-set: Don't assume that priv.h exists merely because getppriv does.
18027         See Jan Andersen's bug report about AIX 5L in
18028         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18029         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18030         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18031         * lib/priv-set.h: Likewise.
18032         * tests/test-priv-set.c: Likewise.
18033
18034 2010-06-13  Bruno Haible  <bruno@clisp.org>
18035
18036         relocatable: Make it easier to test whether to install wrappers.
18037         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18038         RELOCATABLE_VIA_WRAPPER.
18039
18040 2010-06-13  Bruno Haible  <bruno@clisp.org>
18041
18042         gnulib-tool: Display specified modules and dependencies differently.
18043         * gnulib-tool (func_show_module_list): New function.
18044         (func_import, func_create_testdir): Invoke it.
18045         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18046
18047 2010-06-13  Bruno Haible  <bruno@clisp.org>
18048
18049         gnulib-tool: Align code of func_import and func_create_testdir.
18050         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18051         specified_modules.
18052
18053 2010-06-12  Jim Meyering  <meyering@redhat.com>
18054
18055         test-inttostr: avoid spurious failure on Solaris 9
18056         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18057         to accept "%ju".  Reported by Bruno Haible.
18058
18059 2010-06-11  Jim Meyering  <meyering@redhat.com>
18060
18061         test-sys_socket: mark variables as used more readably
18062         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18063         as "used" explicitly via (void) statement casts.  This is more
18064         readable than using them in an artificial return expression.
18065         Suggestion from Bruno Haible.
18066
18067 2010-06-11  Bruno Haible  <bruno@clisp.org>
18068
18069         Avoid some more warnings from "gcc -Wwrite-strings".
18070         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18071         to 'const char *'.
18072         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18073         * tests/test-c-strcasestr.c (main): Likewise.
18074         * tests/test-mbscasestr1.c (main): Likewise.
18075         * tests/test-mbscasestr2.c (main): Likewise.
18076         * tests/test-memmem.c (main): Likewise.
18077         * tests/test-strstr.c (main): Likewise.
18078         * tests/test-strcasestr.c (main): Likewise.
18079
18080 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18081
18082         init.sh: change framework_failure_ to fail with status 99, not 1
18083         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18084         automake's parallel-tests rule that this is an unexpected failure,
18085         even if the test is listed in XFAIL_TESTS.
18086
18087 2010-06-11  Jim Meyering  <meyering@redhat.com>
18088
18089         test-inttostr: avoid warnings about 4-6KB literal strings
18090         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18091         Include "macros.h", for its definition of ASSERT.
18092         (CK): s/assert/ASSERT/
18093         * modules/inttostr-tests (Files): Add macros.h.
18094
18095         init.sh: don't use $ME_ or skip_ before they are defined
18096         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18097         their first uses.  Also hoist their companions: warn_, fail_,
18098         framework_failure_, $stderr_fileno.  Prompted by a patch from
18099         Stefano Lattarini.
18100
18101         test-sys_socket: avoid set-but-not-used warnings from gcc
18102         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18103         avoid warning about set-but-not-used variables.
18104
18105         test-xvasprintf: avoid 'const' discard warnings
18106         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18107         "const" when assigning from literal strings.
18108         (test_xasprintf): Add "void" in function argument list to placate
18109         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18110
18111         tests: avoid compilation warnings in argmatch and exclude tests...
18112         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18113         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18114         Since it always exits, declare with the "noreturn" attribute.
18115         * tests/test-argmatch.c: Likewise.
18116
18117         tests: avoid 'const' discard warnings in mbsstr tests
18118         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18119         * tests/test-mbsstr2.c (main): Likewise.
18120
18121         test-verify: avoid warning from gcc's -Wmissing-declarations
18122         * tests/test-verify.c (function): Declare to be static.
18123
18124         test-inttostr.c: include <string.h> for use of strcmp
18125         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18126
18127         test-linkat: avoid failed assertion on "other" architectures
18128         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18129         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18130         sparc: https://bugs.launchpad.net/bugs/591968
18131
18132 2010-06-11  Jim Meyering  <meyering@redhat.com>
18133
18134         printf.m4: avoid autoconf's "Expanded Before Required" warning
18135         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18136         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18137         autoconf warning.
18138
18139 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18140
18141         Replacement header templates are now named with ".in", not "_".
18142         * doc/gnulib-intro.texi: Correct.
18143
18144 2010-06-10  Jim Meyering  <meyering@redhat.com>
18145
18146         inttostr-tests: depend on snprintf, not snprintf-posix
18147         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18148         snprintf-posix, to avoid this aclocal failure:
18149           missing file gnulib-tests/vasnprintf.c
18150           configure.ac:45: error: expected source file, required through \
18151           AC_LIBSOURCES, not found
18152
18153 2010-06-10  Jim Meyering  <meyering@redhat.com>
18154
18155         inttostr: add a new function, inttostr, and tests
18156         The namesake function was not available.  The existence of the
18157         template file, inttostr.c makes its addition nontrivial.
18158         * lib/anytostr.c: Rename from inttostr.c.
18159         (anytostr): Rename from inttostr.
18160         * lib/inttostr.c: New file.
18161         * modules/inttostr (Files): Add anytostr.c.
18162         (Makefile.am): Set lib_SOURCES instead of ...
18163         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18164         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18165         * lib/offtostr.c: Likewise.
18166         * lib/uinttostr.c: Likewise.
18167         * lib/umaxtostr.c: Likewise.
18168         * modules/inttostr-tests: New file.
18169         * tests/test-inttostr.c: New file.  Test these functions.
18170
18171 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18172             Bruno Haible  <bruno@clisp.org>
18173
18174         Add "Extending Gnulib" chapter to manual.
18175         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18176         chapter.
18177         (Extending Gnulib): New chapter.
18178         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18179         chapter.
18180
18181 2010-06-09  Bruno Haible  <bruno@clisp.org>
18182
18183         Avoid relocwrapper link errors due to gnulib replacement functions.
18184         * lib/areadlink.c: Use the system's malloc, realloc functions.
18185         (areadlink): Set errno to ENOMEM explicitly.
18186         * modules/areadlink (Depends-on): Remove malloc-posix.
18187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18188
18189 2010-06-09  Bruno Haible  <bruno@clisp.org>
18190
18191         Avoid relocwrapper link errors due to gnulib replacement functions.
18192         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18193         * lib/malloca.c: Likewise.
18194         * lib/relocatable.c: Likewise.
18195         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18196         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18197         * lib/setenv.c: Use the system's malloc, realloc functions.
18198         * lib/strerror.c: Use the system's sprintf function.
18199         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18200
18201 2010-06-04  Bruno Haible  <bruno@clisp.org>
18202
18203         Prefer documented low-level autoconf macro names.
18204         * m4/lib-link.m4: Use m4_translit instead of translit.
18205         * m4/environ.m4: Likewise.
18206         * m4/mathfunc.m4: Likewise.
18207         * m4/onceonly.m4: Likewise.
18208         * m4/stdint.m4: Likewise.
18209         Suggested by Eric Blake.
18210
18211 2010-06-04  Martin Lambers  <marlam@marlam.de>
18212             Bruno Haible  <bruno@clisp.org>
18213
18214         havelib: Allow library names with '+' characters.
18215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18216         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18217
18218 2010-06-09  Bruno Haible  <bruno@clisp.org>
18219
18220         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18221         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18222         realloc failed.
18223
18224 2010-06-08  Peter Simons  <simons@cryp.to>
18225
18226         maint.mk: make the news-check rule more configurable
18227         * top/maint.mk (news-check-lines-spec): New variable.
18228         (news-check): Use "sed -n 1,10p" in place of "head".
18229
18230 2010-06-07  Jim Meyering  <meyering@redhat.com>
18231
18232         do-release-commit-and-tag: fix typo in --help
18233         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18234
18235         regex: avoid new dead-code warning with gcc-4.6.0
18236         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18237         if-block containing a while-loop.  It's been unused for at least
18238         5 years.
18239
18240 2010-06-05  Bruno Haible  <bruno@clisp.org>
18241
18242         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18243         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18244
18245 2010-06-04  Bruno Haible  <bruno@clisp.org>
18246
18247         Update to GNU gettext 0.18.1.
18248         * modules/gettext (configure.ac): Require gettext infrastructure from
18249         version 0.18.1.
18250
18251 2010-06-03  Bruno Haible  <bruno@clisp.org>
18252
18253         Don't use AC_LIBOBJ with file names in subdirectories.
18254         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18255         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18256         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18257         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18258         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18259         gl_LIBUNISTRING_LIBSOURCE.
18260         (Makefile.am): Augment lib_SOURCES here, conditionally.
18261         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18262
18263 2010-06-03  Bruno Haible  <bruno@clisp.org>
18264
18265         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18266         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18267         expansion does not end with a newline.
18268         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18269         unnecessary newline.
18270
18271 2010-06-03  Bruno Haible  <bruno@clisp.org>
18272
18273         Reduce dependencies.
18274         * tests/test-quotearg.h: New file, extracted from
18275         tests/test-quotearg.c.
18276         * tests/test-quotearg-simple.c: New file, extracted from
18277         tests/test-quotearg.c.
18278         * tests/test-quotearg.c: Don't include <ctype.h>.
18279         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18280         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18281         use_quote_double_quotes, use_quotearg_colon): Moved to
18282         tests/test-quotearg.h.
18283         (results_g, flag_results, custom_quotes, custom_results): Moved
18284         to tests/test-quotearg-simple.c.
18285         (main): Moved the part that does not depend on gettext to
18286         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18287         performed.
18288         * modules/quotearg-simple: New file.
18289         * modules/quotearg-simple-tests: New file.
18290         * modules/quotearg (Depends-on): Add quotearg-simple.
18291         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18292         (Files): Add tests/test-quotearg.h.
18293         Reported by Paolo Bonzini.
18294
18295 2010-06-03  Bruno Haible  <bruno@clisp.org>
18296
18297         Reduce dependencies.
18298         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18299
18300 2010-06-03  Bruno Haible  <bruno@clisp.org>
18301
18302         time: Undefine more broken macros.
18303         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18304         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18305         Reported by Eric Blake.
18306
18307 2010-06-03  Bruno Haible  <bruno@clisp.org>
18308
18309         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18310         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18311         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18312         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18313         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18314         Reported by Ludovic Courtès <ludo@gnu.org>.
18315
18316 2010-06-02  Eric Blake  <eblake@redhat.com>
18317
18318         time: work with mingw + pthreads-win32 library
18319         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18320         if timespec is defined only in pthread.h.
18321         * modules/time (Makefile.am): Substitute it.
18322         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18323         <pthread.h>, when needed.
18324         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18325         from the library.
18326
18327 2010-05-31  Bruno Haible  <bruno@clisp.org>
18328
18329         Avoid expanding two macros in the wrong order.
18330         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18331         gl_LIBUNISTRING if it is defined.
18332         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18333         autoconf >= 2.64.
18334         Reported by Ludovic Courtès <ludo@gnu.org>.
18335
18336 2010-05-27  Jim Meyering  <meyering@redhat.com>
18337
18338         maint.mk: also prohibit "#undef" of always-defined symbols
18339         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18340         Allow more than one space before the symbol name.
18341         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18342         the regexp uses alternation.
18343
18344 2010-05-26  Eric Blake  <eblake@redhat.com>
18345
18346         maint.mk: avoid echo -e
18347         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18348         Convert all uses of echo -* to printf.
18349         Reported by Matthias Bolte.
18350
18351 2010-05-25  Bruno Haible  <bruno@clisp.org>
18352
18353         Update to GNU gettext 0.18, part 2.
18354         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18355         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18356
18357 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18358
18359         Add missing include in test-pwrite.c.
18360         * tests/test-pwrite.c: Include string.h, for strcmp.
18361
18362 2010-05-24  Bruno Haible  <bruno@clisp.org>
18363
18364         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18365
18366 2010-05-24  Bruno Haible  <bruno@clisp.org>
18367
18368         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18369         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18370         iconveh_error argument.
18371         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18372         U_STRCONV_TO_LOCALE.
18373         * lib/unistr/u16-strcoll.c: Likewise.
18374         * lib/unistr/u32-strcoll.c: Likewise.
18375         * modules/unistr/u8-strcoll (Depends-on): Add
18376         uniconv/u8-strconv-to-enc, localcharset. Remove
18377         uniconv/u8-strconv-to-locale.
18378         (configure.ac): Bump version number.
18379         * modules/unistr/u16-strcoll (Depends-on): Add
18380         uniconv/u16-strconv-to-enc, localcharset. Remove
18381         uniconv/u16-strconv-to-locale.
18382         (configure.ac): Bump version number.
18383         * modules/unistr/u32-strcoll (Depends-on): Add
18384         uniconv/u32-strconv-to-enc, localcharset. Remove
18385         uniconv/u32-strconv-to-locale.
18386         (configure.ac): Bump version number.
18387
18388 2010-05-24  Bruno Haible  <bruno@clisp.org>
18389
18390         Avoid a test failure on NetBSD 5.0.
18391         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18392         an iconv() bug.
18393
18394 2010-05-24  Bruno Haible  <bruno@clisp.org>
18395
18396         Adjust #include directive style.
18397         * modules/regex (Includes): Recommend to write <regex.h>.
18398
18399 2010-05-24  Bruno Haible  <bruno@clisp.org>
18400
18401         regex: Don't require alloca.
18402         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18403         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18404         only inside if (0).
18405
18406 2010-05-23  Jim Meyering  <meyering@redhat.com>
18407
18408         test-renameat.c: include <sys/stat.h>
18409         * tests/test-renameat.c: Include <sys/stat.h>; required for
18410         definition of S_IS* macros.
18411
18412 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18413
18414         Update maintainer documentation for 'relocatable-prog' module.
18415         * doc/relocatable-maint.texi: Update.
18416         Comments by Bruno Haible.
18417
18418 2010-05-23  Bruno Haible  <bruno@clisp.org>
18419
18420         git-merge-changelog: Enable --split-merged-entry by default.
18421         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18422         (usage): Don't mention this option any more.
18423         Reported by Ralf Wildenhues.
18424
18425 2010-05-23  Jim Meyering  <meyering@redhat.com>
18426
18427         test-pwrite: do not leave behind a test file named "out"
18428         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18429         The trivial-looking use of init.sh is really necessary.
18430         It ensures that the temporary file, "out", is created in
18431         a temporary directory, and removed upon termination.
18432         * tests/test-pwrite.sh: Re-add file.
18433         * modules/pwrite-tests: Reference it.
18434
18435 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18436
18437         Fix output redirection buglet in init.sh.
18438         * tests/init.sh: Fix redirection of stderr.
18439
18440 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18441
18442         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18443
18444 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18445
18446         * modules/valgrind-tests: New file.
18447         * m4/valgrind-tests.m4: New file.
18448         * doc/valgrind-tests.texi: New file.
18449         * doc/gnulib.texi (Running self-tests under valgrind): New
18450         section.
18451
18452 2010-05-19  Bruno Haible  <bruno@clisp.org>
18453
18454         Clean up dead code in recent commit.
18455         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18456         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18457         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18458         Suggested by Paolo Bonzini.
18459
18460 2010-05-19  Bruno Haible  <bruno@clisp.org>
18461
18462         Avoid valgrind error reports from libunistring.
18463         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18464         * modules/libunistring (Files): Add it.
18465         * modules/libunistring-optional (Files): Likewise.
18466
18467 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18468             Bruno Haible  <bruno@clisp.org>
18469
18470         New module 'libunistring-optional'.
18471         * modules/libunistring-optional: New file.
18472         * m4/libunistring-base.m4: New file.
18473         * m4/libunistring-optional.m4: New file.
18474         * lib/unicase.in.h: Renamed from lib/unicase.h.
18475         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18476         * lib/unictype.in.h: Renamed from lib/unictype.h.
18477         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18478         * lib/uniname.in.h: Renamed from lib/uniname.h.
18479         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18480         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18481         * lib/unistr.in.h: Renamed from lib/unistr.h.
18482         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18483         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18484         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18485         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18486         gl_LIBUNISTRING. If the library was found, determine the installed
18487         version and set LIBUNISTRING_VERSION.
18488         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18489         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18490         handle a configuration option --with-included-libunistring.
18491         * modules/libunistring (Files): Add m4/absolute-header.m4.
18492         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18493         Add m4/libunistring-base.m4.
18494         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18495         (Makefile.am): Build unicase.h from unicase.in.h.
18496         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18497         Add m4/libunistring-base.m4.
18498         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18499         (Makefile.am): Build uniconv.h from uniconv.in.h.
18500         * modules/unictype/base (Files): Use unictype.in.h instead of
18501         unictype.h. Add m4/libunistring-base.m4.
18502         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18503         (Makefile.am): Build unictype.h from unictype.in.h.
18504         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18505         Add m4/libunistring-base.m4.
18506         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18507         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18508         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18509         Add m4/libunistring-base.m4.
18510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18511         (Makefile.am): Build uniname.h from uniname.in.h.
18512         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18513         Add m4/libunistring-base.m4.
18514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18515         (Makefile.am): Build uninorm.h from uninorm.in.h.
18516         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18517         unistdio.h. Add m4/libunistring-base.m4.
18518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18519         (Makefile.am): Build unistdio.h from unistdio.in.h.
18520         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18521         Add m4/libunistring-base.m4.
18522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18523         (Makefile.am): Build unistr.h from unistr.in.h.
18524         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18525         Add m4/libunistring-base.m4.
18526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18527         (Makefile.am): Build unitypes.h from unitypes.in.h.
18528         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18529         Add m4/libunistring-base.m4.
18530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18531         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18532         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18533         uniwidth.h. Add m4/libunistring-base.m4.
18534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18535         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18536         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18537         instead of augmenting lib_SOURCES.
18538         * modules/unicase/empty-suffix-context: Likewise.
18539         * modules/unicase/locale-language: Likewise.
18540         * modules/unicase/tolower: Likewise.
18541         * modules/unicase/totitle: Likewise.
18542         * modules/unicase/toupper: Likewise.
18543         * modules/unicase/u8-casecmp: Likewise.
18544         * modules/unicase/u8-casecoll: Likewise.
18545         * modules/unicase/u8-casefold: Likewise.
18546         * modules/unicase/u8-casexfrm: Likewise.
18547         * modules/unicase/u8-ct-casefold: Likewise.
18548         * modules/unicase/u8-ct-tolower: Likewise.
18549         * modules/unicase/u8-ct-totitle: Likewise.
18550         * modules/unicase/u8-ct-toupper: Likewise.
18551         * modules/unicase/u8-is-cased: Likewise.
18552         * modules/unicase/u8-is-casefolded: Likewise.
18553         * modules/unicase/u8-is-lowercase: Likewise.
18554         * modules/unicase/u8-is-titlecase: Likewise.
18555         * modules/unicase/u8-is-uppercase: Likewise.
18556         * modules/unicase/u8-prefix-context: Likewise.
18557         * modules/unicase/u8-suffix-context: Likewise.
18558         * modules/unicase/u8-tolower: Likewise.
18559         * modules/unicase/u8-totitle: Likewise.
18560         * modules/unicase/u8-toupper: Likewise.
18561         * modules/unicase/u16-casecmp: Likewise.
18562         * modules/unicase/u16-casecoll: Likewise.
18563         * modules/unicase/u16-casefold: Likewise.
18564         * modules/unicase/u16-casexfrm: Likewise.
18565         * modules/unicase/u16-ct-casefold: Likewise.
18566         * modules/unicase/u16-ct-tolower: Likewise.
18567         * modules/unicase/u16-ct-totitle: Likewise.
18568         * modules/unicase/u16-ct-toupper: Likewise.
18569         * modules/unicase/u16-is-cased: Likewise.
18570         * modules/unicase/u16-is-casefolded: Likewise.
18571         * modules/unicase/u16-is-lowercase: Likewise.
18572         * modules/unicase/u16-is-titlecase: Likewise.
18573         * modules/unicase/u16-is-uppercase: Likewise.
18574         * modules/unicase/u16-prefix-context: Likewise.
18575         * modules/unicase/u16-suffix-context: Likewise.
18576         * modules/unicase/u16-tolower: Likewise.
18577         * modules/unicase/u16-totitle: Likewise.
18578         * modules/unicase/u16-toupper: Likewise.
18579         * modules/unicase/u32-casecmp: Likewise.
18580         * modules/unicase/u32-casecoll: Likewise.
18581         * modules/unicase/u32-casefold: Likewise.
18582         * modules/unicase/u32-casexfrm: Likewise.
18583         * modules/unicase/u32-ct-casefold: Likewise.
18584         * modules/unicase/u32-ct-tolower: Likewise.
18585         * modules/unicase/u32-ct-totitle: Likewise.
18586         * modules/unicase/u32-ct-toupper: Likewise.
18587         * modules/unicase/u32-is-cased: Likewise.
18588         * modules/unicase/u32-is-casefolded: Likewise.
18589         * modules/unicase/u32-is-lowercase: Likewise.
18590         * modules/unicase/u32-is-titlecase: Likewise.
18591         * modules/unicase/u32-is-uppercase: Likewise.
18592         * modules/unicase/u32-prefix-context: Likewise.
18593         * modules/unicase/u32-suffix-context: Likewise.
18594         * modules/unicase/u32-tolower: Likewise.
18595         * modules/unicase/u32-totitle: Likewise.
18596         * modules/unicase/u32-toupper: Likewise.
18597         * modules/unicase/ulc-casecmp: Likewise.
18598         * modules/unicase/ulc-casecoll: Likewise.
18599         * modules/unicase/ulc-casexfrm: Likewise.
18600         * modules/uniconv/u8-conv-from-enc: Likewise.
18601         * modules/uniconv/u8-conv-to-enc: Likewise.
18602         * modules/uniconv/u8-strconv-from-enc: Likewise.
18603         * modules/uniconv/u8-strconv-from-locale: Likewise.
18604         * modules/uniconv/u8-strconv-to-enc: Likewise.
18605         * modules/uniconv/u8-strconv-to-locale: Likewise.
18606         * modules/uniconv/u16-conv-from-enc: Likewise.
18607         * modules/uniconv/u16-conv-to-enc: Likewise.
18608         * modules/uniconv/u16-strconv-from-enc: Likewise.
18609         * modules/uniconv/u16-strconv-from-locale: Likewise.
18610         * modules/uniconv/u16-strconv-to-enc: Likewise.
18611         * modules/uniconv/u16-strconv-to-locale: Likewise.
18612         * modules/uniconv/u32-conv-from-enc: Likewise.
18613         * modules/uniconv/u32-conv-to-enc: Likewise.
18614         * modules/uniconv/u32-strconv-from-enc: Likewise.
18615         * modules/uniconv/u32-strconv-from-locale: Likewise.
18616         * modules/uniconv/u32-strconv-to-enc: Likewise.
18617         * modules/uniconv/u32-strconv-to-locale: Likewise.
18618         * modules/unictype/bidicategory-byname: Likewise.
18619         * modules/unictype/bidicategory-name: Likewise.
18620         * modules/unictype/bidicategory-of: Likewise.
18621         * modules/unictype/bidicategory-test: Likewise.
18622         * modules/unictype/block-list: Likewise.
18623         * modules/unictype/block-test: Likewise.
18624         * modules/unictype/category-C: Likewise.
18625         * modules/unictype/category-Cc: Likewise.
18626         * modules/unictype/category-Cf: Likewise.
18627         * modules/unictype/category-Cn: Likewise.
18628         * modules/unictype/category-Co: Likewise.
18629         * modules/unictype/category-Cs: Likewise.
18630         * modules/unictype/category-L: Likewise.
18631         * modules/unictype/category-Ll: Likewise.
18632         * modules/unictype/category-Lm: Likewise.
18633         * modules/unictype/category-Lo: Likewise.
18634         * modules/unictype/category-Lt: Likewise.
18635         * modules/unictype/category-Lu: Likewise.
18636         * modules/unictype/category-M: Likewise.
18637         * modules/unictype/category-Mc: Likewise.
18638         * modules/unictype/category-Me: Likewise.
18639         * modules/unictype/category-Mn: Likewise.
18640         * modules/unictype/category-N: Likewise.
18641         * modules/unictype/category-Nd: Likewise.
18642         * modules/unictype/category-Nl: Likewise.
18643         * modules/unictype/category-No: Likewise.
18644         * modules/unictype/category-P: Likewise.
18645         * modules/unictype/category-Pc: Likewise.
18646         * modules/unictype/category-Pd: Likewise.
18647         * modules/unictype/category-Pe: Likewise.
18648         * modules/unictype/category-Pf: Likewise.
18649         * modules/unictype/category-Pi: Likewise.
18650         * modules/unictype/category-Po: Likewise.
18651         * modules/unictype/category-Ps: Likewise.
18652         * modules/unictype/category-S: Likewise.
18653         * modules/unictype/category-Sc: Likewise.
18654         * modules/unictype/category-Sk: Likewise.
18655         * modules/unictype/category-Sm: Likewise.
18656         * modules/unictype/category-So: Likewise.
18657         * modules/unictype/category-Z: Likewise.
18658         * modules/unictype/category-Zl: Likewise.
18659         * modules/unictype/category-Zp: Likewise.
18660         * modules/unictype/category-Zs: Likewise.
18661         * modules/unictype/category-and: Likewise.
18662         * modules/unictype/category-and-not: Likewise.
18663         * modules/unictype/category-byname: Likewise.
18664         * modules/unictype/category-name: Likewise.
18665         * modules/unictype/category-none: Likewise.
18666         * modules/unictype/category-of: Likewise.
18667         * modules/unictype/category-or: Likewise.
18668         * modules/unictype/category-test: Likewise.
18669         * modules/unictype/combining-class: Likewise.
18670         * modules/unictype/ctype-alnum: Likewise.
18671         * modules/unictype/ctype-alpha: Likewise.
18672         * modules/unictype/ctype-blank: Likewise.
18673         * modules/unictype/ctype-cntrl: Likewise.
18674         * modules/unictype/ctype-digit: Likewise.
18675         * modules/unictype/ctype-graph: Likewise.
18676         * modules/unictype/ctype-lower: Likewise.
18677         * modules/unictype/ctype-print: Likewise.
18678         * modules/unictype/ctype-punct: Likewise.
18679         * modules/unictype/ctype-space: Likewise.
18680         * modules/unictype/ctype-upper: Likewise.
18681         * modules/unictype/ctype-xdigit: Likewise.
18682         * modules/unictype/decimal-digit: Likewise.
18683         * modules/unictype/digit: Likewise.
18684         * modules/unictype/mirror: Likewise.
18685         * modules/unictype/numeric: Likewise.
18686         * modules/unictype/property-alphabetic: Likewise.
18687         * modules/unictype/property-ascii-hex-digit: Likewise.
18688         * modules/unictype/property-bidi-arabic-digit: Likewise.
18689         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18690         * modules/unictype/property-bidi-block-separator: Likewise.
18691         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18692         * modules/unictype/property-bidi-common-separator: Likewise.
18693         * modules/unictype/property-bidi-control: Likewise.
18694         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18695         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18696         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18697         * modules/unictype/property-bidi-european-digit: Likewise.
18698         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18699         * modules/unictype/property-bidi-left-to-right: Likewise.
18700         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18701         * modules/unictype/property-bidi-other-neutral: Likewise.
18702         * modules/unictype/property-bidi-pdf: Likewise.
18703         * modules/unictype/property-bidi-segment-separator: Likewise.
18704         * modules/unictype/property-bidi-whitespace: Likewise.
18705         * modules/unictype/property-byname: Likewise.
18706         * modules/unictype/property-combining: Likewise.
18707         * modules/unictype/property-composite: Likewise.
18708         * modules/unictype/property-currency-symbol: Likewise.
18709         * modules/unictype/property-dash: Likewise.
18710         * modules/unictype/property-decimal-digit: Likewise.
18711         * modules/unictype/property-default-ignorable-code-point: Likewise.
18712         * modules/unictype/property-deprecated: Likewise.
18713         * modules/unictype/property-diacritic: Likewise.
18714         * modules/unictype/property-extender: Likewise.
18715         * modules/unictype/property-format-control: Likewise.
18716         * modules/unictype/property-grapheme-base: Likewise.
18717         * modules/unictype/property-grapheme-extend: Likewise.
18718         * modules/unictype/property-grapheme-link: Likewise.
18719         * modules/unictype/property-hex-digit: Likewise.
18720         * modules/unictype/property-hyphen: Likewise.
18721         * modules/unictype/property-id-continue: Likewise.
18722         * modules/unictype/property-id-start: Likewise.
18723         * modules/unictype/property-ideographic: Likewise.
18724         * modules/unictype/property-ids-binary-operator: Likewise.
18725         * modules/unictype/property-ids-trinary-operator: Likewise.
18726         * modules/unictype/property-ignorable-control: Likewise.
18727         * modules/unictype/property-iso-control: Likewise.
18728         * modules/unictype/property-join-control: Likewise.
18729         * modules/unictype/property-left-of-pair: Likewise.
18730         * modules/unictype/property-line-separator: Likewise.
18731         * modules/unictype/property-logical-order-exception: Likewise.
18732         * modules/unictype/property-lowercase: Likewise.
18733         * modules/unictype/property-math: Likewise.
18734         * modules/unictype/property-non-break: Likewise.
18735         * modules/unictype/property-not-a-character: Likewise.
18736         * modules/unictype/property-numeric: Likewise.
18737         * modules/unictype/property-other-alphabetic: Likewise.
18738         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18739         * modules/unictype/property-other-grapheme-extend: Likewise.
18740         * modules/unictype/property-other-id-continue: Likewise.
18741         * modules/unictype/property-other-id-start: Likewise.
18742         * modules/unictype/property-other-lowercase: Likewise.
18743         * modules/unictype/property-other-math: Likewise.
18744         * modules/unictype/property-other-uppercase: Likewise.
18745         * modules/unictype/property-paired-punctuation: Likewise.
18746         * modules/unictype/property-paragraph-separator: Likewise.
18747         * modules/unictype/property-pattern-syntax: Likewise.
18748         * modules/unictype/property-pattern-white-space: Likewise.
18749         * modules/unictype/property-private-use: Likewise.
18750         * modules/unictype/property-punctuation: Likewise.
18751         * modules/unictype/property-quotation-mark: Likewise.
18752         * modules/unictype/property-radical: Likewise.
18753         * modules/unictype/property-sentence-terminal: Likewise.
18754         * modules/unictype/property-soft-dotted: Likewise.
18755         * modules/unictype/property-space: Likewise.
18756         * modules/unictype/property-terminal-punctuation: Likewise.
18757         * modules/unictype/property-test: Likewise.
18758         * modules/unictype/property-titlecase: Likewise.
18759         * modules/unictype/property-unassigned-code-value: Likewise.
18760         * modules/unictype/property-unified-ideograph: Likewise.
18761         * modules/unictype/property-uppercase: Likewise.
18762         * modules/unictype/property-variation-selector: Likewise.
18763         * modules/unictype/property-white-space: Likewise.
18764         * modules/unictype/property-xid-continue: Likewise.
18765         * modules/unictype/property-xid-start: Likewise.
18766         * modules/unictype/property-zero-width: Likewise.
18767         * modules/unictype/scripts: Likewise.
18768         * modules/unictype/syntax-c-ident: Likewise.
18769         * modules/unictype/syntax-c-whitespace: Likewise.
18770         * modules/unictype/syntax-java-ident: Likewise.
18771         * modules/unictype/syntax-java-whitespace: Likewise.
18772         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18773         * modules/unilbrk/u8-width-linebreaks: Likewise.
18774         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18775         * modules/unilbrk/u16-width-linebreaks: Likewise.
18776         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18777         * modules/unilbrk/u32-width-linebreaks: Likewise.
18778         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18779         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18780         * modules/uniname/uniname: Likewise.
18781         * modules/uninorm/canonical-decomposition: Likewise.
18782         * modules/uninorm/composition: Likewise.
18783         * modules/uninorm/decomposing-form: Likewise.
18784         * modules/uninorm/decomposition: Likewise.
18785         * modules/uninorm/filter: Likewise.
18786         * modules/uninorm/nfc: Likewise.
18787         * modules/uninorm/nfd: Likewise.
18788         * modules/uninorm/nfkc: Likewise.
18789         * modules/uninorm/nfkd: Likewise.
18790         * modules/uninorm/u8-normalize: Likewise.
18791         * modules/uninorm/u8-normcmp: Likewise.
18792         * modules/uninorm/u8-normcoll: Likewise.
18793         * modules/uninorm/u8-normxfrm: Likewise.
18794         * modules/uninorm/u16-normalize: Likewise.
18795         * modules/uninorm/u16-normcmp: Likewise.
18796         * modules/uninorm/u16-normcoll: Likewise.
18797         * modules/uninorm/u16-normxfrm: Likewise.
18798         * modules/uninorm/u32-normalize: Likewise.
18799         * modules/uninorm/u32-normcmp: Likewise.
18800         * modules/uninorm/u32-normcoll: Likewise.
18801         * modules/uninorm/u32-normxfrm: Likewise.
18802         * modules/unistdio/u8-asnprintf: Likewise.
18803         * modules/unistdio/u8-asprintf: Likewise.
18804         * modules/unistdio/u8-snprintf: Likewise.
18805         * modules/unistdio/u8-sprintf: Likewise.
18806         * modules/unistdio/u8-u8-asnprintf: Likewise.
18807         * modules/unistdio/u8-u8-asprintf: Likewise.
18808         * modules/unistdio/u8-u8-snprintf: Likewise.
18809         * modules/unistdio/u8-u8-sprintf: Likewise.
18810         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18811         * modules/unistdio/u8-u8-vasprintf: Likewise.
18812         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18813         * modules/unistdio/u8-u8-vsprintf: Likewise.
18814         * modules/unistdio/u8-vasnprintf: Likewise.
18815         * modules/unistdio/u8-vasprintf: Likewise.
18816         * modules/unistdio/u8-vsnprintf: Likewise.
18817         * modules/unistdio/u8-vsprintf: Likewise.
18818         * modules/unistdio/u16-asnprintf: Likewise.
18819         * modules/unistdio/u16-asprintf: Likewise.
18820         * modules/unistdio/u16-snprintf: Likewise.
18821         * modules/unistdio/u16-sprintf: Likewise.
18822         * modules/unistdio/u16-u16-asnprintf: Likewise.
18823         * modules/unistdio/u16-u16-asprintf: Likewise.
18824         * modules/unistdio/u16-u16-snprintf: Likewise.
18825         * modules/unistdio/u16-u16-sprintf: Likewise.
18826         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18827         * modules/unistdio/u16-u16-vasprintf: Likewise.
18828         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18829         * modules/unistdio/u16-u16-vsprintf: Likewise.
18830         * modules/unistdio/u16-vasnprintf: Likewise.
18831         * modules/unistdio/u16-vasprintf: Likewise.
18832         * modules/unistdio/u16-vsnprintf: Likewise.
18833         * modules/unistdio/u16-vsprintf: Likewise.
18834         * modules/unistdio/u32-asnprintf: Likewise.
18835         * modules/unistdio/u32-asprintf: Likewise.
18836         * modules/unistdio/u32-snprintf: Likewise.
18837         * modules/unistdio/u32-sprintf: Likewise.
18838         * modules/unistdio/u32-u32-asnprintf: Likewise.
18839         * modules/unistdio/u32-u32-asprintf: Likewise.
18840         * modules/unistdio/u32-u32-snprintf: Likewise.
18841         * modules/unistdio/u32-u32-sprintf: Likewise.
18842         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18843         * modules/unistdio/u32-u32-vasprintf: Likewise.
18844         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18845         * modules/unistdio/u32-u32-vsprintf: Likewise.
18846         * modules/unistdio/u32-vasnprintf: Likewise.
18847         * modules/unistdio/u32-vasprintf: Likewise.
18848         * modules/unistdio/u32-vsnprintf: Likewise.
18849         * modules/unistdio/u32-vsprintf: Likewise.
18850         * modules/unistdio/ulc-asnprintf: Likewise.
18851         * modules/unistdio/ulc-asprintf: Likewise.
18852         * modules/unistdio/ulc-fprintf: Likewise.
18853         * modules/unistdio/ulc-snprintf: Likewise.
18854         * modules/unistdio/ulc-sprintf: Likewise.
18855         * modules/unistdio/ulc-vasnprintf: Likewise.
18856         * modules/unistdio/ulc-vasprintf: Likewise.
18857         * modules/unistdio/ulc-vfprintf: Likewise.
18858         * modules/unistdio/ulc-vsnprintf: Likewise.
18859         * modules/unistdio/ulc-vsprintf: Likewise.
18860         * modules/unistr/u8-check: Likewise.
18861         * modules/unistr/u8-chr: Likewise.
18862         * modules/unistr/u8-cmp: Likewise.
18863         * modules/unistr/u8-cmp2: Likewise.
18864         * modules/unistr/u8-cpy: Likewise.
18865         * modules/unistr/u8-cpy-alloc: Likewise.
18866         * modules/unistr/u8-endswith: Likewise.
18867         * modules/unistr/u8-mblen: Likewise.
18868         * modules/unistr/u8-mbsnlen: Likewise.
18869         * modules/unistr/u8-mbtouc: Likewise.
18870         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18871         * modules/unistr/u8-mbtoucr: Likewise.
18872         * modules/unistr/u8-move: Likewise.
18873         * modules/unistr/u8-next: Likewise.
18874         * modules/unistr/u8-prev: Likewise.
18875         * modules/unistr/u8-set: Likewise.
18876         * modules/unistr/u8-startswith: Likewise.
18877         * modules/unistr/u8-stpcpy: Likewise.
18878         * modules/unistr/u8-stpncpy: Likewise.
18879         * modules/unistr/u8-strcat: Likewise.
18880         * modules/unistr/u8-strchr: Likewise.
18881         * modules/unistr/u8-strcmp: Likewise.
18882         * modules/unistr/u8-strcoll: Likewise.
18883         * modules/unistr/u8-strcpy: Likewise.
18884         * modules/unistr/u8-strcspn: Likewise.
18885         * modules/unistr/u8-strdup: Likewise.
18886         * modules/unistr/u8-strlen: Likewise.
18887         * modules/unistr/u8-strmblen: Likewise.
18888         * modules/unistr/u8-strmbtouc: Likewise.
18889         * modules/unistr/u8-strncat: Likewise.
18890         * modules/unistr/u8-strncmp: Likewise.
18891         * modules/unistr/u8-strncpy: Likewise.
18892         * modules/unistr/u8-strnlen: Likewise.
18893         * modules/unistr/u8-strpbrk: Likewise.
18894         * modules/unistr/u8-strrchr: Likewise.
18895         * modules/unistr/u8-strspn: Likewise.
18896         * modules/unistr/u8-strstr: Likewise.
18897         * modules/unistr/u8-strtok: Likewise.
18898         * modules/unistr/u8-to-u16: Likewise.
18899         * modules/unistr/u8-to-u32: Likewise.
18900         * modules/unistr/u8-uctomb: Likewise.
18901         * modules/unistr/u16-check: Likewise.
18902         * modules/unistr/u16-chr: Likewise.
18903         * modules/unistr/u16-cmp: Likewise.
18904         * modules/unistr/u16-cmp2: Likewise.
18905         * modules/unistr/u16-cpy: Likewise.
18906         * modules/unistr/u16-cpy-alloc: Likewise.
18907         * modules/unistr/u16-endswith: Likewise.
18908         * modules/unistr/u16-mblen: Likewise.
18909         * modules/unistr/u16-mbsnlen: Likewise.
18910         * modules/unistr/u16-mbtouc: Likewise.
18911         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18912         * modules/unistr/u16-mbtoucr: Likewise.
18913         * modules/unistr/u16-move: Likewise.
18914         * modules/unistr/u16-next: Likewise.
18915         * modules/unistr/u16-prev: Likewise.
18916         * modules/unistr/u16-set: Likewise.
18917         * modules/unistr/u16-startswith: Likewise.
18918         * modules/unistr/u16-stpcpy: Likewise.
18919         * modules/unistr/u16-stpncpy: Likewise.
18920         * modules/unistr/u16-strcat: Likewise.
18921         * modules/unistr/u16-strchr: Likewise.
18922         * modules/unistr/u16-strcmp: Likewise.
18923         * modules/unistr/u16-strcoll: Likewise.
18924         * modules/unistr/u16-strcpy: Likewise.
18925         * modules/unistr/u16-strcspn: Likewise.
18926         * modules/unistr/u16-strdup: Likewise.
18927         * modules/unistr/u16-strlen: Likewise.
18928         * modules/unistr/u16-strmblen: Likewise.
18929         * modules/unistr/u16-strmbtouc: Likewise.
18930         * modules/unistr/u16-strncat: Likewise.
18931         * modules/unistr/u16-strncmp: Likewise.
18932         * modules/unistr/u16-strncpy: Likewise.
18933         * modules/unistr/u16-strnlen: Likewise.
18934         * modules/unistr/u16-strpbrk: Likewise.
18935         * modules/unistr/u16-strrchr: Likewise.
18936         * modules/unistr/u16-strspn: Likewise.
18937         * modules/unistr/u16-strstr: Likewise.
18938         * modules/unistr/u16-strtok: Likewise.
18939         * modules/unistr/u16-to-u32: Likewise.
18940         * modules/unistr/u16-to-u8: Likewise.
18941         * modules/unistr/u16-uctomb: Likewise.
18942         * modules/unistr/u32-check: Likewise.
18943         * modules/unistr/u32-chr: Likewise.
18944         * modules/unistr/u32-cmp: Likewise.
18945         * modules/unistr/u32-cmp2: Likewise.
18946         * modules/unistr/u32-cpy: Likewise.
18947         * modules/unistr/u32-cpy-alloc: Likewise.
18948         * modules/unistr/u32-endswith: Likewise.
18949         * modules/unistr/u32-mblen: Likewise.
18950         * modules/unistr/u32-mbsnlen: Likewise.
18951         * modules/unistr/u32-mbtouc: Likewise.
18952         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18953         * modules/unistr/u32-mbtoucr: Likewise.
18954         * modules/unistr/u32-move: Likewise.
18955         * modules/unistr/u32-next: Likewise.
18956         * modules/unistr/u32-prev: Likewise.
18957         * modules/unistr/u32-set: Likewise.
18958         * modules/unistr/u32-startswith: Likewise.
18959         * modules/unistr/u32-stpcpy: Likewise.
18960         * modules/unistr/u32-stpncpy: Likewise.
18961         * modules/unistr/u32-strcat: Likewise.
18962         * modules/unistr/u32-strchr: Likewise.
18963         * modules/unistr/u32-strcmp: Likewise.
18964         * modules/unistr/u32-strcoll: Likewise.
18965         * modules/unistr/u32-strcpy: Likewise.
18966         * modules/unistr/u32-strcspn: Likewise.
18967         * modules/unistr/u32-strdup: Likewise.
18968         * modules/unistr/u32-strlen: Likewise.
18969         * modules/unistr/u32-strmblen: Likewise.
18970         * modules/unistr/u32-strmbtouc: Likewise.
18971         * modules/unistr/u32-strncat: Likewise.
18972         * modules/unistr/u32-strncmp: Likewise.
18973         * modules/unistr/u32-strncpy: Likewise.
18974         * modules/unistr/u32-strnlen: Likewise.
18975         * modules/unistr/u32-strpbrk: Likewise.
18976         * modules/unistr/u32-strrchr: Likewise.
18977         * modules/unistr/u32-strspn: Likewise.
18978         * modules/unistr/u32-strstr: Likewise.
18979         * modules/unistr/u32-strtok: Likewise.
18980         * modules/unistr/u32-to-u16: Likewise.
18981         * modules/unistr/u32-to-u8: Likewise.
18982         * modules/unistr/u32-uctomb: Likewise.
18983         * modules/uniwbrk/u8-wordbreaks: Likewise.
18984         * modules/uniwbrk/u16-wordbreaks: Likewise.
18985         * modules/uniwbrk/u32-wordbreaks: Likewise.
18986         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18987         * modules/uniwbrk/wordbreak-property: Likewise.
18988         * modules/uniwidth/u8-strwidth: Likewise.
18989         * modules/uniwidth/u8-width: Likewise.
18990         * modules/uniwidth/u16-strwidth: Likewise.
18991         * modules/uniwidth/u16-width: Likewise.
18992         * modules/uniwidth/u32-strwidth: Likewise.
18993         * modules/uniwidth/u32-width: Likewise.
18994         * modules/uniwidth/width: Likewise.
18995         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18996         with $(LIBUNISTRING).
18997         * modules/unicase/ignorable-tests: Likewise.
18998         * modules/unicase/locale-language-tests: Likewise.
18999         * modules/unicase/tolower-tests: Likewise.
19000         * modules/unicase/totitle-tests: Likewise.
19001         * modules/unicase/toupper-tests: Likewise.
19002         * modules/unicase/u8-casecmp-tests: Likewise.
19003         * modules/unicase/u8-casecoll-tests: Likewise.
19004         * modules/unicase/u8-casefold-tests: Likewise.
19005         * modules/unicase/u8-is-cased-tests: Likewise.
19006         * modules/unicase/u8-is-casefolded-tests: Likewise.
19007         * modules/unicase/u8-is-lowercase-tests: Likewise.
19008         * modules/unicase/u8-is-titlecase-tests: Likewise.
19009         * modules/unicase/u8-is-uppercase-tests: Likewise.
19010         * modules/unicase/u8-tolower-tests: Likewise.
19011         * modules/unicase/u8-totitle-tests: Likewise.
19012         * modules/unicase/u8-toupper-tests: Likewise.
19013         * modules/unicase/u16-casecmp-tests: Likewise.
19014         * modules/unicase/u16-casecoll-tests: Likewise.
19015         * modules/unicase/u16-casefold-tests: Likewise.
19016         * modules/unicase/u16-is-cased-tests: Likewise.
19017         * modules/unicase/u16-is-casefolded-tests: Likewise.
19018         * modules/unicase/u16-is-lowercase-tests: Likewise.
19019         * modules/unicase/u16-is-titlecase-tests: Likewise.
19020         * modules/unicase/u16-is-uppercase-tests: Likewise.
19021         * modules/unicase/u16-tolower-tests: Likewise.
19022         * modules/unicase/u16-totitle-tests: Likewise.
19023         * modules/unicase/u16-toupper-tests: Likewise.
19024         * modules/unicase/u32-casecmp-tests: Likewise.
19025         * modules/unicase/u32-casecoll-tests: Likewise.
19026         * modules/unicase/u32-casefold-tests: Likewise.
19027         * modules/unicase/u32-is-cased-tests: Likewise.
19028         * modules/unicase/u32-is-casefolded-tests: Likewise.
19029         * modules/unicase/u32-is-lowercase-tests: Likewise.
19030         * modules/unicase/u32-is-titlecase-tests: Likewise.
19031         * modules/unicase/u32-is-uppercase-tests: Likewise.
19032         * modules/unicase/u32-tolower-tests: Likewise.
19033         * modules/unicase/u32-totitle-tests: Likewise.
19034         * modules/unicase/u32-toupper-tests: Likewise.
19035         * modules/unicase/ulc-casecmp-tests: Likewise.
19036         * modules/unicase/ulc-casecoll-tests: Likewise.
19037         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19038         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19039         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19040         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19041         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19042         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19043         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19044         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19045         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19046         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19047         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19048         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19049         * modules/unictype/bidicategory-byname-tests: Likewise.
19050         * modules/unictype/bidicategory-name-tests: Likewise.
19051         * modules/unictype/bidicategory-of-tests: Likewise.
19052         * modules/unictype/bidicategory-test-tests: Likewise.
19053         * modules/unictype/block-list-tests: Likewise.
19054         * modules/unictype/block-of-tests: Likewise.
19055         * modules/unictype/block-test-tests: Likewise.
19056         * modules/unictype/category-C-tests: Likewise.
19057         * modules/unictype/category-Cc-tests: Likewise.
19058         * modules/unictype/category-Cf-tests: Likewise.
19059         * modules/unictype/category-Cn-tests: Likewise.
19060         * modules/unictype/category-Co-tests: Likewise.
19061         * modules/unictype/category-Cs-tests: Likewise.
19062         * modules/unictype/category-L-tests: Likewise.
19063         * modules/unictype/category-Ll-tests: Likewise.
19064         * modules/unictype/category-Lm-tests: Likewise.
19065         * modules/unictype/category-Lo-tests: Likewise.
19066         * modules/unictype/category-Lt-tests: Likewise.
19067         * modules/unictype/category-Lu-tests: Likewise.
19068         * modules/unictype/category-M-tests: Likewise.
19069         * modules/unictype/category-Mc-tests: Likewise.
19070         * modules/unictype/category-Me-tests: Likewise.
19071         * modules/unictype/category-Mn-tests: Likewise.
19072         * modules/unictype/category-N-tests: Likewise.
19073         * modules/unictype/category-Nd-tests: Likewise.
19074         * modules/unictype/category-Nl-tests: Likewise.
19075         * modules/unictype/category-No-tests: Likewise.
19076         * modules/unictype/category-P-tests: Likewise.
19077         * modules/unictype/category-Pc-tests: Likewise.
19078         * modules/unictype/category-Pd-tests: Likewise.
19079         * modules/unictype/category-Pe-tests: Likewise.
19080         * modules/unictype/category-Pf-tests: Likewise.
19081         * modules/unictype/category-Pi-tests: Likewise.
19082         * modules/unictype/category-Po-tests: Likewise.
19083         * modules/unictype/category-Ps-tests: Likewise.
19084         * modules/unictype/category-S-tests: Likewise.
19085         * modules/unictype/category-Sc-tests: Likewise.
19086         * modules/unictype/category-Sk-tests: Likewise.
19087         * modules/unictype/category-Sm-tests: Likewise.
19088         * modules/unictype/category-So-tests: Likewise.
19089         * modules/unictype/category-Z-tests: Likewise.
19090         * modules/unictype/category-Zl-tests: Likewise.
19091         * modules/unictype/category-Zp-tests: Likewise.
19092         * modules/unictype/category-Zs-tests: Likewise.
19093         * modules/unictype/category-and-not-tests: Likewise.
19094         * modules/unictype/category-and-tests: Likewise.
19095         * modules/unictype/category-byname-tests: Likewise.
19096         * modules/unictype/category-name-tests: Likewise.
19097         * modules/unictype/category-none-tests: Likewise.
19098         * modules/unictype/category-of-tests: Likewise.
19099         * modules/unictype/category-or-tests: Likewise.
19100         * modules/unictype/category-test-withtable-tests: Likewise.
19101         * modules/unictype/combining-class-tests: Likewise.
19102         * modules/unictype/ctype-alnum-tests: Likewise.
19103         * modules/unictype/ctype-alpha-tests: Likewise.
19104         * modules/unictype/ctype-blank-tests: Likewise.
19105         * modules/unictype/ctype-cntrl-tests: Likewise.
19106         * modules/unictype/ctype-digit-tests: Likewise.
19107         * modules/unictype/ctype-graph-tests: Likewise.
19108         * modules/unictype/ctype-lower-tests: Likewise.
19109         * modules/unictype/ctype-print-tests: Likewise.
19110         * modules/unictype/ctype-punct-tests: Likewise.
19111         * modules/unictype/ctype-space-tests: Likewise.
19112         * modules/unictype/ctype-upper-tests: Likewise.
19113         * modules/unictype/ctype-xdigit-tests: Likewise.
19114         * modules/unictype/decimal-digit-tests: Likewise.
19115         * modules/unictype/digit-tests: Likewise.
19116         * modules/unictype/mirror-tests: Likewise.
19117         * modules/unictype/numeric-tests: Likewise.
19118         * modules/unictype/property-alphabetic-tests: Likewise.
19119         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19120         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19121         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19122         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19123         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19124         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19125         * modules/unictype/property-bidi-control-tests: Likewise.
19126         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19127         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19128         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19129         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19130         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19131         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19132         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19133         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19134         * modules/unictype/property-bidi-pdf-tests: Likewise.
19135         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19136         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19137         * modules/unictype/property-byname-tests: Likewise.
19138         * modules/unictype/property-combining-tests: Likewise.
19139         * modules/unictype/property-composite-tests: Likewise.
19140         * modules/unictype/property-currency-symbol-tests: Likewise.
19141         * modules/unictype/property-dash-tests: Likewise.
19142         * modules/unictype/property-decimal-digit-tests: Likewise.
19143         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19144         * modules/unictype/property-deprecated-tests: Likewise.
19145         * modules/unictype/property-diacritic-tests: Likewise.
19146         * modules/unictype/property-extender-tests: Likewise.
19147         * modules/unictype/property-format-control-tests: Likewise.
19148         * modules/unictype/property-grapheme-base-tests: Likewise.
19149         * modules/unictype/property-grapheme-extend-tests: Likewise.
19150         * modules/unictype/property-grapheme-link-tests: Likewise.
19151         * modules/unictype/property-hex-digit-tests: Likewise.
19152         * modules/unictype/property-hyphen-tests: Likewise.
19153         * modules/unictype/property-id-continue-tests: Likewise.
19154         * modules/unictype/property-id-start-tests: Likewise.
19155         * modules/unictype/property-ideographic-tests: Likewise.
19156         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19157         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19158         * modules/unictype/property-ignorable-control-tests: Likewise.
19159         * modules/unictype/property-iso-control-tests: Likewise.
19160         * modules/unictype/property-join-control-tests: Likewise.
19161         * modules/unictype/property-left-of-pair-tests: Likewise.
19162         * modules/unictype/property-line-separator-tests: Likewise.
19163         * modules/unictype/property-logical-order-exception-tests: Likewise.
19164         * modules/unictype/property-lowercase-tests: Likewise.
19165         * modules/unictype/property-math-tests: Likewise.
19166         * modules/unictype/property-non-break-tests: Likewise.
19167         * modules/unictype/property-not-a-character-tests: Likewise.
19168         * modules/unictype/property-numeric-tests: Likewise.
19169         * modules/unictype/property-other-alphabetic-tests: Likewise.
19170         * modules/unictype/property-other-default-ignorable-code-point-tests:
19171         Likewise.
19172         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19173         * modules/unictype/property-other-id-continue-tests: Likewise.
19174         * modules/unictype/property-other-id-start-tests: Likewise.
19175         * modules/unictype/property-other-lowercase-tests: Likewise.
19176         * modules/unictype/property-other-math-tests: Likewise.
19177         * modules/unictype/property-other-uppercase-tests: Likewise.
19178         * modules/unictype/property-paired-punctuation-tests: Likewise.
19179         * modules/unictype/property-paragraph-separator-tests: Likewise.
19180         * modules/unictype/property-pattern-syntax-tests: Likewise.
19181         * modules/unictype/property-pattern-white-space-tests: Likewise.
19182         * modules/unictype/property-private-use-tests: Likewise.
19183         * modules/unictype/property-punctuation-tests: Likewise.
19184         * modules/unictype/property-quotation-mark-tests: Likewise.
19185         * modules/unictype/property-radical-tests: Likewise.
19186         * modules/unictype/property-sentence-terminal-tests: Likewise.
19187         * modules/unictype/property-soft-dotted-tests: Likewise.
19188         * modules/unictype/property-space-tests: Likewise.
19189         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19190         * modules/unictype/property-test-tests: Likewise.
19191         * modules/unictype/property-titlecase-tests: Likewise.
19192         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19193         * modules/unictype/property-unified-ideograph-tests: Likewise.
19194         * modules/unictype/property-uppercase-tests: Likewise.
19195         * modules/unictype/property-variation-selector-tests: Likewise.
19196         * modules/unictype/property-white-space-tests: Likewise.
19197         * modules/unictype/property-xid-continue-tests: Likewise.
19198         * modules/unictype/property-xid-start-tests: Likewise.
19199         * modules/unictype/property-zero-width-tests: Likewise.
19200         * modules/unictype/scripts-tests: Likewise.
19201         * modules/unictype/syntax-c-ident-tests: Likewise.
19202         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19203         * modules/unictype/syntax-java-ident-tests: Likewise.
19204         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19205         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19206         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19207         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19208         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19209         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19210         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19211         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19212         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19213         * modules/uniname/uniname-tests: Likewise.
19214         * modules/uninorm/canonical-decomposition-tests: Likewise.
19215         * modules/uninorm/compat-decomposition-tests: Likewise.
19216         * modules/uninorm/composition-tests: Likewise.
19217         * modules/uninorm/decomposing-form-tests: Likewise.
19218         * modules/uninorm/decomposition-tests: Likewise.
19219         * modules/uninorm/filter-tests: Likewise.
19220         * modules/uninorm/nfc-tests: Likewise.
19221         * modules/uninorm/nfd-tests: Likewise.
19222         * modules/uninorm/nfkc-tests: Likewise.
19223         * modules/uninorm/nfkd-tests: Likewise.
19224         * modules/uninorm/u8-normcmp-tests: Likewise.
19225         * modules/uninorm/u8-normcoll-tests: Likewise.
19226         * modules/uninorm/u16-normcmp-tests: Likewise.
19227         * modules/uninorm/u16-normcoll-tests: Likewise.
19228         * modules/uninorm/u32-normcmp-tests: Likewise.
19229         * modules/uninorm/u32-normcoll-tests: Likewise.
19230         * modules/unistdio/u8-asnprintf-tests: Likewise.
19231         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19232         * modules/unistdio/u8-vasprintf-tests: Likewise.
19233         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19234         * modules/unistdio/u8-vsprintf-tests: Likewise.
19235         * modules/unistdio/u16-asnprintf-tests: Likewise.
19236         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19237         * modules/unistdio/u16-vasprintf-tests: Likewise.
19238         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19239         * modules/unistdio/u16-vsprintf-tests: Likewise.
19240         * modules/unistdio/u32-asnprintf-tests: Likewise.
19241         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19242         * modules/unistdio/u32-vasprintf-tests: Likewise.
19243         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19244         * modules/unistdio/u32-vsprintf-tests: Likewise.
19245         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19246         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19247         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19248         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19249         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19250         * modules/unistr/u8-check-tests: Likewise.
19251         * modules/unistr/u8-chr-tests: Likewise.
19252         * modules/unistr/u8-cmp-tests: Likewise.
19253         * modules/unistr/u8-cmp2-tests: Likewise.
19254         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19255         * modules/unistr/u8-cpy-tests: Likewise.
19256         * modules/unistr/u8-mblen-tests: Likewise.
19257         * modules/unistr/u8-mbsnlen-tests: Likewise.
19258         * modules/unistr/u8-mbtouc-tests: Likewise.
19259         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19260         * modules/unistr/u8-mbtoucr-tests: Likewise.
19261         * modules/unistr/u8-move-tests: Likewise.
19262         * modules/unistr/u8-next-tests: Likewise.
19263         * modules/unistr/u8-prev-tests: Likewise.
19264         * modules/unistr/u8-set-tests: Likewise.
19265         * modules/unistr/u8-stpcpy-tests: Likewise.
19266         * modules/unistr/u8-stpncpy-tests: Likewise.
19267         * modules/unistr/u8-strcat-tests: Likewise.
19268         * modules/unistr/u8-strcmp-tests: Likewise.
19269         * modules/unistr/u8-strcoll-tests: Likewise.
19270         * modules/unistr/u8-strcpy-tests: Likewise.
19271         * modules/unistr/u8-strdup-tests: Likewise.
19272         * modules/unistr/u8-strlen-tests: Likewise.
19273         * modules/unistr/u8-strmblen-tests: Likewise.
19274         * modules/unistr/u8-strmbtouc-tests: Likewise.
19275         * modules/unistr/u8-strncat-tests: Likewise.
19276         * modules/unistr/u8-strncmp-tests: Likewise.
19277         * modules/unistr/u8-strncpy-tests: Likewise.
19278         * modules/unistr/u8-strnlen-tests: Likewise.
19279         * modules/unistr/u8-to-u16-tests: Likewise.
19280         * modules/unistr/u8-to-u32-tests: Likewise.
19281         * modules/unistr/u8-uctomb-tests: Likewise.
19282         * modules/unistr/u16-check-tests: Likewise.
19283         * modules/unistr/u16-chr-tests: Likewise.
19284         * modules/unistr/u16-cmp-tests: Likewise.
19285         * modules/unistr/u16-cmp2-tests: Likewise.
19286         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19287         * modules/unistr/u16-cpy-tests: Likewise.
19288         * modules/unistr/u16-mblen-tests: Likewise.
19289         * modules/unistr/u16-mbsnlen-tests: Likewise.
19290         * modules/unistr/u16-mbtouc-tests: Likewise.
19291         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19292         * modules/unistr/u16-mbtoucr-tests: Likewise.
19293         * modules/unistr/u16-move-tests: Likewise.
19294         * modules/unistr/u16-next-tests: Likewise.
19295         * modules/unistr/u16-prev-tests: Likewise.
19296         * modules/unistr/u16-set-tests: Likewise.
19297         * modules/unistr/u16-stpcpy-tests: Likewise.
19298         * modules/unistr/u16-stpncpy-tests: Likewise.
19299         * modules/unistr/u16-strcat-tests: Likewise.
19300         * modules/unistr/u16-strcmp-tests: Likewise.
19301         * modules/unistr/u16-strcoll-tests: Likewise.
19302         * modules/unistr/u16-strcpy-tests: Likewise.
19303         * modules/unistr/u16-strdup-tests: Likewise.
19304         * modules/unistr/u16-strlen-tests: Likewise.
19305         * modules/unistr/u16-strmblen-tests: Likewise.
19306         * modules/unistr/u16-strmbtouc-tests: Likewise.
19307         * modules/unistr/u16-strncat-tests: Likewise.
19308         * modules/unistr/u16-strncmp-tests: Likewise.
19309         * modules/unistr/u16-strncpy-tests: Likewise.
19310         * modules/unistr/u16-strnlen-tests: Likewise.
19311         * modules/unistr/u16-to-u32-tests: Likewise.
19312         * modules/unistr/u16-to-u8-tests: Likewise.
19313         * modules/unistr/u16-uctomb-tests: Likewise.
19314         * modules/unistr/u32-check-tests: Likewise.
19315         * modules/unistr/u32-chr-tests: Likewise.
19316         * modules/unistr/u32-cmp-tests: Likewise.
19317         * modules/unistr/u32-cmp2-tests: Likewise.
19318         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19319         * modules/unistr/u32-cpy-tests: Likewise.
19320         * modules/unistr/u32-mblen-tests: Likewise.
19321         * modules/unistr/u32-mbsnlen-tests: Likewise.
19322         * modules/unistr/u32-mbtouc-tests: Likewise.
19323         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19324         * modules/unistr/u32-mbtoucr-tests: Likewise.
19325         * modules/unistr/u32-move-tests: Likewise.
19326         * modules/unistr/u32-next-tests: Likewise.
19327         * modules/unistr/u32-prev-tests: Likewise.
19328         * modules/unistr/u32-set-tests: Likewise.
19329         * modules/unistr/u32-stpcpy-tests: Likewise.
19330         * modules/unistr/u32-stpncpy-tests: Likewise.
19331         * modules/unistr/u32-strcat-tests: Likewise.
19332         * modules/unistr/u32-strcmp-tests: Likewise.
19333         * modules/unistr/u32-strcoll-tests: Likewise.
19334         * modules/unistr/u32-strcpy-tests: Likewise.
19335         * modules/unistr/u32-strdup-tests: Likewise.
19336         * modules/unistr/u32-strlen-tests: Likewise.
19337         * modules/unistr/u32-strmblen-tests: Likewise.
19338         * modules/unistr/u32-strmbtouc-tests: Likewise.
19339         * modules/unistr/u32-strncat-tests: Likewise.
19340         * modules/unistr/u32-strncmp-tests: Likewise.
19341         * modules/unistr/u32-strncpy-tests: Likewise.
19342         * modules/unistr/u32-strnlen-tests: Likewise.
19343         * modules/unistr/u32-to-u16-tests: Likewise.
19344         * modules/unistr/u32-to-u8-tests: Likewise.
19345         * modules/unistr/u32-uctomb-tests: Likewise.
19346         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19347         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19348         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19349         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19350         * modules/uniwidth/u8-strwidth-tests: Likewise.
19351         * modules/uniwidth/u8-width-tests: Likewise.
19352         * modules/uniwidth/u16-strwidth-tests: Likewise.
19353         * modules/uniwidth/u16-width-tests: Likewise.
19354         * modules/uniwidth/u32-strwidth-tests: Likewise.
19355         * modules/uniwidth/u32-width-tests: Likewise.
19356         * modules/uniwidth/width-tests: Likewise.
19357
19358 2010-05-18  Richard Jones  <rjones@redhat.com>
19359
19360         doc: users.txt: list hivex
19361         * users.txt: Add hivex.
19362
19363 2010-05-18  Richard Jones  <rjones@redhat.com>
19364
19365         doc: users.txt: list febootstrap
19366         * users.txt: Add febootstrap.
19367
19368 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19369
19370         bootstrap: fix an error when gnulib is not used as a git submodule
19371         * build-aux/bootstrap (gnulib_path): If its length is zero then
19372         assign "gnulib" to it.
19373         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19374
19375 2010-05-16  Bruno Haible  <bruno@clisp.org>
19376
19377         Avoid autoconf warnings about AM_ICONV.
19378         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19379         2.64.
19380
19381 2010-05-16  Bruno Haible  <bruno@clisp.org>
19382
19383         absolute-header: Make the macro usable in more situations.
19384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19385         from gl_ABSOLUTE_HEADER.
19386         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19387
19388 2010-05-16  James Youngman  <jay@gnu.org>
19389
19390         doc: update users.txt
19391         * users.txt: Add CSSC.
19392
19393 2010-05-16  Jim Meyering  <meyering@redhat.com>
19394
19395         init.sh: fix an error in the previous change; add more comments
19396         * tests/init.sh: Compare exit code in loop against 9, not 2.
19397         Patch by Bruno Haible.
19398         Make the two tests more similar by adding an empty "then" clause.
19399         Add comments.
19400
19401         init.sh: avoid unnecessary shell re-exec
19402         * tests/init.sh: Improve the re-exec-required check to first test the
19403         current shell.  If it passes the test, do not search for a shell that
19404         does pass, and do not re-exec.  This test is particularly contorted to
19405         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19406         of $(...) evokes a syntax error and causes immediate shell exit with
19407         status 2.  Bruno Haible reported that the re-exec made it impossible
19408         to single-step through any init.sh-using script.
19409
19410 2010-05-16  Bruno Haible  <bruno@clisp.org>
19411
19412         Fix collision between gnulib's and libintl's printf replacements.
19413         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19414         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19415         (printf): When using GNU C, map the __printf__ function to rpl_printf
19416         via __asm__. When not using GNU C, define rpl_printf instead of
19417         __printf__.
19418         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19419         commit.
19420         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19421         commit.
19422         * m4/asm-underscore.m4: New file.
19423         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19424         * modules/stdio (Files): Add m4/asm-underscore.m4.
19425         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19426         Reported by Ben Pfaff.
19427
19428 2010-05-16  Bruno Haible  <bruno@clisp.org>
19429
19430         verify: Avoid skipping the test on openSUSE 11.0.
19431         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19432
19433 2010-05-13  Bruno Haible  <bruno@clisp.org>
19434
19435         Avoid useless warnings from G++.
19436         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19437         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19438         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19439
19440 2010-05-11  Jim Meyering  <meyering@redhat.com>
19441
19442         maint.mk: tweak preceding change
19443         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19444         regexps tighter by anchoring at EOL, and make the new group "shy"
19445         for slightly decreased overhead.
19446
19447 2010-05-11  Eric Blake  <eblake@redhat.com>
19448
19449         maint.mk: gnulib doesn't guarantee NSIG
19450         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19451
19452 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19453
19454         test-pwrite.c: Remove unused variable declaration.
19455         * tests/test-pwrite.c (main): Remove read_buf declaration.
19456
19457         Remove useless test-pwrite.sh file.
19458         * tests/test-pwrite.sh: Delete file.
19459         * modules/pwrite-tests: Remove references.
19460         Reported by Bruno Haible.
19461
19462 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19463
19464         init.sh: fix a typo
19465         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19466
19467 2010-05-10  Jim Meyering  <meyering@redhat.com>
19468
19469         maint.mk: avoid using a temporary file in the always-defined-macros check
19470         * top/maint.mk (.re-defmac): Remove rule.
19471         (gl_trap_): Remove definition.
19472         (sc_prohibit_always-defined_macros): Rewrite not to create and
19473         depend on a temporary file.  Instead, depend on GNU grep's ability
19474         to read a list of regular expressions from stdin when given "-f -".
19475
19476 2010-05-09  Bruno Haible  <bruno@clisp.org>
19477
19478         Update to GNU gettext 0.18, part 1.
19479         * m4/gettext.m4: Update to GNU gettext 0.18.
19480         * m4/intl.m4: Likewise.
19481         * m4/po.m4: Likewise.
19482         * modules/gettext (Files): Add m4/fcntl-o.m4.
19483         (configure.ac): Require gettext infrastructure from version 0.18.
19484
19485 2010-05-09  Jim Meyering  <meyering@redhat.com>
19486
19487         init.sh: enable MALLOC_PERTURB_
19488         * tests/init.sh: Enable glibc's malloc-perturbing option.
19489
19490         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19491         With my recent change in init.sh from the two-line form:
19492             -#   : ${srcdir=.}
19493             -#   . "$srcdir/init.sh"; path_prepend_ .
19494             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19495         I noticed that using the one-line form would cause this test
19496         to fail with a false-positive, or to stop working altogether,
19497         depending on whether help-version changed or all the tests did.
19498         * top/maint.mk (_hv_regex): Remove this definition.
19499         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19500         (_hv_regex_strong): Use a stronger regex to check for conformance.
19501         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19502         Give a separate diagnostic for lack of conforming use.
19503
19504         maint.mk: prohibit definition of symbols defined by gnulib
19505         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19506         definition of symbols defined by gnulib.
19507
19508 2010-05-09  Bruno Haible  <bruno@clisp.org>
19509
19510         acl: Avoid test failure on Cygwin-hosted mingw.
19511         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19512
19513 2010-05-09  Bruno Haible  <bruno@clisp.org>
19514
19515         error: Use system's fcntl function.
19516         * lib/error.c (fcntl): Undefine.
19517
19518 2010-05-09  Jim Meyering  <meyering@redhat.com>
19519
19520         verify: adjust formatting to be more consistent
19521         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19522         argument-list '('s, and after one comma.
19523
19524 2010-05-09  Bruno Haible  <bruno@clisp.org>
19525
19526         error: More reliable output on mingw.
19527         * lib/error.c: Include <windows.h>.
19528         (is_open): New function.
19529         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19530         defined.
19531
19532 2010-05-09  Bruno Haible  <bruno@clisp.org>
19533
19534         vasnprintf: Fix syntax errors in libintl build on mingw.
19535         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19536         pad_ourselves and prec_ourselves after use.
19537
19538 2010-05-08  Bruno Haible  <bruno@clisp.org>
19539
19540         * lib/config.charset: Update comments for Cygwin 1.7.
19541         * lib/localcharset.c: Likewise.
19542
19543 2010-05-07  Jim Meyering  <meyering@redhat.com>
19544
19545         init.sh: improve comments
19546         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19547         . "${srcdir=.}/init.sh"; path_prepend_ .
19548         Add a note about path_prepend_ and the alternative of using
19549         TESTS_ENVIRONMENT.
19550
19551 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19552
19553         exclude: Unescape hashed patterns in wildcard mode.
19554         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19555         to the hash list.
19556         * tests/test-exclude8.sh: New test case.
19557         * modules/exclude-tests: Add new test.
19558
19559 2010-05-05  Eric Blake  <eblake@redhat.com>
19560
19561         verify: automate tests
19562         * modules/verify-tests: New module.
19563         * tests/test-verify.sh: New file.
19564         * tests/test-verify.c: Guard each negative test with a unique id.
19565         Also avoid warning about unused left hand of comma expressions.
19566
19567 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         Further improvements to verify.h, suggested by Eric Blake.
19570         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19571         the GL_* versions, to avoid collision with OpenGL.
19572         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19573         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19574         than testing merely whether it's defined.
19575
19576         Modify verify.h to pacify gcc -Wredundant_decls.
19577         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19578         These use the prefix "GL_" since they're likely to be useful elsewhere.
19579         We may need to break them out into a different .h file.
19580         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19581         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19582         of verify_function__.
19583
19584 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19585
19586         Tests for module pwrite.
19587         * modules/pwrite-tests: New file.
19588         * tests/test-pwrite.sh: New file.
19589         * tests/test-pwrite.c: New file.
19590
19591         New module pwrite.
19592         * lib/unistd.in.h (pwrite): New declaration.
19593         * lib/pwrite.c: New file, from glibc with modifications.
19594         * m4/pwrite.m4: New file.
19595         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19596         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19597         REPLACE_PWRITE.
19598         * modules/pwrite: New file.
19599         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19600         REPLACE_PWRITE.
19601         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19602         * doc/posix-functions/pwrite.texi: Mention the new module.
19603
19604 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19605
19606         pread: Update documentation.
19607         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19608
19609 2010-05-04  Eric Blake  <eblake@redhat.com>
19610
19611         docs: update cygwin progress
19612         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19613         this bug.
19614         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19615         Added in cygwin 1.7.2.
19616         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19617         Likewise.
19618         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19619         Likewise.
19620         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19621         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19622         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19623         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19624         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19625         Mention nproc module.
19626         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19627         bug in cygwin 1.7.5 addition.
19628         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19629         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19630         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19631         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19632         1.7.5.
19633         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19634         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19635         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19636         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19637         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19638         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19639         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19640         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19641         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19642         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19643         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19644         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19645         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19646         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19647         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19648         Likewise.
19649         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19650         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19651         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19652         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19653         Likewise.
19654         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19655         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19656         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19657         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19658         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19659         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19660         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19661         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19662         Likewise.
19663         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19664         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19665         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19666         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19667         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19668         Likewise.
19669         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19670         Likewise.
19671         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19672         Likewise.
19673         * doc/glibc-functions/xdrrec_endofrecord.texi
19674         (xdrrec_endofrecord): Likewise.
19675         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19676         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19677         Likewise.
19678         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19679         Likewise.
19680
19681 2010-05-04  Jim Meyering  <meyering@redhat.com>
19682
19683         gendocs.sh: make its "-s FILE" option more useful
19684         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19685         $PACKAGE to reflect the probably-different basename of "FILE".
19686
19687 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19688
19689         bootstrap: don't ignore download_po_files failure
19690         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19691         failure.
19692
19693 2010-05-03  Jim Meyering  <meyering@redhat.com>
19694
19695         maint.mk: allow to pass options to gendocs.sh
19696         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19697         (gendocs_options_): New overridable variable.
19698
19699         gnu-web-doc-update: don't ignore configure or build failure
19700         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19701
19702         announce-gen: backslash-escape '@'s in --help output
19703         * build-aux/announce-gen: Fix syntax errors.
19704
19705         maint.mk, announce-gen: allow project-specific announcement mail headers
19706         * top/maint.mk (translation_project_): Define default.
19707         (announcement_Cc_, announcement_mail_headers_): Likewise.
19708         (announcement): Invoke announce-gen with new --mail-headers option.
19709         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19710
19711         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19712         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19713         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19714         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19715         line in the "err2" output file when running "make check" in verbose
19716         mode (i.e., with set -x enabled).
19717
19718 2010-05-03  Bruno Haible  <bruno@clisp.org>
19719
19720         wctob: Fix for weird platforms.
19721         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19722         argument value.
19723
19724 2010-05-03  Jim Meyering  <meyering@redhat.com>
19725
19726         maint.mk: prohibit unwarranted use of <strings.h>
19727         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19728         strings.h in a file that does not also use strcasecmp, strncasecmp,
19729         ffs or ffsll.
19730
19731         maint.mk: remove obsolete comments
19732         * top/maint.mk: Remove stale, commented-out rules.
19733
19734 2010-05-02  Bruno Haible  <bruno@clisp.org>
19735
19736         wcwidth: Declare also when it's aliased.
19737         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19738         macro.
19739
19740 2010-05-02  Bruno Haible  <bruno@clisp.org>
19741
19742         Fix regression from 2010-04-25.
19743         * gnulib-tool (func_modules_transitive_closure): Check the status of
19744         all modules, not only of the tests that are of the form foo-tests where
19745         foo is a module.
19746
19747 2010-05-02  Bruno Haible  <bruno@clisp.org>
19748
19749         wctob: Work around nasty Cygwin 1.7.2 bug.
19750         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19751         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19752
19753 2010-05-01  Bruno Haible  <bruno@clisp.org>
19754
19755         fpurge: Sharper test.
19756         * tests/test-fpurge.c (main): Add one more ftell check.
19757         * modules/fpurge-tests (Depends-on): Add ftell.
19758         Suggested by Eric Blake.
19759
19760 2010-05-01  Bruno Haible  <bruno@clisp.org>
19761
19762         ftello: Another test.
19763         * tests/test-ftello3.c: New file.
19764         * modules/ftello-tests (Files): Add it.
19765         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19766         MOSTLYCLEANFILES.
19767
19768         ftell: Another test.
19769         * tests/test-ftell3.c: New file.
19770         * modules/ftell-tests (Files): Add it.
19771         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19772         MOSTLYCLEANFILES.
19773
19774 2010-05-01  Bruno Haible  <bruno@clisp.org>
19775
19776         ftell, ftello: Work around Solaris bug.
19777         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19778         * lib/ftello.c: Include stdio-impl.h.
19779         (ftello): On Solaris, when _IOWRT is set, compute the result without
19780         looking at _IOREAD.
19781         * modules/ftello (Files): Add lib/stdio-impl.h.
19782         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19783         * doc/posix-functions/ftello.texi: Likewise.
19784         Reported by Eric Blake.
19785
19786 2010-05-01  Bruno Haible  <bruno@clisp.org>
19787
19788         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19789         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19790         the _IOWRT flag is also set.
19791
19792 2010-05-01  Bruno Haible  <bruno@clisp.org>
19793
19794         Fix doc about a HP-UX stdio bug.
19795         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19796         * doc/posix-functions/ftello.texi: Likewise.
19797
19798 2010-05-01  Bruno Haible  <bruno@clisp.org>
19799
19800         lseek test: Fix failure on Solaris.
19801         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19802         output.
19803
19804 2010-04-30  Jim Meyering  <meyering@redhat.com>
19805
19806         bootstrap: don't ignore failure to generate po*/Makevars
19807         * build-aux/bootstrap (with_gettext): Don't ignore failure
19808         to create po/Makevars or runtime-po/Makevars.
19809
19810 2010-04-29  Eric Blake  <eblake@redhat.com>
19811
19812         headers: relax license to LGPLv2+
19813         * modules/fcntl-h (License): Relax license.
19814         * modules/getopt-posix (License): Likewise.
19815         * modules/locale (License): Likewise.
19816         * modules/math (License): Likewise.
19817         * modules/pty (License): Likewise.
19818         * modules/sched (License): Likewise.
19819         * modules/search (License): Likewise.
19820         * modules/spawn (License): Likewise.
19821         * modules/stdarg (License): Likewise.
19822         * modules/sysexits (License): Likewise.
19823
19824 2010-04-29  Jim Meyering  <meyering@redhat.com>
19825
19826         inttypes: relax license to LGPLv2+
19827         * modules/inttypes (License): Relax license.
19828
19829 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19830
19831         * top/maint.mk (indent): Run twice to produce idempotent results.
19832
19833 2010-04-28  Bruno Haible  <bruno@clisp.org>
19834
19835         getdate: Generate getdate.c in the source directory.
19836         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19837         MOSTLYCLEANFILES.
19838         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19839
19840 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19841
19842         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19843         is not declared as a const *; avoid warnings in that case.
19844
19845 2010-04-28  Eric Blake  <eblake@redhat.com>
19846
19847         canonicalize-lgpl: avoid compiler warning
19848         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19849         declaration' / 'extraneous semicolon' warning with some compilers.
19850         Reported by Andreas Gruenbacher.
19851
19852 2010-04-28  Jim Meyering  <meyering@redhat.com>
19853
19854         init.sh: ensure a more reliable exit status when exiting via trap
19855         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19856         Inspired by patches from Dmitry V. Levin.
19857         Also trap on signal 3 (SIGQUIT).
19858
19859 2010-04-27  Bruno Haible  <bruno@clisp.org>
19860
19861         Update doc about utimes().
19862         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19863         'utimens' module.
19864         Reported by Andreas Gruenbacher <agruen@suse.de>.
19865
19866 2010-04-27  Eric Blake  <eblake@redhat.com>
19867
19868         full-read, full-write: relax license
19869         * modules/full-read (License): Drop to LGPLv2+.
19870         * modules/full-write (License): Likewise.
19871         * modules/safe-read (License): Likewise.
19872         * modules/safe-write (License): Likewise.
19873
19874         pthread: mention library for linking
19875         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19876
19877 2010-04-27  Jim Meyering  <meyering@redhat.com>
19878
19879         maint.mk: fix a bug introduced in last change
19880         * top/maint.mk (gl_assured_headers_): Now that all names are on
19881         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19882         is not anchored to end of word, it should be adequate.
19883
19884         maint.mk: avoid side-effect in latest syntax-check
19885         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19886         to run commands via $(shell...), and hence to incur cost only when
19887         the new rule is actually run.
19888
19889         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19890         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19891         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19892         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19893         (gl_assured_headers_, az_, AZ_): Define.
19894         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19895
19896 2010-04-26  Jim Meyering  <jim@meyering.net>
19897             Bruno Haible  <bruno@clisp.org>
19898
19899         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19900         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19901         Prompted by an exchange with Gilles Espinasse.
19902
19903 2010-04-26  Jim Meyering  <meyering@redhat.com>
19904
19905         git-version-gen: aesthetic tweak
19906         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19907         so that the command remains on a single line.
19908
19909 2010-04-26  Eric Blake  <eblake@redhat.com>
19910
19911         git-version-gen: allow use on EBCDIC hosts
19912         * build-aux/git-version-gen (dirty): Use literal rather than tying
19913         ourselves to ascii.
19914         Reported by Steve Goetze.
19915
19916 2010-04-25  Bruno Haible  <bruno@clisp.org>
19917
19918         netdb: Add support for GNULIB_POSIXCHECK.
19919         * lib/netdb.in.h: Include warn-on-use.h.
19920         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19921         functions are used when GNULIB_POSIXCHECK is defined and the
19922         getaddrinfo module is not in use.
19923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19924         freeaddrinfo, gai_strerror, getnameinfo are declared.
19925         * modules/netdb (Depends-on): Add warn-on-use.
19926         (Makefile.am): Include warn-on-use.h in netdb.h.
19927
19928 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19929
19930         build: avoid "make check" failure without .git/ directory
19931         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19932         there is no .git/ directory.
19933
19934 2010-04-25  Bruno Haible  <bruno@clisp.org>
19935
19936         ptsname: Fix misuse of ttyname_r.
19937         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19938         of errno.
19939
19940 2010-04-25  Bruno Haible  <bruno@clisp.org>
19941
19942         ttyname_r: Make it work on Solaris 10.
19943         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19944         if the system function has the POSIX declaration. Test whether the
19945         function fails if the buffer is less than 128 bytes large.
19946         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19947         system's ttyname_r function. Provide a reasonably large buffer.
19948         * modules/ttyname_r (Depends-on): Add extensions.
19949         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19950
19951 2010-04-25  Bruno Haible  <bruno@clisp.org>
19952
19953         Use the 'extensions' module for some more functions on Solaris.
19954         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19955         module.
19956         * doc/posix-functions/ctime_r.texi: Likewise.
19957         * doc/posix-functions/getgrgid_r.texi: Likewise.
19958         * doc/posix-functions/getgrnam_r.texi: Likewise.
19959         * doc/posix-functions/getpwnam_r.texi: Likewise.
19960         * doc/posix-functions/getpwuid_r.texi: Likewise.
19961         * doc/posix-functions/readdir_r.texi: Likewise.
19962         * doc/posix-functions/sigwait.texi: Likewise.
19963         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19964         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19965
19966 2010-04-25  Bruno Haible  <bruno@clisp.org>
19967
19968         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19969         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19970         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19971         * lib/ttyname_r.c: Include <limits.h>.
19972         (ttyname_r): Define using the system's ttyname_r function, if it exists
19973         and not on Solaris.
19974         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19975         set.
19976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19977         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19978         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19979         Reported by Simon Josefsson.
19980
19981 2010-04-25  Bruno Haible  <bruno@clisp.org>
19982
19983         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19984         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19985         * doc/posix-functions/ctime_r.texi: Likewise.
19986         * doc/posix-functions/getgrgid_r.texi: Likewise.
19987         * doc/posix-functions/getgrnam_r.texi: Likewise.
19988         * doc/posix-functions/getlogin_r.texi: Likewise.
19989         * doc/posix-functions/getpwnam_r.texi: Likewise.
19990         * doc/posix-functions/getpwuid_r.texi: Likewise.
19991         * doc/posix-functions/readdir_r.texi: Likewise.
19992         * doc/posix-functions/sigwait.texi: Likewise.
19993         * doc/posix-functions/ttyname_r.texi: Likewise.
19994         Reported by Simon Josefsson.
19995
19996 2010-04-25  Bruno Haible  <bruno@clisp.org>
19997
19998         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19999         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20000         also to --create-testdir.
20001         (func_acceptable): Don't consider the status of *-tests modules here.
20002         (func_modules_transitive_closure): Consider it here, before including a
20003         test module.
20004         (func_import, func_create_testdir): Set inc_all_direct_tests,
20005         inc_all_indirect_tests.
20006         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20007         --create-testdir and --create-megatestdir.
20008
20009 2010-04-25  Bruno Haible  <bruno@clisp.org>
20010
20011         gnulib-tool: Add --without-*-tests options.
20012         * gnulib-tool (func_usage): Document the --without-*-tests options.
20013         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20014         excl_unportable_tests): New variables.
20015         Fail if they are specified with --import or --update.
20016         (func_acceptable): Respect the excl_*_tests variables.
20017         (func_import): Set the excl_*_tests variables to empty.
20018
20019 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20020             Bruno Haible  <bruno@clisp.org>
20021
20022         Work around a MacOS X 10.4 bug with openpty.
20023         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20024         * tests/test-openpty.c (main): Close the master side explicitly.
20025
20026 2010-04-25  Bruno Haible  <bruno@clisp.org>
20027
20028         strnlen: Fix a C++ test error on MacOS X and Solaris.
20029         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20030         the function is not declared.
20031         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20032         Simon Josefsson.
20033
20034 2010-04-24  Bruno Haible  <bruno@clisp.org>
20035
20036         Avoid a gcc warning.
20037         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20038         of correct type for %08lx directive.
20039         Reported by Eric Blake.
20040
20041 2010-04-24  Bruno Haible  <bruno@clisp.org>
20042
20043         vasnprintf: Correct errno value in case of out-of-memory.
20044         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20045         or sprintf. Use the errno value from SNPRINTF or sprintf.
20046         Reported by Ian Beckwith <ianb@erislabs.net>.
20047
20048 2010-04-24  Bruno Haible  <bruno@clisp.org>
20049
20050         ansi-c++-opt: Find correct compiler when cross-compiling.
20051         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20052         AC_CHECK_PROGS.
20053         Reported by Simon Josefsson.
20054
20055 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20056
20057         vc-list-files: Add support for subversion
20058         * build-aux/vc-list-files: Use "svn list" to generate the list of
20059         files controlled by subversion.
20060
20061 2010-04-23  Jim Meyering  <meyering@redhat.com>
20062
20063         vc-list-files tests: convert to use init.sh
20064         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20065         path_prepend_.
20066         Use Exit, not exit.
20067         Use skip_ rather than open coding it.
20068         Remove trap set-up and compare definitions.
20069         * tests/test-vc-list-files-git.sh: Likewise.
20070         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20071
20072 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20073
20074         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20075         backup files.
20076
20077 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20078
20079         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20080
20081 2010-04-20  Eric Blake  <eblake@redhat.com>
20082
20083         tests: be robust to ignored SIGPIPE
20084         * tests/test-select-in.sh: Consume all output.
20085         * tests/test-lseek.sh: Check correct exit status, while avoiding
20086         EPIPE.
20087
20088 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20089             Bruno Haible  <bruno@clisp.org>
20090
20091         visibility: Don't use -fvisibility if it leads to a warning.
20092         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20093         yes, don't pretend that visibility works if it leads to a warning.
20094         Reported by Mike Gran <spk121@yahoo.com>.
20095
20096 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20097
20098         * build-aux/bootstrap: Use "git -h" for testing for supported options
20099         instead of "git --help".  The short-form option only shows a summary,
20100         and doesn't layout the full man page.  Grep for the full option name
20101         in the summary, too.
20102
20103 2010-04-19  Bruno Haible  <bruno@clisp.org>
20104
20105         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20106         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20107         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20108         mention of RELOCATABLE_STRIP.
20109         Reported by Sylvain Beucler <beuc@beuc.net>.
20110
20111 2010-04-19  Bruno Haible  <bruno@clisp.org>
20112
20113         * lib/diffseq.h: Fix typo in comment.
20114         Reported by Eric Blake.
20115
20116 2010-04-19  Bruno Haible  <bruno@clisp.org>
20117
20118         ioctl: Move autoconf macro to a .m4 file.
20119         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20120         * modules/ioctl (Files): Add it.
20121         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20122         Reported by Ian Beckwith <ianb@erislabs.net>.
20123
20124 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20125             Bruno Haible  <bruno@clisp.org>
20126
20127         diffseq: Accommodate use-case with abstract arrays.
20128         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20129         is not defined.
20130         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20131         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20132
20133 2010-04-18  Bruno Haible  <bruno@clisp.org>
20134
20135         * doc/posix-headers/stdbool.texi: More precise wording.
20136
20137 2010-04-17  Jim Meyering  <meyering@redhat.com>
20138
20139         maint.mk: use gnu-style indentation in an embedded perl script
20140         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20141         Rename variable: s/two/last_two_bytes/
20142
20143 2010-04-16  Eric Blake  <eblake@redhat.com>
20144
20145         test-stdbool: skip test that fails with Solaris CC
20146         * tests/test-stdbool.c (f): Skip test that causes compilation
20147         error under buggy C++ compiler.
20148         * lib/stdbool.in.h: Document the limitation.
20149         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20150
20151         setenv: allow compilation with C++
20152         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20153         register keyword.
20154
20155         stdint: allow test to pass with C++
20156         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20157
20158         getopt: allow compilation with C++
20159         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20160         struct.
20161         * lib/getopt.c (_getopt_internal_r): Use correct type.
20162         Reported by Dagobert Michelson, via Joel E. Denny.
20163
20164 2010-04-16  Bruno Haible  <bruno@clisp.org>
20165
20166         Override netdb.h always.
20167         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20168         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20169         Reported by Ludovic Courtès <ludo@gnu.org>.
20170
20171 2010-04-15  Bruno Haible  <bruno@clisp.org>
20172
20173         openpty: Fix mistake from 2010-03-21.
20174         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20175         Reported by Simon Josefsson.
20176
20177 2010-04-15  Eric Blake  <eblake@redhat.com>
20178
20179         test-forkpty: fix expected signature
20180         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20181         Reported by Simon Josefsson.
20182
20183 2010-04-15  Jim Meyering  <meyering@redhat.com>
20184
20185         maint.mk: texinfo_suffix_re_: correct the default regexp
20186         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20187
20188         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20189         make it configurable via texinfo_suffix_re_.
20190
20191 2010-04-14  Eric Blake  <eblake@redhat.com>
20192
20193         strtok_r: relax license to LGPLv2+
20194         * modules/strtok_r (License): Relax license.
20195         Reported by Matthias Bolte.
20196
20197 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20198
20199         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20200         version 1.4.4 by default instead of requiring the libgcrypt
20201         version used during build.  This makes it possible to use the
20202         application with older but still binary compatible libgcrypt
20203         versions.
20204
20205 2010-04-13  Eric Blake  <eblake@redhat.com>
20206
20207         getopt-gnu: match recent glibc fixes and posix ruling
20208         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20209         '+' handling, when requesting extensions.
20210         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20211         'W;' handling.
20212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20213         * doc/posix-functions/getopt.texi (getopt): Document this.
20214         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20215         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20216         Likewise.
20217
20218         getopt: merge bug fixes from glibc
20219         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20220         diagnostics.  Honor '+:' correctly.  Reject ';'.
20221
20222         getopt-posix: detect MacOS bug
20223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20224         optind when missing a required argument.
20225         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20226         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20228         Likewise.
20229
20230         getopt-posix: avoid spurious failure on Solaris
20231         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20232         an indicator that setting optind=1 is sufficient for reset.
20233
20234         getopt-posix: avoid spurious failure on FreeBSD
20235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20236         in POSIX mode, since the m4 test uses it.
20237
20238         gnulib-tool: silence warning on BSD sh
20239         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20240
20241 2010-04-13  Jim Meyering  <meyering@redhat.com>
20242
20243         doc: users.txt: GNU patch now uses gnulib
20244         * users.txt: Add patch.
20245
20246 2010-04-12  Jim Meyering  <meyering@redhat.com>
20247
20248         maint.mk: generate more concise timing data for syntax-check rules
20249         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20250         " done" from each line that reports a syntax-check test duration.
20251
20252 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20253
20254         git-version-gen: use "git update-index..." rather than "git status"
20255         * build-aux/git-version-gen: Use git update-index --refresh, not
20256         "git status".  With some versions of git, "git status" would fail
20257         to update the index and result in an unwarranted "-dirty" suffix.
20258
20259 2010-04-11  Jim Meyering  <meyering@redhat.com>
20260
20261         openat: correct formatting (no semantic change)
20262         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20263         Suggested by Bruno Haible.
20264
20265 2010-04-11  Bruno Haible  <bruno@clisp.org>
20266
20267         Stricter declaration checking in testdirs.
20268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20269         If for_tests is true, augment AM_CPPFLAGS to define
20270         GNULIB_STRICT_CHECKING.
20271         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20272         GNULIB_STRICT_CHECKING is defined, verify that the function is
20273         declared.
20274
20275 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20276             Bruno Haible  <bruno@clisp.org>
20277
20278         libunistring: Improve configure output.
20279         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20280         Don't say "consider installing GNU libunistring" when checking again
20281         with libiconv.
20282
20283 2010-04-11  Bruno Haible  <bruno@clisp.org>
20284
20285         libunistring: Correct value of $LTLIBUNISTRING.
20286         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20287         correct the value of $LTLIBUNISTRING.
20288
20289 2010-04-11  Bruno Haible  <bruno@clisp.org>
20290
20291         havelib: Add static libraries to LIBS in the right order.
20292         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20293         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20294
20295 2010-04-11  Bruno Haible  <bruno@clisp.org>
20296
20297         libunistring: Detect libunistring also when it depends on libiconv.
20298         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20299         the second AC_LIB_HAVE_LINKFLAGS invocation.
20300
20301 2010-04-11  James Youngman  <jay@gnu.org>
20302
20303         close-stream: declare local scalars to be "const"
20304         * lib/close-stream.c (close_stream): Make boolean variables const
20305         to document the fact that we set but do not change them.
20306
20307 2010-04-11  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20310
20311 2010-04-11  Jim Meyering  <meyering@redhat.com>
20312
20313         maint.mk: don't include dist-check.mk
20314         * top/maint.mk: Remove bogus include directive.
20315
20316         maint.mk: improve empty-line-at-EOF check
20317         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20318         solution, rather than tail+Perl-based one.  The latter would read
20319         a few kilobytes from the end of each file, and did not handle empty
20320         files properly.
20321
20322         maint.mk: print the elapsed time for each syntax-check rule
20323         * top/maint.mk (sc_m_rules_): Save start time in a file.
20324         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20325         (local-check): Interpose the .z rules
20326
20327 2010-04-11  Jim Meyering  <meyering@redhat.com>
20328
20329         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20330         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20331         empty file with one that ends in an empty line.
20332
20333 2010-04-10  Bruno Haible  <bruno@clisp.org>
20334
20335         mkdir: Make it work on mingw64.
20336         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20337         * lib/mkdir.c: Update comment.
20338         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20339
20340 2010-04-10  Bruno Haible  <bruno@clisp.org>
20341
20342         Don't override improved macro from newer autoconf.
20343         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20344         autoconf >= 2.62.
20345         Reported by Joel E. Denny <jdenny@clemson.edu>.
20346
20347 2010-04-10  Jim Meyering  <meyering@redhat.com>
20348
20349         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20350         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20351
20352         maint.mk: correct a diagnostic
20353         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20354         in diagnostic; now use $prohibit.
20355
20356 2010-04-10  Bruno Haible  <address@hidden>
20357
20358         fchownat: Fix a C++ test error on Solaris 8.
20359         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20360         the function does not exist.
20361
20362 2010-04-10  Bruno Haible  <bruno@clisp.org>
20363
20364         vasnprintf: Add more tests.
20365         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20366         (test_function): Test converting an invalid wide string.
20367
20368         vasnprintf: Correct handling of unconvertible wide string arguments.
20369         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20370         VASNPRINTF.
20371         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20372         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20373         smaller than the expected maximum need for the directive. Set errno to
20374         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20375         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20377         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20378         * modules/vasnprintf (Files): Add m4/printf.m4.
20379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20380
20381 2010-04-10  Bruno Haible  <bruno@clisp.org>
20382
20383         vasnprintf: Fix crash in %ls directive.
20384         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20385         string is passed as argument to %ls, with no precision and no width.
20386         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20387
20388 2010-04-10  Bruno Haible  <bruno@clisp.org>
20389
20390         vasnprintf: Fix multiple test failures on mingw.
20391         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20392         _snprintf, or snwprintf, not _snwprintf.
20393
20394 2010-04-10  Bruno Haible  <bruno@clisp.org>
20395
20396         write: Fix a C++ test error on mingw.
20397         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20398
20399 2010-04-10  Bruno Haible  <bruno@clisp.org>
20400
20401         vasnprintf test: Reduce code duplication.
20402         * tests/test-vasnprintf.c (test_function): New function, extracted from
20403         test_vasnprintf.
20404         (test_vasnprintf, test_asnprintf): Invoke it.
20405
20406 2010-04-10  Bruno Haible  <bruno@clisp.org>
20407
20408         strnlen: Fix warning in C++ mode on MacOS X.
20409         * lib/string.in.h (strnlen): Use the modern idiom.
20410         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20411         defining strnlen as a macro already in <config.h>.
20412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20413         REPLACE_STRNLEN.
20414         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20415         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20416
20417 2010-04-08  James Youngman  <jay@gnu.org>
20418
20419         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20420         the example.
20421
20422 2010-04-09  Jim Meyering  <meyering@redhat.com>
20423
20424         maint.mk: print better diagnostic when there is no $(_hv_file)
20425         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20426         announce that when $(_hv_file) (aka help-version) does not exist.
20427
20428         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20429         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20430         not try to interpret its random input bytes.  Jarno Rajahalme reported
20431         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20432         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20433         (mktempd_): Likewise, just in case.
20434
20435         ftruncate: add two years to projected module removal date: 2012
20436         * m4/ftruncate.m4: Adjust comments.
20437
20438         ftruncate: mark module as obsolete; even MinGW provides it, now
20439         * modules/ftruncate (Status): Obsolete.
20440         (Notice): Say that.
20441         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20442         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20443
20444 2010-04-08  Bruno Haible  <bruno@clisp.org>
20445
20446         Fix side effects from tests-related modules.
20447         * modules/dprintf-posix (Comment): New section.
20448         * modules/fprintf-posix (Comment): Likewise.
20449         * modules/obstack-printf-posix (Comment): Likewise.
20450         * modules/printf-posix (Comment): Likewise.
20451         * modules/snprintf-posix (Comment): Likewise.
20452         * modules/sprintf-posix (Comment): Likewise.
20453         * modules/vasnprintf-posix (Comment): Likewise.
20454         * modules/vasprintf-posix (Comment): Likewise.
20455         * modules/vdprintf-posix (Comment): Likewise.
20456         * modules/vfprintf-posix (Comment): Likewise.
20457         * modules/vprintf-posix (Comment): Likewise.
20458         * modules/vsnprintf-posix (Comment): Likewise.
20459         * modules/vsprintf-posix (Comment): Likewise.
20460         * modules/xprintf-posix (Comment): Likewise.
20461         * modules/xvasprintf-posix (Comment): Likewise.
20462         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20463         * modules/floorf-tests (Depends-on): Likewise.
20464         * modules/round-tests (Depends-on): Likewise.
20465         * modules/roundf-tests (Depends-on): Likewise.
20466         * modules/trunc-tests (Depends-on): Likewise.
20467         * modules/truncf-tests (Depends-on): Likewise.
20468         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20469         'fprintf-posix' module is not present.
20470         * tests/test-floorf2.c (check): Likewise.
20471         * tests/test-trunc2.c (check): Likewise.
20472         * tests/test-truncf2.c (check): Likewise.
20473         * tests/test-round2.c (equal): Likewise.
20474         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20475
20476 2010-04-07  Karl Berry  <karl@gnu.org>
20477
20478         * config/srclist.txt,
20479         * config/srclistvars.sh,
20480         * config/srclist-update: doc fixes.
20481
20482 2010-04-07  Jim Meyering  <meyering@redhat.com>
20483
20484         maint.mk: add a PATH crosschecking syntax-check rule
20485         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20486         Useful if you use a test like the one in help-version (coreutils,
20487         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20488         printed by prog --version.
20489
20490 2010-04-06  Bruno Haible  <bruno@clisp.org>
20491
20492         Fix link error on mingw.
20493         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20494         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20495
20496 2010-04-06  Bruno Haible  <bruno@clisp.org>
20497
20498         Assume rmdir exists.
20499         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20500
20501 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20502
20503         doc: update users.txt
20504         * users.txt: Add gcal.
20505
20506 2010-04-06  Jim Meyering  <meyering@redhat.com>
20507
20508         init.sh: simply unset TMPDIR rather than risking env -i
20509         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20510         although it probably works fine on all Unix-based systems, some
20511         systems (Cygwin?) cannot tolerate a totally cleared environment.
20512         Suggestion from Eric Blake.
20513
20514 2010-04-06  Jim Meyering  <meyering@redhat.com>
20515
20516         init.sh: portability fix: use env's POSIX-specified -i option not -u
20517         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20518         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20519
20520 2010-04-05  Bruno Haible  <bruno@clisp.org>
20521
20522         btowc: Work around Cygwin 1.7.2 bug.
20523         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20524         does not map NUL to 0.
20525         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20526
20527 2010-04-05  Bruno Haible  <bruno@clisp.org>
20528
20529         Make the multithread modules work on Cygwin 1.7.2.
20530         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20531         imported symbols can be declared weak, so that it returns "no" on
20532         Cygwin 1.7.2.
20533
20534 2010-04-05  Bruno Haible  <bruno@clisp.org>
20535
20536         Use the module 'strncat'.
20537         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20538
20539         Tests for module 'strncat'.
20540         * modules/strncat-tests: New file.
20541         * tests/test-strncat.c: New file.
20542
20543         New module 'strncat'.
20544         * lib/string.in.h (strncat): New declaration.
20545         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20546         * m4/strncat.m4: New file, based on m4/memchr.m4.
20547         * modules/strncat: New file.
20548         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20549         is declared.
20550         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20551         REPLACE_STRNCAT.
20552         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20553         REPLACE_STRNCAT.
20554         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20555         module.
20556         * tests/test-string-c++.cc: Check signature of strncat.
20557
20558 2010-04-05  Jim Meyering  <meyering@redhat.com>
20559
20560         xstrtoumax-tests: convert to use init.sh
20561         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20562         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20563         Use Exit, not exit.
20564         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20565
20566         xstrtoimax-tests: convert to use init.sh
20567         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20568         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20569         Use Exit, not exit.
20570         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20571
20572 2010-04-05  Bruno Haible  <bruno@clisp.org>
20573
20574         sys_socket: Avoid #define replacements in C++ mode.
20575         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20576         warning to the function if possible, rather than #defining the symbol
20577         to a dysfunctional alias.
20578
20579 2010-04-05  Bruno Haible  <bruno@clisp.org>
20580
20581         fseeko: Fix C++ test error on mingw.
20582         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20583         gl_FUNC_FSEEKO.
20584         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20585         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20586         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20587         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20588
20589 2010-04-05  Bruno Haible  <bruno@clisp.org>
20590
20591         duplocale: Improve test output.
20592         * tests/test-duplocale.c (main): Print reason for skipped test.
20593
20594 2010-04-05  Bruno Haible  <bruno@clisp.org>
20595
20596         Assume rmdir exists.
20597         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20598         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20599
20600 2010-04-05  Bruno Haible  <bruno@clisp.org>
20601
20602         Fix link error on Solaris 8 with cc.
20603         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20604
20605 2010-04-05  Bruno Haible  <bruno@clisp.org>
20606
20607         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20608         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20609
20610 2010-04-05  Bruno Haible  <bruno@clisp.org>
20611
20612         vasprintf: Update documentation.
20613         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20614
20615 2010-04-05  Bruno Haible  <bruno@clisp.org>
20616
20617         ptsname: Improve test.
20618         * tests/test-ptsname.c (main): Also try the various master names of BSD
20619         systems.
20620
20621 2010-04-05  Bruno Haible  <bruno@clisp.org>
20622
20623         memchr: Avoid a possible C++ test error.
20624         * lib/string.in.h (memchr): Provide declaration if function is missing.
20625         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20626         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20628         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20629
20630 2010-04-05  Bruno Haible  <bruno@clisp.org>
20631
20632         strtok_r: Improve idiom.
20633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20634         AC_LIBOBJ is used.
20635
20636 2010-04-05  Bruno Haible  <bruno@clisp.org>
20637
20638         strdup: Improve idiom.
20639         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20640         AC_LIBOBJ is used.
20641         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20642         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20643         when AC_LIBOBJ is used.
20644
20645 2010-04-05  Bruno Haible  <bruno@clisp.org>
20646
20647         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20648         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20649         don't set REPLACE_MBSINIT to 1.
20650         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20651         don't set REPLACE_MBRTOWC to 1.
20652         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20653         exist, don't set REPLACE_MBSRTOWCS to 1.
20654         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20655         exist, don't set REPLACE_MBSNRTOWCS to 1.
20656         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20657         don't set REPLACE_WCRTOMB to 1.
20658         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20659         exist, don't set REPLACE_WCSRTOMBS to 1.
20660         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20661         exist, don't set REPLACE_WCSNRTOMBS to 1.
20662
20663 2010-04-05  Bruno Haible  <bruno@clisp.org>
20664
20665         ldexpl: Improve idiom.
20666         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20667         make sure to set HAVE_DECL_LDEXPL to 0.
20668
20669 2010-04-05  Jim Meyering  <meyering@redhat.com>
20670
20671         xstrtol-tests: convert to use init.sh
20672         * modules/xstrtol-tests (Files): Add tests/init.sh.
20673         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20674         Use Exit, not exit.
20675         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20676
20677         atexit-tests: convert to use init.sh
20678         * modules/atexit-tests (Files): Add tests/init.sh.
20679         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20680         Use Exit, not exit.
20681         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20682
20683         init.sh: fix typo
20684         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20685
20686         init.sh: make it easier for a test script to write to the tty, ...
20687         when using automake's parallel-tests mode.
20688         * tests/init.sh (stderr_fileno_): Define overridable variable.
20689         (warn_): New function, to use it.
20690         (fail_, skip_, framework_failure_): Use warn_.
20691
20692 2010-04-04  Bruno Haible  <bruno@clisp.org>
20693
20694         btowc: Avoid warning.
20695         * lib/btowc.c: Include <stdlib.h>.
20696         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20697
20698 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20699             Bruno Haible  <bruno@clisp.org>
20700
20701         wchar: Port to NetBSD 1.5.
20702         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20703         * lib/wctype.in.h (WEOF): Likewise.
20704
20705 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20706             Bruno Haible  <bruno@clisp.org>
20707
20708         Port extended stdio to NetBSD 1.5.
20709         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20710         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20711         older.
20712
20713 2010-04-04  Bruno Haible  <bruno@clisp.org>
20714
20715         string: Remove unused substitution.
20716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20717         HAVE_DECL_STRERROR.
20718         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20719
20720 2010-04-04  Bruno Haible  <bruno@clisp.org>
20721
20722         strtod: Avoid a possible C++ test error.
20723         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20724         set REPLACE_STRTOD.
20725
20726 2010-04-04  Bruno Haible  <bruno@clisp.org>
20727
20728         strerror: Update documentation.
20729         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20730
20731 2010-04-04  Bruno Haible  <bruno@clisp.org>
20732
20733         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20734         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20735         _GL_CXXALIAS_SYS_CAST.
20736
20737 2010-04-04  Bruno Haible  <bruno@clisp.org>
20738
20739         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20740         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20741         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20742         REPLACE_FREXPL to 1.
20743         * doc/posix-functions/frexpl.texi: Update documentation.
20744
20745 2010-04-04  Bruno Haible  <bruno@clisp.org>
20746
20747         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20748         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20749
20750 2010-04-04  Bruno Haible  <bruno@clisp.org>
20751
20752         Implement nanosleep for native Windows.
20753         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20754
20755 2010-04-04  Bruno Haible  <bruno@clisp.org>
20756
20757         math: Fix some C++ test errors on Solaris 8.
20758         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20759
20760 2010-04-04  Bruno Haible  <bruno@clisp.org>
20761
20762         math: Fix some C++ test errors on Cygwin.
20763         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20764         truncl): Provide declaration if the system does not have it.
20765         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20766         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20767         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20768         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20769         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20770         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20771         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20772         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20773         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20774         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20775         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20776         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20777         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20778         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20779         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20780         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20782         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20783         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20784         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20785         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20786         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20787
20788 2010-04-04  Bruno Haible  <bruno@clisp.org>
20789
20790         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20791         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20792         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20793         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20794         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20795         * m4/isinf.m4 (gl_ISINF): Likewise.
20796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20797
20798 2010-04-04  Bruno Haible  <bruno@clisp.org>
20799
20800         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20801         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20802
20803 2010-04-04  Bruno Haible  <bruno@clisp.org>
20804
20805         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20806         * modules/tmpfile (configure.ac): Update.
20807
20808         tmpfile: Fix C++ test error on mingw.
20809         * lib/stdio.in.h (tmpfile): New declaration.
20810         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20811         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20812         * modules/tmpfile (Depends-on): Add stdio.
20813         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20814         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20815         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20816         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20817         REPLACE_TMPFILE.
20818         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20819
20820 2010-04-04  Bruno Haible  <bruno@clisp.org>
20821
20822         ioctl: Fix C++ test error on mingw.
20823         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20824         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20825         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20826
20827 2010-04-03  Bruno Haible  <bruno@clisp.org>
20828
20829         wcwidth: Fix C++ test error on mingw.
20830         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20832         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20833
20834 2010-04-03  Bruno Haible  <bruno@clisp.org>
20835
20836         nanosleep: Fix C++ test error on mingw.
20837         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20838         * lib/time.in.h (nanosleep): Use modern idiom.
20839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20840         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20841         REPLACE_NANOSLEEP to 1.
20842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20843         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20844
20845 2010-04-03  Bruno Haible  <bruno@clisp.org>
20846
20847         strptime: Fix C++ test error on mingw.
20848         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20849         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20850         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20851         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20852         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20853         not REPLACE_STRPTIME.
20854         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20855         REPLACE_STRPTIME.
20856
20857 2010-04-03  Bruno Haible  <bruno@clisp.org>
20858
20859         timegm: Fix C++ test error on mingw.
20860         * lib/time.in.h (timegm): Use modern idiom.
20861         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20862         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20864         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20865
20866 2010-04-03  Bruno Haible  <bruno@clisp.org>
20867
20868         timegm: Assume declaration if function exists.
20869         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20870         if it exists. Don't clobber ac_cv_func_timegm.
20871
20872 2010-04-03  Bruno Haible  <bruno@clisp.org>
20873
20874         time_r: Fix C++ test error on mingw.
20875         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20876         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20877         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20878         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20879         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20880
20881 2010-04-03  Bruno Haible  <bruno@clisp.org>
20882
20883         time_r: Minor updates.
20884         * modules/time_r (Description): Mention the provided functions.
20885         * lib/time_r.c: Don't include <string.h>.
20886         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20887         * doc/posix-functions/localtime_r.texi: Likewise.
20888
20889 2010-04-03  Bruno Haible  <bruno@clisp.org>
20890
20891         time: Fix regression introduced on 2010-03-08.
20892         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20893         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20894
20895 2010-04-03  Jim Meyering  <meyering@redhat.com>
20896
20897         maint.mk: don't silently disable project-specific syntax-check rules
20898         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20899         that they need to convert their project-specific syntax-check rules
20900         to use the new _sc_search_regexp.
20901
20902 2010-04-03  Bruno Haible  <bruno@clisp.org>
20903
20904         fchdir: Fix regression introduced on 2010-03-08.
20905         * lib/unistd.in.h (fchdir): Fix declaration.
20906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20908         REPLACE_FCHDIR.
20909         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20910         REPLACE_FCHDIR.
20911
20912 2010-04-03  Bruno Haible  <bruno@clisp.org>
20913
20914         getpagesize: Fix C++ test error on mingw.
20915         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20916         system does not declare the function.
20917         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20918         declared.
20919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20920         HAVE_DECL_GETPAGESIZE.
20921         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20922
20923 2010-04-03  Bruno Haible  <bruno@clisp.org>
20924
20925         stdio: Make C++ tests work on mingw.
20926         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20927         does not declare the function.
20928
20929 2010-04-03  Bruno Haible  <bruno@clisp.org>
20930
20931         ftello: Fix C++ test error on mingw.
20932         * lib/stdio.in.h (ftello): Use modern idiom.
20933         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20934         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20935         is missing and that it needs to be replaced.
20936         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20938         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20939
20940 2010-04-03  Bruno Haible  <bruno@clisp.org>
20941
20942         fseeko: Fix C++ test error on mingw.
20943         * lib/stdio.in.h (fseeko): Use modern idiom.
20944         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20946         is missing and that it needs to be replaced.
20947         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20949         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20950
20951 2010-04-03  Bruno Haible  <bruno@clisp.org>
20952
20953         mkstemp: Fix C++ test error on mingw.
20954         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20956         function is missing and that it needs to be replaced.
20957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20958         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20959
20960 2010-04-03  Bruno Haible  <bruno@clisp.org>
20961
20962         stpncpy: Fix C++ test error on mingw.
20963         * lib/string.in.h (stpncpy): Use modern idiom.
20964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20965         function is missing and that it needs to be replaced.
20966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20967         REPLACE_STPNCPY.
20968         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20969
20970 2010-04-03  Bruno Haible  <bruno@clisp.org>
20971
20972         sys_stat: Fix C++ test error on mingw.
20973         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20974         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20975
20976 2010-04-03  Bruno Haible  <bruno@clisp.org>
20977
20978         pty: Update doc.
20979         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20980
20981 2010-04-03  Bruno Haible  <bruno@clisp.org>
20982
20983         unistd: Fix C++ test error on mingw.
20984         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20985
20986 2010-04-03  Bruno Haible  <bruno@clisp.org>
20987
20988         Update doc regarding mingw.
20989         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20990         * doc/glibc-functions/login_tty.texi: Likewise.
20991         * doc/glibc-functions/forkpty.texi: Likewise.
20992
20993 2010-04-03  Bruno Haible  <bruno@clisp.org>
20994
20995         stdlib: Avoid compilation failure of c-strtold on mingw.
20996         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20997
20998 2010-04-03  Bruno Haible  <bruno@clisp.org>
20999
21000         locale: Make C++ tests work on Cygwin and mingw.
21001         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21002         cannot provide the function.
21003         Reported by Simon Josefsson.
21004
21005 2010-04-03  Bruno Haible  <bruno@clisp.org>
21006
21007         localename: Port to MacOS X 10.6.
21008         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21009         memory layout of the locales in MacOS X 10.6 as well.
21010         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21011
21012 2010-04-02  Bruno Haible  <bruno@clisp.org>
21013
21014         gnulib-tool: Ensure that long-running tests are executed last.
21015         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21016         running tests after the one for the other tests.
21017
21018 2010-04-02  Bruno Haible  <bruno@clisp.org>
21019
21020         gnulib-tool: Ensure the tests in the main directory are executed first.
21021         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21022         start with the current directory.
21023
21024 2010-04-02  Bruno Haible  <bruno@clisp.org>
21025
21026         Tests for module 'havelib', moved here from GNU gettext.
21027         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21028         modifications.
21029         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21030         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21031         with modifications.
21032         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21033         modifications.
21034         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21035         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21036         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21037         with modifications.
21038         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21039         with modifications.
21040         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21041         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21042         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21043         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21044         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21045         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21046         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21047         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21048         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21049         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21050         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21051         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21052         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21053         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21054         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21055         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21056         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21057         with modifications.
21058         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21059         with modifications.
21060         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21061         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21062         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21063         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21064         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21065         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21066         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21067         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21068         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21069         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21070         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21071         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21072         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21073         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21074         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21075         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21076         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21077         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21078         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21079         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21080         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21081         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21082         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21083         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21084         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21085         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21086         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21087         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21088         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21089         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21090         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21091         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21092         * tests/havelib/rpathx/rpathx.c: New file, from
21093         gettext/autoconf-lib-link.
21094         * tests/havelib/rpathx/Makefile.am: New file, from
21095         gettext/autoconf-lib-link.
21096         * tests/havelib/rpathx/configure.ac: New file, from
21097         gettext/autoconf-lib-link with modifications.
21098         * tests/havelib/rpathy/rpathy.c: New file, from
21099         gettext/autoconf-lib-link.
21100         * tests/havelib/rpathy/Makefile.am: New file, from
21101         gettext/autoconf-lib-link.
21102         * tests/havelib/rpathy/configure.ac: New file, from
21103         gettext/autoconf-lib-link with modifications.
21104         * tests/havelib/rpathz/rpathz.c: New file, from
21105         gettext/autoconf-lib-link.
21106         * tests/havelib/rpathz/Makefile.am: New file, from
21107         gettext/autoconf-lib-link.
21108         * tests/havelib/rpathz/configure.ac: New file, from
21109         gettext/autoconf-lib-link with modifications.
21110         * tests/havelib/rpathlx/usex.c: New file, from
21111         gettext/autoconf-lib-link.
21112         * tests/havelib/rpathlx/Makefile.am: New file, from
21113         gettext/autoconf-lib-link.
21114         * tests/havelib/rpathlx/configure.ac: New file, from
21115         gettext/autoconf-lib-link with modifications.
21116         * tests/havelib/rpathly/usey.c: New file, from
21117         gettext/autoconf-lib-link.
21118         * tests/havelib/rpathly/Makefile.am: New file, from
21119         gettext/autoconf-lib-link.
21120         * tests/havelib/rpathly/configure.ac: New file, from
21121         gettext/autoconf-lib-link with modifications.
21122         * tests/havelib/rpathlz/usez.c: New file, from
21123         gettext/autoconf-lib-link.
21124         * tests/havelib/rpathlz/Makefile.am: New file, from
21125         gettext/autoconf-lib-link.
21126         * tests/havelib/rpathlz/configure.ac: New file, from
21127         gettext/autoconf-lib-link with modifications.
21128         * tests/havelib/rpathlyx/usey.c: New file, from
21129         gettext/autoconf-lib-link.
21130         * tests/havelib/rpathlyx/Makefile.am: New file, from
21131         gettext/autoconf-lib-link.
21132         * tests/havelib/rpathlyx/configure.ac: New file, from
21133         gettext/autoconf-lib-link with modifications.
21134         * tests/havelib/rpathlzyx/usez.c: New file, from
21135         gettext/autoconf-lib-link.
21136         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21137         gettext/autoconf-lib-link.
21138         * tests/havelib/rpathlzyx/configure.ac: New file, from
21139         gettext/autoconf-lib-link with modifications.
21140         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21141         with modifications.
21142
21143 2010-04-02  Bruno Haible  <bruno@clisp.org>
21144
21145         gnulib-tool: Create distributed built sources also for the tests.
21146         * gnulib-tool (func_create_testdir): Also generate distributed built
21147         sources in the tests directory.
21148
21149 2010-04-02  Bruno Haible  <bruno@clisp.org>
21150
21151         gnulib-tool: Obey user's environment variables.
21152         * gnulib-tool (func_create_testdir): When creating built sources,
21153         respect the environment variables for autoconf, automake, etc. given by
21154         the user.
21155
21156 2010-04-02  Bruno Haible  <bruno@clisp.org>
21157
21158         gnulib-tool: Provide the value of --m4-base to modules.
21159         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21160         of gl_m4_base.
21161
21162 2010-04-02  Eric Blake  <eblake@redhat.com>
21163
21164         maint.mk: fix some fallout
21165         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21166         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21167
21168 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21169
21170         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21171         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21172         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21173         (sc_cast_of_x_alloc_return_value): Likewise.
21174         (sc_cast_of_alloca_return_value): Likewise.
21175         (sc_space_tab): Likewise.
21176         (sc_prohibit_atoi_atof): Likewise.
21177         (sc_prohibit_magic_number_exit): Likewise.
21178         (sc_error_exit_success): Likewise.
21179         (sc_file_system): Likewise.
21180         (sc_prohibit_have_config_h): Likewise.
21181         (sc_require_config_h): Likewise.
21182         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21183         (sc_obsolete_symbols): Likewise.
21184         (sc_changelog): Likewise.
21185         (sc_program_name): Likewise.
21186         (sc_the_the): Likewise.
21187         (sc_trailing_blank): Likewise.
21188         (sc_two_space_separator_in_usage): Likewise.
21189         (sc_useless_cpp_parens): Likewise.
21190         (sc_GPL_version): Likewise.
21191         (sc_GFDL_version): Likewise.
21192         (sc_texinfo_acronym): Likewise.
21193         (sc_prohibit_cvs_keyword): Likewise.
21194         (sc_prohibit_stat_st_blocks): Likewise.
21195         (sc_prohibit_S_IS_definition): Likewise.
21196         (sc_redundant_const): Likewise.
21197         (sc_makefile_TAB_only_indentation): Likewise.
21198         (sc_m4_quote_check): Likewise.
21199         (sc_makefile_path_separator_check): Likewise.
21200         (sc_copyright_check): Likewise.
21201         (sc_Wundef_boolean): Likewise.
21202         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21203
21204         maint.mk: match 0 or more whitespace-before-function-call '('
21205         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21206         that have zero or two-and-more spaces between the function name
21207         and the open parenthesis.
21208         (sc_error_message_warn_fatal): Likewise.
21209         (sc_error_message_uppercase): Likewise.
21210         (sc_error_message_period): Likewise.
21211
21212 2010-03-31  Eric Blake  <eblake@redhat.com>
21213
21214         maint.mk: check for [ as well as test
21215         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21216         Based on a libvirt report by Matthias Bolte.
21217
21218         gnumakefile: don't squelch _version output
21219         * top/GNUmakefile (_version): Create one-shot dependency rather
21220         than using $(shell) when version must be regenerated.
21221         (_autoreconf): Run verbosely, by default.
21222
21223         sys_time: avoid compiler warnings
21224         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21225         unconditional, fixing regression from 2010-03-29.
21226         Reported by Simon Josefsson.
21227
21228 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21229
21230         maint.mk: s/_header_without_use/_sc_header_without_use/
21231         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21232         (sc_prohibit_assert_without_use): Use the new name.
21233         (sc_prohibit_close_stream_without_use): Likewise.
21234         (sc_prohibit_getopt_without_use): Likewise.
21235         (sc_prohibit_quotearg_without_use): Likewise.
21236         (sc_prohibit_quote_without_use): Likewise.
21237         (sc_prohibit_long_options_without_use): Likewise.
21238         (sc_prohibit_inttostr_without_use): Likewise.
21239         (sc_prohibit_ignore_value_without_use): Likewise.
21240         (sc_prohibit_error_without_use): Likewise.
21241         (sc_prohibit_xalloc_without_use): Likewise.
21242         (sc_prohibit_hash_without_use): Likewise.
21243         (sc_prohibit_hash_pjw_without_use): Likewise.
21244         (sc_prohibit_safe_read_without_use): Likewise.
21245         (sc_prohibit_argmatch_without_use): Likewise.
21246         (sc_prohibit_canonicalize_without_use): Likewise.
21247         (sc_prohibit_root_dev_ino_without_use): Likewise.
21248         (sc_prohibit_openat_without_use): Likewise.
21249         (sc_prohibit_c_ctype_without_use): Likewise.
21250         (sc_prohibit_signal_without_use): Likewise.
21251         (sc_prohibit_intprops_without_use): Likewise.
21252
21253 2010-03-30  Eric Blake  <eblake@redhat.com>
21254
21255         maint: improve module indicators
21256         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21257         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21258         columns, and avoid extra macro expansion.
21259
21260         fdopendir: work around FreeBSD bug
21261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21262         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21263         * modules/dirent (Makefile.am): Substitute it.
21264         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21265         declaration.
21266         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21267         fix.
21268         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21269
21270 2010-03-29  Bruno Haible  <bruno@clisp.org>
21271
21272         Emit #pragma system_header after the inclusion guard, not before.
21273         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21274         guard that spans the entire file, not before. This enables an
21275         optimization in GCC's preprocessor.
21276         * lib/ctype.in.h: Likewise.
21277         * lib/dirent.in.h: Likewise.
21278         * lib/errno.in.h: Likewise.
21279         * lib/float.in.h: Likewise.
21280         * lib/getopt.in.h: Likewise.
21281         * lib/iconv.in.h: Likewise.
21282         * lib/langinfo.in.h: Likewise.
21283         * lib/locale.in.h: Likewise.
21284         * lib/math.in.h: Likewise.
21285         * lib/netdb.in.h: Likewise.
21286         * lib/netinet_in.in.h: Likewise.
21287         * lib/pty.in.h: Likewise.
21288         * lib/sched.in.h: Likewise.
21289         * lib/se-selinux.in.h: Likewise.
21290         * lib/search.in.h: Likewise.
21291         * lib/spawn.in.h: Likewise.
21292         * lib/stdarg.in.h: Likewise.
21293         * lib/stdint.in.h: Likewise.
21294         * lib/string.in.h: Likewise.
21295         * lib/strings.in.h: Likewise.
21296         * lib/sys_file.in.h: Likewise.
21297         * lib/sys_ioctl.in.h: Likewise.
21298         * lib/sys_time.in.h: Likewise.
21299         * lib/sys_times.in.h: Likewise.
21300         * lib/sys_utsname.in.h: Likewise.
21301         * lib/sys_wait.in.h: Likewise.
21302         * lib/sysexits.in.h: Likewise.
21303         * lib/wctype.in.h: Likewise.
21304
21305 2010-03-28  James Youngman  <jay@gnu.org>
21306
21307         save-cwd: don't leak a file descriptor when the caller execs.
21308         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21309         saved file descriptor.
21310         * modules/save-cwd (Depends-on): Depend on cloexec.
21311
21312 2010-03-29  Bruno Haible  <bruno@clisp.org>
21313
21314         Remove vestiges of fts-lgpl module.
21315         * lib/fts_.h: Assume GNULIB_FTS is 1.
21316         * lib/fts.c: Likewise.
21317         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21318
21319 2010-03-28  Bruno Haible  <bruno@clisp.org>
21320
21321         Fix definition of tests witness macro.
21322         * gnulib-tool (func_import): Fix definition of witness macro.
21323
21324 2010-03-28  Bruno Haible  <bruno@clisp.org>
21325
21326         Fix ioctl's protoype on glibc systems.
21327         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21328         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21329         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21330         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21331         signature. If not, arrange to replace the ioctl function.
21332         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21333         REPLACE_IOCTL.
21334         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21335         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21336         Reported by Ludovic Courtès <ludo@gnu.org>.
21337
21338 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21339
21340         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21341         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21342         made it so grep -r --include=GLOB* ... did not work.
21343
21344 2010-03-26  Jim Meyering  <meyering@redhat.com>
21345             Eric Blake  <eblake@redhat.com>
21346
21347         maint.mk: prohibit use of test's -o and -a operators
21348         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21349
21350 2010-03-28  Bruno Haible  <bruno@clisp.org>
21351
21352         Remove unused GNULIB_XYZ macro definitions.
21353         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21354         invocation.
21355
21356 2010-03-28  Bruno Haible  <bruno@clisp.org>
21357
21358         Mark privileged tests modules.
21359         * modules/idpriv-drop-tests (Status): New section.
21360         * modules/idpriv-droptemp-tests (Status): New section.
21361
21362 2010-03-28  Bruno Haible  <bruno@clisp.org>
21363
21364         Split C++ tests into separate tests modules.
21365         * modules/dirent-c++-tests: New file, extracted from
21366         modules/dirent-tests.
21367         * modules/dirent-tests: Depend on it.
21368         * modules/fcntl-h-c++-tests: New file, extracted from
21369         modules/fcntl-h-tests.
21370         * modules/fcntl-h-tests: Depend on it.
21371         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21372         * modules/glob-tests: Depend on it.
21373         * modules/iconv-h-c++-tests: New file, extracted from
21374         modules/iconv-h-tests.
21375         * modules/iconv-h-tests: Depend on it.
21376         * modules/langinfo-c++-tests: New file, extracted from
21377         modules/langinfo-tests.
21378         * modules/langinfo-tests: Depend on it.
21379         * modules/locale-c++-tests: New file, extracted from
21380         modules/locale-tests.
21381         * modules/locale-tests: Depend on it.
21382         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21383         * modules/math-tests: Depend on it.
21384         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21385         * modules/pty-tests: Depend on it.
21386         * modules/search-c++-tests: New file, extracted from
21387         modules/search-tests.
21388         * modules/search-tests: Depend on it.
21389         * modules/signal-c++-tests: New file, extracted from
21390         modules/signal-tests.
21391         * modules/signal-tests: Depend on it.
21392         * modules/spawn-c++-tests: New file, extracted from
21393         modules/spawn-tests.
21394         * modules/spawn-tests: Depend on it.
21395         * modules/stdio-c++-tests: New file, extracted from
21396         modules/stdio-tests.
21397         * modules/stdio-tests: Depend on it.
21398         * modules/stdlib-c++-tests: New file, extracted from
21399         modules/stdlib-tests.
21400         * modules/stdlib-tests: Depend on it.
21401         * modules/string-c++-tests: New file, extracted from
21402         modules/string-tests.
21403         * modules/string-tests: Depend on it.
21404         * modules/sys_ioctl-c++-tests: New file, extracted from
21405         modules/sys_ioctl-tests.
21406         * modules/sys_ioctl-tests: Depend on it.
21407         * modules/sys_select-c++-tests: New file, extracted from
21408         modules/sys_select-tests.
21409         * modules/sys_select-tests: Depend on it.
21410         * modules/sys_socket-c++-tests: New file, extracted from
21411         modules/sys_socket-tests.
21412         * modules/sys_socket-tests: Depend on it.
21413         * modules/sys_stat-c++-tests: New file, extracted from
21414         modules/sys_stat-tests.
21415         * modules/sys_stat-tests: Depend on it.
21416         * modules/sys_time-c++-tests: New file, extracted from
21417         modules/sys_time-tests.
21418         * modules/sys_time-tests: Depend on it.
21419         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21420         * modules/time-tests: Depend on it.
21421         * modules/unistd-c++-tests: New file, extracted from
21422         modules/unistd-tests.
21423         * modules/unistd-tests: Depend on it.
21424         * modules/wchar-c++-tests: New file, extracted from
21425         modules/wchar-tests.
21426         * modules/wchar-tests: Depend on it.
21427         * modules/wctype-c++-tests: New file, extracted from
21428         modules/wctype-tests.
21429         * modules/wctype-tests: Depend on it.
21430         Reported by Simon Josefsson.
21431
21432 2010-03-28  Bruno Haible  <bruno@clisp.org>
21433
21434         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21435         * gnulib-tool (func_exists_module): New function, extracted from
21436         func_verify_module.
21437         (func_verify_module): Use it.
21438         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21439         'foo' only if 'foo' exists.
21440         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21441         module.
21442
21443 2010-03-28  Bruno Haible  <bruno@clisp.org>
21444
21445         gnulib-tool: Add support for special categories of tests.
21446         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21447         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21448         (func_usage): Document them.
21449         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21450         inc_unportable_tests, inc_all_tests): New variables.
21451         (func_acceptable): Consider these variables.
21452         (func_modules_transitive_closure): Make it work when the 'Status' field
21453         consists of multiple words.
21454         (func_import): Store and restore the values of inc_cxx_tests,
21455         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21456         inc_all_tests in gnulib-comp.m4.
21457         (func_create_testdir): Set inc_all_tests to true.
21458         * doc/gnulib.texi (Extra tests modules): New section.
21459         Suggested by Jim Meyering.
21460
21461 2010-03-28  Bruno Haible  <bruno@clisp.org>
21462
21463         ansi-c++-opt: Allow turning off the C++ build by default.
21464         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21465         gl_CXX_CHOICE_DEFAULT_NO is defined.
21466         Requested by Eric Blake.
21467
21468 2010-03-28  Bruno Haible  <bruno@clisp.org>
21469
21470         unistd: Avoid #define replacements in C++ mode.
21471         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21472         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21473         setsockopt, shutdown, select): In C++, attach a warning to the function
21474         if possible, rather than #defining the symbol to a dysfunctional alias.
21475         Reported by John W. Eaton <jwe@gnu.org>.
21476
21477 2010-03-28  Bruno Haible  <bruno@clisp.org>
21478
21479         Fix link errors on mingw.
21480         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21481         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21482         $(LIBSOCKET).
21483         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21484         $(LIBSOCKET).
21485
21486 2010-03-28  Bruno Haible  <bruno@clisp.org>
21487             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21488
21489         lib-ignore: Determine different options for different compilers.
21490         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21491         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21492         Add comments.
21493         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21494         * NEWS: Mention the change.
21495
21496 2010-03-27  Bruno Haible  <bruno@clisp.org>
21497
21498         Remove unused GNULIB_XYZ macro definitions.
21499         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21500         * modules/fseek (configure.ac): Likewise.
21501         * modules/ioctl (configure.ac): Likewise.
21502         * modules/open (configure.ac): Likewise.
21503         * modules/stdlib-safer (configure.ac): Likewise.
21504
21505 2010-03-27  Bruno Haible  <bruno@clisp.org>
21506
21507         Add a remark about certain modules.
21508         * modules/malloc (Comment): New section.
21509         * modules/realloc (Comment): Likewise.
21510         * modules/sigpipe (Comment): Likewise.
21511
21512 2010-03-27  Bruno Haible  <bruno@clisp.org>
21513
21514         Resolve conflict between the two kinds of module indicators.
21515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21516         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21517         * modules/canonicalize (configure.ac): Invoke
21518         gl_MODULE_INDICATOR_FOR_TESTS.
21519         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21520         GNULIB_XYZ.
21521         * tests/test-dirent-c++.cc: Likewise.
21522         * tests/test-dirent-safer.c: Likewise.
21523         * tests/test-dup2.c: Likewise.
21524         * tests/test-fchdir.c: Likewise.
21525         * tests/test-fcntl-h-c++.cc: Likewise.
21526         * tests/test-getopt.c: Likewise.
21527         * tests/test-getopt.h: Likewise.
21528         * tests/test-langinfo-c++.cc: Likewise.
21529         * tests/test-locale-c++.cc: Likewise.
21530         * tests/test-math-c++.cc: Likewise.
21531         * tests/test-pty-c++.cc: Likewise.
21532         * tests/test-search-c++.cc: Likewise.
21533         * tests/test-signal-c++.cc: Likewise.
21534         * tests/test-spawn-c++.cc: Likewise.
21535         * tests/test-stdio-c++.cc: Likewise.
21536         * tests/test-stdlib-c++.cc: Likewise.
21537         * tests/test-string-c++.cc: Likewise.
21538         * tests/test-sys_ioctl-c++.cc: Likewise.
21539         * tests/test-sys_select-c++.cc: Likewise.
21540         * tests/test-sys_socket-c++.cc: Likewise.
21541         * tests/test-sys_stat-c++.cc: Likewise.
21542         * tests/test-sys_time-c++.cc: Likewise.
21543         * tests/test-time-c++.cc: Likewise.
21544         * tests/test-unistd-c++.cc: Likewise.
21545         * tests/test-wchar-c++.cc: Likewise.
21546         * tests/uninorm/test-u8-nfc.c: Likewise.
21547         * tests/uninorm/test-u8-nfd.c: Likewise.
21548         * tests/uninorm/test-u8-nfkc.c: Likewise.
21549         * tests/uninorm/test-u8-nfkd.c: Likewise.
21550         * tests/uninorm/test-u16-nfc.c: Likewise.
21551         * tests/uninorm/test-u16-nfd.c: Likewise.
21552         * tests/uninorm/test-u16-nfkc.c: Likewise.
21553         * tests/uninorm/test-u16-nfkd.c: Likewise.
21554         * tests/uninorm/test-u32-nfc.c: Likewise.
21555         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21556         * tests/uninorm/test-u32-nfd.c: Likewise.
21557         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21558         * tests/uninorm/test-u32-nfkc.c: Likewise.
21559         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21560         * tests/uninorm/test-u32-nfkd.c: Likewise.
21561         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21562         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21563
21564 2010-03-27  Bruno Haible  <bruno@clisp.org>
21565
21566         Distinguish two kinds of module indicators.
21567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21568         gl_MODULE_INDICATOR.
21569         (gl_MODULE_INDICATOR): New macro.
21570         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21571         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21572         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21573         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21574         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21575         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21576         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21577         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21578         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21579         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21580         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21581         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21584         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21585         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21586         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21587         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21588         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21589         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21590         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21591         * modules/cloexec (configure.ac): Likewise.
21592         * modules/getopt-gnu (configure.ac): Likewise.
21593         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21594         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21595         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21596         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21597
21598 2010-03-27  Bruno Haible  <bruno@clisp.org>
21599
21600         New module description field 'Comment'.
21601         * gnulib-tool: New option --extract-comment.
21602         (func_usage): Document it.
21603         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21604         (func_get_comment): New function.
21605         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21606
21607 2010-03-27  Bruno Haible  <bruno@clisp.org>
21608
21609         Addendum to 2010-02-07 commit.
21610         * gnulib-tool (func_usage): Document --extract-applicability option.
21611
21612 2010-03-27  Bruno Haible  <bruno@clisp.org>
21613
21614         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21615         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21616         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21617         rather than link errors.
21618
21619 2010-03-27  Bruno Haible  <bruno@clisp.org>
21620
21621         Avoid side effects from tests-related modules on the compilation of lib.
21622         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21623         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21624         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21625         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21626         macro.
21627         (func_import): Define a witness macro. Assign it a value that depends
21628         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21629         tests-related modules.
21630         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21631         Reported by Jim Meyering.
21632
21633 2010-03-27  Bruno Haible  <bruno@clisp.org>
21634
21635         Factorize common .m4 code.
21636         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21638         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21639         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21641         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21642         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21643         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21644         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21645         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21646         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21647         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21649         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21650         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21651         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21652         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21653         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21655         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21656         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21657         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21658         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21659         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21660         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21661         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21662         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21663         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21665         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21666         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21667         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21668
21669 2010-03-27  Bruno Haible  <bruno@clisp.org>
21670
21671         Fix a compilation error on Cygwin with g++ >= 4.3.
21672         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21673         if it is undefined or if we alias it to chmod.
21674         (lstat): Don't warn about the use of this function if it is undefined
21675         or if we alias it to stat.
21676         Reported by Simon Josefsson.
21677
21678 2010-03-27  Bruno Haible  <bruno@clisp.org>
21679
21680         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21681         * modules/getlogin (configure.ac): Update.
21682
21683         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21684         * modules/getlogin_r (configure.ac): Update.
21685
21686         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21688         * modules/inet_ntop (configure.ac): Update.
21689
21690         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21691         * modules/inet_pton (configure.ac): Update.
21692
21693         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21694         * modules/mbslen (configure.ac): Update.
21695
21696         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21697         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21698         * modules/forkpty (configure.ac): Update.
21699         * modules/openpty (configure.ac): Update.
21700
21701 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21702
21703         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21704         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21705
21706 2010-03-25  Eric Blake  <eblake@redhat.com>
21707
21708         maint: use pragma consistently across replacement headers
21709         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21710         * lib/dirent.in.h (system_header): Likewise.
21711         * lib/errno.in.h (system_header): Likewise.
21712         * lib/float.in.h (system_header): Likewise.
21713         * lib/getopt.in.h (system_header): Likewise.
21714         * lib/iconv.in.h (system_header): Likewise.
21715         * lib/inttypes.in.h (system_header): Likewise.
21716         * lib/langinfo.in.h (system_header): Likewise.
21717         * lib/locale.in.h (system_header): Likewise.
21718         * lib/math.in.h (system_header): Likewise.
21719         * lib/netdb.in.h (system_header): Likewise.
21720         * lib/netinet_in.in.h (system_header): Likewise.
21721         * lib/pty.in.h (system_header): Likewise.
21722         * lib/sched.in.h (system_header): Likewise.
21723         * lib/se-selinux.in.h (system_header): Likewise.
21724         * lib/search.in.h (system_header): Likewise.
21725         * lib/spawn.in.h (system_header): Likewise.
21726         * lib/stdarg.in.h (system_header): Likewise.
21727         * lib/stdint.in.h (system_header): Likewise.
21728         * lib/string.in.h (system_header): Likewise.
21729         * lib/strings.in.h (system_header): Likewise.
21730         * lib/sys_file.in.h (system_header): Likewise.
21731         * lib/sys_ioctl.in.h (system_header): Likewise.
21732         * lib/sys_socket.in.h (system_header): Likewise.
21733         * lib/sys_times.in.h (system_header): Likewise.
21734         * lib/sys_utsname.in.h (system_header): Likewise.
21735         * lib/sys_wait.in.h (system_header): Likewise.
21736         * lib/sysexits.in.h (system_header): Likewise.
21737         * lib/unistd.in.h (system_header): Likewise.
21738         * lib/wctype.in.h (system_header): Likewise.
21739
21740         arpa/inet: fix mingw compilation warning
21741         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21742         Reported by Matthew Bolte.
21743
21744 2010-03-25  Bruno Haible  <bruno@clisp.org>
21745
21746         Avoid collision between gnulib wrapper and libintl wrapper.
21747         * lib/printf.c (printf): Don't define if a printf wrapper is already
21748         defined in intl/printf.c.
21749         Reported by Michel Boaventura <michel@michelboaventura.com>.
21750
21751 2010-03-25  Bruno Haible  <bruno@clisp.org>
21752
21753         Use ANSI C.
21754         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21755
21756 2010-03-25  Bruno Haible  <bruno@clisp.org>
21757
21758         Minor formatting changes.
21759         * lib/acosl.c: Insert space before function argument list.
21760         * lib/argz.c: Likewise.
21761         * lib/asinl.c: Likewise.
21762         * lib/expl.c: Likewise.
21763         * lib/gen-uni-tables.c: Likewise.
21764         * lib/gettext.h: Likewise.
21765         * lib/glthread/lock.h: Likewise.
21766         * lib/tanl.c: Likewise.
21767         * lib/uniname/uniname.c: Likewise.
21768         * tests/test-idpriv-drop.c: Likewise.
21769         * tests/test-idpriv-droptemp.c: Likewise.
21770         * tests/test-lock.c: Likewise.
21771         * tests/test-tls.c: Likewise.
21772         * lib/argp-help.c: Insert space before function-like macro argument
21773         list.
21774         * lib/memcmp.c: Likewise.
21775         * tests/test-base64.c: Likewise.
21776         * lib/localename.c: Insert space before sizeof's argument list.
21777         * lib/safe-alloc.h: Likewise.
21778         * lib/file-set.h: Insert space before macro argument list.
21779         * tests/test-argp.c: Likewise.
21780         * lib/argp-namefrob.h: Insert space before function parameter list.
21781         * lib/getaddrinfo.c: Likewise.
21782         * lib/netdb.in.h: Likewise.
21783         * lib/parse-duration.h: Likewise.
21784         * lib/parse-duration.c: Likewise.
21785         * lib/poll.c: Likewise.
21786         * lib/select.c: Likewise.
21787         * lib/trim.h: Likewise.
21788         * tests/test-usleep.c: Likewise.
21789         * lib/ldexpl.c: Insert space before function parameter list and before
21790         function argument list.
21791         * lib/logl.c: Likewise.
21792         * lib/sqrtl.c: Likewise.
21793         * lib/trim.c: Likewise.
21794         * lib/cosl.c: Use GNU style indentation. Insert space before function
21795         argument list.
21796         * lib/sinl.c: Likewise.
21797         * lib/tsearch.c: Insert space after 'for'.
21798         Reported by Jim Meyering.
21799
21800 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21801
21802         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21803         config header before grepping, as it's not present before
21804         autoreconf/configure are run.  Reported by Simon Josefsson.
21805
21806 2010-03-23  Bruno Haible  <bruno@clisp.org>
21807
21808         pt_chown: Make it work with automake < 1.11.
21809         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21810         Reported by Simon Josefsson.
21811
21812 2010-03-23  Bruno Haible  <bruno@clisp.org>
21813
21814         pt_chown: Don't depend on GPLed modules.
21815         * lib/pt_chown.c: Don't include idpriv.h.
21816         (main): Don't drop privileges.
21817         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21818         Reported by Simon Josefsson.
21819
21820 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21821
21822         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21823         suggestions from karl@freefriends.org (Karl Berry).
21824
21825 2010-03-22  Eric Blake  <eblake@redhat.com>
21826
21827         gethostname: further tweaks
21828         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21829         are overriding gethostname.
21830         Suggested by Bruno Haible.
21831
21832 2010-03-21  Bruno Haible  <bruno@clisp.org>
21833
21834         Fix comments.
21835         * lib/forkpty.c (rpl_forkpty): Fix comment.
21836         * lib/openpty.c (rpl_openpty): Likewise.
21837         Reported by Eric Blake.
21838
21839 2010-03-22  Eric Blake  <eblake@redhat.com>
21840
21841         gethostname: fix build on mingw
21842         * lib/unistd.in.h (includes): Work around fact that mingw
21843         <winsock2.h> re-includes <unistd.h>, by avoiding any
21844         redeclarations if we are being included by <winsock2.h>.
21845         Reported by Matthias Bolte.
21846
21847 2010-03-21  Bruno Haible  <bruno@clisp.org>
21848
21849         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21850         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21851         modifications.
21852         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21853         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21854         provide the replacement.
21855         * modules/forkpty (Depends-on): Add openpty, login_tty.
21856         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21857         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21858         * doc/glibc-functions/forkpty.texi: More supported platforms.
21859         * config/srclist.txt: Add forkpty.c (commented).
21860
21861 2010-03-21  Bruno Haible  <bruno@clisp.org>
21862
21863         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21864         (Makefile.am): Verify that PTY_LIB is defined.
21865
21866         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21867
21868 2010-03-21  Bruno Haible  <bruno@clisp.org>
21869
21870         Tests for module 'login_tty'.
21871         * modules/login_tty-tests: New file.
21872         * tests/test-login_tty.c: New file.
21873
21874         New module 'login_tty'.
21875         * lib/login_tty.c: New file.
21876         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21877         * modules/login_tty: New file.
21878         * doc/glibc-functions/login_tty.texi: Mention the new module.
21879
21880 2010-03-21  Bruno Haible  <bruno@clisp.org>
21881
21882         login_tty: Documentation.
21883         * doc/glibc-functions/login_tty.texi: New file.
21884         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21885
21886 2010-03-21  Bruno Haible  <bruno@clisp.org>
21887
21888         pty: Consistent macro naming.
21889         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21890         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21891         * modules/pty (configure.ac): Update.
21892
21893 2010-03-21  Bruno Haible  <bruno@clisp.org>
21894
21895         Tests for openpty: Make stricter.
21896         * tests/test-openpty.c (main): Add test of canonical processing and
21897         erase.
21898         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21899
21900         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21901         * lib/openpty.c (openpty): New replacement function.
21902         * lib/pty.in.h: Include <termios.h>.
21903         (openpty): Update declaration. Add comments.
21904         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21905         is not declared, arrange to provide the replacement. Check for _getpty
21906         and posix_openpt.
21907         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21908         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21909         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21910         * modules/pty-tests (test_pty_c___LDADD): New variable.
21911         * doc/glibc-functions/openpty.texi: More supported platforms.
21912
21913 2010-03-21  Bruno Haible  <bruno@clisp.org>
21914
21915         setenv: Tweaks.
21916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21917         the test program.
21918         * doc/posix-functions/setenv.texi: Update platforms list.
21919
21920 2010-03-21  Bruno Haible  <bruno@clisp.org>
21921
21922         New module 'unlockpt'.
21923         * lib/unlockpt.c: New file, from glibc with modifications.
21924         * m4/unlockpt.m4: New file.
21925         * modules/unlockpt: New file.
21926         * lib/stdlib.in.h (unlockpt): New declaration.
21927         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21928         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21929         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21930         HAVE_UNLOCKPT.
21931         * doc/posix-functions/unlockpt.texi: Mention the new module.
21932         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21933         * config/srclist.txt: Add unlockpt.c (commented).
21934
21935 2010-03-21  Jim Meyering  <meyering@redhat.com>
21936
21937         maint.mk: prohibit inclusion of "intprops.h" without use
21938         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21939
21940 2010-03-21  Bruno Haible  <bruno@clisp.org>
21941
21942         New module 'grantpt'.
21943         * lib/grantpt.c: New file, from glibc with modifications.
21944         * m4/grantpt.m4: New file.
21945         * modules/grantpt: New file.
21946         * lib/stdlib.in.h (grantpt): New declaration.
21947         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21948         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21949         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21950         HAVE_GRANTPT.
21951         * doc/posix-functions/grantpt.texi: Mention the new module.
21952         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21953         * config/srclist.txt: Add grantpt.c (commented).
21954
21955 2010-03-21  Bruno Haible  <bruno@clisp.org>
21956
21957         New module 'pt_chown'.
21958         * lib/pt_chown.c: New file, from glibc with modifications.
21959         * lib/pty-private.h: New file, from glibc with modifications.
21960         * modules/pt_chown: New file.
21961         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21962
21963 2010-03-21  Bruno Haible  <bruno@clisp.org>
21964
21965         Tests for module 'ptsname'.
21966         * modules/ptsname-tests: New file.
21967         * tests/test-ptsname.c: New file.
21968
21969         New module 'ptsname'.
21970         * lib/ptsname.c: New file, from glibc with modifications.
21971         * m4/ptsname.m4: New file.
21972         * modules/ptsname: New file.
21973         * lib/stdlib.in.h (ptsname): New declaration.
21974         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21975         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21976         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21977         HAVE_PTSNAME.
21978         * doc/posix-functions/ptsname.texi: Mention the new module.
21979         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21980         * config/srclist.txt: Add ptsname.c (commented).
21981
21982 2010-03-21  Bruno Haible  <bruno@clisp.org>
21983
21984         Tests for module 'ttyname_r'.
21985         * modules/ttyname_r-tests: New file.
21986         * tests/test-ttyname_r.c: New file.
21987
21988         New module 'ttyname_r'.
21989         * lib/ttyname_r.c: New file.
21990         * m4/ttyname_r.m4: New file.
21991         * modules/ttyname_r: New file.
21992         * lib/unistd.in.h (ttyname_r): New declaration.
21993         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21994         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21995         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21996         HAVE_TTYNAME_R.
21997         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21998         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21999
22000 2010-03-20  Bruno Haible  <bruno@clisp.org>
22001
22002         signal: Undefine macro definitions in C++ mode.
22003         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22004         sigfillset): Undefine macro definitions from the system header in C++
22005         mode.
22006         Reported by John W. Eaton <jwe@gnu.org>.
22007
22008 2010-03-20  Bruno Haible  <bruno@clisp.org>
22009
22010         Ensure no #include statements inside extern "C" { ... }.
22011         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22012         contain #include statements.
22013         * lib/time.in.h: Likewise.
22014
22015 2010-03-20  Bruno Haible  <bruno@clisp.org>
22016
22017         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22018         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22019         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22020         Reported by John W. Eaton <jwe@gnu.org>.
22021
22022 2010-03-20  Bruno Haible  <bruno@clisp.org>
22023
22024         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22025         Reported by Jim Meyering.
22026
22027 2010-03-20  Bruno Haible  <bruno@clisp.org>
22028
22029         pipe: Set errno upon failure.
22030         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22031         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22032         errno value in error message.
22033
22034 2010-03-20  Bruno Haible  <bruno@clisp.org>
22035             Jim Meyering  <meyering@redhat.com>
22036
22037         lchown: Avoid "unused variable" warning.
22038         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22039
22040 2010-03-20  Bruno Haible  <bruno@clisp.org>
22041
22042         Work around unlink() bug on MacOS X 10.5.6.
22043         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22044         attempting to unlink a parent directory.
22045         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22046         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22047         activate for the replacement function.
22048         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22049
22050 2010-03-20  Bruno Haible  <bruno@clisp.org>
22051
22052         Fix link errors on Solaris 8.
22053         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22054         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22055
22056 2010-03-19  Jim Meyering  <meyering@redhat.com>
22057
22058         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22059         The _LIBC implementation of build_range_exp correctly honors the
22060         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22061         However, the non-_LIBC implementation would ignore that syntax-bit
22062         flag and return REG_ERANGE unconditionally.
22063         This change makes it honor that flag.
22064         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22065         Make two pointer parameters "const".
22066         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22067         (parse_bracket_exp): Update caller.
22068
22069         regex.m4: correct the reversed range endpoint ([b-a]) test
22070         * m4/regex.m4: When requiring that [b-a] evoke failure,
22071         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22072         test pass once again for x86-based systems.
22073
22074 2010-03-19  Bruno Haible  <bruno@clisp.org>
22075
22076         scandir: Fix link error on Solaris 8.
22077         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22078         macros.
22079
22080 2010-03-19  Bruno Haible  <bruno@clisp.org>
22081
22082         getusershell: Fix documentation.
22083         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22084         module.
22085         * doc/glibc-functions/setusershell.texi: Likewise.
22086
22087         getusershell: Provide declaration, missing on Solaris 9.
22088         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22089         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22090         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22091         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22093         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22094         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22095         HAVE_GETUSERSHELL.
22096         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22097
22098 2010-03-19  Bruno Haible  <bruno@clisp.org>
22099
22100         wctype: Provide iswblank function.
22101         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22102         exists and is fine.
22103         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22104         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22105         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22106         * doc/posix-functions/iswblank.texi: Update.
22107
22108 2010-03-19  Bruno Haible  <bruno@clisp.org>
22109
22110         Tests of module 'pty' in C++ mode.
22111         * modules/pty-tests: New file.
22112         * tests/test-pty-c++.cc: New file.
22113         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22114
22115 2010-03-19  Eric Blake  <eblake@redhat.com>
22116
22117         logb: fix documentation
22118         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22119         1.5 declaration bug.
22120
22121         forkpty, openpty: prefer glibc's const-safe prototype
22122         * lib/forkpty.c (rpl_forkpty): New file.
22123         * lib/openpty.c (rpl_openpty): Likewise.
22124         * modules/forkpty (Files): Distribute it.
22125         * modules/openpty (Files): Likewise.
22126         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22127         check...
22128         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22129         replacement for for non-const BSD signature.
22130         * modules/pty (Makefile.am): Substitute witnesses.
22131         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22132         * tests/test-forkpty.c: Update signature check.
22133         * tests/test-openpty.c: Likewise.
22134         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22135         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22136
22137         forkpty, openpty: split functions into new modules
22138         * modules/pty (Makefile.am): Substitute new witnesses.
22139         (Libraries): Move library detection...
22140         * modules/forkpty: ...into new module.
22141         * modules/openpty: Another new module.
22142         * modules/pty-tests: Rename and split...
22143         * modules/forkpty-tests: ...to this...
22144         * modules/openpty-tests: ...and this.
22145         * tests/test-pty.c: Rename and split...
22146         * tests/test-forkpty.c: ...to this...
22147         * tests/test-openpty.c: ...and this.
22148         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22149         (gl_PTY): Split library searching...
22150         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22151         (gl_FORKPTY, gl_OPENPTY): New macros.
22152         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22153         * NEWS: Mention the split.
22154         * MODULES.html.sh (Misc): Document the modules.
22155         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22156         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22157
22158         pty: improve replacement header
22159         * lib/pty.in.h: New file.
22160         * modules/pty (Files): Ship it.
22161         (Makefile.am): Always build replacement.
22162         * m4/pty.m4: Rename...
22163         * m4/pty_h.m4: ...to this.
22164         (gl_PTY): Modernize setting of witness macros; update check of
22165         forkpty to take proper advantage of cache.
22166         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22167
22168         getopt: avoid compiler warning
22169         * lib/getopt.c (attribute_hidden): Remove unused macro.
22170
22171 2010-03-18  Bruno Haible  <bruno@clisp.org>
22172
22173         Fix link errors on Solaris 8.
22174         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22175         * modules/search-tests (test_search_c___LDADD): Likewise.
22176         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22177         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22178         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22179         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22180         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22181         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22182         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22183
22184 2010-03-18  Bruno Haible  <bruno@clisp.org>
22185
22186         Fix bug introduced on 2010-03-14.
22187         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22188         (gl_SPAWN_H): Require it.
22189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22190         Reported by Simon Josefsson.
22191
22192 2010-03-18  Bruno Haible  <bruno@clisp.org>
22193
22194         Fix typo introduced on 2009-12-31.
22195         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22196         posix_spawn_file_actions_adddup2.
22197
22198 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22199         and Eric Blake  <eblake@redhat.com>
22200
22201         test-vc-list-files-git: make more robust
22202         * tests/test-vc-list-files-git.sh: Unset problematic environment
22203         variables.  Chain commands together.
22204
22205 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22206
22207         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22208         `AC_CHECK_DECL' invocation.
22209
22210 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22211
22212         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22213         appears before executable statements. Suggested by Petr Sumbera
22214         <Petr.Sumbera@Sun.COM>.
22215
22216 2010-03-14  Bruno Haible  <bruno@clisp.org>
22217
22218         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22219         portability problems. Instead use a simpler test.
22220         (main): Check that invalid arguments are rejected only on Linux.
22221
22222 2010-03-14  Bruno Haible  <bruno@clisp.org>
22223
22224         Fix bug introduced on 2009-12-31.
22225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22226         gl_PREREQ_SYS_H_WINSOCK2 always.
22227         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22228         SYS_SOCKET_H variable.
22229         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22230         Update comments.
22231         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22232         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22233         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22234         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22235         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22236
22237 2010-03-14  Bruno Haible  <bruno@clisp.org>
22238
22239         Fix values returned by sinl, cosl.
22240         * lib/trigl.h: Add specification comments.
22241         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22242         that combines the values from the precomputed table with the values of
22243         the Chebyshev polynomials.
22244
22245 2010-03-14  Bruno Haible  <bruno@clisp.org>
22246
22247         Fix compilation error when modules 'posix_spawn[p]' are not used.
22248         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22250
22251 2010-03-14  Bruno Haible  <bruno@clisp.org>
22252
22253         Fix compilation error on mingw when module 'time_r' is not used.
22254         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22255         is 1.
22256         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22257         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22258         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22260
22261 2010-03-14  Bruno Haible  <bruno@clisp.org>
22262
22263         Fix compilation error with Sun C.
22264         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22265         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22266         instead of GCC specific ULONG_LONG_MAX.
22267         * lib/xstrtoll.c: Likewise.
22268         * lib/xstrtoull.c: Likewise.
22269
22270 2010-03-13  Bruno Haible  <bruno@clisp.org>
22271
22272         Allow the user to disable C++ code and tests.
22273         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22274         (gl_PROG_ANSI_CXX): Require it.
22275
22276 2010-03-13  Bruno Haible  <bruno@clisp.org>
22277
22278         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22279         cases.
22280
22281 2010-03-13  Bruno Haible  <bruno@clisp.org>
22282
22283         Test that gnulib does not break the standard C++ headers.
22284         * tests/test-locale-c++2.cc: New file.
22285         * modules/locale-tests (Files): Add it.
22286         (Makefile.am): Compile it for test-locale-c++.
22287         * tests/test-math-c++2.cc: New file.
22288         * modules/math-tests (Files): Add it.
22289         (Makefile.am): Compile it for test-math-c++.
22290         * tests/test-signal-c++2.cc: New file.
22291         * modules/signal-tests (Files): Add it.
22292         (Makefile.am): Compile it for test-signal-c++.
22293         * tests/test-stdio-c++2.cc: New file.
22294         * modules/stdio-tests (Files): Add it.
22295         (Makefile.am): Compile it for test-stdio-c++.
22296         * tests/test-stdlib-c++2.cc: New file.
22297         * modules/stdlib-tests (Files): Add it.
22298         (Makefile.am): Compile it for test-stdlib-c++.
22299         * tests/test-string-c++2.cc: New file.
22300         * modules/string-tests (Files): Add it.
22301         (Makefile.am): Compile it for test-string-c++.
22302         * tests/test-time-c++2.cc: New file.
22303         * modules/time-tests (Files): Add it.
22304         (Makefile.am): Compile it for test-time-c++.
22305         Reported by John W. Eaton <jwe@gnu.org>.
22306
22307 2010-03-13  Bruno Haible  <bruno@clisp.org>
22308
22309         * gnulib-tool (func_usage): Clarify which options are available for
22310         --create-testdir and --create-megatestdir.
22311
22312 2010-03-13  Bruno Haible  <bruno@clisp.org>
22313
22314         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22315         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22316         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22317         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22318         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22319         when appropriate.
22320         Reported by Jim Meyering.
22321
22322 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22323
22324         * gnulib-tool (func_import): Explain origin of code.
22325
22326 2010-03-12  Bruno Haible  <bruno@clisp.org>
22327
22328         Fix problem with automake's definition of CXXLINK.
22329         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22330         Reported by Simon Josefsson and Ludovic Courtès.
22331
22332 2010-03-12  Bruno Haible  <bruno@clisp.org>
22333
22334         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22335         stable releases.
22336
22337 2010-03-11  Bruno Haible  <bruno@clisp.org>
22338
22339         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22340         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22341         whether the system provides one variant or multiple variants of the
22342         function.
22343         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22344         C++ compilers.
22345         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22346         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22347         Reported by Jim Meyering.
22348
22349 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22350
22351         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22352
22353 2010-03-08  Bruno Haible  <bruno@clisp.org>
22354
22355         gnulib-tool: Add support for --libtool in --create-testdir.
22356         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22357         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22358
22359 2010-03-08  Eric Blake  <eblake@redhat.com>
22360
22361         gnulib-tool.texi: mention possibility of git submodule
22362         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22363         submodules.
22364         * doc/.gitignore: Ignore another generated file.
22365
22366 2010-03-08  Karl Berry  <karl@gnu.org>
22367
22368         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22369         of committing gnulib files while skipping others.
22370
22371 2010-03-07  Bruno Haible  <bruno@clisp.org>
22372
22373         Tests of module 'wctype' in C++ mode.
22374         * tests/test-wctype-c++.cc: New file.
22375         * modules/wctype-tests (Files): Add it and tests/signature.h.
22376         (Depends-on): Add ansi-c++-opt.
22377         (Makefile.am): Arrange to compile and run test-wctype-c++.
22378
22379         Tests of module 'wchar' in C++ mode.
22380         * tests/test-wchar-c++.cc: New file.
22381         * modules/wchar-tests (Files): Add it and tests/signature.h.
22382         (Depends-on): Add ansi-c++-opt.
22383         (Makefile.am): Arrange to compile and run test-wchar-c++.
22384         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22385         gl_MODULE_INDICATOR.
22386
22387         Tests of module 'unistd' in C++ mode.
22388         * tests/test-unistd-c++.cc: New file.
22389         * modules/unistd-tests (Files): Add it and tests/signature.h.
22390         (Depends-on): Add ansi-c++-opt.
22391         (Makefile.am): Arrange to compile and run test-unistd-c++.
22392         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22393         gl_MODULE_INDICATOR.
22394
22395         Tests of module 'time' in C++ mode.
22396         * tests/test-time-c++.cc: New file.
22397         * modules/time-tests (Files): Add it and tests/signature.h.
22398         (Depends-on): Add ansi-c++-opt.
22399         (Makefile.am): Arrange to compile and run test-time-c++.
22400         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22401
22402         Tests of module 'sys_time' in C++ mode.
22403         * tests/test-sys_time-c++.cc: New file.
22404         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22405         (Depends-on): Add ansi-c++-opt.
22406         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22407         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22408         gl_MODULE_INDICATOR.
22409
22410         Tests of module 'sys_stat' in C++ mode.
22411         * tests/test-sys_stat-c++.cc: New file.
22412         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22413         (Depends-on): Add ansi-c++-opt.
22414         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22415         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22416         gl_MODULE_INDICATOR.
22417
22418         Tests of module 'sys_socket' in C++ mode.
22419         * tests/test-sys_socket-c++.cc: New file.
22420         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22421         (Depends-on): Add ansi-c++-opt.
22422         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22424         gl_MODULE_INDICATOR.
22425
22426         Tests of module 'sys_select' in C++ mode.
22427         * tests/test-sys_select-c++.cc: New file.
22428         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22429         (Depends-on): Add ansi-c++-opt.
22430         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22431         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22432         gl_MODULE_INDICATOR.
22433
22434         Tests of module 'sys_ioctl' in C++ mode.
22435         * tests/test-sys_ioctl-c++.cc: New file.
22436         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22437         (Depends-on): Add ansi-c++-opt.
22438         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22439         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22440         gl_MODULE_INDICATOR.
22441
22442         Tests of module 'string' in C++ mode.
22443         * tests/test-string-c++.cc: New file.
22444         * modules/string-tests (Files): Add it and tests/signature.h.
22445         (Depends-on): Add ansi-c++-opt.
22446         (Makefile.am): Arrange to compile and run test-string-c++.
22447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22448         gl_MODULE_INDICATOR.
22449
22450         Tests of module 'stdlib' in C++ mode.
22451         * tests/test-stdlib-c++.cc: New file.
22452         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22453         (Depends-on): Add ansi-c++-opt.
22454         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22455         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22456         gl_MODULE_INDICATOR.
22457
22458         Tests of module 'stdio' in C++ mode.
22459         * tests/test-stdio-c++.cc: New file.
22460         * modules/stdio-tests (Files): Add it and tests/signature.h.
22461         (Depends-on): Add ansi-c++-opt.
22462         (Makefile.am): Arrange to compile and run test-stdio-c++.
22463         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22464         gl_MODULE_INDICATOR.
22465
22466         Tests of module 'spawn' in C++ mode.
22467         * tests/test-spawn-c++.cc: New file.
22468         * modules/spawn-tests (Files): Add it and tests/signature.h.
22469         (Depends-on): Add ansi-c++-opt.
22470         (Makefile.am): Arrange to compile and run test-spawn-c++.
22471         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22472         gl_MODULE_INDICATOR.
22473
22474         Tests of module 'signal' in C++ mode.
22475         * tests/test-signal-c++.cc: New file.
22476         * modules/signal-tests (Files): Add it and tests/signature.h.
22477         (Depends-on): Add ansi-c++-opt.
22478         (Makefile.am): Arrange to compile and run test-signal-c++.
22479         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22480         gl_MODULE_INDICATOR.
22481
22482         Tests of module 'search' in C++ mode.
22483         * tests/test-search-c++.cc: New file.
22484         * modules/search-tests (Files): Add it and tests/signature.h.
22485         (Depends-on): Add ansi-c++-opt.
22486         (Makefile.am): Arrange to compile and run test-search-c++.
22487         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22488         gl_MODULE_INDICATOR.
22489
22490         Tests of module 'math' in C++ mode.
22491         * tests/test-math-c++.cc: New file.
22492         * modules/math-tests (Files): Add it and tests/signature.h.
22493         (Depends-on): Add ansi-c++-opt.
22494         (Makefile.am): Arrange to compile and run test-math-c++.
22495         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22496
22497         Tests of module 'locale' in C++ mode.
22498         * tests/test-locale-c++.cc: New file.
22499         * modules/locale-tests (Files): Add it and tests/signature.h.
22500         (Depends-on): Add ansi-c++-opt.
22501         (Makefile.am): Arrange to compile and run test-locale-c++.
22502         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22503         gl_MODULE_INDICATOR.
22504
22505         Tests of module 'langinfo' in C++ mode.
22506         * tests/test-langinfo-c++.cc: New file.
22507         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22508         (Depends-on): Add ansi-c++-opt.
22509         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22510         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22511         gl_MODULE_INDICATOR.
22512
22513         Tests of module 'iconv-h' in C++ mode.
22514         * tests/test-iconv-h-c++.cc: New file.
22515         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22516         (Depends-on): Add ansi-c++-opt.
22517         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22518
22519         Tests of module 'glob' in C++ mode.
22520         * tests/test-glob-c++.cc: New file.
22521         * modules/glob-tests (Files): Add it.
22522         (Depends-on): Add ansi-c++-opt.
22523         (Makefile.am): Arrange to compile and run test-glob-c++.
22524
22525         Tests of module 'fcntl-h' in C++ mode.
22526         * tests/test-fcntl-h-c++.cc: New file.
22527         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22528         (Depends-on): Add ansi-c++-opt.
22529         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22530         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22531         gl_MODULE_INDICATOR.
22532
22533         Tests of module 'dirent' in C++ mode.
22534         * tests/test-dirent-c++.cc: New file.
22535         * modules/dirent-tests (Files): Add it and tests/signature.h.
22536         (Depends-on): Add ansi-c++-opt.
22537         (Makefile.am): Arrange to compile and run test-dirent-c++.
22538         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22539         gl_MODULE_INDICATOR.
22540
22541         New module 'ansi-c++-opt'.
22542         * modules/ansi-c++-opt: New file.
22543         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22544
22545         Document C++ namespace mode.
22546         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22547
22548         wctype: Avoid #define replacements in C++ mode.
22549         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22550         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22551         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22552         In C++, define a namespaced alias symbol.
22553         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22554         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22555         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22556         rule.
22557
22558         wchar: Avoid #define replacements in C++ mode.
22559         * lib/wchar.in.h: Include c++defs.h.
22560         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22561         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22562         symbol.
22563         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22564         * modules/wchar (Depends-on): Add c++defs.
22565         (Makefile.am): Update wchar.h rule.
22566
22567         unistd: Avoid #define replacements in C++ mode.
22568         * lib/unistd.in.h: Include c++defs.h.
22569         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22570         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22571         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22572         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22573         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22574         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22575         symbol.
22576         (environ): Update.
22577         * modules/unistd (Depends-on): Add c++defs.
22578         (Makefile.am): Update unistd.h rule.
22579
22580         time: Avoid #define replacements in C++ mode.
22581         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22582         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22583         define a namespaced alias symbol.
22584         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22585         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22586         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22587         * modules/time (Depends-on): Add c++defs, warn-on-use.
22588         (Makefile.am): Update time.h rule.
22589         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22590         * modules/nanosleep (configure.ac): Likewise.
22591         * modules/strptime (configure.ac): Likewise.
22592         * modules/timegm (configure.ac): Likewise.
22593
22594         sys_time: Avoid #define replacements in C++ mode.
22595         * lib/sys_time.in.h: Include c++defs.h.
22596         (gettimeofday): In C++, define a namespaced alias symbol.
22597         * modules/sys_time (Depends-on): Add c++defs.
22598         (Makefile.am): Update sys/time.h rule.
22599
22600         sys_stat: Avoid #define replacements in C++ mode.
22601         * lib/sys_stat.in.h: Include c++defs.h.
22602         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22603         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22604         namespaced alias symbol.
22605         In C++, define a namespaced alias symbol.
22606         * modules/sys_stat (Depends-on): Add c++defs.
22607         (Makefile.am): Update sys/stat.h rule.
22608
22609         sys_socket: Avoid #define replacements in C++ mode.
22610         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22611         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22612         definitions also when the system has a <sys/socket.h>.
22613         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22614         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22615         In C++, define a namespaced alias symbol.
22616         * modules/sys_socket (Depends-on): Add c++defs.
22617         (Makefile.am): Update sys/socket.h rule.
22618
22619         sys_select: Avoid #define replacements in C++ mode.
22620         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22621         definitions also when the system has a <sys/select.h>.
22622         (select): In C++, define a namespaced alias symbol.
22623         * modules/sys_select (Depends-on): Add c++defs.
22624         (Makefile.am): Update sys/select.h rule.
22625
22626         sys_ioctl: Avoid #define replacements in C++ mode.
22627         * lib/sys_ioctl.in.h: Include c++defs.h.
22628         (ioctl): In C++, define a namespaced alias symbol.
22629         * modules/sys_ioctl (Depends-on): Add c++defs.
22630         (Makefile.am): Update sys/ioctl.h rule.
22631
22632         string: Avoid #define replacements in C++ mode.
22633         * lib/string.in.h: Include c++defs.h.
22634         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22635         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22636         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22637         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22638         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22639         * modules/string (Depends-on): Add c++defs.
22640         (Makefile.am): Update string.h rule.
22641
22642         stdlib: Avoid #define replacements in C++ mode.
22643         * lib/stdlib.in.h: Include c++defs.h.
22644         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22645         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22646         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22647         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22648         symbol.
22649         * modules/stdlib (Depends-on): Add c++defs.
22650         (Makefile.am): Update stdlib.h rule.
22651
22652         stdio: Avoid #define replacements in C++ mode.
22653         * lib/stdio.in.h: Include c++defs.h.
22654         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22655         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22656         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22657         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22658         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22659         namespaced alias symbol.
22660         * modules/stdio (Depends-on): Add c++defs.
22661         (Makefile.am): Update stdio.h rule.
22662
22663         spawn: Avoid #define replacements in C++ mode.
22664         * lib/spawn.in.h: Include c++defs.h.
22665         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22666         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22667         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22668         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22669         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22670         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22671         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22672         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22673         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22674         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22675         In C++, define a namespaced alias symbol.
22676         * modules/spawn (Depends-on): Add c++defs.
22677         (Makefile.am): Update spawn.h rule.
22678
22679         signal: Avoid #define replacements in C++ mode.
22680         * lib/signal.in.h: Include c++defs.h.
22681         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22682         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22683         namespaced alias symbol.
22684         * modules/signal (Depends-on): Add c++defs.
22685         (Makefile.am): Update signal.h rule.
22686
22687         search: Avoid #define replacements in C++ mode.
22688         * lib/search.in.h: Include c++defs.h.
22689         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22690         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22691         symbol.
22692         * modules/search (Depends-on): Add c++defs.
22693         (Makefile.am): Update search.h rule.
22694
22695         math: Avoid #define replacements in C++ mode.
22696         * lib/math.in.h: Include c++defs.h.
22697         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22698         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22699         trunc, truncl): In C++, define a namespaced alias symbol.
22700         * modules/math (Depends-on): Add c++defs.
22701         (Makefile.am): Update math.h rule.
22702
22703         locale: Avoid #define replacements in C++ mode.
22704         * lib/locale.in.h: Include c++defs.h.
22705         (duplocale): In C++, define a namespaced alias symbol.
22706         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22707         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22708         * modules/locale (Depends-on): Add c++defs.
22709         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22710
22711         langinfo: Avoid #define replacements in C++ mode.
22712         * lib/langinfo.in.h: Include c++defs.h.
22713         (nl_langinfo): In C++, define a namespaced alias symbol.
22714         * modules/langinfo (Depends-on): Add c++defs.
22715         (Makefile.am): Update langinfo.h rule.
22716
22717         iconv-h: Avoid #define replacements in C++ mode.
22718         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22719         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22720         symbol.
22721         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22722         whenever iconv is present.
22723         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22724         (Makefile.am): Update iconv.h rule.
22725
22726         glob: Avoid #define replacements in C++ mode.
22727         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22728         (_gl_glob_errfunc_fn): New type.
22729         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22730         symbol.
22731         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22732         (Makefile.am): Update glob.h rule.
22733
22734         fcntl-h: Avoid #define replacements in C++ mode.
22735         * lib/fcntl.in.h: Include c++defs.h.
22736         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22737         * modules/fcntl-h (Depends-on): Add c++defs.
22738         (Makefile.am): Update fcntl.h rule.
22739
22740         dirent: Avoid #define replacements in C++ mode.
22741         * lib/dirent.in.h: Include c++defs.h.
22742         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22743         namespaced alias symbol.
22744         (dirfd): Update declaration.
22745         * modules/dirent (Depends-on): Add c++defs.
22746         (Makefile.am): Update dirent.h rule.
22747
22748         ctype: Make it usable in C++ code.
22749         * lib/ctype.in.h: Include c++defs.h.
22750         (isblank): Declare as extern "C".
22751         * modules/ctype (Depends-on): Add c++defs.
22752         (Makefile.am): Update ctype.h rule.
22753
22754         New module 'c++defs'.
22755         * modules/c++defs: New file.
22756         * build-aux/c++defs.h: New file.
22757         Reported by John W. Eaton <jwe@gnu.org>.
22758
22759 2010-03-07  Bruno Haible  <bruno@clisp.org>
22760
22761         logb: Provide missing declaration for Cygwin.
22762         * lib/math.in.h (logb): New declaration.
22763         * m4/logb.m4: New file.
22764         * modules/logb (Files): Add m4/logb.m4.
22765         (Depends-on): Add math.
22766         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22767         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22769         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22770         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22771
22772 2010-03-07  Bruno Haible  <bruno@clisp.org>
22773
22774         Fix test-cond link error.
22775         * tests/test-cond.c: Include <stdio.h>.
22776
22777 2010-03-07  Bruno Haible  <bruno@clisp.org>
22778
22779         Fix test-dirent-safer link error.
22780         * modules/dirent-safer-tests (Makefile.am): Define
22781         test_dirent_safer_LDADD.
22782
22783 2010-03-07  Bruno Haible  <bruno@clisp.org>
22784
22785         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22786         among default module list.
22787
22788 2010-03-07  Bruno Haible  <bruno@clisp.org>
22789
22790         Fix link error on platforms with GNU libiconv.
22791         * modules/unistr/u8-strcoll-tests (Makefile): Define
22792         test_u8_strcoll_LDADD.
22793         * modules/unistr/u16-strcoll-tests (Makefile): Define
22794         test_u16_strcoll_LDADD.
22795         * modules/unistr/u32-strcoll-tests (Makefile): Define
22796         test_u32_strcoll_LDADD.
22797
22798 2010-03-07  Bruno Haible  <bruno@clisp.org>
22799
22800         Use POSIX declarations for socket functions.
22801         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22802         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22803         rpl_sendto): Change declaration to match POSIX.
22804         * lib/connect.c (rpl_connect): Likewise.
22805         * lib/accept.c (rpl_accept): Likewise.
22806         * lib/bind.c (rpl_bind): Likewise.
22807         * lib/getpeername.c (rpl_getpeername): Likewise.
22808         * lib/getsockname.c (rpl_getsockname): Likewise.
22809         * lib/recv.c (rpl_recv): Likewise.
22810         * lib/send.c (rpl_send): Likewise.
22811         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22812         * lib/sendto.c (rpl_sendto): Likewise.
22813
22814 2010-03-06  Bruno Haible  <bruno@clisp.org>
22815
22816         Clarify access, euidaccess, faccessat.
22817         * doc/posix-functions/faccessat.texi: Mention security problem under
22818         "Other problems", not "Portability problems".
22819         * doc/posix-functions/access.texi: Likewise. Mention a related security
22820         problem.
22821         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22822         * lib/euidaccess.c: Add comments about platforms.
22823         * lib/unistd.in.h (access, euidaccess): Add warnings.
22824
22825 2010-03-07  Bruno Haible  <bruno@clisp.org>
22826
22827         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22828         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22829         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22830         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22831         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22832         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22833         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22834         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22835         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22836         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22837         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22838         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22839         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22840         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22841         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22842         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22843         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22844         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22845         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22846         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22847         Likewise.
22848         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22849         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22850         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22851         Likewise.
22852         * tests/test-spawn.c (main): Make it work when
22853         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22854
22855 2010-03-07  Bruno Haible  <bruno@clisp.org>
22856
22857         Fix incorrect Makefile.am generation in German locale.
22858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22859         Execute sed command with character range in C locale.
22860
22861 2010-03-06  Bruno Haible  <bruno@clisp.org>
22862
22863         Tests for module 'iconv-h'.
22864         * modules/iconv-h-tests: New file.
22865         * tests/test-iconv-h.c: New file.
22866
22867         New module 'iconv-h'.
22868         * modules/iconv-h: New file.
22869         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22870         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22871         (configure.ac): Remove gl_ICONV_H.
22872         (Makefile.am): Remove rule for iconv.h.
22873
22874 2010-03-06  Bruno Haible  <bruno@clisp.org>
22875
22876         More consistent naming of *.m4 files.
22877         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22878         * modules/wctype (Files): Update.
22879
22880         More consistent naming of *.m4 files.
22881         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22882         * modules/wchar (Files): Update.
22883
22884 2010-03-06  Jim Meyering  <meyering@redhat.com>
22885
22886         euidaccess: relax license to LGPLv2+
22887         * modules/euidaccess (License): Relax to LGPLv2+.
22888
22889 2010-03-06  Bruno Haible  <bruno@clisp.org>
22890
22891         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22892         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22893         (Makefile.am): Augment lib_SOURCES instead.
22894
22895 2010-03-04  Jim Meyering  <meyering@redhat.com>
22896
22897         utime: remove obsolete module
22898         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22899         unnecessary for years, and has been marked as obsolete for 10 months.
22900         * modules/utime: Remove file.
22901         * lib/utime.c: Remove file.
22902         * m4/utime.m4: Remove file.
22903         * m4/utimes-null.m4: Remove file.
22904         * doc/posix-functions/utime.texi (utime): Remove reference to
22905         the module.  Move the sole "fixed by gnulib" item into the
22906         "problems not fixed by Gnulib" list.
22907         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22908
22909 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22910
22911         * modules/exit (License): Relax license to LGPLv2+.
22912         (Status): Mark as obsolete.
22913         * NEWS: Mention deprecated 'exit' module.
22914         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22915         of now obsolete 'exit'.
22916
22917 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22918
22919         fts-lgpl: remove unused module
22920         * modules/fts-lgpl: Remove.
22921         * MODULES.html.sh (func_all_modules): Adjust.
22922         * check-module (find_included_lib_files): Adjust.
22923         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22924
22925 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22926
22927         copy-acl: enhance Solaris ACL error handling
22928         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22929         * lib/set-mode-acl.c (qset_acl): Likewise.
22930
22931 2010-03-02  Bruno Haible  <bruno@clisp.org>
22932
22933         spawn: Don't override the system defined values on FreeBSD 8.
22934         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22935         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22936         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22937         if HAVE_POSIX_SPAWN is 1.
22938         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22939
22940 2010-03-01  Bruno Haible  <bruno@clisp.org>
22941
22942         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22943         regarding Automake.
22944
22945 2010-02-25  Bruno Haible  <bruno@clisp.org>
22946
22947         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22948         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22949         setting, not afterwards.
22950         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22951
22952 2010-02-24  Eric Blake  <eblake@redhat.com>
22953
22954         bootstrap, git-version-gen: use timestamp
22955         * build-aux/git-version-gen (scriptversion): Force UTC.
22956         * build-aux/bootstrap (scriptversion): New variable.
22957
22958         bootstrap: allow older git
22959         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22960         older than 1.6.4.  Requested by the libvirt project.
22961
22962 2010-02-23  Eric Blake  <eblake@redhat.com>
22963
22964         warn-on-use: work with old autoconf
22965         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22966         AS_VAR semantics of autoconf 2.60.
22967         Reported by Bruno Haible.
22968
22969         bootstrap: improve some comments
22970         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22971         clarification comments.
22972
22973         gettimeofday: provide correct function
22974         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22975         when replacement is declared, otherwise provide gettimeofday.
22976         Reported by Michael Goffioul.
22977
22978 2010-02-23  Jim Meyering  <meyering@redhat.com>
22979
22980         lib-ignore: relax license to "unlimited", not LGPLv2+
22981         * modules/lib-ignore (License): Relax to "unlimited".
22982
22983 2010-02-23  Jim Meyering  <meyering@redhat.com>
22984
22985         lib-ignore: relax license to LGPLv2+
22986         * modules/lib-ignore (License): Relax to LGPLv2+.
22987
22988 2010-02-22  Eric Blake  <eblake@redhat.com>
22989
22990         lseek: avoid bash 3.2 broken pipe bug
22991         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22992         warning from bash 3.2.
22993         Reported by Ben Pfaff, with analysis from Bruno Haible.
22994
22995         bootstrap: support non-FSF copyright holder
22996         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22997         bootstrap.conf override of COPYRIGHT_HOLDER.
22998         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22999
23000         bootstrap: interoperate with gettext 0.14.1
23001         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23002
23003         bootstrap: allow for alternate submodule location
23004         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23005         hardcoding submodule location.
23006         (gnulib_mk): Allow direct use of Makefile.am.
23007
23008         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23009         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23010         rather than reconfiguring where the submodule points.
23011
23012         gettimeofday: restore support for platforms that lack function
23013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23014         replacement if function is missing.
23015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23016         * modules/sys_time (Makefile.am): Substitute it.
23017         * lib/sys_time.in.h (gettimeofday): Check it.
23018         Reported by Michael Goffioul.
23019
23020 2010-02-21  Bruno Haible  <bruno@clisp.org>
23021
23022         * lib/stdio.in.h (obstack_printf): Fix typo.
23023
23024 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23025
23026         vc-list-files: use bzr ls's -R option
23027         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23028         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23029
23030 2010-02-21  Jim Meyering  <meyering@redhat.com>
23031
23032         init.sh: fix EXEEXT shims to work also for names like test-prog
23033         * tests/init.sh: Re-exec a better shell, when needed.
23034         If the current shell lacks support for posix $(...), an init.sh-using
23035         test will now try to find a shell that supports that.  If EXEEXT is
23036         nonempty, we also require support for hyphen-in-alias-name and shell
23037         substitutions like ${var#glob}.  Failure to find such a shell results
23038         in a skipped test.
23039
23040 2010-02-21  Bruno Haible  <bruno@clisp.org>
23041
23042         Really work around around "broken pipe" error message from bash 3.2.
23043         * gnulib-tool (func_reset_sigpipe): Remove function.
23044         (echo): In bash 3.2, define to a function that uses printf.
23045         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23046
23047 2010-02-20  Bruno Haible  <bruno@clisp.org>
23048
23049         Restore support for automake 1.9.6 with autoconf 2.61.
23050         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23051         Reported by James Youngman <jay@gnu.org>.
23052
23053 2010-02-20  Bruno Haible  <bruno@clisp.org>
23054
23055         Improve *printf warning condition.
23056         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23057         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23058         and the function is overridden due to SIGPIPE emulation.
23059
23060 2010-02-20  Bruno Haible  <bruno@clisp.org>
23061
23062         * lib/stdio.in.h: Tweak comments.
23063
23064 2010-02-19  Bruno Haible  <bruno@clisp.org>
23065
23066         Make it easier to find modules. New gnulib-tool option '--find'.
23067         * gnulib-tool: New option --find.
23068         (func_usage): Document it.
23069         (func_sanitize_modulelist): New function, extracted from
23070         func_all_modules.
23071         (func_all_modules): Invoke it.
23072         * doc/gnulib-tool.texi (Which modules?): New node.
23073
23074 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23075
23076         * lib/sys_select.in.h: Provide select replacement even if
23077         sys/select.h exists on a system, for Interix.
23078
23079 2010-02-18  Jim Meyering  <meyering@redhat.com>
23080
23081         init.sh: don't use $(...) just yet
23082         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23083         to accommodate e.g., Solaris' /bin/sh.
23084
23085 2010-02-17  Bruno Haible  <bruno@clisp.org>
23086
23087         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23088         Reported by Ludovic Courtès <ludo@gnu.org>.
23089
23090 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23091
23092         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23093         linking with -lintl.
23094
23095 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23096
23097         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23098         if not provided by the system's netdb.h.  Reported by
23099         ludo@gnu.org (Ludovic Courtès).
23100
23101 2010-02-15  Jim Meyering  <meyering@redhat.com>
23102
23103         init.sh: improve portability and efficiency
23104         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23105         "dummy" in a for loop.
23106         Use '!', not '^' to select the complement of a character set used
23107         in a "case" statement.
23108         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23109         Suggestions from Eric Blake.
23110
23111         init.sh: automatically accommodate programs with the .exe suffix
23112         Automatically arrange for an invocation of "prog" to execute the
23113         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23114         may use the simpler "prog", yet still work when built on a system
23115         that requires specifying the added suffix.
23116         Do this by constructing a function named "prog" that invokes
23117         "prog.exe" for each .exe file in selected directories.
23118         * tests/init.sh (find_exe_basenames_): New function.
23119         (create_exe_shim_functions_): New function.
23120         (path_prepend_): Use it.
23121
23122         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23123         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23124         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23125
23126 2010-02-14  Jim Meyering  <meyering@redhat.com>
23127
23128         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23129         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23130         (sc_prohibit_hash_pjw_without_use): New rule.
23131
23132         maint.mk: allow the default upload destination dir to be overridden
23133         * top/maint.mk (upload_dest_dir_): Define with a default that
23134         preserves the status quo.
23135         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23136         Reported by Peter Simons.
23137
23138         maint.mk: prohibit inclusion of "hash.h" without_use
23139         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23140
23141 2010-02-10  Jim Meyering  <meyering@redhat.com>
23142
23143         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23144         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23145
23146 2010-02-09  Eric Blake  <ebb9@byu.net>
23147         and Bruno Haible  <bruno@clisp.org>
23148
23149         obstack-printf-posix: ensure declaration
23150         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23151         extracted from gl_FUNC_OBSTACK_PRINTF.
23152         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23153         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23154         Likewise.
23155         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23156         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23157         0.
23158
23159 2010-02-08  Bruno Haible  <bruno@clisp.org>
23160
23161         gnulib-tool: Fix typo in 2010-02-07 commit.
23162         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23163         Reported by Eric Blake.
23164
23165 2010-02-07  Bruno Haible  <bruno@clisp.org>
23166
23167         gnulib-tool: Fix up caching patches.
23168         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23169         option --no-cache. Use associative arrays when supported by the shell.
23170         (sed_comments): New variable.
23171         (modcache): Renamed from do_cache.
23172         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23173         abbreviate unnecessarily.
23174         (have_associative): New variable.
23175         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23176         way also for ksh and zsh.
23177         (func_init_sed_convert_to_cache_statements): New function, extracted
23178         from func_cache_lookup_module. Add support for associative arrays.
23179         Don't set the c_MODULE_cached variable here. Ignore all lines before
23180         the first field header. Remove only the final newline, not all trailing
23181         newlines. Support empty fields correctly. Limit the use of 'eval' to
23182         assignments.
23183         (func_get_description, func_get_status, func_get_notice,
23184         func_get_applicability, func_get_filelist, func_get_dependencies,
23185         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23186         func_get_automake_snippet, func_get_include_directive,
23187         func_get_link_directive, func_get_license, func_get_maintainer):
23188         Update documentation. List the unoptimized code first. Add support for
23189         associative arrays. Limit the use of 'eval' to assignments.
23190         (func_get_applicability): Undo stylistic pessimisations.
23191         (func_get_automake_snippet, func_get_include_directive): Reduce code
23192         duplication.
23193         (func_modules_transitive_closure, func_modules_add_dummy,
23194         func_modules_notice, func_modules_to_filelist, func_add_file,
23195         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23196         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23197         func_create_testdir, func_create_megatestdir): Update documentation.
23198
23199 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23200
23201         * gnulib-tool (func_cache_lookup_module): Store the module name
23202         belonging to the cache variable; error out if two different
23203         module names map to the same cache variable name.
23204
23205 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23206
23207         gnulib-tool: Make caching optional.
23208         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23209         Update matching short versions of --no-changelog.
23210         (func_usage): Update.
23211         (sed_extract_cache_prog): Renamed from ...
23212         (sed_extract_prog): ... this; revert to old extraction script.
23213         (func_get_description, func_get_status)
23214         (func_get_notice, func_get_applicability, func_get_filelist)
23215         (func_get_dependencies, func_get_autoconf_early_snippet)
23216         (func_get_autoconf_snippet, func_get_automake_snippet)
23217         (func_get_include_directive, func_get_link_directive)
23218         (func_get_license, func_get_maintainer): If $do_cache is false,
23219         use old, non-caching extraction scripts.
23220         Suggestion by Bruno Haible.
23221
23222 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23223
23224         gnulib-tool: cache module metainformation.
23225         * gnulib-tool (sed_extract_prog): Match newline before each
23226         header, and rewrite header to a shell variable suffix.
23227         (func_cache_var, func_cache_lookup_module): New functions,
23228         to turn a module name into a cache variable prefix, and to
23229         look up and cache module metainformation.
23230         (func_get_description, func_get_status)
23231         (func_get_notice, func_get_applicability, func_get_filelist)
23232         (func_get_dependencies, func_get_autoconf_early_snippet)
23233         (func_get_autoconf_snippet, func_get_automake_snippet)
23234         (func_get_include_directive, func_get_link_directive)
23235         (func_get_license, func_get_maintainer): Use
23236         func_cache_lookup_module.
23237
23238 2010-02-07  Bruno Haible  <bruno@clisp.org>
23239
23240         fnctl: Fix missing dependency.
23241         * modules/fcntl (Depends-on): Add getdtablesize.
23242         Reported by John W. Eaton <jwe@gnu.org>.
23243
23244 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23245
23246         Argp: fix recognition of short alias options.
23247
23248         * lib/argp-parse.c (convert_options): Fix improper use of
23249         `|' between character values.
23250         * tests/test-argp.c (group1_option): New alias option
23251         --read (-r).
23252         (group1_parser): Special handling for 'r'.
23253         (test15): New test case.
23254         (test_fun): Add test15.
23255         * tests/test-argp-2.sh: Update expected --help and --usage
23256         outputs.
23257
23258 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23259
23260         * tests/test-argp.c: Fix indentation.
23261
23262 2010-02-04  Eric Blake  <ebb9@byu.net>
23263
23264         gettimeofday: expose type of second argument
23265         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23266         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23267         * tests/test-gettimeofday.c: Use it to silence warning.
23268         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23269         the issue.
23270
23271 2010-02-03  Jim Meyering  <meyering@redhat.com>
23272
23273         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23274         * lib/regcomp.c (TYPE_SIGNED): Define.
23275         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23276
23277         regcomp.c: avoid a new -Wshadow warning
23278         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23279
23280 2010-02-01  Jim Meyering  <meyering@redhat.com>
23281
23282         removing useless parentheses in cpp #define directives
23283         For motivation, see commit c0221df4, "define STREQ(a,b)
23284         consistently, removing useless parentheses"
23285         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23286         * lib/mountlist.c (MNT_IGNORE): Likewise.
23287         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23288
23289 2010-02-01  Eric Blake  <ebb9@byu.net>
23290
23291         sys_time: use link-warning
23292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23293         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23294         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23295         * modules/sys_time (Depends-on): Add warn-on-use.
23296         (Makefile.am): Always build replacement.
23297         (configure.ac): Update substitutions.
23298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23299         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23300         bother with SYS_TIME_H.
23301         * modules/gettimeofday (configure.ac): Declare indicator.
23302         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23303         in use.
23304
23305         closein-tests: silence compiler warning
23306         * tests/test-closein.c (main): Ignore fread result.
23307         * modules/closein-tests (Depends-on): Add ignore-value.
23308
23309         tests: silence warning about system return
23310         * tests/test-areadlink-with-size.c (main): Ignore system result.
23311         * tests/test-areadlink.c (main): Likewise.
23312         * tests/test-areadlinkat-with-size.c (main): Likewise.
23313         * tests/test-areadlinkat.c (main): Likewise.
23314         * tests/test-canonicalize-lgpl.c (main): Likewise.
23315         * tests/test-canonicalize.c (main): Likewise.
23316         * tests/test-chown.c (main): Likewise.
23317         * tests/test-fchownat.c (main): Likewise.
23318         * tests/test-fdutimensat.c (main): Likewise.
23319         * tests/test-fstatat.c (main): Likewise.
23320         * tests/test-futimens.c (main): Likewise.
23321         * tests/test-lchown.c (main): Likewise.
23322         * tests/test-link.c (main): Likewise.
23323         * tests/test-linkat.c (main): Likewise.
23324         * tests/test-lstat.c (main): Likewise.
23325         * tests/test-mkdir.c (main): Likewise.
23326         * tests/test-mkdirat.c (main): Likewise.
23327         * tests/test-mkfifo.c (main): Likewise.
23328         * tests/test-mkfifoat.c (main): Likewise.
23329         * tests/test-mknod.c (main): Likewise.
23330         * tests/test-readlink.c (main): Likewise.
23331         * tests/test-remove.c (main): Likewise.
23332         * tests/test-rename.c (main): Likewise.
23333         * tests/test-renameat.c (main): Likewise.
23334         * tests/test-rmdir.c (main): Likewise.
23335         * tests/test-symlink.c (main): Likewise.
23336         * tests/test-symlinkat.c (main): Likewise.
23337         * tests/test-unlink.c (main): Likewise.
23338         * tests/test-unlinkat.c (main): Likewise.
23339         * tests/test-utimens.c (main): Likewise.
23340         * tests/test-utimensat.c (main): Likewise.
23341         * modules/areadlink-tests (Depends-on): Add ignore-value.
23342         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23343         * modules/areadlinkat-tests (Depends-on): Likewise.
23344         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23345         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23346         * modules/canonicalize-tests (Depends-on): Likewise.
23347         * modules/chown-tests (Depends-on): Likewise.
23348         * modules/fdutimensat-tests (Depends-on): Likewise.
23349         * modules/futimens-tests (Depends-on): Likewise.
23350         * modules/lchown-tests (Depends-on): Likewise.
23351         * modules/link-tests (Depends-on): Likewise.
23352         * modules/linkat-tests (Depends-on): Likewise.
23353         * modules/lstat-tests (Depends-on): Likewise.
23354         * modules/mkdir-tests (Depends-on): Likewise.
23355         * modules/mkfifo-tests (Depends-on): Likewise.
23356         * modules/mkfifoat-tests (Depends-on): Likewise.
23357         * modules/mknod-tests (Depends-on): Likewise.
23358         * modules/openat-tests (Depends-on): Likewise.
23359         * modules/readlink-tests (Depends-on): Likewise.
23360         * modules/remove-tests (Depends-on): Likewise.
23361         * modules/rename-tests (Depends-on): Likewise.
23362         * modules/renameat-tests (Depends-on): Likewise.
23363         * modules/rmdir-tests (Depends-on): Likewise.
23364         * modules/symlink-tests (Depends-on): Likewise.
23365         * modules/symlinkat-tests (Depends-on): Likewise.
23366         * modules/unlink-tests (Depends-on): Likewise.
23367         * modules/utimens-tests (Depends-on): Likewise.
23368         * modules/utimensat-tests (Depends-on): Likewise.
23369
23370 2010-01-31  Bruno Haible  <bruno@clisp.org>
23371
23372         Perform the same test for many <math.h> functions.
23373         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23374         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23375         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23376         of gl_MATHFUNC.
23377         * modules/acos (configure.ac): Likewise.
23378         * modules/asin (configure.ac): Likewise.
23379         * modules/atan (configure.ac): Likewise.
23380         * modules/atan2 (configure.ac): Likewise.
23381         * modules/cbrt (configure.ac): Likewise.
23382         * modules/copysign (configure.ac): Likewise.
23383         * modules/cos (configure.ac): Likewise.
23384         * modules/cosh (configure.ac): Likewise.
23385         * modules/erf (configure.ac): Likewise.
23386         * modules/erfc (configure.ac): Likewise.
23387         * modules/exp (configure.ac): Likewise.
23388         * modules/fmod (configure.ac): Likewise.
23389         * modules/hypot (configure.ac): Likewise.
23390         * modules/j0 (configure.ac): Likewise.
23391         * modules/j1 (configure.ac): Likewise.
23392         * modules/jn (configure.ac): Likewise.
23393         * modules/lgamma (configure.ac): Likewise.
23394         * modules/log (configure.ac): Likewise.
23395         * modules/log10 (configure.ac): Likewise.
23396         * modules/log1p (configure.ac): Likewise.
23397         * modules/pow (configure.ac): Likewise.
23398         * modules/remainder (configure.ac): Likewise.
23399         * modules/sin (configure.ac): Likewise.
23400         * modules/sinh (configure.ac): Likewise.
23401         * modules/tan (configure.ac): Likewise.
23402         * modules/tanh (configure.ac): Likewise.
23403         * modules/y0 (configure.ac): Likewise.
23404         * modules/y1 (configure.ac): Likewise.
23405         * modules/yn (configure.ac): Likewise.
23406         Suggested by Paolo Bonzini.
23407
23408 2010-01-31  Bruno Haible  <bruno@clisp.org>
23409
23410         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23411
23412 2010-01-31  Bruno Haible  <bruno@clisp.org>
23413
23414         Work around getdelim() bug on FreeBSD 8.0.
23415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23416         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23417         not work.
23418         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23419         is 1.
23420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23421         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23422         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23423         a non-zero size.
23424         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23425
23426 2010-01-31  Bruno Haible  <bruno@clisp.org>
23427
23428         Work around getline() bug on FreeBSD 8.0.
23429         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23430         and a non-zero size.
23431         * tests/test-getline.c (main): Likewise.
23432         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23433         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23434
23435 2010-01-28  Eric Blake  <ebb9@byu.net>
23436
23437         regex: fix build failure
23438         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23439         platforms.
23440
23441 2010-01-28  Jim Meyering  <meyering@redhat.com>
23442
23443         regex: do not ignore memory allocation failure
23444         * lib/regex_internal.c (create_cd_newstate): Detect
23445         re_node_set_init_copy failure.   Extracted from glibc commit
23446         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23447
23448         regex: sync more white-space changes from libc
23449         * lib/regex_internal.c: White-space only changes.
23450         * lib/regexec.c: Likewise.
23451
23452         regex: add many uses of __attribute_warn_unused_result__
23453         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23454         * lib/regexec.c: Likewise.
23455         Extracted from a messy glibc commit.
23456
23457         regcomp.c: spelling and merge-artifact from glibc
23458         * lib/regcomp.c: Merge remainder of glibc's
23459         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23460
23461         regcomp.c: sync white-space changes from glibc
23462         * lib/regcomp.c: Merge to accommodate white space
23463         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23464
23465         regcomp.c: do not ignore internal return values
23466         * lib/regcomp.c: Do not ignore internal return values.
23467         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23468         but without its white-space changes and spelling fixes.
23469
23470         regex_internal.h: define __attribute_warn_unused_result__
23471         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23472
23473         maint: add a syntax-check rule to check for vulnerable Makefile.in
23474         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23475
23476 2010-01-27  Jim Meyering  <meyering@redhat.com>
23477
23478         ncftpput-ftp: clean up spaces
23479         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23480         Remove trailing blanks.
23481
23482 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23483
23484         * build-aux/git-version-gen: Fix copyright statement.
23485         * build-aux/gnupload: Likewise.
23486         * tests/test-arcfour.c: Likewise.
23487         * tests/test-arctwo.c: Likewise.
23488         * tests/test-count-one-bits.c: Likewise.
23489         * tests/test-crc.c: Likewise.
23490         * tests/test-des.c: Likewise.
23491         * tests/test-gc-arcfour.c: Likewise.
23492         * tests/test-gc-arctwo.c: Likewise.
23493         * tests/test-gc-des.c: Likewise.
23494         * tests/test-gc-hmac-md5.c: Likewise.
23495         * tests/test-gc-hmac-sha1.c: Likewise.
23496         * tests/test-gc-md2.c: Likewise.
23497         * tests/test-gc-md4.c: Likewise.
23498         * tests/test-gc-md5.c: Likewise.
23499         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23500         * tests/test-gc-rijndael.c: Likewise.
23501         * tests/test-gc-sha1.c: Likewise.
23502         * tests/test-gc.c: Likewise.
23503         * tests/test-gethostname.c: Likewise.
23504         * tests/test-gettimeofday.c: Likewise.
23505         * tests/test-hash.c: Likewise.
23506         * tests/test-hmac-md5.c: Likewise.
23507         * tests/test-hmac-sha1.c: Likewise.
23508         * tests/test-md2.c: Likewise.
23509         * tests/test-md4.c: Likewise.
23510         * tests/test-md5.c: Likewise.
23511         * tests/test-memchr.c: Likewise.
23512         * tests/test-memchr2.c: Likewise.
23513         * tests/test-memcmp.c: Likewise.
23514         * tests/test-memmem.c: Likewise.
23515         * tests/test-memrchr.c: Likewise.
23516         * tests/test-rawmemchr.c: Likewise.
23517         * tests/test-read-file.c: Likewise.
23518         * tests/test-rijndael.c: Likewise.
23519         * tests/test-sockets.c: Likewise.
23520         * tests/test-strchrnul.c: Likewise.
23521         * tests/test-strstr.c: Likewise.
23522         * tests/test-strtod.c: Likewise.
23523         * build-aux/ncftpput-ftp: Likewise.
23524
23525 2010-01-26  Eric Blake  <ebb9@byu.net>
23526
23527         ignore-value: update recommended header name
23528         * modules/ignore-value (Include): Only use <> for headers that
23529         exist in glibc.
23530
23531 2010-01-26  Jim Meyering  <meyering@redhat.com>
23532
23533         test-userspec.c: avoid compiler warnings
23534         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23535         and "initialization discards qualifiers..." warnings.
23536         Put the first "uid" in its own scope, and make char* members "const".
23537
23538 2010-01-25  Bruno Haible  <bruno@clisp.org>
23539
23540         gnulib-tool: Make warning diagnostics consistent.
23541         * gnulib-tool (func_warning): New function.
23542         Use it everywhere where gnulib-tool produces output to stderr and it is
23543         not a fatal error.
23544
23545 2010-01-25  Bruno Haible  <bruno@clisp.org>
23546
23547         Fix test dependencies.
23548         * modules/xstrtol-tests (Depends-on): Add inttypes.
23549         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23550
23551 2010-01-25 Pádraig Brady <P@draigBrady.com>
23552
23553         syntax-check: detect incorrect boolean macro values in config.h
23554         * modules/maintainer-makefile (configure.ac): Parameterize the location
23555         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23556         The logic is from Eric Blake and the location indicated by Jim Meyering.
23557         Note the more natural CONFIG_HEADER name is prohibited by automake
23558         for backwards compatibility reasons.
23559         * top/maint.mk (sc_Wundef_boolean): New rule.
23560
23561 2010-01-25  Jim Meyering  <meyering@redhat.com>
23562
23563         bootstrap: detect MacOS 10.6's shasum, too
23564         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23565         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23566
23567 2010-01-23  Jim Meyering  <meyering@redhat.com>
23568
23569         xstrtoll: new module
23570         * modules/xstrtoll: New file.
23571         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23572         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23573         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23574         ./configure fails if you use this module and lack "long long".
23575         * modules/xstrtoll-tests: New module.
23576         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23577         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23578         new init.sh-based test framework.
23579
23580 2010-01-24  Bruno Haible  <bruno@clisp.org>
23581
23582         Tests for module 'yn'.
23583         * modules/yn-tests: New file.
23584         * tests/test-yn.c: New file.
23585
23586         Tests for module 'y1'.
23587         * modules/y1-tests: New file.
23588         * tests/test-y1.c: New file.
23589
23590         Tests for module 'y0'.
23591         * modules/y0-tests: New file.
23592         * tests/test-y0.c: New file.
23593
23594         Tests for module 'tanh'.
23595         * modules/tanh-tests: New file.
23596         * tests/test-tanh.c: New file.
23597
23598         Tests for module 'tan'.
23599         * modules/tan-tests: New file.
23600         * tests/test-tan.c: New file.
23601
23602         Tests for module 'sqrt'.
23603         * modules/sqrt-tests: New file.
23604         * tests/test-sqrt.c: New file.
23605
23606         Tests for module 'sinh'.
23607         * modules/sinh-tests: New file.
23608         * tests/test-sinh.c: New file.
23609
23610         Tests for module 'sin'.
23611         * modules/sin-tests: New file.
23612         * tests/test-sin.c: New file.
23613
23614         Tests for module 'rint'.
23615         * modules/rint-tests: New file.
23616         * tests/test-rint.c: New file.
23617
23618         Tests for module 'remainder'.
23619         * modules/remainder-tests: New file.
23620         * tests/test-remainder.c: New file.
23621
23622         Tests for module 'pow'.
23623         * modules/pow-tests: New file.
23624         * tests/test-pow.c: New file.
23625
23626         Tests for module 'nextafter'.
23627         * modules/nextafter-tests: New file.
23628         * tests/test-nextafter.c: New file.
23629
23630         Tests for module 'modf'.
23631         * modules/modf-tests: New file.
23632         * tests/test-modf.c: New file.
23633
23634         Tests for module 'logb'.
23635         * modules/logb-tests: New file.
23636         * tests/test-logb.c: New file.
23637
23638         Tests for module 'log1p'.
23639         * modules/log1p-tests: New file.
23640         * tests/test-log1p.c: New file.
23641
23642         Tests for module 'log10'.
23643         * modules/log10-tests: New file.
23644         * tests/test-log10.c: New file.
23645
23646         Tests for module 'log'.
23647         * modules/log-tests: New file.
23648         * tests/test-log.c: New file.
23649
23650         Tests for module 'lgamma'.
23651         * modules/lgamma-tests: New file.
23652         * tests/test-lgamma.c: New file.
23653
23654         Tests for module 'ldexp'.
23655         * modules/ldexp-tests: New file.
23656         * tests/test-ldexp.c: New file.
23657
23658         Tests for module 'jn'.
23659         * modules/jn-tests: New file.
23660         * tests/test-jn.c: New file.
23661
23662         Tests for module 'j1'.
23663         * modules/j1-tests: New file.
23664         * tests/test-j1.c: New file.
23665
23666         Tests for module 'j0'.
23667         * modules/j0-tests: New file.
23668         * tests/test-j0.c: New file.
23669
23670         Tests for module 'hypot'.
23671         * modules/hypot-tests: New file.
23672         * tests/test-hypot.c: New file.
23673
23674         Tests for module 'fmod'.
23675         * modules/fmod-tests: New file.
23676         * tests/test-fmod.c: New file.
23677
23678         Tests for module 'fabs'.
23679         * modules/fabs-tests: New file.
23680         * tests/test-fabs.c: New file.
23681
23682         Tests for module 'exp'.
23683         * modules/exp-tests: New file.
23684         * tests/test-exp.c: New file.
23685
23686         Tests for module 'erfc'.
23687         * modules/erfc-tests: New file.
23688         * tests/test-erfc.c: New file.
23689
23690         Tests for module 'erf'.
23691         * modules/erf-tests: New file.
23692         * tests/test-erf.c: New file.
23693
23694         Tests for module 'cosh'.
23695         * modules/cosh-tests: New file.
23696         * tests/test-cosh.c: New file.
23697
23698         Tests for module 'cos'.
23699         * modules/cos-tests: New file.
23700         * tests/test-cos.c: New file.
23701
23702         Tests for module 'copysign'.
23703         * modules/copysign-tests: New file.
23704         * tests/test-copysign.c: New file.
23705
23706         Tests for module 'cbrt'.
23707         * modules/cbrt-tests: New file.
23708         * tests/test-cbrt.c: New file.
23709
23710         Tests for module 'atan2'.
23711         * modules/atan2-tests: New file.
23712         * tests/test-atan2.c: New file.
23713
23714         Tests for module 'atan'.
23715         * modules/atan-tests: New file.
23716         * tests/test-atan.c: New file.
23717
23718         Tests for module 'asin'.
23719         * modules/asin-tests: New file.
23720         * tests/test-asin.c: New file.
23721
23722         Tests for module 'acos'.
23723         * modules/acos-tests: New file.
23724         * tests/test-acos.c: New file.
23725
23726 2010-01-24  Bruno Haible  <bruno@clisp.org>
23727
23728         Fix tests for common <math.h> functions.
23729         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23730         code snippet that references the function pointer, rather than merely
23731         calling the function. Substitute the FUNC_LIBM variable.
23732         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23733         * modules/acos (configure.ac): Likewise.
23734         * modules/asin (configure.ac): Likewise.
23735         * modules/atan (configure.ac): Likewise.
23736         * modules/atan2 (configure.ac): Likewise.
23737         * modules/cbrt (configure.ac): Likewise.
23738         * modules/copysign (configure.ac): Likewise.
23739         * modules/cos (configure.ac): Likewise.
23740         * modules/cosh (configure.ac): Likewise.
23741         * modules/erf (configure.ac): Likewise.
23742         * modules/erfc (configure.ac): Likewise.
23743         * modules/exp (configure.ac): Likewise.
23744         * modules/fabs (configure.ac): Likewise.
23745         * modules/fmod (configure.ac): Likewise.
23746         * modules/hypot (configure.ac): Likewise.
23747         * modules/j0 (configure.ac): Likewise.
23748         * modules/j1 (configure.ac): Likewise.
23749         * modules/jn (configure.ac): Likewise.
23750         * modules/ldexp (configure.ac): Likewise.
23751         * modules/lgamma (configure.ac): Likewise.
23752         * modules/log (configure.ac): Likewise.
23753         * modules/log10 (configure.ac): Likewise.
23754         * modules/log1p (configure.ac): Likewise.
23755         * modules/logb (configure.ac): Likewise.
23756         * modules/modf (configure.ac): Likewise.
23757         * modules/nextafter (configure.ac): Likewise.
23758         * modules/pow (configure.ac): Likewise.
23759         * modules/remainder (configure.ac): Likewise.
23760         * modules/rint (configure.ac): Likewise.
23761         * modules/sin (configure.ac): Likewise.
23762         * modules/sinh (configure.ac): Likewise.
23763         * modules/tan (configure.ac): Likewise.
23764         * modules/tanh (configure.ac): Likewise.
23765         * modules/y0 (configure.ac): Likewise.
23766         * modules/y1 (configure.ac): Likewise.
23767         * modules/yn (configure.ac): Likewise.
23768
23769 2010-01-24  Bruno Haible  <bruno@clisp.org>
23770
23771         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23772         * tests/test-acosl.c (x): New variable.
23773         (main): Store argument in x and fetch it from x.
23774         * tests/test-asinl.c (x): New variable.
23775         (main): Store argument in x and fetch it from x.
23776         * tests/test-atanl.c (x): New variable.
23777         (main): Store argument in x and fetch it from x.
23778         * tests/test-cosl.c (x): New variable.
23779         (main): Store argument in x and fetch it from x.
23780         * tests/test-expl.c (x): New variable.
23781         (main): Store argument in x and fetch it from x.
23782         * tests/test-logl.c (x): New variable.
23783         (main): Store argument in x and fetch it from x.
23784         * tests/test-sinl.c (x): New variable.
23785         (main): Store argument in x and fetch it from x.
23786         * tests/test-sqrtl.c (x): New variable.
23787         (main): Store argument in x and fetch it from x.
23788         * tests/test-tanl.c (x): New variable.
23789         (main): Store argument in x and fetch it from x.
23790
23791 2010-01-24  Bruno Haible  <bruno@clisp.org>
23792
23793         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23794         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23795         assignments to the initial TESTS_ENVIRONMENT.
23796         * doc/gnulib.texi (Unit test modules): Document it.
23797         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23798         TESTS_ENVIRONMENT.
23799         * modules/btowc-tests (Makefile.am): Likewise.
23800         * modules/c-stack-tests (Makefile.am): Likewise.
23801         * modules/c-strcase-tests (Makefile.am): Likewise.
23802         * modules/copy-file-tests (Makefile.am): Likewise.
23803         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23804         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23805         * modules/mbrtowc-tests (Makefile.am): Likewise.
23806         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23807         * modules/mbscasestr-tests (Makefile.am): Likewise.
23808         * modules/mbschr-tests (Makefile.am): Likewise.
23809         * modules/mbscspn-tests (Makefile.am): Likewise.
23810         * modules/mbsinit-tests (Makefile.am): Likewise.
23811         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23812         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23813         * modules/mbspbrk-tests (Makefile.am): Likewise.
23814         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23815         * modules/mbsrchr-tests (Makefile.am): Likewise.
23816         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23817         * modules/mbsspn-tests (Makefile.am): Likewise.
23818         * modules/mbsstr-tests (Makefile.am): Likewise.
23819         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23820         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23821         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23822         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23823         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23824         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23825         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23826         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23827         * modules/wcrtomb-tests (Makefile.am): Likewise.
23828         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23829         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23830         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23831         assignments from TESTS_ENVIRONMENT.
23832         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23833         augmentation.
23834         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23835         * modules/atexit-tests (Makefile.am): Likewise.
23836         * modules/binary-io-tests (Makefile.am): Likewise.
23837         * modules/closein-tests (Makefile.am): Likewise.
23838         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23839         * modules/exclude-tests (Makefile.am): Likewise.
23840         * modules/fflush-tests (Makefile.am): Likewise.
23841         * modules/fpending-tests (Makefile.am): Likewise.
23842         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23843         * modules/freadahead-tests (Makefile.am): Likewise.
23844         * modules/freadptr-tests (Makefile.am): Likewise.
23845         * modules/freadseek-tests (Makefile.am): Likewise.
23846         * modules/fseek-tests (Makefile.am): Likewise.
23847         * modules/fseeko-tests (Makefile.am): Likewise.
23848         * modules/ftell-tests (Makefile.am): Likewise.
23849         * modules/ftello-tests (Makefile.am): Likewise.
23850         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23851         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23852         * modules/lseek-tests (Makefile.am): Likewise.
23853         * modules/parse-duration-tests (Makefile.am): Likewise.
23854         * modules/perror-tests (Makefile.am): Likewise.
23855         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23856         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23857         * modules/pipe-tests (Makefile.am): Likewise.
23858         * modules/pread-tests (Makefile.am): Likewise.
23859         * modules/printf-posix-tests (Makefile.am): Likewise.
23860         * modules/select-tests (Makefile.am): Likewise.
23861         * modules/sigpipe-tests (Makefile.am): Likewise.
23862         * modules/tsearch-tests (Makefile.am): Likewise.
23863         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23864         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23865         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23866         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23867         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23868         * modules/version-etc-tests (Makefile.am): Likewise.
23869         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23870         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23871         * modules/xalloc-die-tests (Makefile.am): Likewise.
23872         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23873         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23874         * modules/xstrtol-tests (Makefile.am): Likewise.
23875         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23876         * modules/yesno-tests (Makefile.am): Likewise.
23877         Suggested by Jim Meyering.
23878
23879 2010-01-24  Bruno Haible  <bruno@clisp.org>
23880
23881         More documentation.
23882         * doc/gnulib.texi (Writing modules): New chapter.
23883         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23884         the new chapter.
23885
23886 2010-01-24  Jim Meyering  <meyering@redhat.com>
23887
23888         maint.mk: do not prepend "./" after filtering
23889         * top/maint.mk (_prepend_srcdir_prefix): New variable
23890         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23891         "./" when $(srcdir) is ".".
23892
23893         define STREQ(a,b) consistently, removing useless parentheses
23894         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23895         since the only risk is that "a" or "b" contains an unparenthesized
23896         comma, but if either did that, STREQ would have 3 or more arguments.
23897         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23898         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23899         * lib/hash-triple.c (STREQ): Likewise.
23900         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23901         * lib/getugroups.c (STREQ): Likewise.
23902
23903 2010-01-23  Jim Meyering  <meyering@redhat.com>
23904
23905         maint.mk: fix syntax-check in a non-srcdir build directory
23906         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23907         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23908
23909 2010-01-22  Jim Meyering  <meyering@redhat.com>
23910
23911         userspec: add unit tests
23912         * tests/test-userspec.c: New file.
23913         * modules/userspec-tests: Likewise.
23914
23915 2010-01-21  Jim Meyering  <meyering@redhat.com>
23916
23917         maint.mk: handle source file names containing "." robustly
23918         * top/maint.mk (_dot_escaped_srcdir): Define.
23919         (VC_LIST): Use it in LHS of sed substitution.
23920
23921 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23922
23923         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23924         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23925         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23926         from a non-srcdir build.
23927
23928 2010-01-20  Eric Blake  <ebb9@byu.net>
23929
23930         warn-on-use: use instead of link-warning
23931         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23932         * modules/unistd (Depends-on, Makefile.am): Likewise.
23933         * modules/arpa_inet (Depends-on): Replace link-warning with
23934         warn-on-use.
23935         (Makefile.am): Update rules accordingly.
23936         * modules/ctype (Depends-on, Makefile.am): Likewise.
23937         * modules/dirent (Depends-on, Makefile.am): Likewise.
23938         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23939         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23940         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23941         * modules/locale (Depends-on, Makefile.am): Likewise.
23942         * modules/math (Depends-on, Makefile.am): Likewise.
23943         * modules/search (Depends-on, Makefile.am): Likewise.
23944         * modules/signal (Depends-on, Makefile.am): Likewise.
23945         * modules/spawn (Depends-on, Makefile.am): Likewise.
23946         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23947         * modules/string (Depends-on, Makefile.am): Likewise.
23948         * modules/strings (Depends-on, Makefile.am): Likewise.
23949         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23950         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23951         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23952         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23953         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23954         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23955         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23956         * modules/wchar (Depends-on, Makefile.am): Likewise.
23957         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23958         should be poisoned.
23959         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23960         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23961         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23962         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23963         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23964         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23965         * m4/math_h.m4 (gl_MATH_H): Likewise.
23966         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23967         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23968         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23969         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23970         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23971         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23972         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23973         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23980         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23981         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23982         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23983         GL_LINK_WARNING.
23984         * lib/ctype.in.h: Likewise.
23985         * lib/dirent.in.h: Likewise.
23986         * lib/fcntl.in.h: Likewise.
23987         * lib/inttypes.in.h: Likewise.
23988         * lib/langinfo.in.h: Likewise.
23989         * lib/locale.in.h: Likewise.
23990         * lib/math.in.h: Likewise.
23991         * lib/search.in.h: Likewise.
23992         * lib/signal.in.h: Likewise.
23993         * lib/spawn.in.h: Likewise.
23994         * lib/stdio.in.h: Likewise.
23995         * lib/stdlib.in.h: Likewise.
23996         * lib/string.in.h: Likewise.
23997         * lib/strings.in.h: Likewise.
23998         * lib/sys_file.in.h: Likewise.
23999         * lib/sys_ioctl.in.h: Likewise.
24000         * lib/sys_select.in.h: Likewise.
24001         * lib/sys_socket.in.h: Likewise.
24002         * lib/sys_stat.in.h: Likewise.
24003         * lib/sys_times.in.h: Likewise.
24004         * lib/sys_utsname.in.h: Likewise.
24005         * lib/unistd.in.h: Likewise.
24006         * lib/wchar.in.h: Likewise.
24007
24008 2010-01-20  Bruno Haible  <bruno@clisp.org>
24009
24010         Avoid duplicate -lm.
24011         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24012         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24014         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24015         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24016         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24017         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24018         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24020         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24021         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24022         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24023         Reported by Paolo Bonzini.
24024
24025 2010-01-19  Bruno Haible  <bruno@clisp.org>
24026
24027         langinfo, nl_langinfo: Relicense under LGPLv2+.
24028         * modules/langinfo (License): Change to LGPLv2+.
24029         * modules/nl_langinfo (License): Likewise.
24030         Patch by David Lutterkort <lutter@redhat.com>.
24031
24032 2010-01-19  Bruno Haible  <bruno@clisp.org>
24033
24034         Avoid compilation error with cc on OSF/1 5.1.
24035         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24036         statement, not before.
24037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24038
24039 2010-01-18  Bruno Haible  <bruno@clisp.org>
24040
24041         Avoid a link error due to the __printf__ symbol.
24042         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24043         and 2.6.x.
24044         (__format__, __printf__): Remove definitions.
24045         * lib/argp-fmtstream.h: Likewise.
24046         * lib/argp.h: Likewise.
24047         * lib/error.h: Likewise.
24048         * lib/vasnprintf.h: Likewise.
24049         * lib/xprintf.h: Likewise.
24050         * lib/xvasprintf.h: Likewise.
24051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24052
24053 2010-01-18  Bruno Haible  <bruno@clisp.org>
24054
24055         Tests for module 'tanl'.
24056         * modules/tanl-tests: New file.
24057         * tests/test-tanl.c: New file.
24058
24059         Tests for module 'sqrtl'.
24060         * modules/sqrtl-tests: New file.
24061         * tests/test-sqrtl.c: New file.
24062
24063         Tests for module 'sinl'.
24064         * modules/sinl-tests: New file.
24065         * tests/test-sinl.c: New file.
24066
24067         Tests for module 'logl'.
24068         * modules/logl-tests: New file.
24069         * tests/test-logl.c: New file.
24070
24071         Tests for module 'expl'.
24072         * modules/expl-tests: New file.
24073         * tests/test-expl.c: New file.
24074
24075         Tests for module 'cosl'.
24076         * modules/cosl-tests: New file.
24077         * tests/test-cosl.c: New file.
24078
24079         Tests for module 'atanl'.
24080         * modules/atanl-tests: New file.
24081         * tests/test-atanl.c: New file.
24082
24083         Tests for module 'asinl'.
24084         * modules/asinl-tests: New file.
24085         * tests/test-asinl.c: New file.
24086
24087         Tests for module 'acosl'.
24088         * modules/acosl-tests: New file.
24089         * tests/test-acosl.c: New file.
24090
24091         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24092         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24093         tanl): Use the standard gnulib idiom.
24094         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24095         * lib/sinl.c: Likewise.
24096         * lib/tanl.c: Don't include trigl.c.
24097         (kernel_tanl): Make static.
24098         * lib/sincosl.c: Include trigl.h first.
24099         * lib/trigl.c: Likewise.
24100         * m4/acosl.m4: New file.
24101         * m4/asinl.m4: New file.
24102         * m4/atanl.m4: New file.
24103         * m4/cosl.m4: New file.
24104         * m4/expl.m4: New file.
24105         * m4/logl.m4: New file.
24106         * m4/sinl.m4: New file.
24107         * m4/sqrtl.m4: New file.
24108         * m4/tanl.m4: New file.
24109         * m4/mathl.m4: Remove file.
24110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24111         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24112         Don't initialize GNULIB_MATHL.
24113         * modules/acosl: New file.
24114         * modules/asinl: New file.
24115         * modules/atanl: New file.
24116         * modules/cosl: New file.
24117         * modules/expl: New file.
24118         * modules/logl: New file.
24119         * modules/sinl: New file.
24120         * modules/sqrtl: New file.
24121         * modules/tanl: New file.
24122         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24123         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24124         substitute GNULIB_MATHL.
24125         * modules/mathl: Rewritten.
24126         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24127         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24128         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24129         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24130         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24131         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24132         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24133         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24134         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24135
24136 2010-01-18  Bruno Haible  <bruno@clisp.org>
24137
24138         sqrt: Make gl_FUNC_SQRT requirable.
24139         * m4/sqrt.m4: New file.
24140         * modules/sqrt (Files): Add it.
24141         (configure.ac): Invoke gl_FUNC_SQRT.
24142
24143 2010-01-18  Bruno Haible  <bruno@clisp.org>
24144
24145         New modules for common <math.h> functions.
24146         * m4/mathfunc.m4: New file.
24147         * modules/acos: New file.
24148         * modules/asin: New file.
24149         * modules/atan: New file.
24150         * modules/atan2: New file.
24151         * modules/cbrt: New file.
24152         * modules/copysign: New file.
24153         * modules/cos: New file.
24154         * modules/cosh: New file.
24155         * modules/erf: New file.
24156         * modules/erfc: New file.
24157         * modules/exp: New file.
24158         * modules/fabs: New file.
24159         * modules/fmod: New file.
24160         * modules/hypot: New file.
24161         * modules/j0: New file.
24162         * modules/j1: New file.
24163         * modules/jn: New file.
24164         * modules/ldexp: New file.
24165         * modules/lgamma: New file.
24166         * modules/log: New file.
24167         * modules/log10: New file.
24168         * modules/log1p: New file.
24169         * modules/logb: New file.
24170         * modules/modf: New file.
24171         * modules/nextafter: New file.
24172         * modules/pow: New file.
24173         * modules/remainder: New file.
24174         * modules/rint: New file.
24175         * modules/sin: New file.
24176         * modules/sinh: New file.
24177         * modules/sqrt: New file.
24178         * modules/tan: New file.
24179         * modules/tanh: New file.
24180         * modules/y0: New file.
24181         * modules/y1: New file.
24182         * modules/yn: New file.
24183         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24184         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24185         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24186         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24187         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24188         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24189         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24190         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24191         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24192         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24193         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24194         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24195         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24196         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24197         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24198         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24199         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24200         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24201         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24202         * doc/posix-functions/log.texi: Mention the 'log' module.
24203         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24204         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24205         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24206         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24207         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24208         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24209         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24210         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24211         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24212         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24213         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24214         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24215         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24216         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24217         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24218         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24219
24220 2010-01-18  Jim Meyering  <meyering@redhat.com>
24221
24222         ignore-value: relax license to LGPLv2+
24223         * modules/ignore-value (License): Relax to LGPLv2+.
24224
24225         getdate: don't leak when TZ contains two or more '"'s
24226         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24227         double quote in TZ after the first one.
24228
24229         readtokens: do not leak internal token_lengths buffer
24230         * lib/readtokens.c (readtokens): Free the local, lengths,
24231         when the supplied "token_lengths" parameter is NULL.
24232
24233 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24234
24235         Fix a couple of missing LIBTHREAD link failures on AIX.
24236         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24237         $(LIBTHREAD).
24238         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24239
24240         Link test-poll against INET_PTON_LIB.
24241         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24242         for inet_pton on Solaris 10.
24243
24244 2010-01-17  Bruno Haible  <bruno@clisp.org>
24245
24246         unistdio/*-sprintf: Fix typo in module description.
24247         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24248         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24249         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24250         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24251         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24252         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24253         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24255
24256 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24257
24258         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24259         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24260         variables in shell case patterns, for AIX and HP-UX ksh.
24261
24262         Split large sed scripts, for HP-UX sed.
24263         * modules/stdio: Split sed scripts around 50 sed commands,
24264         to avoid HP-UX limit of 99 commands, in the near future.
24265         * modules/string: Likewise.
24266         * modules/unistd: Likewise.
24267
24268         gnulib-tool: avoid writing in the current directory.
24269         * gnulib-tool (func_emit_lib_Makefile_am)
24270         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24271         not in the current directory, so concurrent gnulib-tool
24272         instances do not interfere.
24273
24274 2010-01-16  Jim Meyering  <meyering@redhat.com>
24275
24276         doc: update users.txt
24277         * users.txt: Add grep.
24278         (diffutils, gzip): Update URLs.
24279
24280 2010-01-12  Bruno Haible  <bruno@clisp.org>
24281
24282         posix_spawn: Avoid test failure on Cygwin.
24283         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24284         characters.
24285         Reported by Simon Josefsson.
24286
24287 2010-01-12  Bruno Haible  <bruno@clisp.org>
24288
24289         * tests/test-cond.c (main): When skipping the test, show the reason.
24290
24291 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24292
24293         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24294
24295 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24296
24297         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24298         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24299
24300 2010-01-12  Eric Blake  <ebb9@byu.net>
24301
24302         build: guarantee AS_VAR_IF
24303         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24304         (gl_AS_VAR_IF): Move...
24305         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24306         Reported by Simon Josefsson.
24307
24308 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24309
24310         * lib/stdio.in.h: Fix typo.
24311
24312 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24313
24314         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24315         libgpg-error.
24316
24317 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24318
24319         * tests/test-xalloc-die.sh: Use $EXEEXT.
24320
24321 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24322             Bruno Haible  <bruno@clisp.org>
24323
24324         getlogin, getlogin_r: Avoid test failure.
24325         * tests/test-getlogin.c: Include <stdio.h>.
24326         (main): Skip the test when the function fails because stdin is not a
24327         tty.
24328         * tests/test-getlogin_r.c: Include <stdio.h>.
24329         (main): Skip the test when the function fails because stdin is not a
24330         tty.
24331
24332 2010-01-11  Eric Blake  <ebb9@byu.net>
24333
24334         tests: avoid more large file warnings
24335         * tests/test-fflush.c: Avoid warning about ftell use.
24336         * tests/test-fseek.c: Avoid warning about fseek use.
24337
24338 2010-01-10  Bruno Haible  <bruno@clisp.org>
24339
24340         nproc: Work better on Linux when /proc and /sys are not mounted.
24341         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24342         as lower bound when, on glibc/Linux systems,
24343         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24344         Suggested by Pádraig Brady <P@draigbrady.com>.
24345         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24346
24347         nproc: Refactor.
24348         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24349         extracted from num_processors.
24350         (num_processors): Call it.
24351
24352 2010-01-11  Jim Meyering  <meyering@redhat.com>
24353
24354         utimecmp: avoid new warning from upcoming gcc-4.5.0
24355         * lib/utimecmp.c (BILLION): Define using #define rather than an
24356         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24357
24358 2010-01-11  Eric Blake  <ebb9@byu.net>
24359
24360         math: add portability warnings for classification macros
24361         * modules/math (Depends-on): Add warn-on-use.
24362         (Makefile.am): Provide new substitutions.
24363         * m4/math_h.m4 (gl_MATH_H): Require inline.
24364         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24365         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24366         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24367         implement warnings.
24368
24369         unistd: warn on use of environ without module
24370         * modules/unistd (Depends-on): Add warn-on-use.
24371         (Makefile.am): Provide new substitutions.
24372         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24373         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24374
24375         stdio: warn on suspicious uses
24376         * modules/stdio (Depends-on): Add warn-on-use.
24377         (Makefile.am): Provide new substitutions.
24378         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24379         fseeko.
24380         * lib/stdio.in.h (gets): Always warn on use.
24381         (fseek, ftell): Adjust when warnings are issued, and honor
24382         _GL_NO_LARGE_FILES as a way to silence the warning.
24383         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24384         any warning about large file offsets.
24385         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24386         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24387         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24388         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24389         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24390         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24391         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24392         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24393
24394         warn-on-use: new module
24395         * modules/warn-on-use: New file.
24396         * build-aux/warn-on-use.h: Likewise.
24397         * m4/warn-on-use.m4: Likewise.
24398         * MODULES.html.sh (Support for building): Mention it.
24399
24400 2010-01-10  Bruno Haible  <bruno@clisp.org>
24401
24402         Tests for module 'unistr/u32-strdup'.
24403         * modules/unistr/u32-strdup-tests: New file.
24404         * tests/unistr/test-u32-strdup.c: New file.
24405
24406         Tests for module 'unistr/u16-strdup'.
24407         * modules/unistr/u16-strdup-tests: New file.
24408         * tests/unistr/test-u16-strdup.c: New file.
24409
24410         Tests for module 'unistr/u8-strdup'.
24411         * modules/unistr/u8-strdup-tests: New file.
24412         * tests/unistr/test-u8-strdup.c: New file.
24413         * tests/unistr/test-strdup.h: New file.
24414
24415         Tests for module 'unistr/u32-strncmp'.
24416         * modules/unistr/u32-strncmp-tests: New file.
24417         * tests/unistr/test-u32-strncmp.c: New file.
24418
24419         Tests for module 'unistr/u16-strncmp'.
24420         * modules/unistr/u16-strncmp-tests: New file.
24421         * tests/unistr/test-u16-strncmp.c: New file.
24422
24423         Tests for module 'unistr/u8-strncmp'.
24424         * modules/unistr/u8-strncmp-tests: New file.
24425         * tests/unistr/test-u8-strncmp.c: New file.
24426         * tests/unistr/test-strncmp.h: New file.
24427
24428         Tests for module 'unistr/u32-strcoll'.
24429         * modules/unistr/u32-strcoll-tests: New file.
24430         * tests/unistr/test-u32-strcoll.c: New file.
24431
24432         Tests for module 'unistr/u16-strcoll'.
24433         * modules/unistr/u16-strcoll-tests: New file.
24434         * tests/unistr/test-u16-strcoll.c: New file.
24435
24436         Tests for module 'unistr/u8-strcoll'.
24437         * modules/unistr/u8-strcoll-tests: New file.
24438         * tests/unistr/test-u8-strcoll.c: New file.
24439
24440         Tests for module 'unistr/u32-strcmp'.
24441         * modules/unistr/u32-strcmp-tests: New file.
24442         * tests/unistr/test-u32-strcmp.c: New file.
24443         * tests/unistr/test-u32-strcmp.h: New file.
24444
24445         Tests for module 'unistr/u16-strcmp'.
24446         * modules/unistr/u16-strcmp-tests: New file.
24447         * tests/unistr/test-u16-strcmp.c: New file.
24448         * tests/unistr/test-u16-strcmp.h: New file.
24449
24450         Tests for module 'unistr/u8-strcmp'.
24451         * modules/unistr/u8-strcmp-tests: New file.
24452         * tests/unistr/test-u8-strcmp.c: New file.
24453         * tests/unistr/test-u8-strcmp.h: New file.
24454         * tests/unistr/test-strcmp.h: New file.
24455
24456         Tests for module 'unistr/u32-strncat'.
24457         * modules/unistr/u32-strncat-tests: New file.
24458         * tests/unistr/test-u32-strncat.c: New file.
24459
24460         Tests for module 'unistr/u16-strncat'.
24461         * modules/unistr/u16-strncat-tests: New file.
24462         * tests/unistr/test-u16-strncat.c: New file.
24463
24464         Tests for module 'unistr/u8-strncat'.
24465         * modules/unistr/u8-strncat-tests: New file.
24466         * tests/unistr/test-u8-strncat.c: New file.
24467         * tests/unistr/test-strncat.h: New file.
24468
24469         Tests for module 'unistr/u32-strcat'.
24470         * modules/unistr/u32-strcat-tests: New file.
24471         * tests/unistr/test-u32-strcat.c: New file.
24472
24473         Tests for module 'unistr/u16-strcat'.
24474         * modules/unistr/u16-strcat-tests: New file.
24475         * tests/unistr/test-u16-strcat.c: New file.
24476
24477         Tests for module 'unistr/u8-strcat'.
24478         * modules/unistr/u8-strcat-tests: New file.
24479         * tests/unistr/test-u8-strcat.c: New file.
24480         * tests/unistr/test-strcat.h: New file.
24481
24482         Tests for module 'unistr/u32-stpncpy'.
24483         * modules/unistr/u32-stpncpy-tests: New file.
24484         * tests/unistr/test-u32-stpncpy.c: New file.
24485
24486         Tests for module 'unistr/u16-stpncpy'.
24487         * modules/unistr/u16-stpncpy-tests: New file.
24488         * tests/unistr/test-u16-stpncpy.c: New file.
24489
24490         Tests for module 'unistr/u8-stpncpy'.
24491         * modules/unistr/u8-stpncpy-tests: New file.
24492         * tests/unistr/test-u8-stpncpy.c: New file.
24493         * tests/unistr/test-stpncpy.h: New file.
24494
24495         Tests for module 'unistr/u32-strncpy'.
24496         * modules/unistr/u32-strncpy-tests: New file.
24497         * tests/unistr/test-u32-strncpy.c: New file.
24498
24499         Tests for module 'unistr/u16-strncpy'.
24500         * modules/unistr/u16-strncpy-tests: New file.
24501         * tests/unistr/test-u16-strncpy.c: New file.
24502
24503         Tests for module 'unistr/u8-strncpy'.
24504         * modules/unistr/u8-strncpy-tests: New file.
24505         * tests/unistr/test-u8-strncpy.c: New file.
24506         * tests/unistr/test-strncpy.h: New file.
24507
24508         Tests for module 'unistr/u32-stpcpy'.
24509         * modules/unistr/u32-stpcpy-tests: New file.
24510         * tests/unistr/test-u32-stpcpy.c: New file.
24511
24512         Tests for module 'unistr/u16-stpcpy'.
24513         * modules/unistr/u16-stpcpy-tests: New file.
24514         * tests/unistr/test-u16-stpcpy.c: New file.
24515
24516         Tests for module 'unistr/u8-stpcpy'.
24517         * modules/unistr/u8-stpcpy-tests: New file.
24518         * tests/unistr/test-u8-stpcpy.c: New file.
24519         * tests/unistr/test-stpcpy.h: New file.
24520
24521         Tests for module 'unistr/u32-strcpy'.
24522         * modules/unistr/u32-strcpy-tests: New file.
24523         * tests/unistr/test-u32-strcpy.c: New file.
24524
24525         Tests for module 'unistr/u16-strcpy'.
24526         * modules/unistr/u16-strcpy-tests: New file.
24527         * tests/unistr/test-u16-strcpy.c: New file.
24528
24529         Tests for module 'unistr/u8-strcpy'.
24530         * modules/unistr/u8-strcpy-tests: New file.
24531         * tests/unistr/test-u8-strcpy.c: New file.
24532         * tests/unistr/test-strcpy.h: New file.
24533
24534         Tests for module 'unistr/u32-strnlen'.
24535         * modules/unistr/u32-strnlen-tests: New file.
24536         * tests/unistr/test-u32-strnlen.c: New file.
24537
24538         Tests for module 'unistr/u16-strnlen'.
24539         * modules/unistr/u16-strnlen-tests: New file.
24540         * tests/unistr/test-u16-strnlen.c: New file.
24541
24542         Tests for module 'unistr/u8-strnlen'.
24543         * modules/unistr/u8-strnlen-tests: New file.
24544         * tests/unistr/test-u8-strnlen.c: New file.
24545         * tests/unistr/test-strnlen.h: New file.
24546
24547         Tests for module 'unistr/u32-strlen'.
24548         * modules/unistr/u32-strlen-tests: New file.
24549         * tests/unistr/test-u32-strlen.c: New file.
24550
24551         Tests for module 'unistr/u16-strlen'.
24552         * modules/unistr/u16-strlen-tests: New file.
24553         * tests/unistr/test-u16-strlen.c: New file.
24554
24555         Tests for module 'unistr/u8-strlen'.
24556         * modules/unistr/u8-strlen-tests: New file.
24557         * tests/unistr/test-u8-strlen.c: New file.
24558
24559         Tests for module 'unistr/u32-prev'.
24560         * modules/unistr/u32-prev-tests: New file.
24561         * tests/unistr/test-u32-prev.c: New file.
24562
24563         Tests for module 'unistr/u16-prev'.
24564         * modules/unistr/u16-prev-tests: New file.
24565         * tests/unistr/test-u16-prev.c: New file.
24566
24567         Tests for module 'unistr/u8-prev'.
24568         * modules/unistr/u8-prev-tests: New file.
24569         * tests/unistr/test-u8-prev.c: New file.
24570
24571         Tests for module 'unistr/u32-next'.
24572         * modules/unistr/u32-next-tests: New file.
24573         * tests/unistr/test-u32-next.c: New file.
24574
24575         Tests for module 'unistr/u16-next'.
24576         * modules/unistr/u16-next-tests: New file.
24577         * tests/unistr/test-u16-next.c: New file.
24578
24579         Tests for module 'unistr/u8-next'.
24580         * modules/unistr/u8-next-tests: New file.
24581         * tests/unistr/test-u8-next.c: New file.
24582
24583         Tests for module 'unistr/u32-strmbtouc'.
24584         * modules/unistr/u32-strmbtouc-tests: New file.
24585         * tests/unistr/test-u32-strmbtouc.c: New file.
24586
24587         Tests for module 'unistr/u16-strmbtouc'.
24588         * modules/unistr/u16-strmbtouc-tests: New file.
24589         * tests/unistr/test-u16-strmbtouc.c: New file.
24590
24591         Tests for module 'unistr/u8-strmbtouc'.
24592         * modules/unistr/u8-strmbtouc-tests: New file.
24593         * tests/unistr/test-u8-strmbtouc.c: New file.
24594
24595         Tests for module 'unistr/u32-strmblen'.
24596         * modules/unistr/u32-strmblen-tests: New file.
24597         * tests/unistr/test-u32-strmblen.c: New file.
24598
24599         Tests for module 'unistr/u16-strmblen'.
24600         * modules/unistr/u16-strmblen-tests: New file.
24601         * tests/unistr/test-u16-strmblen.c: New file.
24602
24603         Tests for module 'unistr/u8-strmblen'.
24604         * modules/unistr/u8-strmblen-tests: New file.
24605         * tests/unistr/test-u8-strmblen.c: New file.
24606
24607         Tests for module 'unistr/u32-cpy-alloc'.
24608         * modules/unistr/u32-cpy-alloc-tests: New file.
24609         * tests/unistr/test-u32-cpy-alloc.c: New file.
24610
24611         Tests for module 'unistr/u16-cpy-alloc'.
24612         * modules/unistr/u16-cpy-alloc-tests: New file.
24613         * tests/unistr/test-u16-cpy-alloc.c: New file.
24614
24615         Tests for module 'unistr/u8-cpy-alloc'.
24616         * modules/unistr/u8-cpy-alloc-tests: New file.
24617         * tests/unistr/test-u8-cpy-alloc.c: New file.
24618         * tests/unistr/test-cpy-alloc.h: New file.
24619
24620         Tests for module 'unistr/u32-mbsnlen'.
24621         * modules/unistr/u32-mbsnlen-tests: New file.
24622         * tests/unistr/test-u32-mbsnlen.c: New file.
24623
24624         Tests for module 'unistr/u16-mbsnlen'.
24625         * modules/unistr/u16-mbsnlen-tests: New file.
24626         * tests/unistr/test-u16-mbsnlen.c: New file.
24627
24628         Tests for module 'unistr/u8-mbsnlen'.
24629         * modules/unistr/u8-mbsnlen-tests: New file.
24630         * tests/unistr/test-u8-mbsnlen.c: New file.
24631
24632         Tests for module 'unistr/u32-chr'.
24633         * modules/unistr/u32-chr-tests: New file.
24634         * tests/unistr/test-u32-chr.c: New file.
24635
24636         Tests for module 'unistr/u16-chr'.
24637         * modules/unistr/u16-chr-tests: New file.
24638         * tests/unistr/test-u16-chr.c: New file.
24639
24640         Tests for module 'unistr/u8-chr'.
24641         * modules/unistr/u8-chr-tests: New file.
24642         * tests/unistr/test-u8-chr.c: New file.
24643         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24644
24645         Tests for module 'unistr/u32-cmp2'.
24646         * modules/unistr/u32-cmp2-tests: New file.
24647         * tests/unistr/test-u32-cmp2.c: New file.
24648
24649         Tests for module 'unistr/u16-cmp2'.
24650         * modules/unistr/u16-cmp2-tests: New file.
24651         * tests/unistr/test-u16-cmp2.c: New file.
24652
24653         Tests for module 'unistr/u8-cmp2'.
24654         * modules/unistr/u8-cmp2-tests: New file.
24655         * tests/unistr/test-u8-cmp2.c: New file.
24656         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24657
24658         Tests for module 'unistr/u32-cmp'.
24659         * modules/unistr/u32-cmp-tests: New file.
24660         * tests/unistr/test-u32-cmp.c: New file.
24661
24662         Tests for module 'unistr/u16-cmp'.
24663         * modules/unistr/u16-cmp-tests: New file.
24664         * tests/unistr/test-u16-cmp.c: New file.
24665
24666         Tests for module 'unistr/u8-cmp'.
24667         * modules/unistr/u8-cmp-tests: New file.
24668         * tests/unistr/test-u8-cmp.c: New file.
24669         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24670
24671         Tests for module 'unistr/u32-set'.
24672         * modules/unistr/u32-set-tests: New file.
24673         * tests/unistr/test-u32-set.c: New file.
24674
24675         Tests for module 'unistr/u16-set'.
24676         * modules/unistr/u16-set-tests: New file.
24677         * tests/unistr/test-u16-set.c: New file.
24678
24679         Tests for module 'unistr/u8-set'.
24680         * modules/unistr/u8-set-tests: New file.
24681         * tests/unistr/test-u8-set.c: New file.
24682         * tests/unistr/test-set.h: New file.
24683
24684         Tests for module 'unistr/u32-move'.
24685         * modules/unistr/u32-move-tests: New file.
24686         * tests/unistr/test-u32-move.c: New file.
24687
24688         Tests for module 'unistr/u16-move'.
24689         * modules/unistr/u16-move-tests: New file.
24690         * tests/unistr/test-u16-move.c: New file.
24691
24692         Tests for module 'unistr/u8-move'.
24693         * modules/unistr/u8-move-tests: New file.
24694         * tests/unistr/test-u8-move.c: New file.
24695         * tests/unistr/test-move.h: New file.
24696
24697         Tests for module 'unistr/u32-cpy'.
24698         * modules/unistr/u32-cpy-tests: New file.
24699         * tests/unistr/test-u32-cpy.c: New file.
24700
24701         Tests for module 'unistr/u16-cpy'.
24702         * modules/unistr/u16-cpy-tests: New file.
24703         * tests/unistr/test-u16-cpy.c: New file.
24704
24705         Tests for module 'unistr/u8-cpy'.
24706         * modules/unistr/u8-cpy-tests: New file.
24707         * tests/unistr/test-u8-cpy.c: New file.
24708         * tests/unistr/test-cpy.h: New file.
24709
24710 2010-01-09  Bruno Haible  <bruno@clisp.org>
24711
24712         Tests for module 'unistr/u32-uctomb'.
24713         * modules/unistr/u32-uctomb-tests: New file.
24714         * tests/unistr/test-u32-uctomb.c: New file.
24715
24716         Tests for module 'unistr/u16-uctomb'.
24717         * modules/unistr/u16-uctomb-tests: New file.
24718         * tests/unistr/test-u16-uctomb.c: New file.
24719
24720         Tests for module 'unistr/u8-uctomb'.
24721         * modules/unistr/u8-uctomb-tests: New file.
24722         * tests/unistr/test-u8-uctomb.c: New file.
24723
24724         Tests for module 'unistr/u32-mbtoucr'.
24725         * modules/unistr/u32-mbtoucr-tests: New file.
24726         * tests/unistr/test-u32-mbtoucr.c: New file.
24727
24728         Tests for module 'unistr/u16-mbtoucr'.
24729         * modules/unistr/u16-mbtoucr-tests: New file.
24730         * tests/unistr/test-u16-mbtoucr.c: New file.
24731
24732         Tests for module 'unistr/u8-mbtoucr'.
24733         * modules/unistr/u8-mbtoucr-tests: New file.
24734         * tests/unistr/test-u8-mbtoucr.c: New file.
24735
24736         Tests for module 'unistr/u32-mbtouc'.
24737         * modules/unistr/u32-mbtouc-tests: New file.
24738         * tests/unistr/test-u32-mbtouc.c: New file.
24739
24740         Tests for module 'unistr/u16-mbtouc'.
24741         * modules/unistr/u16-mbtouc-tests: New file.
24742         * tests/unistr/test-u16-mbtouc.c: New file.
24743
24744         Tests for module 'unistr/u8-mbtouc'.
24745         * modules/unistr/u8-mbtouc-tests: New file.
24746         * tests/unistr/test-u8-mbtouc.c: New file.
24747
24748         Tests for module 'unistr/u32-mbtouc-unsafe'.
24749         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24750         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24751         * tests/unistr/test-u32-mbtouc.h: New file.
24752
24753         Tests for module 'unistr/u16-mbtouc-unsafe'.
24754         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24755         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24756         * tests/unistr/test-u16-mbtouc.h: New file.
24757
24758         Tests for module 'unistr/u8-mbtouc-unsafe'.
24759         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24760         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24761         * tests/unistr/test-u8-mbtouc.h: New file.
24762
24763         Tests for module 'unistr/u32-mblen'.
24764         * modules/unistr/u32-mblen-tests: New file.
24765         * tests/unistr/test-u32-mblen.c: New file.
24766
24767         Tests for module 'unistr/u16-mblen'.
24768         * modules/unistr/u16-mblen-tests: New file.
24769         * tests/unistr/test-u16-mblen.c: New file.
24770
24771         Tests for module 'unistr/u8-mblen'.
24772         * modules/unistr/u8-mblen-tests: New file.
24773         * tests/unistr/test-u8-mblen.c: New file.
24774
24775         Tests for module 'unistr/u32-to-u16'.
24776         * modules/unistr/u32-to-u16-tests: New file.
24777         * tests/unistr/test-u32-to-u16.c: New file.
24778
24779         Tests for module 'unistr/u32-to-u8'.
24780         * modules/unistr/u32-to-u8-tests: New file.
24781         * tests/unistr/test-u32-to-u8.c: New file.
24782
24783         Tests for module 'unistr/u16-to-u32'.
24784         * modules/unistr/u16-to-u32-tests: New file.
24785         * tests/unistr/test-u16-to-u32.c: New file.
24786
24787         Tests for module 'unistr/u16-to-u8'.
24788         * modules/unistr/u16-to-u8-tests: New file.
24789         * tests/unistr/test-u16-to-u8.c: New file.
24790
24791         Tests for module 'unistr/u8-to-u32'.
24792         * modules/unistr/u8-to-u32-tests: New file.
24793         * tests/unistr/test-u8-to-u32.c: New file.
24794
24795         Tests for module 'unistr/u8-to-u16'.
24796         * modules/unistr/u8-to-u16-tests: New file.
24797         * tests/unistr/test-u8-to-u16.c: New file.
24798
24799         Tests for module 'unistr/u32-check'.
24800         * modules/unistr/u32-check-tests: New file.
24801         * tests/unistr/test-u32-check.c: New file.
24802
24803         Tests for module 'unistr/u16-check'.
24804         * modules/unistr/u16-check-tests: New file.
24805         * tests/unistr/test-u16-check.c: New file.
24806
24807         Tests for module 'unistr/u8-check'.
24808         * modules/unistr/u8-check-tests: New file.
24809         * tests/unistr/test-u8-check.c: New file.
24810
24811         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24812         (category_equals): New function.
24813         (main): Add more tests.
24814         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24815
24816         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24817
24818 2010-01-10  Bruno Haible  <bruno@clisp.org>
24819
24820         unistr/u*-strcoll: Try harder to distinguish different strings.
24821         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24822         compare s1 and s2 to see if they are different.
24823
24824 2010-01-10  Bruno Haible  <bruno@clisp.org>
24825
24826         unistr/u*-stpncpy: Fix the return value.
24827         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24828         description of the return value consistent with stpncpy in glibc.
24829         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24830         written non-NUL unit.
24831
24832 2010-01-10  Bruno Haible  <bruno@clisp.org>
24833
24834         unistr/u*-next: Add missing dependencies.
24835         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24836         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24837         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24838
24839 2010-01-10  Bruno Haible  <bruno@clisp.org>
24840
24841         unistr/u8-mbsnlen: Fix return value for incomplete character.
24842         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24843         u8_mblen.
24844         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24845         Remove unistr/u8-mblen.
24846         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24847         u16_mblen.
24848         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24849         Remove unistr/u16-mblen.
24850
24851 2010-01-10  Bruno Haible  <bruno@clisp.org>
24852
24853         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24854         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24855         Reported by Brian Gough <bjg@gnu.org> and
24856         Chris Clayton <chris2553@googlemail.com> via
24857         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24858
24859 2010-01-09  Bruno Haible  <bruno@clisp.org>
24860
24861         unistr/u16-to-u32: Reject invalid input.
24862         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24863         u16_mbtouc.
24864         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24865         Remove unistr/u16-mbtouc.
24866
24867         unistr/u16-to-u8: Reject invalid input.
24868         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24869         u16_mbtouc.
24870         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24871         Remove unistr/u16-mbtouc.
24872
24873         unistr/u8-to-u32: Reject invalid input.
24874         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24875         u8_mbtouc.
24876         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24877         Remove unistr/u8-mbtouc.
24878
24879         unistr/u8-to-u16: Reject invalid input.
24880         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24881         u8_mbtouc.
24882         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24883         Remove unistr/u8-mbtouc.
24884
24885 2010-01-09  Bruno Haible  <bruno@clisp.org>
24886
24887         Tests for module 'getlogin'.
24888         * modules/getlogin-tests: New file.
24889         * tests/test-getlogin.c: New file.
24890
24891         New module 'getlogin'.
24892         * lib/unistd.in.h (getlogin): New declaration.
24893         * lib/getlogin.c: New file.
24894         * m4/getlogin.m4: New file.
24895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24896         HAVE_GETLOGIN.
24897         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24898         HAVE_GETLOGIN.
24899         * modules/getlogin: New file.
24900         * doc/posix-functions/getlogin.texi: Mention the new module.
24901         Reported by John W. Eaton <jwe@gnu.org>.
24902
24903 2010-01-09  Bruno Haible  <bruno@clisp.org>
24904
24905         getlogin_r: Support for native Windows.
24906         * lib/getlogin_r.c: Include <windows.h>
24907         (getlogin_r): Implement for native Windows.
24908         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24909         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24910         via John W. Eaton <jwe@gnu.org>.
24911
24912 2010-01-09  Bruno Haible  <bruno@clisp.org>
24913
24914         getlogin_r: Small fixes.
24915         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24916         succeeds.
24917         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24918         before testing whether getlogin_r is declared. No need to set
24919         HAVE_DECL_GETLOGIN_R to 1.
24920         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24921
24922 2010-01-09  Bruno Haible  <bruno@clisp.org>
24923
24924         * lib/unistd.in.h (getlogin_r): Add comment.
24925
24926 2010-01-09  Bruno Haible  <bruno@clisp.org>
24927
24928         Tests for module 'getlogin_r'.
24929         * modules/getlogin_r-tests: New file.
24930         * tests/test-getlogin_r.c: New file.
24931
24932 2010-01-09  Jim Meyering  <meyering@redhat.com>
24933
24934         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24935         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24936         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24937
24938 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24939
24940         * lib/dup2.c (rpl_dup2): Improve comment.
24941
24942 2010-01-08  Eric Blake  <ebb9@byu.net>
24943
24944         maint.mk: allow packages to add makefile @@ exceptions
24945         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24946         (sc_makefile_check): Rename...
24947         (sc_makefile_at_at_check): ...to this, and use hook.
24948
24949         dup2: work around mingw bug
24950         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24951         Reported by Simon Josefsson.
24952
24953 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24954
24955         glob: Fix C++ compilation.
24956         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24957         C++.
24958
24959 2010-01-07  Bruno Haible  <bruno@clisp.org>
24960
24961         Fix indentation of wctype.in.h, broken since 2007-01-06.
24962         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24963
24964 2010-01-07  Bruno Haible  <bruno@clisp.org>
24965
24966         mbslen: Avoid collision with system function.
24967         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24968         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24969         * m4/mbslen.m4: New file.
24970         * modules/mbslen (Files): Add it.
24971         (configure.ac): Invoke gl_MBSLEN.
24972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24973         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24974         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24975         via Ian Beckwith <ianb@erislabs.net>.
24976
24977 2010-01-07  Bruno Haible  <bruno@clisp.org>
24978
24979         dirent: Document the last fix.
24980         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24981
24982 2010-01-07  Bruno Haible  <bruno@clisp.org>
24983
24984         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24985         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24986         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24987         va_list are defined.
24988         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24989         Reported by Eric Blake.
24990
24991 2010-01-07  Bruno Haible  <bruno@clisp.org>
24992
24993         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24994         * modules/xlist (Depends-on): Add 'list',
24995         * modules/xoset (Depends-on): Add 'oset'.
24996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24997
24998 2010-01-07  Bruno Haible  <bruno@clisp.org>
24999
25000         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25001         * doc/posix-functions/strncasecmp.texi: Likewise.
25002
25003 2010-01-07  Bruno Haible  <bruno@clisp.org>
25004
25005         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25006
25007 2010-01-07  John W. Eaton  <jwe@octave.org>
25008
25009         wctype: allow C++ use
25010         * lib/wctype.in.h: Add extern "C" block for C++.
25011
25012 2010-01-06  Eric Blake  <ebb9@byu.net>
25013
25014         maint.mk: detect incorrect GFDL usage
25015         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25016
25017 2010-01-06  Jim Meyering  <meyering@redhat.com>
25018         and Eric Blake  <ebb9@byu.net>
25019
25020         maint.mk: ignore multi-line copyright in NEWS
25021         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25022
25023 2010-01-06  Eric Blake  <ebb9@byu.net>
25024
25025         select: add missing dependency
25026         * modules/select-tests (Depends-on): Move sockets dependency...
25027         * modules/select (Depends-on): ...here.
25028         Reported by Ian Beckwith.
25029
25030         doc: regenerate INSTALL
25031         * doc/INSTALL: Reflect recent autoconf update.
25032         * doc/INSTALL.ISO: Likewise.
25033         * doc/INSTALL.UTF-8: Likewise.
25034
25035         pread: fix compilation on glibc
25036         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25037         Reported by Ralf Wildenhues.
25038
25039         dirent: fix test failure
25040         * lib/dirent.in.h (includes): Guarantee ino_t.
25041         Reported by Ralf Wildenhues.
25042
25043 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25044
25045         linkat, renameat: avoid bad free
25046         * lib/at-func2.c (at_func2): Fix typo.
25047         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25048
25049 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25050
25051         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25052         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25053         to avoid failure of symlink test later.
25054
25055 2010-01-06  Eric Blake  <ebb9@byu.net>
25056
25057         stdio, unistd: guarantee ssize_t
25058         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25059         2008 are exposed when needed.
25060         * lib/stdio.in.h (includes): Likewise.
25061         Reported by Ralf Wildenhues.
25062
25063 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25064
25065         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25066         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25067         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25068
25069 2010-01-06  Jim Meyering  <meyering@redhat.com>
25070
25071         readtokens: this module *does* require xalloc.h
25072         It uses only functions that were omitted by the old syntax-check rule.
25073         * lib/readtokens.c: Include "xalloc.h" once again.
25074         * modules/readtokens (Depends-on): Add xalloc.
25075         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25076
25077 2010-01-05  Eric Blake  <ebb9@byu.net>
25078
25079         maint: support 'make announcement' from a VPATH build
25080         * top/maint.mk (announcement): Look for correct NEWS file.
25081
25082 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25083
25084         utimens (fdutimens): ignore a negative FD, per contract
25085         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25086         when we have a valid file descriptor.  Otherwise, using a brand
25087         new glibc (with just-patched futimens that now fails with EBADF)
25088         would cause this function to fail with ENOSYS.
25089         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25090         See also http://bugzilla.redhat.com/552320.
25091
25092 2010-01-05  Eric Blake  <ebb9@byu.net>
25093
25094         strcase: document what it provides
25095         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25096         gnulib module.
25097         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25098         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25099
25100 2010-01-05  Jim Meyering  <meyering@redhat.com>
25101
25102         maint: remove useless inclusions of "xalloc.h"
25103         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25104         * lib/readtokens.c: Likewise.
25105         * lib/same.c: Likewise.
25106         * modules/getloadavg (Depends-on): Remove xalloc.
25107         * modules/readtokens: Likewise.
25108         * modules/same: Likewise.
25109
25110         maint.mk: include 4 more function names in alloca.h-checking regexp
25111         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25112         regexp.  Before, we would give a false-positive (saying alloca.h
25113         is included unnecessarily) when the only uses involved omitted symbols.
25114
25115         xalloc.h: use consistent formatting
25116         * lib/xalloc.h: Move declarations to start in the first column.
25117
25118 2010-01-05  Eric Blake  <ebb9@byu.net>
25119
25120         mkdir: avoid xalloc
25121         * lib/mkdir.c (includes): Drop unused header.
25122         Reported by John W. Eaton.
25123
25124 2010-01-04  Jim Meyering  <meyering@redhat.com>
25125
25126         nl_langinfo: avoid configure-time syntax error
25127         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25128         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25129         the empty string.  Don't let that provoke a shell syntax error.
25130
25131         regcomp, regexec, fnmatch: avoid array bounds read error
25132         * lib/regcomp.c (build_equiv_class): From glibc:
25133         Use only the low 24 bits of a findidx return value as an index
25134         into the weights array.  Patch by Ulrich Drepper:
25135         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25136         * lib/regexec.c (check_node_accept_bytes): Likewise.
25137         * lib/fnmatch_loop.c (FCT): Likewise.
25138
25139         regcomp: skip collseq lookup when there are no rules
25140         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25141         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25142
25143         regcomp: recognize ill-formed { } expressions
25144         * lib/regcomp.c (parse_dup_op): From glibc:
25145         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25146
25147         regcomp: fix typo in comment
25148         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25149         s/satisfy/satisfies/.
25150
25151         regcomp: sync from glibc: remove dead store
25152         * lib/regcomp.c (duplicate_node_closure): Remove useless
25153         search_duplicated_node call and dead store.
25154
25155         regcomp: sync from glibc; always use nl_langinfo
25156         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25157         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25158         * modules/regex (Depends-on): Add nl_langinfo.
25159
25160 2010-01-04  Eric Blake  <ebb9@byu.net>
25161
25162         fdopendir: fix configure test
25163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25164
25165 2010-01-01  Bruno Haible  <bruno@clisp.org>
25166
25167         wchar: Remove unused configure check.
25168         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25169
25170 2010-01-01  Eric Blake  <ebb9@byu.net>
25171
25172         headers: make check of system header explicit
25173         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25174         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25175         ourselves.
25176         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25178         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25179         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25180         internals.
25181         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25182         missing.
25183         Suggested by Bruno Haible.
25184
25185 2010-01-01  Jim Meyering  <meyering@redhat.com>
25186
25187         ChangeLog: tweak to eliminate unnecessary copyright line
25188         * ChangeLog: Remove a copyright line that was mistakenly updated
25189         by today's update-copyright run.  Reported by Eric Blake.
25190
25191         test-update-copyright: don't let envvar setting cause test failure
25192         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25193
25194 2010-01-01  Bruno Haible  <bruno@clisp.org>
25195
25196         localename: Avoid gcc warning.
25197         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25198         function if it is not used.
25199
25200 2010-01-01  Jim Meyering  <meyering@redhat.com>
25201
25202         update nearly all FSF copyright year lists to include 2010
25203         Use the same procedure as for 2009, outlined in
25204         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25205
25206         version-etc: set COPYRIGHT_YEAR to 2010
25207         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25208
25209 2009-12-31  Eric Blake  <ebb9@byu.net>
25210
25211         doc: correct availability of cygwin 1.5.x getopt
25212         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25213         variables.
25214         * doc/posix-functions/opterr.texi (opterr): Likewise.
25215         * doc/posix-functions/optind.texi (optind): Likewise.
25216         * doc/posix-functions/optopt.texi (optopt): Likewise.
25217         * doc/posix-functions/tzname.texi (tzname): Likewise.
25218
25219         openat: update maintainer
25220         * modules/openat (Maintainer): Add myself.
25221
25222         utimens: avoid shadowing warning
25223         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25224         buffers into one, to avoid shadowing, as well as avoiding a
25225         redundant stat.
25226         Reported by Jim Meyering.
25227
25228         test-dup2: avoid compiler warning
25229         * tests/test-dup2.c (is_inheritable): Only define if used.
25230
25231 2010-01-01  Bruno Haible  <bruno@clisp.org>
25232
25233         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25234         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25235         defined, use wctomb instead of wcrtomb.
25236
25237 2010-01-01  Bruno Haible  <bruno@clisp.org>
25238
25239         iconv: Reject native Solaris iconv.
25240         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25241         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25242
25243 2009-12-31  Bruno Haible  <bruno@clisp.org>
25244
25245         * tests/test-signal.c (main): Remove test of 'SIG'.
25246
25247 2009-12-31  Bruno Haible  <bruno@clisp.org>
25248
25249         spawn: Fix incomplete fix.
25250         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25251         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25252         warnings for GNULIB_POSIXCHECK again.
25253         Reported by Eric Blake.
25254
25255 2009-12-31  Bruno Haible  <bruno@clisp.org>
25256
25257         Avoid namespace pollution on glibc systems.
25258         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25259         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25260         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25261         glibc systems.
25262
25263 2009-12-31  Bruno Haible  <bruno@clisp.org>
25264
25265         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25266         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25267         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25268         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25269         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25270         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25271         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25272
25273 2009-12-31  Bruno Haible  <bruno@clisp.org>
25274
25275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25276         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25277         afterwards.
25278
25279 2009-12-31  Bruno Haible  <bruno@clisp.org>
25280
25281         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25282         SYS_UTSNAME_H.
25283
25284 2009-12-31  Bruno Haible  <bruno@clisp.org>
25285
25286         spawn: Fix misapplied patch.
25287         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25288         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25289         warnings for GNULIB_POSIXCHECK.
25290
25291 2009-12-31  Bruno Haible  <bruno@clisp.org>
25292
25293         times: Update after sys_times changed.
25294         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25295         * modules/times (Files): Add it.
25296         (configure.ac): Invoke gl_FUNC_TIMES.
25297
25298 2009-12-31  Bruno Haible  <bruno@clisp.org>
25299
25300         Use AC_C_INLINE where necessary.
25301         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25302         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25304         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25305         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25306         * m4/mbiter.m4 (gl_MBITER): Likewise.
25307         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25308         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25309         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25310         * modules/u64 (configure.ac): Likewise.
25311
25312 2009-12-31  Bruno Haible  <bruno@clisp.org>
25313
25314         Use AC_C_INLINE instead of module 'inline' where possible.
25315         * modules/inline (Description): Clarify purpose.
25316         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25317         * modules/count-one-bits (Depends-on): Remove inline.
25318         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25319         * modules/openat (Depends-on): Remove inline.
25320         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25321         instead of depending on module 'inline'.
25322         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25323         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25324         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25325         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25326         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25327         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25328         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25329         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25330         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25331         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25332         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25333         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25334         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25335         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25336         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25337         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25338         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25339         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25340         Likewise.
25341         * modules/unictype/property-ascii-hex-digit (Depends-on,
25342         configure.ac): Likewise.
25343         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25344         configure.ac): Likewise.
25345         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25346         configure.ac): Likewise.
25347         * modules/unictype/property-bidi-block-separator (Depends-on,
25348         configure.ac): Likewise.
25349         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25350         configure.ac): Likewise.
25351         * modules/unictype/property-bidi-common-separator (Depends-on,
25352         configure.ac): Likewise.
25353         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25354         Likewise.
25355         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25356         configure.ac): Likewise.
25357         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25358         configure.ac): Likewise.
25359         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25360         configure.ac): Likewise.
25361         * modules/unictype/property-bidi-european-digit (Depends-on,
25362         configure.ac): Likewise.
25363         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25364         configure.ac): Likewise.
25365         * modules/unictype/property-bidi-left-to-right (Depends-on,
25366         configure.ac): Likewise.
25367         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25368         configure.ac): Likewise.
25369         * modules/unictype/property-bidi-other-neutral (Depends-on,
25370         configure.ac): Likewise.
25371         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25372         Likewise.
25373         * modules/unictype/property-bidi-segment-separator (Depends-on,
25374         configure.ac): Likewise.
25375         * modules/unictype/property-bidi-whitespace (Depends-on,
25376         configure.ac): Likewise.
25377         * modules/unictype/property-combining (Depends-on, configure.ac):
25378         Likewise.
25379         * modules/unictype/property-composite (Depends-on, configure.ac):
25380         Likewise.
25381         * modules/unictype/property-currency-symbol (Depends-on,
25382         configure.ac): Likewise.
25383         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25384         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25385         Likewise.
25386         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25387         configure.ac): Likewise.
25388         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25389         Likewise.
25390         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25391         Likewise.
25392         * modules/unictype/property-extender (Depends-on, configure.ac):
25393         Likewise.
25394         * modules/unictype/property-format-control (Depends-on, configure.ac):
25395         Likewise.
25396         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25397         Likewise.
25398         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25399         Likewise.
25400         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25401         Likewise.
25402         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25403         Likewise.
25404         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25405         Likewise.
25406         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25407         Likewise.
25408         * modules/unictype/property-id-start (Depends-on, configure.ac):
25409         Likewise.
25410         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25411         Likewise.
25412         * modules/unictype/property-ids-binary-operator (Depends-on,
25413         configure.ac): Likewise.
25414         * modules/unictype/property-ids-trinary-operator (Depends-on,
25415         configure.ac): Likewise.
25416         * modules/unictype/property-ignorable-control (Depends-on,
25417         configure.ac): Likewise.
25418         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25419         Likewise.
25420         * modules/unictype/property-join-control (Depends-on, configure.ac):
25421         Likewise.
25422         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25423         Likewise.
25424         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25425         Likewise.
25426         * modules/unictype/property-logical-order-exception (Depends-on,
25427         configure.ac): Likewise.
25428         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25429         Likewise.
25430         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25431         * modules/unictype/property-non-break (Depends-on, configure.ac):
25432         Likewise.
25433         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25434         Likewise.
25435         * modules/unictype/property-numeric (Depends-on, configure.ac):
25436         Likewise.
25437         * modules/unictype/property-other-alphabetic (Depends-on,
25438         configure.ac): Likewise.
25439         * modules/unictype/property-other-default-ignorable-code-point
25440         (Depends-on, configure.ac): Likewise.
25441         * modules/unictype/property-other-grapheme-extend (Depends-on,
25442         configure.ac): Likewise.
25443         * modules/unictype/property-other-id-continue (Depends-on,
25444         configure.ac): Likewise.
25445         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25446         Likewise.
25447         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25448         Likewise.
25449         * modules/unictype/property-other-math (Depends-on, configure.ac):
25450         Likewise.
25451         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25452         Likewise.
25453         * modules/unictype/property-paired-punctuation (Depends-on,
25454         configure.ac): Likewise.
25455         * modules/unictype/property-paragraph-separator (Depends-on,
25456         configure.ac): Likewise.
25457         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25458         Likewise.
25459         * modules/unictype/property-pattern-white-space (Depends-on,
25460         configure.ac): Likewise.
25461         * modules/unictype/property-private-use (Depends-on, configure.ac):
25462         Likewise.
25463         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25464         Likewise.
25465         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25466         Likewise.
25467         * modules/unictype/property-radical (Depends-on, configure.ac):
25468         Likewise.
25469         * modules/unictype/property-sentence-terminal (Depends-on,
25470         configure.ac): Likewise.
25471         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25472         Likewise.
25473         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25474         * modules/unictype/property-terminal-punctuation (Depends-on,
25475         configure.ac): Likewise.
25476         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25477         Likewise.
25478         * modules/unictype/property-unassigned-code-value (Depends-on,
25479         configure.ac): Likewise.
25480         * modules/unictype/property-unified-ideograph (Depends-on,
25481         configure.ac): Likewise.
25482         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25483         Likewise.
25484         * modules/unictype/property-variation-selector (Depends-on,
25485         configure.ac): Likewise.
25486         * modules/unictype/property-white-space (Depends-on, configure.ac):
25487         Likewise.
25488         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25489         Likewise.
25490         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25491         Likewise.
25492         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25493         Likewise.
25494         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25495         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25496         Likewise.
25497
25498 2009-12-31  Bruno Haible  <bruno@clisp.org>
25499
25500         Remove unnecessary AC_C_INLINE invocation.
25501         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25502         since 2009-08-21.
25503
25504 2009-12-31  Jim Meyering  <meyering@redhat.com>
25505
25506         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25507         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25508         With this change, we can all remove the gpg_key_ID = ... definition
25509         from our respective cfg.mk files.
25510
25511         maint.mk: create announcement template in ~/, not in /tmp
25512         * top/maint.mk (emit_upload_commands): Adjust.
25513         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25514         Remove temporary file, .ci-msg.
25515
25516 2009-12-31  Eric Blake  <ebb9@byu.net>
25517
25518         link-warning: always build headers with link warnings
25519         * modules/arpa_inet (Makefile.am): Always build replacement
25520         header.
25521         * modules/ctype (Makefile.am): Likewise.
25522         * modules/dirent (Makefile.am): Likewise.
25523         * modules/inttypes (Makefile.am): Likewise.
25524         * modules/langinfo (Makefile.am): Likewise.
25525         * modules/locale (Makefile.am): Likewise.
25526         * modules/spawn (Makefile.am): Likewise.
25527         * modules/sys_file (Makefile.am): Likewise.
25528         * modules/sys_ioctl (Makefile.am): Likewise.
25529         * modules/sys_select (Makefile.am): Likewise.
25530         * modules/sys_socket (Makefile.am): Likewise.
25531         * modules/sys_times (Makefile.am): Likewise.
25532         * modules/sys_utsname (Makefile.am): Likewise.
25533         * modules/sys_wait (Makefile.am): Likewise.
25534         * modules/wchar (Makefile.am): Likewise.
25535         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25536         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25537         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25538         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25539         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25540         Likewise.
25541         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25542         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25543         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25544         Likewise.
25545         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25546         Likewise.
25547         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25548         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25549         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25550         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25551         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25552         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25553         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25554         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25555         (gl_WCHAR_H_DEFAULTS): Likewise.
25556
25557 2009-12-31  Eric Blake  <ebb9@byu.net>
25558
25559         signal, spawn: use link warnings
25560         * lib/signal.in.h (sigset_t): Make unconditional.
25561         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25562         (sigpending, sigprocmask, sigaction): Add link warnings.
25563         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25564         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25565         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25566         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25567         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25568         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25569         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25570         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25571         (posix_spawn_file_actions_destroy)
25572         (posix_spawn_file_actions_addopen)
25573         (posix_spawn_file_actions_addclose)
25574         (posix_spawn_file_actions_adddup2): Likewise.
25575         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25576         * tests/test-signal.c (main): Enhance test.
25577
25578         spawn: improve wrapper support
25579         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25580         (gl_SPAWN_H_DEFAULTS): New defaults.
25581         * modules/spawn (Makefile.am): Substitute them.
25582         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25583         Only declare if missing or broken.
25584
25585         sys_times, sys_utsname: use include_next
25586         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25587         header.
25588         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25589         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25590         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25591         * modules/sys_times (Depends-on): Add include_next.
25592         (Makefile.am): Substitute additional values.
25593         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25594         * lib/sys_times.in.h (includes): Include native header, if
25595         available.
25596         * lib/sys_utsname.in.h (includes): Likewise.
25597         * tests/test-sys_times.c (main): Enhance test.
25598
25599         fdutimensat: revert prior patch
25600         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25601         utimens.h.
25602         Reported by Bruno Haible.
25603
25604 2009-12-30  Eric Blake  <ebb9@byu.net>
25605
25606         sys_wait: drop link-warning dependency
25607         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25608         link-warning efforts.
25609         * lib/sys_wait.in.h: Likewise.
25610
25611         fdutimensat: remove bogus dependency
25612         * modules/fdutimensat (Depends-on): Drop inline.
25613
25614         unistd: fix typo
25615         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25616
25617 2009-12-30  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix compilation error with Solaris cc.
25620         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25621         * lib/unicase/u16-is-invariant.c: Likewise.
25622         * lib/unicase/u32-is-invariant.c: Likewise.
25623         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25624
25625 2009-12-30  Bruno Haible  <bruno@clisp.org>
25626
25627         Fix test crash.
25628         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25629         locales.
25630         Reported by Simon Josefsson <simon@josefsson.org>.
25631
25632 2009-12-30  Bruno Haible  <bruno@clisp.org>
25633
25634         Fix compilation error on most platforms.
25635         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25636         Reported by Simon Josefsson <simon@josefsson.org>
25637         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25638
25639 2009-12-30  Eric Blake  <ebb9@byu.net>
25640
25641         futimens, utimensat: work around ntfs-3g bug
25642         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25643         a ctime bug is present, and expand workaround to cover ntfs-3g.
25644         * lib/utimens.c (fdutimens, lutimens): Likewise.
25645         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25646         (validate_timespec): Adjust return value.
25647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25648         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25649         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25650
25651 2009-12-29  Eric Blake  <ebb9@byu.net>
25652
25653         link-warning: make usage consistent
25654         * modules/ctype (Depends-on): Add link-warning.
25655         (Makefile.am): Update rules accordingly.
25656         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25657         * modules/locale (Depends-on, Makefile.am): Likewise.
25658         * modules/sys_file (Makefile.am): Likewise.
25659         * modules/getopt-posix (Makefile.am): Delete unused link warning
25660         efforts.
25661         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25662         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25663         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25664         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25665
25666         stdio: remove unused variables
25667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25668         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25669         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25670
25671         tests: test more substitute headers
25672         * modules/ctype-tests: New file.
25673         * modules/dirent-tests: Likewise.
25674         * modules/spawn-tests: Likewise.
25675         * modules/sys_file-tests: Likewise.
25676         * modules/sys_ioctl-tests: Likewise.
25677         * modules/sys_wait-tests: Likewise.
25678         * tests/test-ctype.c: Likewise.
25679         * tests/test-dirent.c: Likewise.
25680         * tests/test-spawn.c: Likewise.
25681         * tests/test-sys_file.c: Likewise.
25682         * tests/test-sys_ioctl.c: Likewise.
25683         * tests/test-sys_wait.c: Likewise.
25684         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25685         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25686         whether or not flock is in use.
25687
25688         tests: remove License section from module
25689         * modules/arpa_inet-tests: Remove unneeded section.
25690         * modules/byteswap-tests: Likewise.
25691         * modules/ceilf-tests: Likewise.
25692         * modules/ceill-tests: Likewise.
25693         * modules/crypto/des-tests: Likewise.
25694         * modules/crypto/gc-arcfour-tests: Likewise.
25695         * modules/crypto/gc-arctwo-tests: Likewise.
25696         * modules/crypto/gc-des-tests: Likewise.
25697         * modules/crypto/gc-hmac-md5-tests: Likewise.
25698         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25699         * modules/crypto/gc-md2-tests: Likewise.
25700         * modules/crypto/gc-md4-tests: Likewise.
25701         * modules/crypto/gc-md5-tests: Likewise.
25702         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25703         * modules/crypto/gc-rijndael-tests: Likewise.
25704         * modules/crypto/gc-sha1-tests: Likewise.
25705         * modules/crypto/gc-tests: Likewise.
25706         * modules/crypto/md2-tests: Likewise.
25707         * modules/crypto/md4-tests: Likewise.
25708         * modules/fcntl-h-tests: Likewise.
25709         * modules/floorf-tests: Likewise.
25710         * modules/floorl-tests: Likewise.
25711         * modules/frexp-nolibm-tests: Likewise.
25712         * modules/frexp-tests: Likewise.
25713         * modules/frexpl-nolibm-tests: Likewise.
25714         * modules/frexpl-tests: Likewise.
25715         * modules/getaddrinfo-tests: Likewise.
25716         * modules/inttypes-tests: Likewise.
25717         * modules/isfinite-tests: Likewise.
25718         * modules/isinf-tests: Likewise.
25719         * modules/ldexpl-tests: Likewise.
25720         * modules/locale-tests: Likewise.
25721         * modules/math-tests: Likewise.
25722         * modules/netdb-tests: Likewise.
25723         * modules/netinet_in-tests: Likewise.
25724         * modules/printf-frexp-tests: Likewise.
25725         * modules/printf-frexpl-tests: Likewise.
25726         * modules/priv-set-tests: Likewise.
25727         * modules/random_r-tests: Likewise.
25728         * modules/round-tests: Likewise.
25729         * modules/roundf-tests: Likewise.
25730         * modules/roundl-tests: Likewise.
25731         * modules/search-tests: Likewise.
25732         * modules/select-tests: Likewise.
25733         * modules/signal-tests: Likewise.
25734         * modules/stdbool-tests: Likewise.
25735         * modules/stddef-tests: Likewise.
25736         * modules/stdint-tests: Likewise.
25737         * modules/stdio-tests: Likewise.
25738         * modules/stdlib-tests: Likewise.
25739         * modules/string-tests: Likewise.
25740         * modules/strings-tests: Likewise.
25741         * modules/sys_select-tests: Likewise.
25742         * modules/sys_socket-tests: Likewise.
25743         * modules/sys_stat-tests: Likewise.
25744         * modules/sys_time-tests: Likewise.
25745         * modules/sys_utsname-tests: Likewise.
25746         * modules/sysexits-tests: Likewise.
25747         * modules/time-tests: Likewise.
25748         * modules/trunc-tests: Likewise.
25749         * modules/truncf-tests: Likewise.
25750         * modules/truncl-tests: Likewise.
25751         * modules/tsearch-tests: Likewise.
25752         * modules/unistd-tests: Likewise.
25753         * modules/wchar-tests: Likewise.
25754         * modules/wctype-tests: Likewise.
25755
25756         tests: fix license on several tests
25757         * tests/test-des.c: Update to GPLv3+.
25758         * tests/test-flock.c: Likewise.
25759         * tests/test-fsync.c: Likewise.
25760         * tests/test-futimens.h: Likewise.
25761         * tests/test-gc-arcfour.c: Likewise.
25762         * tests/test-gc-arctwo.c: Likewise.
25763         * tests/test-gc-des.c: Likewise.
25764         * tests/test-gc-hmac-md5.c: Likewise.
25765         * tests/test-gc-hmac-sha1.c: Likewise.
25766         * tests/test-gc-md2.c: Likewise.
25767         * tests/test-gc-md4.c: Likewise.
25768         * tests/test-gc-md5.c: Likewise.
25769         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25770         * tests/test-gc-rijndael.c: Likewise.
25771         * tests/test-gc-sha1.c: Likewise.
25772         * tests/test-gc.c: Likewise.
25773         * tests/test-getcwd.c: Likewise.
25774         * tests/test-link.c: Likewise.
25775         * tests/test-link.h: Likewise.
25776         * tests/test-lutimens.h: Likewise.
25777         * tests/test-md2.c: Likewise.
25778         * tests/test-md4.c: Likewise.
25779         * tests/test-mkdir.h: Likewise.
25780         * tests/test-rename.c: Likewise.
25781         * tests/test-rename.h: Likewise.
25782         * tests/test-safe-alloc.c: Likewise.
25783         * tests/test-utimens-common.h: Likewise.
25784         * tests/test-utimens.h: Likewise.
25785
25786         maint: sync license texts
25787         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25788         * doc/gpl-3.0.texi: Revert copyright year update.
25789         * doc/lgpl-3.0.texi: Likewise.
25790
25791 2009-12-29  Jim Meyering  <meyering@redhat.com>
25792
25793         update nearly all FSF copyright year lists to include 2009
25794         The files named by the following are exempted:
25795             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25796               test -f "$dst" && { echo "$dst"; continue; }
25797               test -d "$dst" || continue
25798               echo "$dst"/$(basename "$src")
25799             done > exempt
25800             git ls-files tests/unictype >> exempt
25801         In the remaining files, convert to all-interval notation if
25802         - there is already at least one year interval like 2000-2003
25803         - the file is maintained by me
25804         - the file is in lib/uni*/, where that style already prevails
25805         Otherwise, use update-copyright's default.
25806
25807 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25808         and Eric Blake  <ebb9@byu.net>
25809
25810         tests: don't require debug system() to pass
25811         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25812         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25813         * tests/test-unlink.h (test_unlink_func): Likewise.
25814         * tests/test-fstatat.c (main): ...into callers.
25815         * tests/test-lstat.c (main): Likewise.
25816         * tests/test-rmdir.c (main): Likewise.
25817         * tests/test-unlink.c (main): Likewise.
25818         * tests/test-unlinkat.c (main): Likewise.
25819         * tests/test-areadlink-with-size.c (main): Don't require a
25820         debug-only system call to pass, aiding cross-testing to mingw.
25821         * tests/test-areadlink.c (main): Likewise.
25822         * tests/test-areadlinkat-with-size.c (main): Likewise.
25823         * tests/test-areadlinkat.c (main): Likewise.
25824         * tests/test-canonicalize-lgpl.c (main): Likewise.
25825         * tests/test-canonicalize.c (main): Likewise.
25826         * tests/test-chown.c (main): Likewise.
25827         * tests/test-fchownat.c (main): Likewise.
25828         * tests/test-lchown.c (main): Likewise.
25829         * tests/test-fdutimensat.c (main): Likewise.
25830         * tests/test-futimens.c (main): Likewise.
25831         * tests/test-link.c (main): Likewise.
25832         * tests/test-linkat.c (main): Likewise.
25833         * tests/test-mkdir.c (main): Likewise.
25834         * tests/test-mkdirat.c (main): Likewise.
25835         * tests/test-mkfifo.c (main): Likewise.
25836         * tests/test-mkfifoat.c (main): Likewise.
25837         * tests/test-mknod.c (main): Likewise.
25838         * tests/test-readlink.c (main): Likewise.
25839         * tests/test-remove.c (main): Likewise.
25840         * tests/test-rename.c (main): Likewise.
25841         * tests/test-renameat.c (main): Likewise.
25842         * tests/test-symlink.c (main): Likewise.
25843         * tests/test-symlinkat.c (main): Likewise.
25844         * tests/test-utimens.c (main): Likewise.
25845         * tests/test-utimensat.c (main): Likewise.
25846
25847 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25848
25849         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25850         on $(UNUSED_PARAMETER_H) to avoid build failure.
25851
25852 2009-12-28  Jim Meyering  <meyering@redhat.com>
25853
25854         update-copyright: you may specify a max. line length other than 72
25855         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25856
25857         maint: use consistent FSF copyright line syntax
25858         * lib/posixtm.c: Add missing comma in FSF copyright line.
25859         * lib/posixtm.h: Likewise.
25860         * lib/getugroups.c: Add missing ", Inc.".
25861
25862         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25863         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25864         FSF copyright line.  Remove trailing blanks.
25865
25866 2009-12-28  Eric Blake  <ebb9@byu.net>
25867
25868         test-dup2: reduce dependencies
25869         * modules/cloexec (Configure.ac): Set witness.
25870         * modules/dup2-tests (Depends-on): Drop cloexec.
25871         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25872         not present.
25873         Suggested by Bruno Haible.
25874
25875 2009-12-26  Bruno Haible  <bruno@clisp.org>
25876
25877         Remove an unneeded dependency.
25878         * modules/fseterr (Depends-on): Remove dup2.
25879
25880 2009-12-26  Eric Blake  <ebb9@byu.net>
25881
25882         tests: use macros.h in more places
25883         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25884         (ASSERT_STREAM): Provide default of stderr.
25885         * tests/test-dirent-safer.c: Include macros.h, using alternate
25886         stream for assertions.
25887         * tests/test-dup-safer.c: Likewise.
25888         * tests/test-freopen-safer.c: Likewise.
25889         * tests/test-getopt.c: Likewise.
25890         * tests/test-openat-safer.c: Likewise.
25891         * tests/test-pipe.c: Likewise.
25892         * tests/test-popen-safer.c: Likewise.
25893         * modules/dirent-safer-tests (Files): Include macros.h.
25894         * modules/unistd-safer-tests (Files): Likewise.
25895         * modules/freopen-safer-tests (Files): Likewise.
25896         * modules/getopt-posix-tests (Files): Likewise.
25897         * modules/openat-safer-tests (Files): Likewise.
25898         * modules/pipe-tests (Files): Likewise.
25899
25900 2009-12-26  Bruno Haible  <bruno@clisp.org>
25901
25902         javacomp: Portability fix.
25903         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25904         that it also works on Solaris.
25905
25906 2009-12-26  Bruno Haible  <bruno@clisp.org>
25907
25908         localename: Fix storage allocation of gl_locale_name_thread's result.
25909         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25910         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25911         all platforms that have 'uselocale'.
25912         (gl_locale_name_thread_unsafe): New function, extracted from
25913         gl_locale_name_thread.
25914         (gl_locale_name_thread): Call struniq on all platforms that have
25915         'uselocale'.
25916         * tests/test-localename.c (test_locale_name_thread): Check that the
25917         resulting strings are permanently allocated.
25918         * modules/localename-tests (Depends-on): Add strdup.
25919
25920 2009-12-26  Bruno Haible  <bruno@clisp.org>
25921
25922         * tests/test-localename.c (categories): Fill in the strings.
25923
25924 2009-12-26  Jim Meyering  <meyering@redhat.com>
25925
25926         isdir: complete the removal of m4/isdir.m4
25927         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25928
25929         isdir: clean up, since at least grep still uses it
25930         * lib/isdir.c: Include "isdir.h".
25931         (S_ISDIR): Remove now-unneeded definition.
25932         * modules/isdir (Files): Add lib/isdir.h.
25933         * lib/isdir.h: New file, with declaration.
25934         * m4/isdir.m4: Remove file -- unneeded.
25935
25936 2009-12-25  Bruno Haible  <bruno@clisp.org>
25937
25938         selinux-h: Make generated .h files standalone.
25939         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25940         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25941         * lib/se-selinux.in.h: Likewise.
25942         * modules/selinux-h (Depends-on): Add unused-parameter.
25943         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25944         selinux/selinux.h and selinux/context.h.
25945         Suggested by Eric Blake.
25946
25947 2009-12-25  Bruno Haible  <bruno@clisp.org>
25948
25949         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25950         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25951         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25952         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25953         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25954
25955 2009-12-24  Bruno Haible  <bruno@clisp.org>
25956
25957         openat: Fix warning.
25958         * lib/openat-proc.c: Include <unistd.h>.
25959
25960 2009-12-24  Bruno Haible  <bruno@clisp.org>
25961
25962         New module 'unused-parameter'.
25963         * build-aux/unused-parameter.h: New file, extracted from earlier
25964         gnulib-common.m4.
25965         * modules/unused-parameter: New file.
25966         * lib/unistr.h: Include unused-parameter.h.
25967         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25968         _GL_UNUSED.
25969         * modules/unistr/base (Depends-on): Add unused-parameter.
25970
25971 2009-12-24  Bruno Haible  <bruno@clisp.org>
25972
25973         Add missing dependencies to 'extensions' module.
25974         * m4/extensions.m4: Add comment.
25975         * modules/accept4 (Depends-on): Add extensions.
25976         * modules/dup3 (Depends-on): Likewise.
25977         * modules/fcntl (Depends-on): Likewise.
25978         * modules/futimens (Depends-on): Likewise.
25979         * modules/mknod (Depends-on): Likewise.
25980         * modules/pipe2 (Depends-on): Likewise.
25981         * modules/stat-time (Depends-on): Likewise.
25982         * modules/strcasestr-simple (Depends-on): Likewise.
25983         * modules/strsignal (Depends-on): Likewise.
25984         * modules/utimensat (Depends-on): Likewise.
25985         * modules/localcharset (Depends-on): Likewise. Needed because of
25986         gl_FCNTL_O_FLAGS.
25987         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25988         AC_TYPE_MBSTATE_T.
25989         * modules/wcsnrtombs (Depends-on): Likewise.
25990         * modules/wcsrtombs (Depends-on): Likewise.
25991
25992 2009-12-24  Bruno Haible  <bruno@clisp.org>
25993
25994         binary-io: Avoid gcc warning due to SET_BINARY.
25995         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25996         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25997
25998 2009-12-24  Bruno Haible  <bruno@clisp.org>
25999
26000         Avoid future namespace pollution on glibc systems.
26001         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26002         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26003         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26004         glibc systems.
26005
26006 2009-12-24  Bruno Haible  <bruno@clisp.org>
26007
26008         Refactor common macros used in tests.
26009         * tests/macros.h: New file.
26010         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26011         and/or <stdlib.h>, if appropriate.
26012         (ASSERT, SIZEOF): Remove macros.
26013         * tests/test-areadlink-with-size.c: Likewise.
26014         * tests/test-areadlinkat.c: Likewise.
26015         * tests/test-areadlinkat-with-size.c: Likewise.
26016         * tests/test-argmatch.c: Likewise.
26017         * tests/test-argv-iter.c: Likewise.
26018         * tests/test-array-mergesort.c: Likewise.
26019         * tests/test-array_list.c: Likewise.
26020         * tests/test-array_oset.c: Likewise.
26021         * tests/test-avltree_list.c: Likewise.
26022         * tests/test-avltree_oset.c: Likewise.
26023         * tests/test-avltreehash_list.c: Likewise.
26024         * tests/test-base64.c: Likewise.
26025         * tests/test-binary-io.c: Likewise.
26026         * tests/test-bitrotate.c: Likewise.
26027         * tests/test-btowc.c: Likewise.
26028         * tests/test-byteswap.c: Likewise.
26029         * tests/test-c-ctype.c: Likewise.
26030         * tests/test-c-stack.c: Likewise.
26031         * tests/test-c-strcasecmp.c: Likewise.
26032         * tests/test-c-strcasestr.c: Likewise.
26033         * tests/test-c-strncasecmp.c: Likewise.
26034         * tests/test-c-strstr.c: Likewise.
26035         * tests/test-canonicalize-lgpl.c: Likewise.
26036         * tests/test-canonicalize.c: Likewise.
26037         * tests/test-carray_list.c: Likewise.
26038         * tests/test-ceilf1.c: Likewise.
26039         * tests/test-ceilf2.c: Likewise.
26040         * tests/test-ceill.c: Likewise.
26041         * tests/test-chown.c: Likewise.
26042         * tests/test-cloexec.c: Likewise.
26043         * tests/test-copy-acl.c: Likewise.
26044         * tests/test-copy-file.c: Likewise.
26045         * tests/test-count-one-bits.c: Likewise.
26046         * tests/test-dprintf-posix.c: Likewise.
26047         * tests/test-dup2.c: Likewise.
26048         * tests/test-dup3.c: Likewise.
26049         * tests/test-duplocale.c: Likewise.
26050         * tests/test-fbufmode.c: Likewise.
26051         * tests/test-fchdir.c: Likewise.
26052         * tests/test-fchownat.c: Likewise.
26053         * tests/test-fcntl-safer.c: Likewise.
26054         * tests/test-fcntl.c: Likewise.
26055         * tests/test-fdopendir.c: Likewise.
26056         * tests/test-fdutimensat.c: Likewise.
26057         * tests/test-fflush2.c: Likewise.
26058         * tests/test-file-has-acl.c: Likewise.
26059         * tests/test-filevercmp.c: Likewise.
26060         * tests/test-flock.c: Likewise.
26061         * tests/test-floorf1.c: Likewise.
26062         * tests/test-floorf2.c: Likewise.
26063         * tests/test-floorl.c: Likewise.
26064         * tests/test-fnmatch.c: Likewise.
26065         * tests/test-fopen.h: Likewise.
26066         * tests/test-fpending.c: Likewise.
26067         * tests/test-fprintf-posix.c: Likewise.
26068         * tests/test-fpurge.c: Likewise.
26069         * tests/test-freadable.c: Likewise.
26070         * tests/test-freadahead.c: Likewise.
26071         * tests/test-freading.c: Likewise.
26072         * tests/test-freadptr.c: Likewise.
26073         * tests/test-freadptr2.c: Likewise.
26074         * tests/test-freadseek.c: Likewise.
26075         * tests/test-freopen.c: Likewise.
26076         * tests/test-frexp.c: Likewise.
26077         * tests/test-frexpl.c: Likewise.
26078         * tests/test-fseek.c: Likewise.
26079         * tests/test-fseeko.c: Likewise.
26080         * tests/test-fstatat.c: Likewise.
26081         * tests/test-fstrcmp.c: Likewise.
26082         * tests/test-fsync.c: Likewise.
26083         * tests/test-ftell.c: Likewise.
26084         * tests/test-ftello.c: Likewise.
26085         * tests/test-func.c: Likewise.
26086         * tests/test-futimens.c: Likewise.
26087         * tests/test-fwritable.c: Likewise.
26088         * tests/test-fwriting.c: Likewise.
26089         * tests/test-getcwd.c: Likewise.
26090         * tests/test-getdate.c: Likewise.
26091         * tests/test-getdelim.c: Likewise.
26092         * tests/test-getdtablesize.c: Likewise.
26093         * tests/test-getgroups.c: Likewise.
26094         * tests/test-getline.c: Likewise.
26095         * tests/test-getndelim2.c: Likewise.
26096         * tests/test-glob.c: Likewise.
26097         * tests/test-hash.c: Likewise.
26098         * tests/test-i-ring.c: Likewise.
26099         * tests/test-iconv-utf.c: Likewise.
26100         * tests/test-iconv.c: Likewise.
26101         * tests/test-idpriv-drop.c: Likewise.
26102         * tests/test-idpriv-droptemp.c: Likewise.
26103         * tests/test-inet_ntop.c: Likewise.
26104         * tests/test-inet_pton.c: Likewise.
26105         * tests/test-isblank.c: Likewise.
26106         * tests/test-isfinite.c: Likewise.
26107         * tests/test-isinf.c: Likewise.
26108         * tests/test-isnan.c: Likewise.
26109         * tests/test-isnand.h: Likewise.
26110         * tests/test-isnanf.h: Likewise.
26111         * tests/test-isnanl.h: Likewise.
26112         * tests/test-lchown.c: Likewise.
26113         * tests/test-ldexpl.c: Likewise.
26114         * tests/test-link.c: Likewise.
26115         * tests/test-linkat.c: Likewise.
26116         * tests/test-linked_list.c: Likewise.
26117         * tests/test-linkedhash_list.c: Likewise.
26118         * tests/test-localename.c: Likewise.
26119         * tests/test-lseek.c: Likewise.
26120         * tests/test-lstat.c: Likewise.
26121         * tests/test-mbmemcasecmp.c: Likewise.
26122         * tests/test-mbmemcasecoll.c: Likewise.
26123         * tests/test-mbrtowc.c: Likewise.
26124         * tests/test-mbscasecmp.c: Likewise.
26125         * tests/test-mbscasestr1.c: Likewise.
26126         * tests/test-mbscasestr2.c: Likewise.
26127         * tests/test-mbscasestr3.c: Likewise.
26128         * tests/test-mbscasestr4.c: Likewise.
26129         * tests/test-mbschr.c: Likewise.
26130         * tests/test-mbscspn.c: Likewise.
26131         * tests/test-mbsinit.c: Likewise.
26132         * tests/test-mbsncasecmp.c: Likewise.
26133         * tests/test-mbsnrtowcs.c: Likewise.
26134         * tests/test-mbspbrk.c: Likewise.
26135         * tests/test-mbspcasecmp.c: Likewise.
26136         * tests/test-mbsrchr.c: Likewise.
26137         * tests/test-mbsrtowcs.c: Likewise.
26138         * tests/test-mbsspn.c: Likewise.
26139         * tests/test-mbsstr1.c: Likewise.
26140         * tests/test-mbsstr2.c: Likewise.
26141         * tests/test-mbsstr3.c: Likewise.
26142         * tests/test-memchr.c: Likewise.
26143         * tests/test-memchr2.c: Likewise.
26144         * tests/test-memcmp.c: Likewise.
26145         * tests/test-memmem.c: Likewise.
26146         * tests/test-memrchr.c: Likewise.
26147         * tests/test-mkdir.c: Likewise.
26148         * tests/test-mkdirat.c: Likewise.
26149         * tests/test-mkfifo.c: Likewise.
26150         * tests/test-mkfifoat.c: Likewise.
26151         * tests/test-mknod.c: Likewise.
26152         * tests/test-nanosleep.c: Likewise.
26153         * tests/test-nl_langinfo.c: Likewise.
26154         * tests/test-obstack-printf.c: Likewise.
26155         * tests/test-open.c: Likewise.
26156         * tests/test-openat.c: Likewise.
26157         * tests/test-pipe-filter-gi1.c: Likewise.
26158         * tests/test-pipe-filter-gi2-main.c: Likewise.
26159         * tests/test-pipe-filter-ii1.c: Likewise.
26160         * tests/test-pipe-filter-ii2-main.c: Likewise.
26161         * tests/test-pipe2.c: Likewise.
26162         * tests/test-popen.h: Likewise.
26163         * tests/test-posixtm.c: Likewise.
26164         * tests/test-pread.c: Likewise.
26165         * tests/test-printf-frexp.c: Likewise.
26166         * tests/test-printf-frexpl.c: Likewise.
26167         * tests/test-printf-posix.c: Likewise.
26168         * tests/test-priv-set.c: Likewise.
26169         * tests/test-quotearg.c: Likewise.
26170         * tests/test-random_r.c: Likewise.
26171         * tests/test-rawmemchr.c: Likewise.
26172         * tests/test-rbtree_list.c: Likewise.
26173         * tests/test-rbtree_oset.c: Likewise.
26174         * tests/test-rbtreehash_list.c: Likewise.
26175         * tests/test-readlink.c: Likewise.
26176         * tests/test-remove.c: Likewise.
26177         * tests/test-rename.c: Likewise.
26178         * tests/test-renameat.c: Likewise.
26179         * tests/test-rmdir.c: Likewise.
26180         * tests/test-round1.c: Likewise.
26181         * tests/test-roundf1.c: Likewise.
26182         * tests/test-roundl.c: Likewise.
26183         * tests/test-safe-alloc.c: Likewise.
26184         * tests/test-sameacls.c: Likewise.
26185         * tests/test-set-mode-acl.c: Likewise.
26186         * tests/test-setenv.c: Likewise.
26187         * tests/test-sigaction.c: Likewise.
26188         * tests/test-signbit.c: Likewise.
26189         * tests/test-sleep.c: Likewise.
26190         * tests/test-snprintf-posix.c: Likewise.
26191         * tests/test-snprintf.c: Likewise.
26192         * tests/test-sprintf-posix.c: Likewise.
26193         * tests/test-stat-time.c: Likewise.
26194         * tests/test-stat.c: Likewise.
26195         * tests/test-strcasestr.c: Likewise.
26196         * tests/test-strchrnul.c: Likewise.
26197         * tests/test-strerror.c: Likewise.
26198         * tests/test-striconv.c: Likewise.
26199         * tests/test-striconveh.c: Likewise.
26200         * tests/test-striconveha.c: Likewise.
26201         * tests/test-strsignal.c: Likewise.
26202         * tests/test-strstr.c: Likewise.
26203         * tests/test-strtod.c: Likewise.
26204         * tests/test-strverscmp.c: Likewise.
26205         * tests/test-symlink.c: Likewise.
26206         * tests/test-symlinkat.c: Likewise.
26207         * tests/test-trunc1.c: Likewise.
26208         * tests/test-trunc2.c: Likewise.
26209         * tests/test-truncf1.c: Likewise.
26210         * tests/test-truncf2.c: Likewise.
26211         * tests/test-truncl.c: Likewise.
26212         * tests/test-uname.c: Likewise.
26213         * tests/test-unlink.c: Likewise.
26214         * tests/test-unlinkat.c: Likewise.
26215         * tests/test-unsetenv.c: Likewise.
26216         * tests/test-usleep.c: Likewise.
26217         * tests/test-utimens.c: Likewise.
26218         * tests/test-utimensat.c: Likewise.
26219         * tests/test-vasnprintf-posix.c: Likewise.
26220         * tests/test-vasnprintf-posix2.c: Likewise.
26221         * tests/test-vasnprintf.c: Likewise.
26222         * tests/test-vasprintf-posix.c: Likewise.
26223         * tests/test-vasprintf.c: Likewise.
26224         * tests/test-vdprintf-posix.c: Likewise.
26225         * tests/test-vfprintf-posix.c: Likewise.
26226         * tests/test-vprintf-posix.c: Likewise.
26227         * tests/test-vsnprintf-posix.c: Likewise.
26228         * tests/test-vsnprintf.c: Likewise.
26229         * tests/test-vsprintf-posix.c: Likewise.
26230         * tests/test-wcrtomb.c: Likewise.
26231         * tests/test-wcsnrtombs.c: Likewise.
26232         * tests/test-wcsrtombs.c: Likewise.
26233         * tests/test-wctype.c: Likewise.
26234         * tests/test-wcwidth.c: Likewise.
26235         * tests/test-xfprintf-posix.c: Likewise.
26236         * tests/test-xmemdup0.c: Likewise.
26237         * tests/test-xprintf-posix.c: Likewise.
26238         * tests/test-xvasprintf.c: Likewise.
26239         * tests/unicase/test-locale-language.c: Likewise.
26240         * tests/unicase/test-mapping-part1.h: Likewise.
26241         * tests/unicase/test-predicate-part1.h: Likewise.
26242         * tests/unicase/test-u8-casecmp.c: Likewise.
26243         * tests/unicase/test-u8-casecoll.c: Likewise.
26244         * tests/unicase/test-u8-casefold.c: Likewise.
26245         * tests/unicase/test-u8-is-cased.c: Likewise.
26246         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26247         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26248         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26249         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26250         * tests/unicase/test-u8-tolower.c: Likewise.
26251         * tests/unicase/test-u8-totitle.c: Likewise.
26252         * tests/unicase/test-u8-toupper.c: Likewise.
26253         * tests/unicase/test-u16-casecmp.c: Likewise.
26254         * tests/unicase/test-u16-casecoll.c: Likewise.
26255         * tests/unicase/test-u16-casefold.c: Likewise.
26256         * tests/unicase/test-u16-is-cased.c: Likewise.
26257         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26258         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26259         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26260         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26261         * tests/unicase/test-u16-tolower.c: Likewise.
26262         * tests/unicase/test-u16-totitle.c: Likewise.
26263         * tests/unicase/test-u16-toupper.c: Likewise.
26264         * tests/unicase/test-u32-casecmp.c: Likewise.
26265         * tests/unicase/test-u32-casecoll.c: Likewise.
26266         * tests/unicase/test-u32-casefold.c: Likewise.
26267         * tests/unicase/test-u32-is-cased.c: Likewise.
26268         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26269         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26270         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26271         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26272         * tests/unicase/test-u32-tolower.c: Likewise.
26273         * tests/unicase/test-u32-totitle.c: Likewise.
26274         * tests/unicase/test-u32-toupper.c: Likewise.
26275         * tests/unicase/test-ulc-casecmp.c: Likewise.
26276         * tests/unicase/test-ulc-casecoll.c: Likewise.
26277         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26278         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26279         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26280         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26281         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26282         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26283         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26284         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26285         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26286         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26287         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26288         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26289         * tests/unictype/test-bidi_byname.c: Likewise.
26290         * tests/unictype/test-bidi_name.c: Likewise.
26291         * tests/unictype/test-bidi_of.c: Likewise.
26292         * tests/unictype/test-bidi_test.c: Likewise.
26293         * tests/unictype/test-block_list.c: Likewise.
26294         * tests/unictype/test-block_of.c: Likewise.
26295         * tests/unictype/test-block_test.c: Likewise.
26296         * tests/unictype/test-categ_and.c: Likewise.
26297         * tests/unictype/test-categ_and_not.c: Likewise.
26298         * tests/unictype/test-categ_byname.c: Likewise.
26299         * tests/unictype/test-categ_name.c: Likewise.
26300         * tests/unictype/test-categ_none.c: Likewise.
26301         * tests/unictype/test-categ_of.c: Likewise.
26302         * tests/unictype/test-categ_or.c: Likewise.
26303         * tests/unictype/test-categ_test_withtable.c: Likewise.
26304         * tests/unictype/test-combining.c: Likewise.
26305         * tests/unictype/test-decdigit.c: Likewise.
26306         * tests/unictype/test-digit.c: Likewise.
26307         * tests/unictype/test-mirror.c: Likewise.
26308         * tests/unictype/test-numeric.c: Likewise.
26309         * tests/unictype/test-pr_byname.c: Likewise.
26310         * tests/unictype/test-pr_test.c: Likewise.
26311         * tests/unictype/test-predicate-part1.h: Likewise.
26312         * tests/unictype/test-scripts.c: Likewise.
26313         * tests/unictype/test-sy_c_ident.c: Likewise.
26314         * tests/unictype/test-sy_java_ident.c: Likewise.
26315         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26316         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26317         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26318         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26319         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26320         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26321         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26322         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26323         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26324         * tests/uninorm/test-compat-decomposition.c: Likewise.
26325         * tests/uninorm/test-composition.c: Likewise.
26326         * tests/uninorm/test-decomposing-form.c: Likewise.
26327         * tests/uninorm/test-decomposition.c: Likewise.
26328         * tests/uninorm/test-u8-nfc.c: Likewise.
26329         * tests/uninorm/test-u8-nfd.c: Likewise.
26330         * tests/uninorm/test-u8-nfkc.c: Likewise.
26331         * tests/uninorm/test-u8-nfkd.c: Likewise.
26332         * tests/uninorm/test-u8-normcmp.c: Likewise.
26333         * tests/uninorm/test-u8-normcoll.c: Likewise.
26334         * tests/uninorm/test-u16-nfc.c: Likewise.
26335         * tests/uninorm/test-u16-nfd.c: Likewise.
26336         * tests/uninorm/test-u16-nfkc.c: Likewise.
26337         * tests/uninorm/test-u16-nfkd.c: Likewise.
26338         * tests/uninorm/test-u16-normcmp.c: Likewise.
26339         * tests/uninorm/test-u16-normcoll.c: Likewise.
26340         * tests/uninorm/test-u32-nfc.c: Likewise.
26341         * tests/uninorm/test-u32-nfd.c: Likewise.
26342         * tests/uninorm/test-u32-nfkc.c: Likewise.
26343         * tests/uninorm/test-u32-nfkd.c: Likewise.
26344         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26345         * tests/uninorm/test-u32-normcmp.c: Likewise.
26346         * tests/uninorm/test-u32-normcoll.c: Likewise.
26347         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26348         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26349         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26350         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26351         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26352         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26353         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26354         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26355         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26356         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26357         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26358         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26359         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26360         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26361         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26362         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26363         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26364         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26365         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26366         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26367         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26368         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26369         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26370         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26371         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26372         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26373         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26374         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26375         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26376         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26377         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26378         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26379         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26380         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26381         * tests/uniwidth/test-u8-width.c: Likewise.
26382         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26383         * tests/uniwidth/test-u16-width.c: Likewise.
26384         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26385         * tests/uniwidth/test-u32-width.c: Likewise.
26386         * tests/uniwidth/test-uc_width.c: Likewise.
26387         * tests/uniwidth/test-uc_width2.c: Likewise.
26388         * modules/acl-tests (Files): Add tests/macros.h.
26389         * modules/areadlink-tests (Files): Likewise.
26390         * modules/areadlink-with-size-tests (Files): Likewise.
26391         * modules/areadlinkat-tests (Files): Likewise.
26392         * modules/areadlinkat-with-size-tests (Files): Likewise.
26393         * modules/argmatch-tests (Files): Likewise.
26394         * modules/argv-iter-tests (Files): Likewise.
26395         * modules/array-list-tests (Files): Likewise.
26396         * modules/array-mergesort-tests (Files): Likewise.
26397         * modules/array-oset-tests (Files): Likewise.
26398         * modules/avltree-list-tests (Files): Likewise.
26399         * modules/avltree-oset-tests (Files): Likewise.
26400         * modules/avltreehash-list-tests (Files): Likewise.
26401         * modules/base64-tests (Files): Likewise.
26402         * modules/binary-io-tests (Files): Likewise.
26403         * modules/bitrotate-tests (Files): Likewise.
26404         * modules/btowc-tests (Files): Likewise.
26405         * modules/byteswap-tests (Files): Likewise.
26406         * modules/c-ctype-tests (Files): Likewise.
26407         * modules/c-stack-tests (Files): Likewise.
26408         * modules/c-strcase-tests (Files): Likewise.
26409         * modules/c-strcasestr-tests (Files): Likewise.
26410         * modules/c-strstr-tests (Files): Likewise.
26411         * modules/canonicalize-lgpl-tests (Files): Likewise.
26412         * modules/canonicalize-tests (Files): Likewise.
26413         * modules/carray-list-tests (Files): Likewise.
26414         * modules/ceilf-tests (Files): Likewise.
26415         * modules/ceill-tests (Files): Likewise.
26416         * modules/chown-tests (Files): Likewise.
26417         * modules/cloexec-tests (Files): Likewise.
26418         * modules/copy-file-tests (Files): Likewise.
26419         * modules/count-one-bits-tests (Files): Likewise.
26420         * modules/dprintf-posix-tests (Files): Likewise.
26421         * modules/dup2-tests (Files): Likewise.
26422         * modules/dup3-tests (Files): Likewise.
26423         * modules/duplocale-tests (Files): Likewise.
26424         * modules/fbufmode-tests (Files): Likewise.
26425         * modules/fchdir-tests (Files): Likewise.
26426         * modules/fcntl-safer-tests (Files): Likewise.
26427         * modules/fcntl-tests (Files): Likewise.
26428         * modules/fdopendir-tests (Files): Likewise.
26429         * modules/fdutimensat-tests (Files): Likewise.
26430         * modules/fflush-tests (Files): Likewise.
26431         * modules/filevercmp-tests (Files): Likewise.
26432         * modules/flock-tests (Files): Likewise.
26433         * modules/floorf-tests (Files): Likewise.
26434         * modules/floorl-tests (Files): Likewise.
26435         * modules/fnmatch-tests (Files): Likewise.
26436         * modules/fopen-safer-tests (Files): Likewise.
26437         * modules/fopen-tests (Files): Likewise.
26438         * modules/fpending-tests (Files): Likewise.
26439         * modules/fprintf-posix-tests (Files): Likewise.
26440         * modules/fpurge-tests (Files): Likewise.
26441         * modules/freadable-tests (Files): Likewise.
26442         * modules/freadahead-tests (Files): Likewise.
26443         * modules/freading-tests (Files): Likewise.
26444         * modules/freadptr-tests (Files): Likewise.
26445         * modules/freadseek-tests (Files): Likewise.
26446         * modules/freopen-tests (Files): Likewise.
26447         * modules/frexp-nolibm-tests (Files): Likewise.
26448         * modules/frexp-tests (Files): Likewise.
26449         * modules/frexpl-nolibm-tests (Files): Likewise.
26450         * modules/frexpl-tests (Files): Likewise.
26451         * modules/fseek-tests (Files): Likewise.
26452         * modules/fseeko-tests (Files): Likewise.
26453         * modules/fstrcmp-tests (Files): Likewise.
26454         * modules/fsync-tests (Files): Likewise.
26455         * modules/ftell-tests (Files): Likewise.
26456         * modules/ftello-tests (Files): Likewise.
26457         * modules/func-tests (Files): Likewise.
26458         * modules/futimens-tests (Files): Likewise.
26459         * modules/fwritable-tests (Files): Likewise.
26460         * modules/fwriting-tests (Files): Likewise.
26461         * modules/getcwd-tests (Files): Likewise.
26462         * modules/getdate-tests (Files): Likewise.
26463         * modules/getdelim-tests (Files): Likewise.
26464         * modules/getdtablesize-tests (Files): Likewise.
26465         * modules/getgroups-tests (Files): Likewise.
26466         * modules/getline-tests (Files): Likewise.
26467         * modules/getndelim2-tests (Files): Likewise.
26468         * modules/glob-tests (Files): Likewise.
26469         * modules/hash-tests (Files): Likewise.
26470         * modules/i-ring-tests (Files): Likewise.
26471         * modules/iconv-tests (Files): Likewise.
26472         * modules/iconv_open-utf-tests (Files): Likewise.
26473         * modules/idpriv-drop-tests (Files): Likewise.
26474         * modules/idpriv-droptemp-tests (Files): Likewise.
26475         * modules/inet_ntop-tests (Files): Likewise.
26476         * modules/inet_pton-tests (Files): Likewise.
26477         * modules/isblank-tests (Files): Likewise.
26478         * modules/isfinite-tests (Files): Likewise.
26479         * modules/isinf-tests (Files): Likewise.
26480         * modules/isnan-tests (Files): Likewise.
26481         * modules/isnand-nolibm-tests (Files): Likewise.
26482         * modules/isnand-tests (Files): Likewise.
26483         * modules/isnanf-nolibm-tests (Files): Likewise.
26484         * modules/isnanf-tests (Files): Likewise.
26485         * modules/isnanl-nolibm-tests (Files): Likewise.
26486         * modules/isnanl-tests (Files): Likewise.
26487         * modules/lchown-tests (Files): Likewise.
26488         * modules/ldexpl-tests (Files): Likewise.
26489         * modules/link-tests (Files): Likewise.
26490         * modules/linkat-tests (Files): Likewise.
26491         * modules/linked-list-tests (Files): Likewise.
26492         * modules/linkedhash-list-tests (Files): Likewise.
26493         * modules/localename-tests (Files): Likewise.
26494         * modules/lseek-tests (Files): Likewise.
26495         * modules/lstat-tests (Files): Likewise.
26496         * modules/mbmemcasecmp-tests (Files): Likewise.
26497         * modules/mbmemcasecoll-tests (Files): Likewise.
26498         * modules/mbrtowc-tests (Files): Likewise.
26499         * modules/mbscasecmp-tests (Files): Likewise.
26500         * modules/mbscasestr-tests (Files): Likewise.
26501         * modules/mbschr-tests (Files): Likewise.
26502         * modules/mbscspn-tests (Files): Likewise.
26503         * modules/mbsinit-tests (Files): Likewise.
26504         * modules/mbsncasecmp-tests (Files): Likewise.
26505         * modules/mbsnrtowcs-tests (Files): Likewise.
26506         * modules/mbspbrk-tests (Files): Likewise.
26507         * modules/mbspcasecmp-tests (Files): Likewise.
26508         * modules/mbsrchr-tests (Files): Likewise.
26509         * modules/mbsrtowcs-tests (Files): Likewise.
26510         * modules/mbsspn-tests (Files): Likewise.
26511         * modules/mbsstr-tests (Files): Likewise.
26512         * modules/memchr-tests (Files): Likewise.
26513         * modules/memchr2-tests (Files): Likewise.
26514         * modules/memcmp-tests (Files): Likewise.
26515         * modules/memmem-tests (Files): Likewise.
26516         * modules/memrchr-tests (Files): Likewise.
26517         * modules/mkdir-tests (Files): Likewise.
26518         * modules/mkfifo-tests (Files): Likewise.
26519         * modules/mkfifoat-tests (Files): Likewise.
26520         * modules/mknod-tests (Files): Likewise.
26521         * modules/nanosleep-tests (Files): Likewise.
26522         * modules/nl_langinfo-tests (Files): Likewise.
26523         * modules/obstack-printf-tests (Files): Likewise.
26524         * modules/open-tests (Files): Likewise.
26525         * modules/openat-tests (Files): Likewise.
26526         * modules/pipe-filter-gi-tests (Files): Likewise.
26527         * modules/pipe-filter-ii-tests (Files): Likewise.
26528         * modules/pipe2-tests (Files): Likewise.
26529         * modules/popen-safer-tests (Files): Likewise.
26530         * modules/popen-tests (Files): Likewise.
26531         * modules/posixtm-tests (Files): Likewise.
26532         * modules/pread-tests (Files): Likewise.
26533         * modules/printf-frexp-tests (Files): Likewise.
26534         * modules/printf-frexpl-tests (Files): Likewise.
26535         * modules/printf-posix-tests (Files): Likewise.
26536         * modules/priv-set-tests (Files): Likewise.
26537         * modules/quotearg-tests (Files): Likewise.
26538         * modules/random_r-tests (Files): Likewise.
26539         * modules/rawmemchr-tests (Files): Likewise.
26540         * modules/rbtree-list-tests (Files): Likewise.
26541         * modules/rbtree-oset-tests (Files): Likewise.
26542         * modules/rbtreehash-list-tests (Files): Likewise.
26543         * modules/readlink-tests (Files): Likewise.
26544         * modules/remove-tests (Files): Likewise.
26545         * modules/rename-tests (Files): Likewise.
26546         * modules/renameat-tests (Files): Likewise.
26547         * modules/rmdir-tests (Files): Likewise.
26548         * modules/round-tests (Files): Likewise.
26549         * modules/roundf-tests (Files): Likewise.
26550         * modules/roundl-tests (Files): Likewise.
26551         * modules/safe-alloc-tests (Files): Likewise.
26552         * modules/setenv-tests (Files): Likewise.
26553         * modules/sigaction-tests (Files): Likewise.
26554         * modules/signbit-tests (Files): Likewise.
26555         * modules/sleep-tests (Files): Likewise.
26556         * modules/snprintf-posix-tests (Files): Likewise.
26557         * modules/snprintf-tests (Files): Likewise.
26558         * modules/sprintf-posix-tests (Files): Likewise.
26559         * modules/stat-tests (Files): Likewise.
26560         * modules/stat-time-tests (Files): Likewise.
26561         * modules/strcasestr-tests (Files): Likewise.
26562         * modules/strchrnul-tests (Files): Likewise.
26563         * modules/strerror-tests (Files): Likewise.
26564         * modules/striconv-tests (Files): Likewise.
26565         * modules/striconveh-tests (Files): Likewise.
26566         * modules/striconveha-tests (Files): Likewise.
26567         * modules/strsignal-tests (Files): Likewise.
26568         * modules/strstr-tests (Files): Likewise.
26569         * modules/strtod-tests (Files): Likewise.
26570         * modules/strverscmp-tests (Files): Likewise.
26571         * modules/symlink-tests (Files): Likewise.
26572         * modules/symlinkat-tests (Files): Likewise.
26573         * modules/trunc-tests (Files): Likewise.
26574         * modules/truncf-tests (Files): Likewise.
26575         * modules/truncl-tests (Files): Likewise.
26576         * modules/uname-tests (Files): Likewise.
26577         * modules/unicase/cased-tests (Files): Likewise.
26578         * modules/unicase/ignorable-tests (Files): Likewise.
26579         * modules/unicase/locale-language-tests (Files): Likewise.
26580         * modules/unicase/tolower-tests (Files): Likewise.
26581         * modules/unicase/totitle-tests (Files): Likewise.
26582         * modules/unicase/toupper-tests (Files): Likewise.
26583         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26584         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26585         * modules/unicase/u8-casefold-tests (Files): Likewise.
26586         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26587         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26588         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26589         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26590         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26591         * modules/unicase/u8-tolower-tests (Files): Likewise.
26592         * modules/unicase/u8-totitle-tests (Files): Likewise.
26593         * modules/unicase/u8-toupper-tests (Files): Likewise.
26594         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26595         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26596         * modules/unicase/u16-casefold-tests (Files): Likewise.
26597         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26598         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26599         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26600         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26601         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26602         * modules/unicase/u16-tolower-tests (Files): Likewise.
26603         * modules/unicase/u16-totitle-tests (Files): Likewise.
26604         * modules/unicase/u16-toupper-tests (Files): Likewise.
26605         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26606         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26607         * modules/unicase/u32-casefold-tests (Files): Likewise.
26608         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26609         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26610         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26611         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26612         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26613         * modules/unicase/u32-tolower-tests (Files): Likewise.
26614         * modules/unicase/u32-totitle-tests (Files): Likewise.
26615         * modules/unicase/u32-toupper-tests (Files): Likewise.
26616         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26617         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26618         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26619         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26620         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26621         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26622         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26623         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26624         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26625         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26626         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26627         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26628         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26629         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26630         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26631         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26632         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26633         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26634         * modules/unictype/block-list-tests (Files): Likewise.
26635         * modules/unictype/block-of-tests (Files): Likewise.
26636         * modules/unictype/block-test-tests (Files): Likewise.
26637         * modules/unictype/category-C-tests (Files): Likewise.
26638         * modules/unictype/category-Cc-tests (Files): Likewise.
26639         * modules/unictype/category-Cf-tests (Files): Likewise.
26640         * modules/unictype/category-Cn-tests (Files): Likewise.
26641         * modules/unictype/category-Co-tests (Files): Likewise.
26642         * modules/unictype/category-Cs-tests (Files): Likewise.
26643         * modules/unictype/category-L-tests (Files): Likewise.
26644         * modules/unictype/category-Ll-tests (Files): Likewise.
26645         * modules/unictype/category-Lm-tests (Files): Likewise.
26646         * modules/unictype/category-Lo-tests (Files): Likewise.
26647         * modules/unictype/category-Lt-tests (Files): Likewise.
26648         * modules/unictype/category-Lu-tests (Files): Likewise.
26649         * modules/unictype/category-M-tests (Files): Likewise.
26650         * modules/unictype/category-Mc-tests (Files): Likewise.
26651         * modules/unictype/category-Me-tests (Files): Likewise.
26652         * modules/unictype/category-Mn-tests (Files): Likewise.
26653         * modules/unictype/category-N-tests (Files): Likewise.
26654         * modules/unictype/category-Nd-tests (Files): Likewise.
26655         * modules/unictype/category-Nl-tests (Files): Likewise.
26656         * modules/unictype/category-No-tests (Files): Likewise.
26657         * modules/unictype/category-P-tests (Files): Likewise.
26658         * modules/unictype/category-Pc-tests (Files): Likewise.
26659         * modules/unictype/category-Pd-tests (Files): Likewise.
26660         * modules/unictype/category-Pe-tests (Files): Likewise.
26661         * modules/unictype/category-Pf-tests (Files): Likewise.
26662         * modules/unictype/category-Pi-tests (Files): Likewise.
26663         * modules/unictype/category-Po-tests (Files): Likewise.
26664         * modules/unictype/category-Ps-tests (Files): Likewise.
26665         * modules/unictype/category-S-tests (Files): Likewise.
26666         * modules/unictype/category-Sc-tests (Files): Likewise.
26667         * modules/unictype/category-Sk-tests (Files): Likewise.
26668         * modules/unictype/category-Sm-tests (Files): Likewise.
26669         * modules/unictype/category-So-tests (Files): Likewise.
26670         * modules/unictype/category-Z-tests (Files): Likewise.
26671         * modules/unictype/category-Zl-tests (Files): Likewise.
26672         * modules/unictype/category-Zp-tests (Files): Likewise.
26673         * modules/unictype/category-Zs-tests (Files): Likewise.
26674         * modules/unictype/category-and-not-tests (Files): Likewise.
26675         * modules/unictype/category-and-tests (Files): Likewise.
26676         * modules/unictype/category-byname-tests (Files): Likewise.
26677         * modules/unictype/category-name-tests (Files): Likewise.
26678         * modules/unictype/category-none-tests (Files): Likewise.
26679         * modules/unictype/category-of-tests (Files): Likewise.
26680         * modules/unictype/category-or-tests (Files): Likewise.
26681         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26682         * modules/unictype/combining-class-tests (Files): Likewise.
26683         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26684         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26685         * modules/unictype/ctype-blank-tests (Files): Likewise.
26686         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26687         * modules/unictype/ctype-digit-tests (Files): Likewise.
26688         * modules/unictype/ctype-graph-tests (Files): Likewise.
26689         * modules/unictype/ctype-lower-tests (Files): Likewise.
26690         * modules/unictype/ctype-print-tests (Files): Likewise.
26691         * modules/unictype/ctype-punct-tests (Files): Likewise.
26692         * modules/unictype/ctype-space-tests (Files): Likewise.
26693         * modules/unictype/ctype-upper-tests (Files): Likewise.
26694         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26695         * modules/unictype/decimal-digit-tests (Files): Likewise.
26696         * modules/unictype/digit-tests (Files): Likewise.
26697         * modules/unictype/mirror-tests (Files): Likewise.
26698         * modules/unictype/numeric-tests (Files): Likewise.
26699         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26700         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26701         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26702         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26703         Likewise.
26704         * modules/unictype/property-bidi-block-separator-tests (Files):
26705         Likewise.
26706         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26707         Likewise.
26708         * modules/unictype/property-bidi-common-separator-tests (Files):
26709         Likewise.
26710         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26711         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26712         Likewise.
26713         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26714         Likewise.
26715         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26716         Likewise.
26717         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26718         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26719         Likewise.
26720         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26721         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26722         Likewise.
26723         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26724         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26725         * modules/unictype/property-bidi-segment-separator-tests (Files):
26726         Likewise.
26727         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26728         * modules/unictype/property-byname-tests (Files): Likewise.
26729         * modules/unictype/property-combining-tests (Files): Likewise.
26730         * modules/unictype/property-composite-tests (Files): Likewise.
26731         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26732         * modules/unictype/property-dash-tests (Files): Likewise.
26733         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26734         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26735         Likewise.
26736         * modules/unictype/property-deprecated-tests (Files): Likewise.
26737         * modules/unictype/property-diacritic-tests (Files): Likewise.
26738         * modules/unictype/property-extender-tests (Files): Likewise.
26739         * modules/unictype/property-format-control-tests (Files): Likewise.
26740         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26741         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26742         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26743         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26744         * modules/unictype/property-hyphen-tests (Files): Likewise.
26745         * modules/unictype/property-id-continue-tests (Files): Likewise.
26746         * modules/unictype/property-id-start-tests (Files): Likewise.
26747         * modules/unictype/property-ideographic-tests (Files): Likewise.
26748         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26749         * modules/unictype/property-ids-trinary-operator-tests (Files):
26750         Likewise.
26751         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26752         * modules/unictype/property-iso-control-tests (Files): Likewise.
26753         * modules/unictype/property-join-control-tests (Files): Likewise.
26754         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26755         * modules/unictype/property-line-separator-tests (Files): Likewise.
26756         * modules/unictype/property-logical-order-exception-tests (Files):
26757         Likewise.
26758         * modules/unictype/property-lowercase-tests (Files): Likewise.
26759         * modules/unictype/property-math-tests (Files): Likewise.
26760         * modules/unictype/property-non-break-tests (Files): Likewise.
26761         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26762         * modules/unictype/property-numeric-tests (Files): Likewise.
26763         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26764         * modules/unictype/property-other-default-ignorable-code-point-tests
26765         (Files): Likewise.
26766         * modules/unictype/property-other-grapheme-extend-tests (Files):
26767         Likewise.
26768         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26769         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26770         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26771         * modules/unictype/property-other-math-tests (Files): Likewise.
26772         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26773         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26774         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26775         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26776         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26777         * modules/unictype/property-private-use-tests (Files): Likewise.
26778         * modules/unictype/property-punctuation-tests (Files): Likewise.
26779         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26780         * modules/unictype/property-radical-tests (Files): Likewise.
26781         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26782         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26783         * modules/unictype/property-space-tests (Files): Likewise.
26784         * modules/unictype/property-terminal-punctuation-tests (Files):
26785         Likewise.
26786         * modules/unictype/property-test-tests (Files): Likewise.
26787         * modules/unictype/property-titlecase-tests (Files): Likewise.
26788         * modules/unictype/property-unassigned-code-value-tests (Files):
26789         Likewise.
26790         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26791         * modules/unictype/property-uppercase-tests (Files): Likewise.
26792         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26793         * modules/unictype/property-white-space-tests (Files): Likewise.
26794         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26795         * modules/unictype/property-xid-start-tests (Files): Likewise.
26796         * modules/unictype/property-zero-width-tests (Files): Likewise.
26797         * modules/unictype/scripts-tests (Files): Likewise.
26798         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26799         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26800         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26801         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26802         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26803         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26804         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26805         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26806         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26807         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26808         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26809         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26810         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26811         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26812         * modules/uninorm/composition-tests (Files): Likewise.
26813         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26814         * modules/uninorm/decomposition-tests (Files): Likewise.
26815         * modules/uninorm/filter-tests (Files): Likewise.
26816         * modules/uninorm/nfc-tests (Files): Likewise.
26817         * modules/uninorm/nfd-tests (Files): Likewise.
26818         * modules/uninorm/nfkc-tests (Files): Likewise.
26819         * modules/uninorm/nfkd-tests (Files): Likewise.
26820         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26821         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26822         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26823         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26824         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26825         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26826         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26827         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26828         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26829         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26830         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26831         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26832         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26833         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26834         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26835         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26836         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26837         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26838         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26839         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26840         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26841         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26842         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26843         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26844         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26845         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26846         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26847         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26848         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26849         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26850         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26851         * modules/uniwidth/u8-width-tests (Files): Likewise.
26852         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26853         * modules/uniwidth/u16-width-tests (Files): Likewise.
26854         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26855         * modules/uniwidth/u32-width-tests (Files): Likewise.
26856         * modules/uniwidth/width-tests (Files): Likewise.
26857         * modules/unlink-tests (Files): Likewise.
26858         * modules/unsetenv-tests (Files): Likewise.
26859         * modules/usleep-tests (Files): Likewise.
26860         * modules/utimens-tests (Files): Likewise.
26861         * modules/utimensat-tests (Files): Likewise.
26862         * modules/vasnprintf-posix-tests (Files): Likewise.
26863         * modules/vasnprintf-tests (Files): Likewise.
26864         * modules/vasprintf-posix-tests (Files): Likewise.
26865         * modules/vasprintf-tests (Files): Likewise.
26866         * modules/vdprintf-posix-tests (Files): Likewise.
26867         * modules/vfprintf-posix-tests (Files): Likewise.
26868         * modules/vprintf-posix-tests (Files): Likewise.
26869         * modules/vsnprintf-posix-tests (Files): Likewise.
26870         * modules/vsnprintf-tests (Files): Likewise.
26871         * modules/vsprintf-posix-tests (Files): Likewise.
26872         * modules/wcrtomb-tests (Files): Likewise.
26873         * modules/wcsnrtombs-tests (Files): Likewise.
26874         * modules/wcsrtombs-tests (Files): Likewise.
26875         * modules/wctype-tests (Files): Likewise.
26876         * modules/wcwidth-tests (Files): Likewise.
26877         * modules/xmemdup0-tests (Files): Likewise.
26878         * modules/xprintf-posix-tests (Files): Likewise.
26879         * modules/xvasprintf-tests (Files): Likewise.
26880
26881 2009-12-24  Eric Blake  <ebb9@byu.net>
26882
26883         test-nanosleep: fix typo
26884         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26885         patch.
26886         Reported by Bruno Haible.
26887
26888 2009-12-24  Bruno Haible  <bruno@clisp.org>
26889
26890         Reduce namespace pollution on glibc systems.
26891         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26892         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26893         systems.
26894         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26895         <getopt.h> on glibc systems.
26896         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26897         systems.
26898         * lib/fcntl.c: Include <unistd.h> here instead.
26899
26900 2009-12-24  Bruno Haible  <bruno@clisp.org>
26901
26902         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26903
26904 2009-12-24  Eric Blake  <ebb9@byu.net>
26905
26906         tests: add signature checks
26907         * tests/signature.h (SIGNATURE_CHECK): New file.
26908         * modules/atexit-tests (Files): Use it.
26909         * modules/btowc-tests (Files): Likewise.
26910         * modules/canonicalize-lgpl-tests (Files): Likewise.
26911         * modules/ceilf-tests (Files): Likewise.
26912         * modules/ceill-tests (Files): Likewise.
26913         * modules/chown-tests (Files): Likewise.
26914         * modules/dprintf-posix-tests (Files): Likewise.
26915         * modules/dup2-tests (Files): Likewise.
26916         * modules/dup3-tests (Files): Likewise.
26917         * modules/duplocale-tests (Files): Likewise.
26918         * modules/fchdir-tests (Files): Likewise.
26919         * modules/fcntl-tests (Files): Likewise.
26920         * modules/fdopendir-tests (Files): Likewise.
26921         * modules/fflush-tests (Files): Likewise.
26922         * modules/flock-tests (Files): Likewise.
26923         * modules/floorf-tests (Files): Likewise.
26924         * modules/floorl-tests (Files): Likewise.
26925         * modules/fnmatch-tests (Files): Likewise.
26926         * modules/fopen-tests (Files): Likewise.
26927         * modules/fprintf-posix-tests (Files): Likewise.
26928         * modules/freopen-tests (Files): Likewise.
26929         * modules/frexp-nolibm-tests (Files): Likewise.
26930         * modules/frexp-tests (Files): Likewise.
26931         * modules/frexpl-nolibm-tests (Files): Likewise.
26932         * modules/frexpl-tests (Files): Likewise.
26933         * modules/fseek-tests (Files): Likewise.
26934         * modules/fseeko-tests (Files): Likewise.
26935         * modules/fsync-tests (Files): Likewise.
26936         * modules/ftell-tests (Files): Likewise.
26937         * modules/ftello-tests (Files): Likewise.
26938         * modules/futimens-tests (Files): Likewise.
26939         * modules/getaddrinfo-tests (Files): Likewise.
26940         * modules/getcwd-tests (Files): Likewise.
26941         * modules/getdelim-tests (Files): Likewise.
26942         * modules/getdtablesize-tests (Files): Likewise.
26943         * modules/getgroups-tests (Files): Likewise.
26944         * modules/gethostname-tests (Files): Likewise.
26945         * modules/getline-tests (Files): Likewise.
26946         * modules/getopt-posix-tests (Files): Likewise.
26947         * modules/gettimeofday-tests (Files): Likewise.
26948         * modules/glob-tests (Files): Likewise.
26949         * modules/iconv-tests (Files): Likewise.
26950         * modules/inet_ntop-tests (Files): Likewise.
26951         * modules/inet_pton-tests (Files): Likewise.
26952         * modules/isblank-tests (Files): Likewise.
26953         * modules/lchown-tests (Files): Likewise.
26954         * modules/ldexpl-tests (Files): Likewise.
26955         * modules/link-tests (Files): Likewise.
26956         * modules/linkat-tests (Files): Likewise.
26957         * modules/lseek-tests (Files): Likewise.
26958         * modules/lstat-tests (Files): Likewise.
26959         * modules/mbrtowc-tests (Files): Likewise.
26960         * modules/mbsinit-tests (Files): Likewise.
26961         * modules/mbsnrtowcs-tests (Files): Likewise.
26962         * modules/mbsrtowcs-tests (Files): Likewise.
26963         * modules/memchr-tests (Files): Likewise.
26964         * modules/memcmp-tests (Files): Likewise.
26965         * modules/memmem-tests (Files): Likewise.
26966         * modules/memrchr-tests (Files): Likewise.
26967         * modules/mkdir-tests (Files): Likewise.
26968         * modules/mkfifo-tests (Files): Likewise.
26969         * modules/mkfifoat-tests (Files): Likewise.
26970         * modules/mknod-tests (Files): Likewise.
26971         * modules/nanosleep-tests (Files): Likewise.
26972         * modules/nl_langinfo-tests (Files): Likewise.
26973         * modules/obstack-printf-tests (Files): Likewise.
26974         * modules/open-tests (Files): Likewise.
26975         * modules/openat-tests (Files): Likewise.
26976         * modules/perror-tests (Files): Likewise.
26977         * modules/pipe2-tests (Files): Likewise.
26978         * modules/poll-tests (Files): Likewise.
26979         * modules/popen-tests (Files): Likewise.
26980         * modules/posix_spawn-tests (Files): Likewise.
26981         * modules/posix_spawnp-tests (Files): Likewise.
26982         * modules/pread-tests (Files): Likewise.
26983         * modules/printf-posix-tests (Files): Likewise.
26984         * modules/pty-tests (Files): Likewise.
26985         * modules/random_r-tests (Files): Likewise.
26986         * modules/rawmemchr-tests (Files): Likewise.
26987         * modules/readlink-tests (Files): Likewise.
26988         * modules/remove-tests (Files): Likewise.
26989         * modules/rename-tests (Files): Likewise.
26990         * modules/renameat-tests (Files): Likewise.
26991         * modules/rmdir-tests (Files): Likewise.
26992         * modules/round-tests (Files): Likewise.
26993         * modules/roundf-tests (Files): Likewise.
26994         * modules/roundl-tests (Files): Likewise.
26995         * modules/select-tests (Files): Likewise.
26996         * modules/setenv-tests (Files): Likewise.
26997         * modules/sigaction-tests (Files): Likewise.
26998         * modules/sleep-tests (Files): Likewise.
26999         * modules/snprintf-posix-tests (Files): Likewise.
27000         * modules/snprintf-tests (Files): Likewise.
27001         * modules/sprintf-posix-tests (Files): Likewise.
27002         * modules/stat-tests (Files): Likewise.
27003         * modules/strcasestr-tests (Files): Likewise.
27004         * modules/strchrnul-tests (Files): Likewise.
27005         * modules/strerror-tests (Files): Likewise.
27006         * modules/strsignal-tests (Files): Likewise.
27007         * modules/strstr-tests (Files): Likewise.
27008         * modules/strtod-tests (Files): Likewise.
27009         * modules/strverscmp-tests (Files): Likewise.
27010         * modules/symlink-tests (Files): Likewise.
27011         * modules/symlinkat-tests (Files): Likewise.
27012         * modules/times-tests (Files): Likewise.
27013         * modules/trunc-tests (Files): Likewise.
27014         * modules/truncf-tests (Files): Likewise.
27015         * modules/truncl-tests (Files): Likewise.
27016         * modules/tsearch-tests (Files): Likewise.
27017         * modules/uname-tests (Files): Likewise.
27018         * modules/unlink-tests (Files): Likewise.
27019         * modules/unsetenv-tests (Files): Likewise.
27020         * modules/usleep-tests (Files): Likewise.
27021         * modules/utimensat-tests (Files): Likewise.
27022         * modules/vasprintf-tests (Files): Likewise.
27023         * modules/vdprintf-posix-tests (Files): Likewise.
27024         * modules/vfprintf-posix-tests (Files): Likewise.
27025         * modules/vprintf-posix-tests (Files): Likewise.
27026         * modules/vsnprintf-posix-tests (Files): Likewise.
27027         * modules/vsnprintf-tests (Files): Likewise.
27028         * modules/vsprintf-posix-tests (Files): Likewise.
27029         * modules/wcrtomb-tests (Files): Likewise.
27030         * modules/wcsnrtombs-tests (Files): Likewise.
27031         * modules/wcsrtombs-tests (Files): Likewise.
27032         * modules/wcwidth-tests (Files): Likewise.
27033         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27034         * tests/test-isinf.c (isinf): Likewise.
27035         * tests/test-isnan.c (isnan): Likewise.
27036         * tests/test-signbit.c (signbit): Likewise.
27037         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27038         declaration, either as macro or with correct signature.
27039         (select): Ensure function under test is declared with correct
27040         signature in correct header.
27041         * tests/test-atexit.c (atexit): Likewise.
27042         * tests/test-btowc.c (btowc): Likewise.
27043         * tests/test-canonicalize-lgpl.c (realpath)
27044         (canonicalize_file_name): Likewise.
27045         * tests/test-ceilf1.c (ceilf): Likewise.
27046         * tests/test-ceill.c (ceill): Likewise.
27047         * tests/test-chown.c (chown): Likewise.
27048         * tests/test-dprintf-posix.c (dprintf): Likewise.
27049         * tests/test-dup2.c (dup2): Likewise.
27050         * tests/test-dup3.c (dup3): Likewise.
27051         * tests/test-duplocale.c (duplocale): Likewise.
27052         * tests/test-fchdir.c (fchdir): Likewise.
27053         * tests/test-fchownat.c (fchownat): Likewise.
27054         * tests/test-fcntl.c (fcntl): Likewise.
27055         * tests/test-fdopendir.c (fdopendir): Likewise.
27056         * tests/test-fflush.c (fflush): Likewise.
27057         * tests/test-flock.c (flock): Likewise.
27058         * tests/test-floorf1.c (floorf): Likewise.
27059         * tests/test-floorl.c (floorl): Likewise.
27060         * tests/test-fnmatch.c (fnmatch): Likewise.
27061         * tests/test-fopen.c (fopen): Likewise.
27062         * tests/test-fprintf-posix.c (fprintf): Likewise.
27063         * tests/test-freopen.c (freopen): Likewise.
27064         * tests/test-frexp.c (frexp): Likewise.
27065         * tests/test-frexpl.c (frexpl): Likewise.
27066         * tests/test-fseek.c (fseek): Likewise.
27067         * tests/test-fseeko.c (fseeko): Likewise.
27068         * tests/test-fstatat.c (fstatat): Likewise.
27069         * tests/test-fsync.c (fsync): Likewise.
27070         * tests/test-ftell.c (ftell): Likewise.
27071         * tests/test-ftello.c (ftello): Likewise.
27072         * tests/test-futimens.c (futimens): Likewise.
27073         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27074         (gai_strerror): Likewise.
27075         * tests/test-getcwd.c (getcwd): Likewise.
27076         * tests/test-getdelim.c (getdelim): Likewise.
27077         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27078         * tests/test-getgroups.c (getgroups): Likewise.
27079         * tests/test-gethostname.c (gethostname): Likewise.
27080         * tests/test-getline.c (getline): Likewise.
27081         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27082         Likewise.
27083         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27084         * tests/test-glob.c (glob, globfree): Likewise.
27085         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27086         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27087         * tests/test-inet_pton.c (inet_pton): Likewise.
27088         * tests/test-isblank.c (isblank): Likewise.
27089         * tests/test-lchown.c (lchown): Likewise.
27090         * tests/test-ldexpl.c (ldexpl): Likewise.
27091         * tests/test-link.c (link): Likewise.
27092         * tests/test-linkat.c (linkat): Likewise.
27093         * tests/test-lseek.c (lseek): Likewise.
27094         * tests/test-lstat.c (lstat): Likewise.
27095         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27096         * tests/test-mbsinit.c (mbsinit): Likewise.
27097         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27098         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27099         * tests/test-memchr.c (memchr): Likewise.
27100         * tests/test-memcmp.c (memcmp): Likewise.
27101         * tests/test-memmem.c (memmem): Likewise.
27102         * tests/test-memrchr.c (memrchr): Likewise.
27103         * tests/test-mkdir.c (mkdir): Likewise.
27104         * tests/test-mkdirat.c (mkdirat): Likewise.
27105         * tests/test-mkfifo.c (mkfifo): Likewise.
27106         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27107         * tests/test-mknod.c (mknod): Likewise.
27108         * tests/test-nanosleep.c (nanosleep): Likewise.
27109         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27110         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27111         Likewise.
27112         * tests/test-open.c (open): Likewise.
27113         * tests/test-openat.c (openat): Likewise.
27114         * tests/test-perror.c (perror): Likewise.
27115         * tests/test-pipe2.c (pipe2): Likewise.
27116         * tests/test-poll.c (poll): Likewise.
27117         * tests/test-popen.c (popen, pclose): Likewise.
27118         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27119         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27120         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27121         (posix_spawn_file_actions_destroy)
27122         (posix_spawn_file_actions_addclose)
27123         (posix_spawn_file_actions_addopen)
27124         (posix_spawn_file_actions_adddup2): Likewise.
27125         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27126         * tests/test-pread.c (pread): Likewise.
27127         * tests/test-printf-posix.c (printf): Likewise.
27128         * tests/test-pty.c (openpty, forkpty): Likewise.
27129         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27130         (random_r): Likewise.
27131         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27132         * tests/test-readlink.c (readlink): Likewise.
27133         * tests/test-remove.c (remove): Likewise.
27134         * tests/test-rename.c (rename): Likewise.
27135         * tests/test-renameat.c (renameat): Likewise.
27136         * tests/test-rmdir.c (rmdir): Likewise.
27137         * tests/test-round1.c (round): Likewise.
27138         * tests/test-roundf1.c (roundf): Likewise.
27139         * tests/test-roundl.c (roundl): Likewise.
27140         * tests/test-setenv.c (setenv): Likewise.
27141         * tests/test-sigaction.c (sigaction): Likewise.
27142         * tests/test-sleep.c (sleep): Likewise.
27143         * tests/test-snprintf.c (snprintf): Likewise.
27144         * tests/test-sprintf-posix.c (sprintf): Likewise.
27145         * tests/test-stat.c (stat): Likewise.
27146         * tests/test-stpncpy.c (stpncpy): Likewise.
27147         * tests/test-strcasestr.c (strcasestr): Likewise.
27148         * tests/test-strchrnul.c (strchrnul): Likewise.
27149         * tests/test-strerror.c (strerror): Likewise.
27150         * tests/test-strsignal.c (strsignal): Likewise.
27151         * tests/test-strstr.c (strstr): Likewise.
27152         * tests/test-strtod.c (strtod): Likewise.
27153         * tests/test-strverscmp.c (strverscmp): Likewise.
27154         * tests/test-symlink.c (symlink): Likewise.
27155         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27156         * tests/test-times.c (times): Likewise.
27157         * tests/test-trunc1.c (trunc): Likewise.
27158         * tests/test-truncf1.c (truncf): Likewise.
27159         * tests/test-truncl.c (truncl): Likewise.
27160         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27161         Likewise.
27162         * tests/test-uname.c (uname): Likewise.
27163         * tests/test-unlink.c (unlink): Likewise.
27164         * tests/test-unlinkat.c (unlinkat): Likewise.
27165         * tests/test-unsetenv.c (unsetenv): Likewise.
27166         * tests/test-usleep.c (usleep): Likewise.
27167         * tests/test-utimensat.c (utimensat): Likewise.
27168         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27169         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27170         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27171         * tests/test-vprintf-posix.c (vprintf): Likewise.
27172         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27173         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27174         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27175         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27176         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27177         * tests/test-wcwidth.c (wcwidth): Likewise.
27178
27179         build: pull in conditional headers during GNULIB_POSIXCHECK
27180         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27181         definitions from any conditionally-included headers.
27182         * lib/stdlib.in.h (includes): Likewise.
27183         * lib/unistd.in.h (includes): Likewise.
27184
27185 2009-12-24  Bruno Haible  <bruno@clisp.org>
27186
27187         * tests/test-argv-iter.c: Include header file being tested immediately
27188         after config.h.
27189         * tests/test-base64.c: Likewise.
27190         * tests/test-flock.c: Likewise.
27191         * tests/test-fsync.c: Likewise.
27192         * tests/test-getdate.c: Likewise.
27193         * tests/test-getndelim2.c: Likewise.
27194         * tests/test-isfinite.c: Likewise.
27195         * tests/test-isinf.c: Likewise.
27196         * tests/test-strerror.c: Likewise.
27197         * tests/test-strsignal.c: Likewise.
27198
27199 2009-12-23  Eric Blake  <ebb9@byu.net>
27200
27201         unistd: work around cygwin bug
27202         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27203         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27204         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27205
27206 2009-12-23  Bruno Haible  <bruno@clisp.org>
27207
27208         localename: More tests.
27209         * tests/test-localename.c (SIZEOF): New macro.
27210         (categories): New variable.
27211         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27212         test_locale_name_default): Add test w.r.t. thread locale.
27213         (test_locale_name_thread): New function.
27214         (main): Invoke it.
27215
27216         localename: Make aware of thread locale.
27217         * lib/localename.h (gl_locale_name_thread): New declaration.
27218         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27219         behaviour with respect to thread locale.
27220         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27221         <langinfo.h>, glthread/lock.h.
27222         (SIZE_BITS): New macro.
27223         (string_hash): New function.
27224         (struct hash_node): New type.
27225         (HASH_TABLE_SIZE): New macro.
27226         (struniq_hash_table, struniq_lock): New variables.
27227         (struniq): New function.
27228         (gl_locale_name_thread): New function.
27229         (gl_locale_name): Invoke it.
27230         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27231         * modules/localename (Depends-on): Add lock.
27232         Reported by Mike Gran <spk121@yahoo.com>.
27233
27234 2009-12-23  Eric Blake  <ebb9@byu.net>
27235
27236         va-args: new module
27237         * modules/va-args: New file.
27238         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27239         * MODULES.html.sh (Core language properties): Mention it.
27240
27241         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27242         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27243         named alias for __attribute__((__unused__)).
27244         * lib/chown.c: Update client.
27245         * lib/fchmodat.c: Likewise.
27246         * lib/fts.c: Likewise.
27247         * lib/getdate.y: Likewise.
27248         * lib/getgroups.c: Likewise.
27249         * lib/getopt.c: Likewise.
27250         * lib/getugroups.c: Likewise.
27251         * lib/mkdir.c: Likewise.
27252         * lib/mkfifo.c: Likewise.
27253         * lib/mkfifoat.c: Likewise.
27254         * lib/mknod.c: Likewise.
27255         * lib/mknodat.c: Likewise.
27256         * lib/readlink.c: Likewise.
27257         * lib/se-context.in.h: Likewise.
27258         * lib/se-selinux.in.h: Likewise.
27259         * lib/sockets.c: Likewise.
27260         * lib/symlink.c: Likewise.
27261         * lib/symlinkat.c: Likewise.
27262         * lib/unicodeio.c: Likewise.
27263         * lib/unistr.h: Likewise.
27264         * tests/test-areadlink.c: Likewise.
27265         * tests/test-areadlinkat.c: Likewise.
27266         * tests/test-filenamecat.c: Likewise.
27267         * tests/test-fseeko.c: Likewise.
27268         * tests/test-ftello.c: Likewise.
27269         * tests/test-getdate.c: Likewise.
27270         * tests/test-getgroups.c: Likewise.
27271         * tests/test-gethostname.c: Likewise.
27272         * tests/test-quotearg.c: Likewise.
27273         * tests/test-version-etc.c: Likewise.
27274         * tests/test-xalloc-die.c: Likewise.
27275         * tests/test-xfprintf-posix.c: Likewise.
27276         * tests/test-xprintf-posix.c: Likewise.
27277         * tests/test-xvasprintf.c: Likewise.
27278
27279         tests: avoid compiler warnings
27280         * tests/test-fcntl.c (main): Delete unused parameters.
27281         * tests/test-freopen-safer.c (main): Likewise.
27282         * tests/test-xalloc-die.c (main): Mark unused parameters.
27283         * tests/test-fseeko.c (main): Likewise.
27284         * tests/test-ftello.c (main): Likewise.
27285         * tests/test-nanosleep.c (main): Avoid declaration warning.
27286         * tests/test-sleep.c (main): Likewise.
27287         * tests/test-unsetenv.c (main): Silence warning about string
27288         literal.
27289         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27290
27291 2009-12-23  Bruno Haible  <bruno@clisp.org>
27292
27293         * tests/test-localename.c (test_locale_name): New function, extracted
27294         from main. Also test mixed situations.
27295         (test_locale_name_posix, test_locale_name_environ,
27296         test_locale_name_default): New functions.
27297         (main): Invoke them all.
27298         * modules/localename-tests (configure.ac): Test for newlocale.
27299
27300 2009-12-23  Bruno Haible  <bruno@clisp.org>
27301
27302         unistd: Ensure getcwd gets declared before being overridden.
27303         * lib/unistd.in.h: Conditionally include <io.h>.
27304
27305 2009-12-22  Bruno Haible  <bruno@clisp.org>
27306
27307         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27308         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27309         (gl_WCHAR_H): Invoke it.
27310         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27311         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27312         Reported by Karl Berry <karl@freefriends.org>.
27313
27314 2009-12-22  Eric Blake  <ebb9@byu.net>
27315
27316         math, unistd: avoid redundant includes
27317         * lib/math.in.h (isnan): No need to re-include <math.h>.
27318         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27319
27320         getsubopt: work around cygwin bug
27321         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27322         avoid conflicting with system getsubopt.
27323         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27324         bug.
27325
27326         getopt: synchronize from glibc
27327         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27328         parameter order.  Adjust all callers.
27329         (_getopt_internal_r, main): Adjust quoting in error messages.
27330         Drop considerations for outdated POSIX 1003.2 error message.
27331         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27332         callers.
27333         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27334
27335         test-getopt: test stderr behavior
27336         * modules/getopt-posix-tests (Depends-on): Add dup2.
27337         * tests/test-getopt.c (ASSERT): Avoid stderr.
27338         (main): Move stderr to a temporary file.
27339         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27340         Instead, add parameter to inform caller if output occurred.
27341         (test_getopt): Adjust all existing tests to expect silence, and
27342         add new tests of leading ":".
27343         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27344         glibc shortcomings with leading "-:" or "+:" in optstring.
27345         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27346         Likewise.
27347         * doc/posix-functions/getopt.texi (getopt): Likewise.
27348
27349         test-getopt: enhance test
27350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27351         supports optind=0.
27352         * tests/test-getopt.c (OPTIND_MIN): Move...
27353         * tests/test-getopt.h (OPTIND_MIN): ...here.
27354         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27355         Require that optind=0 works, since modern BSD supports it in
27356         addition to optreset, and since coreutils expects it.
27357         (test_getopt_long_only): New test.
27358         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27359         glibc shortcomings with 'W;', and enforcement of optind=0.
27360         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27361         Likewise.
27362
27363 2009-12-21  Bruno Haible  <bruno@clisp.org>
27364
27365         localename: Improvements for MacOS X and Cygwin.
27366         * lib/localename.h (gl_locale_name_environ): New declaration.
27367         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27368         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27369         (gl_locale_name_posix): Invoke it.
27370         (gl_locale_name_default): Add comments. Use Windows native API also on
27371         Cygwin.
27372
27373 2009-12-21  Bruno Haible  <bruno@clisp.org>
27374
27375         Update list of Win32 locale ids.
27376         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27377         (LANG_SAMI): Renamed from LANG_SAAMI.
27378         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27379         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27380         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27381         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27382         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27383         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27384         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27385         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27386         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27387         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27388         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27389         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27390         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27391         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27392         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27393         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27394         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27395         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27396         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27397         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27398         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27399         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27400         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27401         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27402         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27403         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27404         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27405         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27406         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27407         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27408         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27409         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27410         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27411         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27412         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27413         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27414         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27415         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27416         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27417         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27418         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27419         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27420         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27421         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27422         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27423         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27424         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27425         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27426         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27427         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27428         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27429         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27430         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27431         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27432         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27433         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27434         Add more languages and countries for Sami, Sorbian. Add more countries
27435         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27436         for Pashto. Change country for Syriac, Tswana.
27437
27438 2009-12-21  Eric Blake  <ebb9@byu.net>
27439
27440         test-utimens: avoid spurious failure
27441         * tests/test-chown.h (nap): Factor...
27442         * tests/nap.h: ...into new file.
27443         * tests/test-lchown.h (nap): Avoid duplication.
27444         * tests/test-utimens-common.h (nap): Use shared implementation,
27445         necessary on file systems with 1-second resolution.
27446         * modules/chown-tests (Files): Include new file.
27447         * modules/fdutimensat-tests (Files): Likewise.
27448         * modules/futimens-tests (Files): Likewise.
27449         * modules/lchown-tests (Files): Likewise.
27450         * modules/openat-tests (Files): Likewise.
27451         * modules/utimens-tests (Files): Likewise.
27452         * modules/utimensat-tests (Files): Likewise.
27453
27454 2009-12-19  Eric Blake  <ebb9@byu.net>
27455
27456         futimens, utimensat: work around Linux bug
27457         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27458         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27459         * lib/utimensat.c (rpl_utimensat): Work around it.
27460         * lib/futimens.c (rpl_futimens): Adjust comment.
27461
27462         utimens: work around Linux ctime bug
27463         * lib/utimens.c (detect_ctime_bug): New helper function.
27464         (update_timespec): Differentiate between workaround needed for
27465         this bug vs. what is needed for systems that lack utimensat.
27466         (fdutimens, lutimens): Work around bug.
27467
27468         utimens: check for ctime update
27469         * tests/test-utimens-common.h (check_ctime): Define.
27470         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27471         * tests/test-futimens.h (test_futimens): Likewise.
27472         * tests/test-lutimens.h (test_lutimens): Likewise.
27473         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27474         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27475
27476 2009-12-19  Bruno Haible  <bruno@clisp.org>
27477
27478         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27479         * tests/test-dprintf-posix2.sh: New file.
27480         * tests/test-dprintf-posix2.c: New file.
27481         * modules/dprintf-posix-tests (Files): Add them.
27482         (configure.ac): Check for getrlimit and setrlimit.
27483         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27484
27485 2009-12-19  Bruno Haible  <bruno@clisp.org>
27486
27487         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27488         * tests/test-fprintf-posix3.sh: New file.
27489         * tests/test-fprintf-posix3.c: New file.
27490         * modules/fprintf-posix-tests (Files): Add them.
27491         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27492
27493 2009-12-19  Eric Blake  <ebb9@byu.net>
27494
27495         dirfd: fix prototype
27496         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27497         * lib/dirfd.c (dirfd): Likewise.
27498
27499         canonicalize: reduce memory usage
27500         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27501         allocation to size.
27502         Reported by Solar Designer <solar@openwall.com>.
27503
27504 2009-12-19  Bruno Haible  <bruno@clisp.org>
27505
27506         New module attribute 'Applicability'.
27507         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27508         * gnulib-tool: New option --extract-applicability.
27509         (func_usage): Document it.
27510         (sed_extract_prog): Recognize it.
27511         (func_get_applicability): New function.
27512         (func_import): Generalize handling of 'link-warning' module.
27513         * modules/link-warning (Applicability): New section.
27514         * modules/arg-nonnull (Applicability): New section.
27515         Repoted by Simon Josefsson <simon@josefsson.org>.
27516
27517 2009-12-19  Bruno Haible  <bruno@clisp.org>
27518
27519         fflush: tweak
27520         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27521         * lib/fseeko.c (rpl_fseeko): Likewise.
27522
27523 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27524
27525         * lib/gl_list.h: Fix typo in comment.
27526
27527 2009-12-16  Eric Blake  <ebb9@byu.net>
27528
27529         fcntl: use to simplify other modules
27530         * modules/cloexec (Depends-on): Add fcntl.
27531         * modules/fchdir (Depends-on): Likewise.
27532         * modules/fd-safer-flag (Depends-on): Likewise.
27533         * modules/unistd-safer (Depends-on): Likewise.
27534         * modules/dup3 (configure.ac): Set module indicator.
27535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27536         missing.
27537         * lib/fchdir.c (_gl_register_dup): Fix comment.
27538         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27539         * lib/dup-safer.c (dup_safer): Likewise.
27540         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27541         * lib/dup3.c (dup3): Likewise.
27542         * tests/test-fchdir.c (main): Enhance test.
27543         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27544
27545         fcntl: port portions of fcntl to mingw
27546         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27547         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27548         replacement for mingw.
27549         * modules/fcntl (Description): Update.
27550         (Depends-on): Add dup2.
27551         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27552         * modules/fcntl-h (Makefile.am): Substitute it.
27553         * lib/fcntl.in.h (fcntl): Update declaration.
27554         (F_DUPFD, F_GETFD): New macros, when needed.
27555         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27556         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27557         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27558         we now guarantee.
27559
27560         fcntl: work around cygwin bug in F_DUPFD
27561         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27562         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27563         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27564         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27565         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27566
27567         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27568         * modules/fcntl (Files): List new files.
27569         (configure.ac): Run a test.
27570         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27571         * lib/fcntl.c (rpl_fcntl): Likewise.
27572         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27573         (gl_FCNTL_H): Always replace fcntl.h.
27574         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27575         * lib/fcntl.in.h (fcntl): Declare replacement.
27576         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27577         needed, plus a witness.
27578         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27579         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27580         * tests/test-fcntl.c: New file.
27581         * modules/fcntl-tests: Likewise.
27582
27583         binary-io: avoid potential compilation warning
27584         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27585         directives.
27586
27587         fflush: avoid compilation error on NetBSD
27588         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27589         between off_t and fpos_t, since the latter is sometimes a struct.
27590         * lib/fseeko.c (rpl_fseeko): Likewise.
27591         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27592
27593 2009-12-15  Eric Blake  <ebb9@byu.net>
27594
27595         fcntl-h, stdio, sys_ioctl: fix declarations
27596         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27597         function must not take arguments.
27598         * lib/sys_ioctl.in.h (ioctl): Likewise.
27599         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27600         (open): Add a link warning.
27601
27602 2009-12-15  Jim Meyering  <meyering@redhat.com>
27603
27604         areadlink, areadlink-with-size: relax license to LGPLv2+
27605         * modules/areadlink (License): Relax to LGPLv2+.
27606         * modules/areadlink-with-size (License): Likewise.
27607
27608 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27609             Bruno Haible  <bruno@clisp.org>
27610
27611         *printf: Fix memory leak.
27612         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27613         * lib/vfprintf.c (vfprintf): Likewise.
27614         * lib/dprintf.c (dprintf): Likewise.
27615         * lib/vdprintf.c (vdprintf): Likewise.
27616
27617 2009-12-14  Eric Blake  <ebb9@byu.net>
27618
27619         accept4: adjust module dependencies
27620         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27621
27622         utimens: one more try at avoiding compiler warning
27623         * lib/utimens.c (lutimens): Lower scope of result.
27624
27625 2009-12-13  Bruno Haible  <bruno@clisp.org>
27626
27627         Move the malloc checking from module 'list' to new module 'xlist'.
27628         * modules/xlist: New file.
27629         * lib/gl_xlist.h: New file.
27630         * lib/gl_xlist.c: New file.
27631         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27632         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27633         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27634         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27635         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27636         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27637         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27638         gl_sortedlist_nx_add): New declarations.
27639         (struct gl_list_implementation): Rename and change methods accordingly.
27640         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27641         (gl_list_nx_create): Renamed from gl_list_create.
27642         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27643         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27644         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27645         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27646         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27647         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27648         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27649         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27650         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27651         gl_list_create_empty.
27652         (gl_list_nx_create): Renamed from gl_list_create.
27653         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27654         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27655         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27656         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27657         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27658         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27659         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27660         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27661         * lib/gl_array_list.c: Don't include xalloc.h.
27662         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27663         NULL upon out-of-memory.
27664         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27665         out-of-memory.
27666         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27667         Change return type to 'int'.
27668         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27669         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27670         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27671         upon out-of-memory.
27672         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27673         upon out-of-memory.
27674         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27675         upon out-of-memory.
27676         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27677         upon out-of-memory.
27678         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27679         out-of-memory.
27680         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27681         Update.
27682         (gl_array_list_implementation): Update.
27683         * lib/gl_carray_list.c: Don't include xalloc.h.
27684         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27685         Return NULL upon out-of-memory.
27686         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27687         out-of-memory.
27688         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27689         Change return type to 'int'.
27690         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27691         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27692         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27693         upon out-of-memory.
27694         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27695         upon out-of-memory.
27696         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27697         out-of-memory.
27698         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27699         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27700         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27701         Update.
27702         (gl_carray_list_implementation): Update.
27703         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27704         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27705         gl_linked_create_empty. Return NULL upon out-of-memory.
27706         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27707         out-of-memory.
27708         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27709         Change return type to 'int'. Return -1 upon out-of-memory.
27710         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27711         out-of-memory.
27712         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27713         upon out-of-memory.
27714         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27715         upon out-of-memory.
27716         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27717         NULL upon out-of-memory.
27718         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27719         upon out-of-memory.
27720         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27721         out-of-memory.
27722         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27723         Update.
27724         * lib/gl_linked_list.c: Don't include xalloc.h.
27725         (gl_linked_list_implementation): Update.
27726         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27727         (add_to_bucket): Change return type to 'int'.
27728         (gl_linkedhash_list_implementation): Update.
27729         * lib/gl_anytree_list1.h (free_subtree): New function.
27730         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27731         gl_tree_create_empty. Return NULL upon out-of-memory.
27732         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27733         Change return type to 'int'. Return -1 upon out-of-memory.
27734         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27735         out-of-memory.
27736         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27737         (gl_tree_remove_node): New function, moved here from
27738         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27739         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27740         Update.
27741         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27742         malloc, not xmalloc. Return NULL upon out-of-memory.
27743         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27744         out-of-memory.
27745         (gl_tree_remove_node_from_tree): New function, extracted from
27746         gl_tree_remove_node.
27747         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27748         upon out-of-memory.
27749         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27750         out-of-memory.
27751         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27752         upon out-of-memory.
27753         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27754         upon out-of-memory.
27755         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27756         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27757         not xmalloc. Return NULL upon out-of-memory.
27758         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27759         out-of-memory.
27760         (gl_tree_remove_node_from_tree): New function, extracted from
27761         gl_tree_remove_node.
27762         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27763         upon out-of-memory.
27764         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27765         out-of-memory.
27766         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27767         upon out-of-memory.
27768         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27769         upon out-of-memory.
27770         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27771         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27772         gl_anytree_list1.h before gl_anyavltree_list2.h.
27773         (gl_avltree_list_implementation): Update.
27774         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27775         gl_anytree_list1.h before gl_anyavltree_list2.h.
27776         (gl_rbtree_list_implementation): Update.
27777         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27778         Change return type to 'int'. Return -1 upon out-of-memory. Use
27779         __builtin_expect.
27780         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27781         (gl_avltreehash_list_implementation): Update.
27782         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27783         (gl_rbtreehash_list_implementation): Update.
27784         * modules/array-list (Depends-on): Remove xalloc.
27785         * modules/carray-list (Depends-on): Likewise.
27786         * modules/linked-list (Depends-on): Likewise.
27787         * modules/linkedhash-list (Depends-on): Likewise.
27788         * modules/avltree-list (Depends-on): Likewise.
27789         * modules/rbtree-list (Depends-on): Likewise.
27790         * modules/avltreehash-list (Depends-on): Likewise.
27791         * modules/rbtreehash-list (Depends-on): Likewise.
27792
27793         * modules/xsublist: New file.
27794         * lib/gl_xsublist.h: New file.
27795         * lib/gl_xsublist.c: New file.
27796         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27797         (gl_sublist_nx_create): New declaration.
27798         * lib/gl_sublist.c: Don't include xalloc.h.
27799         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27800         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27801         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27802         Change return type to 'int'. Return -1 upon out-of-memory.
27803         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27804         upon out-of-memory.
27805         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27806         NULL upon out-of-memory.
27807         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27808         upon out-of-memory.
27809         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27810         NULL upon out-of-memory.
27811         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27812         NULL upon out-of-memory.
27813         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27814         upon out-of-memory.
27815         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27816         (gl_sublist_list_implementation): Update.
27817         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27818         upon out-of-memory.
27819         * modules/sublist (Depends-on): Remove xalloc.
27820
27821         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27822         * tests/test-carray_list.c: Likewise.
27823         * tests/test-linked_list.c: Likewise.
27824         * tests/test-linkedhash_list.c: Likewise.
27825         * tests/test-avltree_list.c: Likewise.
27826         * tests/test-rbtree_list.c: Likewise.
27827         * tests/test-avltreehash_list.c: Likewise.
27828         * tests/test-rbtreehash_list.c: Likewise.
27829         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27830         * modules/carray-list-tests (Makefile.am): Likewise.
27831         * modules/linked-list-tests (Makefile.am): Likewise.
27832         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27833         * modules/avltree-list-tests (Makefile.am): Likewise.
27834         * modules/rbtree-list-tests (Makefile.am): Likewise.
27835         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27836         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27837
27838         * NEWS: Mention the changes.
27839
27840         * lib/clean-temp.c: Include gl_xlist.h.
27841         * modules/clean-temp (Depends-on): Add xlist.
27842
27843         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27844         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27845
27846         * tests/test-array_oset.c: Include gl_xlist.h.
27847         * modules/array-oset-tests (Depends-on): Add xlist.
27848
27849         Reported by José E. Marchesi <jemarch@gnu.org>.
27850
27851 2009-12-13  Bruno Haible  <bruno@clisp.org>
27852
27853         Move the malloc checking from module 'oset' to new module 'xoset'.
27854         * modules/xoset: New file.
27855         * lib/gl_xoset.h: New file.
27856         * lib/gl_xoset.c: New file.
27857         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27858         declarations.
27859         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27860         (struct gl_oset_implementation): Rename and change methods accordingly.
27861         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27862         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27863         'int'. Mark as __warn_unused_result__.
27864         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27865         gl_oset_create_empty.
27866         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27867         'int'.
27868         * lib/gl_array_oset.c: Don't include xalloc.h.
27869         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27870         malloc, not xmalloc.
27871         (grow): Change return type to 'int'. Don't call xalloc_die.
27872         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27873         to 'int'.
27874         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27875         'int'.
27876         (gl_array_oset_implementation): Update.
27877         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27878         gl_tree_create_empty.
27879         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27880         'int'.
27881         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27882         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27883         xmalloc.
27884         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27885         not xmalloc.
27886         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27887         xmalloc.
27888         (gl_avltree_oset_implementation): Update.
27889         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27890         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27891         xmalloc.
27892         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27893         not xmalloc.
27894         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27895         xmalloc.
27896         (gl_rbtree_oset_implementation): Update.
27897         * modules/array-oset (Depends-on): Remove xalloc.
27898         * modules/avltree-oset (Depends-on): Likewise.
27899         * modules/rbtree-oset (Depends-on): Likewise.
27900         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27901         * tests/test-avltree_oset.c: Likewise.
27902         * tests/test-rbtree_oset.c: Likewise.
27903         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27904         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27905         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27906         * NEWS: Mention the change.
27907
27908 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27909
27910         maint.mk: allow a project to override release-prep commands
27911         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27912         commands into a new rule.
27913         (release-prep): New rule.
27914         (release-prep-hook): New overridable variable.
27915
27916 2009-12-13  Bruno Haible  <bruno@clisp.org>
27917
27918         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27919
27920 2009-12-13  Jim Meyering  <meyering@redhat.com>
27921
27922         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27923         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27924
27925 2009-12-12  Bruno Haible  <bruno@clisp.org>
27926
27927         duplocale: Tweak.
27928         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27929
27930 2009-12-12  Karl Berry  <karl@gnu.org>
27931
27932         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27933
27934 2009-12-12  Bruno Haible  <bruno@clisp.org>
27935
27936         * m4/po.m4: Undo incorrect untabification.
27937
27938 2009-12-12  Bruno Haible  <bruno@clisp.org>
27939
27940         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27941         * modules/c-strtod (Depends-on): Add locale.
27942         * modules/c-strtold (Depends-on): Likewise.
27943
27944 2009-12-12  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27947
27948 2009-12-11  Eric Blake  <ebb9@byu.net>
27949
27950         setenv: relax requirement in light of POSIX ruling
27951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27952         not NULL.
27953         * tests/test-setenv.c (main): Relax test.
27954         * tests/test-unsetenv.c (main): Likewise.
27955         * doc/posix-functions/setenv.texi (setenv): Document this.
27956         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27957
27958 2009-12-11  Bruno Haible  <bruno@clisp.org>
27959
27960         New module 'fd-safer-flag'.
27961         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27962         * lib/dup-safer.c (dup_safer_flag): Remove function.
27963         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27964         * lib/fd-safer.c (fd_safer_flag): Remove function.
27965         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27966         * modules/cloexec (configure.ac): Drop indicator macro.
27967         * modules/fd-safer-flag: New file.
27968         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27969         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27970         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27971
27972 2009-12-11  Bruno Haible  <bruno@clisp.org>
27973
27974         Tests for module 'nl_langinfo'.
27975         * modules/nl_langinfo-tests: New file.
27976         * tests/test-nl_langinfo.sh: New file.
27977         * tests/test-nl_langinfo.c: New file.
27978
27979         New module 'nl_langinfo'.
27980         * lib/nl_langinfo.c: New file.
27981         * m4/nl_langinfo.m4: New file.
27982         * modules/nl_langinfo: New file.
27983         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27984
27985 2009-12-11  Bruno Haible  <bruno@clisp.org>
27986
27987         Tests for module 'langinfo'.
27988         * modules/langinfo-tests: New file.
27989         * tests/test-langinfo.c: New file.
27990
27991         New module 'langinfo'.
27992         * lib/langinfo.in.h: New file.
27993         * m4/langinfo_h.m4: New file.
27994         * modules/langinfo: New file.
27995         * doc/posix-headers/langinfo.texi: Mention the new module.
27996
27997 2009-12-11  Bruno Haible  <bruno@clisp.org>
27998
27999         * lib/config.charset: Untabify.
28000
28001 2009-12-11  Bruno Haible  <bruno@clisp.org>
28002
28003         * modules/unistd-safer (configure.ac): Drop indicator macro.
28004
28005 2009-12-11  Bruno Haible  <bruno@clisp.org>
28006
28007         Move pipe2-safer code to its own file.
28008         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28009         * lib/pipe-safer.c (pipe2_safer): Remove function.
28010         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28011         (Makefile.am): Add it to lib_SOURCES.
28012
28013 2009-12-10  Bruno Haible  <bruno@clisp.org>
28014
28015         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28016
28017 2009-12-10  Bruno Haible  <bruno@clisp.org>
28018
28019         Declare which arguments expect non-NULL values, for GCC and clang.
28020         * build-aux/arg-nonnull.h: New file.
28021         * modules/arg-nonnull: New file.
28022         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28023         (inet_ntop, inet_pton): Use it.
28024         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28025         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28026         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28027         (open, openat): Use it.
28028         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28029         (fnmatch): Use it.
28030         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28031         (getopt, getopt_long, getopt_long_only): Use it.
28032         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28033         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28034         Use it.
28035         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28036         (iconv_open): Use it.
28037         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28038         (strtoimax, strtoumax): Use it.
28039         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28040         (duplocale): Use it.
28041         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28042         (frexp, frexpl): Use it.
28043         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28044         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28045         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28046         (tsearch, tfind, tdelete, twalk): Use it.
28047         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28048         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28049         sigpending): Use it.
28050         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28051         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28052         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28053         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28054         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28055         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28056         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28057         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28058         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28059         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28060         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28061         Use it.
28062         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28063         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28064         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28065         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28066         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28067         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28068         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28069         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28070         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28071         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28072         strtoull, unsetenv): Use it.
28073         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28074         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28075         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28076         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28077         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28078         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28079         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28080         (strcasecmp, strncasecmp): Use it.
28081         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28082         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28083         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28084         rpl_setsockopt): Use it.
28085         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28086         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28087         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28088         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28089         (gettimeofday): Use it.
28090         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28091         (times): Use it.
28092         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28093         (uname): Use it.
28094         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28095         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28096         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28097         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28098         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28099         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28100         unlinkat, write): Use it.
28101         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28102         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28103         * lib/argv-iter.h: Include arg-nonnull.h.
28104         (_ATTRIBUTE_NONNULL_): Remove macro.
28105         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28106         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28107         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28108         optimization.
28109         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28110         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28111         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28112         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28113         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28114         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28115         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28116         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28117         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28118         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28119         * modules/dirent (Depends-on): Add arg-nonnull.
28120         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28121         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28122         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28123         * modules/fnmatch (Depends-on): Add arg-nonnull.
28124         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28125         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28126         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28127         * modules/glob (Depends-on): Add arg-nonnull.
28128         (Makefile.am): Insert arg-nonnull.h into glob.h.
28129         * modules/iconv_open (Depends-on): Add arg-nonnull.
28130         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28131         * modules/inttypes (Depends-on): Add arg-nonnull.
28132         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28133         * modules/locale (Depends-on): Add arg-nonnull.
28134         (Makefile.am): Insert arg-nonnull.h into locale.h.
28135         * modules/math (Depends-on): Add arg-nonnull.
28136         (Makefile.am): Insert arg-nonnull.h into math.h.
28137         * modules/netdb (Depends-on): Add arg-nonnull.
28138         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28139         * modules/search (Depends-on): Add arg-nonnull.
28140         (Makefile.am): Insert arg-nonnull.h into search.h.
28141         * modules/signal (Depends-on): Add arg-nonnull.
28142         (Makefile.am): Insert arg-nonnull.h into signal.h.
28143         * modules/spawn (Depends-on): Add arg-nonnull.
28144         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28145         * modules/stdio (Depends-on): Add arg-nonnull.
28146         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28147         * modules/stdlib (Depends-on): Add arg-nonnull.
28148         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28149         * modules/string (Depends-on): Add arg-nonnull.
28150         (Makefile.am): Insert arg-nonnull.h into string.h.
28151         * modules/strings (Depends-on): Add arg-nonnull.
28152         (Makefile.am): Insert arg-nonnull.h into strings.h.
28153         * modules/sys_socket (Depends-on): Add arg-nonnull.
28154         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28155         * modules/sys_stat (Depends-on): Add arg-nonnull.
28156         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28157         * modules/sys_time (Depends-on): Add arg-nonnull.
28158         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28159         * modules/sys_times (Depends-on): Add arg-nonnull.
28160         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28161         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28162         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28163         * modules/time (Depends-on): Add arg-nonnull.
28164         (Makefile.am): Insert arg-nonnull.h into time.h.
28165         * modules/unistd (Depends-on): Add arg-nonnull.
28166         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28167         * modules/wchar (Depends-on): Add arg-nonnull.
28168         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28169         * modules/argv-iter (Depends-on): Add arg-nonnull.
28170         * tests/test-canonicalize.c (null_ptr): New function.
28171         (main): Use it.
28172         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28173         (main): Use it.
28174         * tests/test-memmem.c (null_ptr): New function.
28175         (main): Use it.
28176         Reported by Jim Meyering.
28177
28178 2009-12-10  Bruno Haible  <bruno@clisp.org>
28179
28180         Use spaces for indentation, not tabs.
28181         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28182         * m4/*.m4: Untabify.
28183         * build-aux/*.h: Untabify.
28184         * tests/**/*.[hc]: Untabify.
28185         * README: New section "Indent with spaces, not TABs", based on
28186         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28187         * NEWS: Mention the change.
28188
28189 2009-12-10  Bruno Haible  <bruno@clisp.org>
28190
28191         pty test: Fix link error.
28192         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28193         test_pty_LDADD.
28194
28195 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28196
28197         * modules/pty: New file.
28198         * modules/pty-tests: New file.
28199         * m4/pty.m4: New file.
28200         * tests/test-pty.c: New file.
28201         * doc/glibc-headers/pty.texi: Modified.
28202         * doc/glibc-functions/forkpty.texi: Modified.
28203         * doc/glibc-functions/openpty.texi: Modified.
28204
28205 2009-12-10  Bruno Haible  <bruno@clisp.org>
28206
28207         Avoid syntax error in C++ mode.
28208         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28209
28210 2009-12-10  Bruno Haible  <bruno@clisp.org>
28211
28212         Use sed with option -e.
28213         * gnulib-tool (func_version, func_emit_copyright_notice,
28214         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28215         option -e to sed.
28216         * modules/link-warning (Makefile.am): Likewise.
28217
28218 2009-12-10  Jim Meyering  <meyering@redhat.com>
28219
28220         mgetgroups: do not write bytes beyond end of malloc'd buffer
28221         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28222         username, we call getgroups with a one-element-shorter buffer,
28223         but still told it the length was original, max_n_groups.
28224
28225 2009-12-09  Eric Blake  <ebb9@byu.net>
28226
28227         cloexec: relax license
28228         * modules/cloexec (Maintainer): Add myself.
28229         (License): Use LGPL, not GPL.
28230
28231         link-warning: optimize generation
28232         * modules/link-warning (Makefile.am): Reduce process usage.
28233
28234 2009-12-09  Bruno Haible  <bruno@clisp.org>
28235
28236         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28237         workaround was added on 2009-11-17.
28238
28239 2009-12-09  Jim Meyering  <meyering@redhat.com>
28240             Bruno Haible  <bruno@clisp.org>
28241
28242         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28243         * modules/link-warning (Makefile.am): Make the comment-removing sed
28244         command more robust in the face of bootstrap-prepended comment lines.
28245
28246 2009-12-09  Bruno Haible  <bruno@clisp.org>
28247
28248         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28249         most one group.
28250
28251 2009-12-09  Simon Josefsson <simon@josefsson.org>
28252             Bruno Haible  <bruno@clisp.org>
28253
28254         * build-aux/link-warning.h: Add copyright notice.
28255         * modules/link-warning (Makefile.am): Generate link-warning.h from
28256         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28257         * NEWS: Mention change in link-warning module.
28258         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28259         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28260         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28261         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28262         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28263         * modules/math (Makefile.am): Add dependency to math.h.
28264         * modules/search (Makefile.am): Add dependency to search.h.
28265         * modules/signal (Makefile.am): Add dependency to signal.h.
28266         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28267         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28268         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28269         * modules/string (Makefile.am): Add dependency to string.h.
28270         * modules/strings (Makefile.am): Add dependency to strings.h.
28271         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28272         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28273         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28274         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28275         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28276         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28277         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28278         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28279         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28280
28281 2009-12-09  Bruno Haible  <bruno@clisp.org>
28282
28283         fchdir: Optimize away rpl_fstat when possible.
28284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28285         REPLACE_OPEN_DIRECTORY.
28286         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28287
28288 2009-12-09  Bruno Haible  <bruno@clisp.org>
28289
28290         * lib/fchdir.c: Update comment.
28291
28292 2009-12-09  Bruno Haible  <bruno@clisp.org>
28293
28294         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28295
28296 2009-12-08  Eric Blake  <ebb9@byu.net>
28297
28298         fchdir: avoid memory leak on re-registration.
28299         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28300
28301 2009-12-08  Jim Meyering  <meyering@redhat.com>
28302
28303         init.sh: avoid Solaris 10 /bin/sh portability problem
28304         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28305         sourced script:
28306           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28307           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28308           bar
28309         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28310         and two tests used that idiom.
28311         * tests/init.sh: Update suggested usage comments.
28312         (path_prepend_): New function, to be used in place
28313         of the --src-path=DIR option.
28314         (setup_): Move PATH-prepending code into path_prepend_.
28315         * tests/test-pread.sh: Adapt to new usage.
28316         * tests/test-xalloc-die.sh: Likewise.
28317
28318 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28319
28320         * doc/gnulib.texi (Glibc pty.h): Add.
28321         * doc/glibc-functions/forkpty.texi: Add.
28322         * doc/glibc-functions/openpty.texi: Add.
28323         Suggested by Bruno Haible.
28324
28325 2009-12-08  Eric Blake  <ebb9@byu.net>
28326
28327         fchdir: fix logic bugs
28328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28329         * tests/test-fchdir.c (main): Enhance test.
28330         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28331         is in use.
28332
28333         dup2: fix logic bugs
28334         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28335         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28336         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28337         exists.
28338         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28339
28340 2009-12-07  Eric Blake  <ebb9@byu.net>
28341
28342         unlink: fix m4 detection
28343         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28344
28345         unistd-safer: add unit test
28346         * modules/unistd-safer-tests: New file.
28347         * tests/test-dup-safer.c: Likewise.
28348         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28349         * tests/test-dup2.c (setmode): Likewise.
28350         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28351
28352         cloexec: preserve text vs. binary across dup_cloexec
28353         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28354         mode.
28355         * modules/dup2-tests (Depends-on): Add binary-io.
28356         * modules/cloexec-tests (Depends-on): Likewise.
28357         * tests/test-dup2.c (setmode, is_mode): New helpers.
28358         (main): Add tests that translation mode is preserved.
28359         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28360         Reported by Bruno Haible.
28361
28362         mgetgroups: reduce duplicate listings
28363         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28364         resulting array.
28365         * tests/test-chown.h (test_chown): Simplify client.
28366         * tests/test-lchown.h (test_lchown): Likewise.
28367
28368 2009-12-06  Bruno Haible  <bruno@clisp.org>
28369
28370         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28371         value.
28372
28373 2009-12-06  Bruno Haible  <bruno@clisp.org>
28374
28375         * lib/progname.c: Include stdio.h, stdlib.h.
28376         (set_program_name): Reject a NULL argument.
28377
28378 2009-12-05  Eric Blake  <ebb9@byu.net>
28379
28380         pipe2-safer: new module
28381         * modules/pipe2-safer: New file.
28382         * lib/unistd-safer.h (pipe2_safer): New prototype.
28383         * lib/unistd--.h (pipe2): New wrapper.
28384         * lib/pipe-safer.c (pipe2_safer): New function.
28385         * modules/pipe (Depends-on): Add pipe2-safer.
28386         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28387
28388         stdlib-safer: preserve cloexec flag for mkostemp[s]
28389         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28390         fd_safer_flag.
28391
28392         unistd-safer: allow preservation of cloexec status via flag
28393         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28394         prototypes.
28395         * lib/dup-safer.c (dup_safer_flag): New function.
28396         * lib/fd-safer.c (fd_safer_flag): Likewise.
28397         * modules/cloexec (configure.ac): Set witness.
28398
28399         test-dup2: enhance test
28400         * modules/dup2-tests (Depends-on): Add cloexec.
28401         * tests/test-dup2.c (main): Enhance test.
28402
28403         cloexec: add dup_cloexec
28404         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28405         header and comments.
28406         * lib/cloexec.c (set_cloexec_flag): Add comments.
28407         (dup_cloexec): New function, with mingw implementation borrowed
28408         from...
28409         * lib/w32spawn.h (dup_noinherit): ...here.
28410         * modules/execute (Depends-on): Add cloexec.
28411         * modules/pipe (Depends-on): Likewise.
28412         * modules/cloexec (Depends-on): Add dup2.
28413         * modules/cloexec-tests (Files): New file.
28414         * tests/test-cloexec.c: Likewise.
28415
28416         test-xalloc-die: fix test for mingw
28417         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28418         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28419         directory and .exe suffix off argv[0] output.
28420
28421         test-fseeko: fix test for mingw
28422         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28423         than undefining fseek, so test will pass on mingw.
28424
28425 2009-12-05  Bruno Haible  <bruno@clisp.org>
28426
28427         * lib/progname.h (set_program_name): Clarify specification.
28428         * lib/progname.c (set_program_name): Likewise.
28429         Reported by Jim Meyering.
28430
28431 2009-12-05  Jim Meyering  <meyering@redhat.com>
28432
28433         maint.mk: backslash-escape parens in default regexp
28434         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28435         backslash-escape the literal parentheses.
28436
28437         maint.mk: news-date-check: use grep -E
28438         * top/maint.mk (today): Define a Make variable, not a...
28439         (news-date-check): ...shell variable.
28440         (news-date-regexp): Use the Make variable.
28441         Use grep's -E option.  Change the failing diagnostic to mention
28442         the variable, $(news-date-regexp).
28443
28444 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28445
28446         maintainer-makefile: allow customization of NEWS entry format
28447         * top/maint.mk (news-date-regexp): New overridable variable.
28448         (news-date-check): Use it.
28449
28450 2009-12-04  Eric Blake  <ebb9@byu.net>
28451
28452         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28453         * lib/mgetgroups.h (xgetgroups): New prototype.
28454         * lib/mgetgroups.c (xgetgroups): New wrapper.
28455         (mgetgroups): Handle ENOSYS.
28456         * modules/mgetgroups (Depends-on): Add realloc.
28457         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28458
28459         mgetgroups: avoid argument promotion issues with -1
28460         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28461         for invalid gid_t.
28462         * tests/test-chown.h (getegid, test_chown): Likewise.
28463         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28464
28465 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28466
28467         exclude: Fix header file problems.
28468         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28469
28470 2009-12-01  Jim Meyering  <meyering@redhat.com>
28471
28472         fts: fts_open: do not let an empty string cause immediate failure
28473         This is required in support of GNU rm, for which the command
28474         "rm A '' B" must process and remove both A and B, in spite of
28475         the empty string argument.
28476         * lib/fts.c (fts_open): Do not let the presence of an empty string
28477         cause fts_open to fail immediately.  Most fts-using tools must be
28478         able to process all arguments, in order, and can be expected to
28479         diagnose such arguments themselves.
28480
28481 2009-11-30  Eric Blake  <ebb9@byu.net>
28482
28483         utimens: fix compilation error
28484         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28485         Declare variable at right scope.
28486
28487 2009-11-29  Jim Meyering  <meyering@redhat.com>
28488
28489         bootstrap: handle perl-5.11's changed --version output
28490         * build-aux/bootstrap (get_version): Handle perl separately,
28491         since perl-5.11's --version output is different.
28492
28493 2009-11-28  Jim Meyering  <meyering@redhat.com>
28494
28495         userspec: depend on the inttostr module, too
28496         * modules/userspec (Depends-on): Add inttostr.
28497
28498         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28499         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28500         number of MAXUID when it evaluates to (uid_t) -1.
28501         Likewise for group ID.  Reported by Matt McCutchen in
28502         <http://savannah.gnu.org/bugs/?28113>
28503
28504         userspec: reformat to use spaces, not TABs
28505         * lib/userspec.c: Expand TABs to spaces.
28506         Add Emacs' "indent-tabs-mode: nil" hint.
28507
28508 2009-11-27  Eric Blake  <ebb9@byu.net>
28509
28510         getopt-gnu: flush out another BSD bug
28511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28512         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28513         flush out BSD bug.
28514         * tests/test-getopt.h (test_getopt): End lists with NULL.
28515         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28516         (test_getopt_long_posix): Enhance test.
28517         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28518         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28519         getopt-gnu.
28520         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28521         Likewise.
28522
28523 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28524
28525         * modules/idpriv-droptemp-tests (Notice): Fix text.
28526
28527 2009-11-27  Jim Meyering  <meyering@redhat.com>
28528
28529         test-xalloc-die: avoid spurious failure due to libtool argv difference
28530         In a libtool-enabled project, this test would fail due to a difference
28531         in the emitted program name, e.g.,
28532         -test-xalloc-die: memory exhausted
28533         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28534         Use program to avoid that.
28535         * modules/xalloc-die-tests (Depends-on): Add progname.
28536         * tests/test-xalloc-die.c: Include progname.h".
28537         (program_name): Remove decl.
28538         (main): Call set_program_name.
28539         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28540
28541 2009-11-26  Richard Jones  <rjones@redhat.com>
28542
28543         w32sock: leave win32 error in place.
28544         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28545
28546 2009-11-26  Eric Blake  <ebb9@byu.net>
28547
28548         init.sh: suggest to use skip_ and fail_ functions in comments
28549         * tests/init.sh: Add a sentence.
28550
28551 2009-11-25  Bruno Haible  <bruno@clisp.org>
28552
28553         init.sh: add documentation in comments
28554         * tests/init.sh: Add some developer and user documentation.
28555
28556 2009-11-26  Jim Meyering  <meyering@redhat.com>
28557
28558         init.sh: accommodate even those who specify bogus srcdir manually
28559         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28560         configure-time tests to be sanitized, so that there is no need to
28561         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28562         (with no double quotes) suffices.  However, since tests may be
28563         invoked manually, and since you may explicitly set srcdir to the
28564         name of a directory containing spaces, do quote its uses here.
28565         * tests/test-pread.sh: Likewise.
28566         Suggested by Bruno Haible.
28567
28568         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28569         * tests/test-pread.sh: Write no data into the pipe, because
28570         test-pread actually reads none.  This avoids a diagnostic,
28571         "bash: echo: write error: Broken pipe", that arises in the unusual
28572         event something is ignoring SIGPIPE, and might be interpreted
28573         as some sort of failure.  Reported by Bruno Haible.
28574
28575 2009-11-25  Jim Meyering  <meyering@redhat.com>
28576
28577         test-pread: cover failure with ESPIPE and EINVAL
28578         * tests/test-pread.c (main): Test for failure, too.
28579         * tests/test-pread.sh: Invoke with stdin on a pipe.
28580         Suggested by Eric Blake.
28581
28582         pread: improvement and fix
28583         * modules/pread (Depends-on): Depend on lseek, for portability to
28584         e.g., mingw.  Suggested by Eric Blake.
28585         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28586
28587         unistd.in.h: correct declaration of pread
28588         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28589         Reported by Richard W.M. Jones.
28590
28591         test-pread.sh: distribute the test script
28592         * modules/pread-tests (Files): Include test-pread.sh.
28593
28594         test-pread.sh: clean up
28595         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28596         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28597         That is unnecessary, since it's always ".".
28598         Suggestion from Eric Blake.
28599
28600         test-pread.sh: make executable
28601         * tests/test-pread.sh: Set executable bit.
28602         Reported by Eric Blake.
28603
28604         correct typo in test-pread.sh
28605         * tests/test-pread.sh: Add #! line.
28606
28607         test pread
28608         * tests/test-pread.c: New file.
28609         * tests/test-pread.sh: Likewise.
28610         * modules/pread-tests: Likewise.
28611
28612         pread: new module
28613         * modules/pread: New file.
28614         * lib/unistd.in.h (pread): Define/declare.
28615         * lib/pread.c (pread): New file.
28616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28617         * modules/unistd (Makefile.am): Substitute witnesses.
28618         * doc/posix-functions/pread.texi (pread): Update.
28619         * MODULES.html.sh: Add pread.
28620
28621 2009-11-25  Jim Meyering  <meyering@redhat.com>
28622
28623         tests/init.sh: new file to be used via most *.sh tests
28624         * tests/init.sh: New file.
28625
28626 2009-11-25  Eric Blake  <ebb9@byu.net>
28627
28628         utimens: work around older Linux failure with symlinks
28629         * lib/utimens.c (lutimensat_works_really): New variable.
28630         (fdutimens, lutimens): Use it to manage kernels that support
28631         nanosecond times on files, but not on symlinks.
28632         Reported by OndÅ™ej Vašík.
28633
28634         utimes: fix configure grammar
28635         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28636
28637 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28638
28639         regex: Fix fastmap for multibyte character ranges.
28640         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28641         characters when a multibyte character range is included.
28642
28643 2009-11-22  Andy Wingo  <wingo@pobox.com>
28644
28645         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28646         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28647
28648 2009-11-24  Bruno Haible  <bruno@clisp.org>
28649
28650         doc: Most *_l functions exist in MacOS X 10.5.
28651         * doc/posix-functions/duplocale.texi: Update platforms list.
28652         * doc/posix-functions/freelocale.texi: Likewise.
28653         * doc/posix-functions/newlocale.texi: Likewise.
28654         * doc/posix-functions/uselocale.texi: Likewise.
28655         * doc/posix-functions/isalnum_l.texi: Likewise.
28656         * doc/posix-functions/isalpha_l.texi: Likewise.
28657         * doc/posix-functions/isblank_l.texi: Likewise.
28658         * doc/posix-functions/iscntrl_l.texi: Likewise.
28659         * doc/posix-functions/isdigit_l.texi: Likewise.
28660         * doc/posix-functions/isgraph_l.texi: Likewise.
28661         * doc/posix-functions/islower_l.texi: Likewise.
28662         * doc/posix-functions/isprint_l.texi: Likewise.
28663         * doc/posix-functions/ispunct_l.texi: Likewise.
28664         * doc/posix-functions/isspace_l.texi: Likewise.
28665         * doc/posix-functions/isupper_l.texi: Likewise.
28666         * doc/posix-functions/iswalnum_l.texi: Likewise.
28667         * doc/posix-functions/iswalpha_l.texi: Likewise.
28668         * doc/posix-functions/iswblank_l.texi: Likewise.
28669         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28670         * doc/posix-functions/iswctype_l.texi: Likewise.
28671         * doc/posix-functions/iswdigit_l.texi: Likewise.
28672         * doc/posix-functions/iswgraph_l.texi: Likewise.
28673         * doc/posix-functions/iswlower_l.texi: Likewise.
28674         * doc/posix-functions/iswprint_l.texi: Likewise.
28675         * doc/posix-functions/iswpunct_l.texi: Likewise.
28676         * doc/posix-functions/iswspace_l.texi: Likewise.
28677         * doc/posix-functions/iswupper_l.texi: Likewise.
28678         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28679         * doc/posix-functions/isxdigit_l.texi: Likewise.
28680         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28681         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28682         * doc/posix-functions/strcoll_l.texi: Likewise.
28683         * doc/posix-functions/strfmon_l.texi: Likewise.
28684         * doc/posix-functions/strftime_l.texi: Likewise.
28685         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28686         * doc/posix-functions/strxfrm_l.texi: Likewise.
28687         * doc/posix-functions/tolower_l.texi: Likewise.
28688         * doc/posix-functions/toupper_l.texi: Likewise.
28689         * doc/posix-functions/towctrans_l.texi: Likewise.
28690         * doc/posix-functions/towlower_l.texi: Likewise.
28691         * doc/posix-functions/towupper_l.texi: Likewise.
28692         * doc/posix-functions/wcscoll_l.texi: Likewise.
28693         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28694         * doc/posix-functions/wctrans_l.texi: Likewise.
28695         * doc/posix-functions/wctype_l.texi: Likewise.
28696         * doc/glibc-functions/strptime_l.texi: Likewise.
28697         * doc/glibc-functions/strtod_l.texi: Likewise.
28698         * doc/glibc-functions/strtof_l.texi: Likewise.
28699         * doc/glibc-functions/strtol_l.texi: Likewise.
28700         * doc/glibc-functions/strtold_l.texi: Likewise.
28701         * doc/glibc-functions/strtoll_l.texi: Likewise.
28702         * doc/glibc-functions/strtoul_l.texi: Likewise.
28703         * doc/glibc-functions/strtoull_l.texi: Likewise.
28704         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28705         * doc/glibc-functions/wcstod_l.texi: Likewise.
28706         * doc/glibc-functions/wcstof_l.texi: Likewise.
28707         * doc/glibc-functions/wcstol_l.texi: Likewise.
28708         * doc/glibc-functions/wcstold_l.texi: Likewise.
28709         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28710         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28711         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28712
28713 2009-11-24  Bruno Haible  <bruno@clisp.org>
28714
28715         duplocale: Fix logic bug.
28716         * lib/duplocale.c: Don't include <langinfo.h>.
28717         (_NL_LOCALE_NAME): Remove macro.
28718         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28719         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28720
28721 2009-11-23  Jim Meyering  <meyering@redhat.com>
28722
28723         test-update-copyright: don't hard-code /usr/bin/perl
28724         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28725         perl to print the current year.  Gilles Espinasse reported that
28726         the replaced use of perl was hard-coded as /usr/bin/perl.
28727
28728 2009-11-23  Bruno Haible  <bruno@clisp.org>
28729
28730         duplocale: Add support for glibc 2.3.x.
28731         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28732
28733 2009-11-22  Bruno Haible  <bruno@clisp.org>
28734
28735         vasnprintf: Tiny optimization.
28736         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28737         MacOS X.
28738
28739 2009-11-22  Bruno Haible  <bruno@clisp.org>
28740
28741         Tests for module 'duplocale'.
28742         * modules/duplocale-tests: New file.
28743         * tests/test-duplocale.c: New file.
28744
28745         New module 'duplocale'.
28746         * m4/duplocale.m4: New file.
28747         * lib/locale.in.h (duplocale): New declaration.
28748         * lib/duplocale.c: New file.
28749         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28750         gl_LOCALE_H_DEFAULTS): New macros.
28751         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28752         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28753         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28754         REPLACE_DUPLOCALE.
28755         * modules/duplocale: New file.
28756         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28757
28758 2009-11-22  Bruno Haible  <bruno@clisp.org>
28759
28760         * modules/locale-tests (configure.ac): Test for newlocale function.
28761         * tests/test-locale.c: When the system has extended locale functions,
28762         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28763
28764         locale: Make locale_t available when possible.
28765         * lib/locale.in.h: Include <xlocale.h> when it exists.
28766         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28767         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28768         * modules/locale (Depends-on): Add extensions.
28769         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28770         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28771
28772 2009-11-22  Bruno Haible  <bruno@clisp.org>
28773
28774         Add comments.
28775         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28776         invocation.
28777         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28778         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28780
28781 2009-11-22  Bruno Haible  <bruno@clisp.org>
28782
28783         error: account for the possibility of freopen (stdout).
28784         * lib/error.c: Include <unistd.h>.
28785         (flush_stdout): New function, extracted from error and error_at_line.
28786         Determine stdout's fd dynamically.
28787         (error, error_at_line): Invoke flush_stdout.
28788         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28789         * modules/error (Depends-on): Add unistd.
28790
28791 2009-11-22  Bruno Haible  <bruno@clisp.org>
28792
28793         diffseq: Add comment.
28794         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28795
28796 2009-11-22  Jim Meyering  <meyering@redhat.com>
28797
28798         c-stack: avoid defining an unused static function
28799         * lib/c-stack.c (find_stack_direction): Do not define this function
28800         when it will not be used.
28801
28802         diffseq: avoid spurious gcc warnings
28803         * lib/diffseq.h (IF_LINT2): Define.
28804         (compareseq): Use it to initialize two members of "part".
28805         This avoids two used-uninitialized warnings.
28806
28807 2009-11-21  Jim Meyering  <meyering@redhat.com>
28808
28809         c-stack: avoid "ignoring return value of `write'" warning
28810         * lib/c-stack.c: Include "ignore-value.h".
28811         (die): Explicitly ignore each write return value.
28812         * modules/c-stack (Depends-on): Add ignore-value.
28813
28814 2009-11-21  Bruno Haible  <bruno@clisp.org>
28815
28816         diffseq: reduce scope of variable 'best'.
28817         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28818         variable, earlier used for two different purposes.
28819
28820 2009-11-21  Jim Meyering  <meyering@redhat.com>
28821
28822         diffseq: remove useless assignment to "best"
28823         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28824         assignment.  At that point "best" is already guaranteed to be zero.
28825
28826 2009-11-20  Eric Blake  <ebb9@byu.net>
28827
28828         build: mention ftp redirector in release announcements
28829         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28830         values that used to come from cfg.mk; mention FTP redirect URL.
28831         * build-aux/announce-gen: Mention the mirror list.
28832         Suggested by Karl Berry.
28833
28834         nanosleep: improve port to mingw
28835         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28837         LIB_NANOSLEEP, but only when needed.
28838         * modules/select (Link): Document LIBSOCKET.
28839         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28840         enough.
28841
28842         nanosleep: work around cygwin bug
28843         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28844         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28845         bug.
28846         (getnow): Delete, not needed.
28847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28848         LIB_CLOCK_GETTIME.
28849         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28850         clock-time, gettime.
28851         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28852         bug.
28853         * modules/nanosleep-tests: New test.
28854         * tests/test-nanosleep.c: New file.
28855
28856         sleep: work around cygwin bug
28857         * lib/sleep.c (rpl_sleep): Work around the bug.
28858         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28859         (gl_PREREQ_SLEEP): Delete unused macro.
28860         * modules/sleep (Depends-on): Add verify.
28861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28862         * modules/unistd (Makefile.am): Substitute witness.
28863         * lib/unistd.in.h (sleep): Update prototype.
28864         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28865         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28866         * modules/sleep-tests (Depends-on): Check for alarm.
28867
28868 2009-11-20  Jim Meyering  <meyering@redhat.com>
28869
28870         maint.mk: improve sc_prohibit_magic_number_exit
28871         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28872         so it does not match uses like System.exit(1).
28873         Add comments showing how to correct all offenders.
28874
28875 2009-11-19  Eric Blake  <ebb9@byu.net>
28876
28877         xalloc-die-tests: add missing library
28878         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28879
28880         test-xvasprintf: silence compiler warnings
28881         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28882         empty string from gcc.
28883
28884 2009-11-19  Jim Meyering  <meyering@redhat.com>
28885
28886         xfreopen: new module, from coreutils
28887         * modules/xfreopen: New module.
28888         * lib/xfreopen.c: New file.
28889         * lib/xfreopen.h: New file.
28890         * MODULES.html.sh (File stream based Input/Output"): Add it.
28891
28892 2009-11-19  Eric Blake  <ebb9@byu.net>
28893
28894         manywarnings: depend on warnings
28895         * modules/manywarnings (Depends-on): Add warnings.
28896
28897         build: avoid compiler warnings
28898         * lib/select.c (rpl_select): Delete unused variable.
28899         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28900
28901 2009-11-18  Eric Blake  <ebb9@byu.net>
28902
28903         tests: avoid false negative with --with-packager
28904         * tests/test-version-etc.sh: Discard packager information.
28905         * tests/test-argp-version-etc-1.sh: Likewise.
28906         Reported by Mike Frysinger.
28907
28908         utimens: fix regression on Solaris
28909         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28910         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28911         can only change fd timestamps via futimesat.  Instead, use an
28912         additional witness macro to avoid BSD bug.
28913         Reported by Jim Meyering.
28914
28915 2009-11-17  Eric Blake  <ebb9@byu.net>
28916
28917         usleep: use it to simplify tests
28918         * modules/stat-time-tests (Depends-on): Add usleep.
28919         (configure.ac): Drop usleep check.
28920         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28921         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28922         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28923         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28924         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28925         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28926         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28927         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28928         Likewise.
28929         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28930         * tests/test-lchown.h (nap): Likewise.
28931         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28932         * tests/test-stat-time.c (nap): Likewise.
28933         * tests/test-utimens-common.h (nap): Update comments.
28934
28935         usleep: new module
28936         * modules/usleep: New file.
28937         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28938         * lib/usleep.c (usleep): Likewise.
28939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28940         * modules/unistd (Makefile.am): Substitute witnesses.
28941         * lib/unistd.in.h (usleep): Add declaration.
28942         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28943         * MODULES.html.sh (Date and time): Likewise.
28944         * modules/usleep-tests (Depends-on): New test.
28945         * tests/test-usleep.c: New file.
28946
28947         chown: work around OpenBSD bug
28948         * lib/chown.c (rpl_chown): Work around the bug.
28949         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28950         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28951         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28952         * modules/chown (Depends-on): Add stdbool.
28953         * modules/lchown (Depends-on): Likewise.
28954         * doc/posix-functions/chown.texi (chown): Document the bug.
28955         * doc/posix-functions/lchown.texi (lchown): Likewise.
28956         * tests/test-lchown.h (test_chown): Relax test.
28957
28958         mkstemp: avoid conflict with C++ keyword template
28959         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28960         * lib/mkostemp.c (mkostemp): Likewise.
28961         * lib/mkostemps.c (mkostemps): Likewise.
28962         * lib/mkstemp.c (mkstemp): Likewise.
28963         * lib/mkstemps.c (mkstemps): Likewise.
28964
28965         xalloc-die-tests: optimize
28966         * tests/test-xalloc-die.sh: Reduce number of processes.
28967
28968 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28969
28970         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28971         patch from ludo@gnu.org (Ludovic Courtès).
28972
28973 2009-11-17  Jim Meyering  <meyering@redhat.com>
28974
28975         version-etc: use proper license string
28976         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28977         * modules/version-etc-fsf: Likewise.
28978
28979 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28980
28981         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28982         printed to stdout.  Deal with EOL differences.
28983
28984 2009-11-17  Eric Blake  <ebb9@byu.net>
28985
28986         unsetenv: work around Solaris bug
28987         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28988         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28989         Reported by Jim Meyering.
28990
28991         vasnprintf: avoid compiler warnings
28992         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28993         variables.
28994         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28995
28996 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28997
28998         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28999         settings since xalloc-die is no longer the self test,
29000         xalloc-die.sh is.
29001
29002 2009-11-17  Jim Meyering  <meyering@redhat.com>
29003
29004         test-xalloc-die.sh: make the code agree with the commit log
29005         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29006         at the end, just in case you happen to have a test-xalloc-die
29007         program in some other PATH directory.
29008
29009         test-xalloc-die.sh: fix a portability bug
29010         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29011         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29012         Otherwise, argv[0] (as often seen in diagnostics) would be too
29013         system-dependent, sometimes with, and sometimes without the leading "./".
29014
29015         version-etc-fsf: relax license to LGPLv3+
29016         * modules/version-etc-fsf (License): Relax license.
29017
29018 2009-11-16  Eric Blake  <ebb9@byu.net>
29019
29020         xalloc-die-tests: avoid printing null pointer
29021         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29022         shell script.
29023         * tests/test-xalloc-die.c (program_name): Declare.
29024         * tests/test-xalloc-die.sh (tmpfiles): New file.
29025
29026         setenv, unsetenv: work around various bugs
29027         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29028         (setenv) [HAVE_SETENV]: Work around bugs.
29029         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29030         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29031         for bugs.
29032         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29033         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29035         * modules/stdlib (Makefile.am): Update substitutions.
29036         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29037         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29038         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29039         * modules/setenv-tests: New test.
29040         * modules/unsetenv-tests: Likewise.
29041         * tests/test-setenv.c: New file.
29042         * tests/test-unsetenv.c: Likewise.
29043
29044 2009-11-16  Jim Meyering  <meyering@redhat.com>
29045
29046         version-etc: relax license to LGPLv3+
29047         * modules/version-etc (License): Relax license.
29048
29049         better AC_REQUIRE expanded-before-required-warning avoidance
29050         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29051         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29052         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29053         which is no longer needed.
29054
29055 2009-11-16  Eric Blake  <ebb9@byu.net>
29056
29057         test-freading: clean up temporary file
29058         * tests/test-freading.c (main): Remove file on success, and use
29059         ASSERT more liberally.
29060         Reported by Jim Meyering.
29061
29062 2009-11-16  Jim Meyering  <meyering@redhat.com>
29063
29064         avoid new AC_REQUIRE expanded-before-required warnings
29065         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29066         merely using it.
29067         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29068         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29069
29070 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29071
29072         * tests/test-xalloc-die.c: New file.
29073         * modules/xalloc-die-tests: New file.
29074         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29075         XFAIL_TESTS so it can be appended by modules.
29076
29077 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29078
29079         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29080         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29081
29082 2009-11-14  Eric Blake  <ebb9@byu.net>
29083
29084         fnmatch: avoid compiler warning
29085         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29086         to silence compiler warning about mismatch signedness in ?:.
29087         Reported by Robert Millan.
29088
29089         intprops: add double-inclusion guard
29090         * lib/intprops.h: Allow idempotent includes.
29091         Suggested by Bruce Korb.
29092
29093         openat: detect Solaris fchownat bug
29094         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29095         penalizing glibc chownat when only lchownat is broken.
29096         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29097         trailing slash bugs.
29098         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29099         * modules/openat-tests (Files): Include more files.
29100         (Depends-on): Add mgetgroups, sleep, stat-time.
29101         (configure.ac): Add additional checks.
29102         (Makefile.am): Build new test.
29103         * tests/test-fchownat.c: New file.
29104
29105         lchown: detect Solaris and FreeBSD bug
29106         * lib/lchown.c (rpl_lchown): Work around bug.
29107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29109         * modules/unistd (Makefile.am): Populate it.
29110         * lib/unistd.in.h (lchown): Update declaration.
29111         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29112         * modules/lchown-tests: New file.
29113         * tests/test-lchown.h (test_lchown): Likewise.
29114         * tests/test-lchown.c (main): Likewise.
29115
29116         chown: detect Solaris and FreeBSD bug
29117         * lib/chown.c (rpl_chown): Work around bug.
29118         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29119         (gl_PREREQ_CHOWN): Delete.
29120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29121         * modules/unistd (Makefile.am): Populate it.
29122         * lib/unistd.in.h (chown): Update declaration.
29123         * lib/lchown.c (chown): Update client.
29124         * modules/lchown (Depends-on): Add lstat.
29125         * doc/posix-functions/chown.texi (chown): Document the bug.
29126         * doc/posix-functions/getgroups.texi (getgroups): Document
29127         getgroups pitfall.
29128         * modules/chown-tests: New file.
29129         * tests/test-chown.h (test_chown): Likewise.
29130         * tests/test-chown.c (main): Likewise.
29131
29132 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29133
29134         gnulib-tool: correctly detect absence of m4 directories
29135         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29136
29137 2009-11-14  Jim Meyering  <meyering@redhat.com>
29138
29139         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29140         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29141
29142 2009-11-14  John W. Eaton  <jwe@gnu.org>
29143
29144         strftime.h: wrap funtion declaration in extern "C" block
29145         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29146
29147 2009-11-13  Eric Blake  <ebb9@byu.net>
29148
29149         getgroups: avoid compiler warning
29150         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29151
29152         getgroups: work around FreeBSD bug
29153         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29154         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29155         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29156         * tests/test-getgroups.c (main): Fix buffer overrun.
29157
29158         getgroups: avoid compilation failure
29159         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29160         * modules/getgroups (Depends-on): Add stdint.
29161
29162 2009-11-13  Jim Meyering  <meyering@redhat.com>
29163
29164         test-getgroups: avoid compilation failure
29165         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29166
29167 2009-11-13  Eric Blake  <ebb9@byu.net>
29168
29169         mgetgroups: new module, taken from coreutils
29170         * modules/mgetgroups: New file.
29171         * lib/mgetgroups.h: Likewise.
29172         * lib/mgetgroups.c (mgetgroups): Likewise.
29173         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29174         * MODULES.html.sh (Users and groups): Mention it.
29175
29176         getgroups: don't expose GETGROUPS_T to user
29177         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29178         an element at a time if GETGROUPS_T is wrong size.
29179         * lib/getugroups.h (getugroups): Change signature.
29180         * lib/unistd.in.h (getgroups): Likewise.
29181         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29182         signature needs fixing.
29183         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29184         AC_TYPE_GETGROUPS.
29185         * modules/group-member (Depends-on): Add getgroups.
29186         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29187         (group_member): Rely on getgroups replacement.
29188         * lib/getugroups.c (getugroups): Use gid_t.
29189         * tests/test-getgroups.c (main): Likewise.
29190         * NEWS: Mention the signature change.
29191         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29192         problem with signature.
29193         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29194         GETGROUPS_T is still useful for setgroups.
29195
29196         getgroups, getugroups: provide stubs for mingw
29197         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29198         * lib/getugroups.c (getugroups): Likewise.
29199         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29200         function.  Modernize replacement scheme.
29201         (gl_PREREQ_GETGROUPS): Delete.
29202         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29203         * modules/getgroups (configure.ac): Declare witness.
29204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29205         * modules/unistd (Depends-on): Substitute witness.
29206         * lib/unistd.in.h (getgroups): Declare replacement.
29207
29208         getgroups: avoid calling exit
29209         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29210         drop xalloc.
29211         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29212         dependencies.
29213         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29214         exiting, in the rare case of malloc failure.
29215
29216         getgroups: fix logic error
29217         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29218         has more than 20 groups.
29219         * modules/getgroups-tests: New test.
29220         * tests/test-getgroups.c: New file.
29221
29222 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29223
29224         * tests/test-base64.c: Improve.
29225
29226 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29227
29228         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29229         Blake <ebb9@byu.net>.
29230
29231 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29232
29233         * tests/test-xvasprintf.c: Add %s%s related checks.
29234
29235 2009-11-12  Eric Blake  <ebb9@byu.net>
29236
29237         version-etc: match standards.texi style
29238         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29239         and use <> only for URLs.
29240
29241 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29242
29243         fts: do not fail on a submount during traversal
29244         * lib/fts.c (fts_build): Read the stat info again after opening
29245         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29246         Original report at http://bugzilla.redhat.com/501848.
29247
29248 2009-11-12  Jim Meyering  <meyering@redhat.com>
29249
29250         bootstrap: sync from coreutils
29251         * build-aux/bootstrap (bootstrap_epilogue): New function.
29252         Use git_modules_config in one more place.  This make bootstrap's
29253         --gnulib-srcdir option more useful for testing.
29254
29255         bootstrap: generalize autoheader check
29256         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29257         AC_CONFIG_HEADERS.
29258
29259 2009-11-11  Eric Blake  <ebb9@byu.net>
29260
29261         mkfifoat: use new modules for Solaris and BSD bugs
29262         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29263         * lib/mkfifoat.c (mknodat): Split...
29264         * lib/mknodat.c (mknodat): ...into new file.
29265         * modules/mkfifoat (Files): Ship new file.
29266         (Depends-on): Add mkfifo, mknod.
29267         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29268         (Depends-on): Add symlink.
29269         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29270         redundant with test_mkfifo.h.
29271         (do_mkfifoat, do_mknodat): New helpers.
29272
29273         mknod: new module
29274         * modules/mknod: New file.
29275         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29276         * lib/mknod.c (mknod): Likewise.
29277         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29278         defaults.
29279         * modules/sys_stat (Makefile.am): Substitute them.
29280         * lib/sys_stat.in.h (mknod): Declare replacement.
29281         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29282         Document it.
29283         * doc/posix-functions/mknod.texi (mknod): Likewise.
29284         * modules/mknod-tests: New test.
29285         * tests/test-mknod.c: Likewise.
29286
29287         mkfifo: new module
29288         * modules/mkfifo: New file.
29289         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29290         * lib/mkfifo.c (mkfifo): Likewise.
29291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29292         defaults.
29293         * modules/sys_stat (Makefile.am): Substitute them.
29294         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29295         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29296         Document it.
29297         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29298         * modules/mkfifo-tests: New test.
29299         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29300         from test-mkfifoat.c.
29301         * tests/test-mkfifo.c: New file.
29302
29303         readlink: detect FreeBSD bug
29304         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29305         slash on symlink.
29306         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29307         * tests/test-readlink.h (test_readlink): Enhance test.
29308
29309         symlink: detect FreeBSD bug
29310         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29311         slash on symlink.
29312         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29313         * tests/test-symlink.h (test_symlink): Enhance test.
29314
29315 2009-11-10  Eric Blake  <ebb9@byu.net>
29316
29317         link: detect FreeBSD bug
29318         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29319         symlink.
29320         * doc/posix-functions/link.texi (link): Document the bug.
29321         * tests/test-link.h (test_link): Enhance test.
29322         * tests/test-linkat.c (main): Update caller.
29323
29324         unlink, remove: detect FreeBSD bug
29325         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29326         slash on symlink.
29327         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29328         * doc/posix-functions/remove.texi (remove): Likewise.
29329         * tests/test-unlink.h (test_unlink): Enhance test.
29330         * tests/test-remove.c (main): Likewise.
29331
29332 2009-11-09  Eric Blake  <ebb9@byu.net>
29333
29334         rename: detect FreeBSD bug
29335         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29336         slash on symlink.
29337         * modules/renameat-tests (Depends-on): Add filenamecat.
29338         * tests/test-rename.h (test_rename): Allow one more errno.
29339         * tests/test-renameat.c (main): Likewise.
29340         * doc/posix-functions/rename.texi (rename): Document the bug.
29341
29342         open: detect FreeBSD bug
29343         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29344         symlink.
29345         * doc/posix-functions/open.texi (open): Document the bug.
29346         * doc/posix-functions/utimes.texi (utimes): Likewise.
29347         * tests/test-open.h (test_open): Add parameters, and test symlink
29348         handling.
29349         * tests/test-open.c (main): Adjust caller.
29350         * tests/test-fcntl-safer.c (main): Likewise.
29351         * modules/open-tests (Depends-on): Add stdbool, symlink.
29352         * modules/fcntl-safer-tests (Depends-on): Likewise.
29353         * tests/test-openat.c (main): Add test-open tests.
29354
29355         stat: detect FreeBSD bug
29356         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29357         symlink.
29358         * doc/posix-functions/stat.texi (stat): Document the bug.
29359         * tests/test-stat.h (test_stat_func): Add argument.
29360         * tests/test-stat.c (main): Adjust caller.
29361         * tests/test-fstatat.c (main): Likewise.
29362         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29363         Reported by Jim Meyering.
29364
29365 2009-11-09  James Youngman  <jay@gnu.org>
29366
29367         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29368         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29369
29370 2009-11-08  Jim Meyering  <meyering@redhat.com>
29371
29372         utimens: remove invalid futimesat call
29373         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29374         It used the file descriptor of the target file as the DIR_FD
29375         parameter and NULL as the file name.  That caused failure with
29376         errno == EFAULT on FreeBSD-8.0-rc2
29377
29378 2009-11-07  Eric Blake  <ebb9@byu.net>
29379
29380         fflush, freadseek: use fseeko, not fseek
29381         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29382         (clear_ungetc_buffer): Avoid potential problems on large files.
29383         * lib/freadseek.c (freadseek): Likewise.
29384         * modules/freadseek (Depends-on): Add fseeko.
29385         * modules/fseek (configure.ac): Set a witness.
29386         * tests/test-fflush.c (main): Use fseeko.
29387         * tests/test-fpurge.c (fseek): Disable link warning.
29388         * tests/test-freadable.c (fseek): Likewise.
29389         * tests/test-freading.c (fseek): Likewise.
29390         * tests/test-fseeko.c (fseek): Likewise.
29391         * tests/test-ftell.c (fseek): Likewise.
29392         * tests/test-ftello.c (fseek): Likewise.
29393         * tests/test-fwritable.c (fseek): Likewise.
29394         * tests/test-fwriting.c (fseek): Likewise.
29395
29396 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29397
29398         * modules/memchr (Depends-on): Drop getpagesize dependency.
29399
29400 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29401
29402         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29403         Reported by Ludovic Courtès.
29404         * build-aux/pmccabe2html: Improve example usage.
29405         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29406
29407 2009-11-06  Jim Meyering  <meyering@redhat.com>
29408
29409         do-release-commit-and-tag: New module.
29410         Automate the release-commit and tag process.
29411         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29412         * modules/do-release-commit-and-tag: New file.
29413         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29414
29415 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29416
29417         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29418         because test-select.c uses inet_pton.
29419
29420 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29421
29422         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29423         GETADDRINFO_LIB.  Bump serial number.
29424         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29425         Suggested by Eric Blake <ebb9@byu.net>.
29426
29427 2009-11-05  Eric Blake  <ebb9@byu.net>
29428
29429         strtod: detect darwin bug
29430         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29431         Reported by Leo Davis.
29432
29433         freopen-safer: new module
29434         * modules/freopen-safer: New module.
29435         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29436         * lib/freopen-safer.c (freopen_safer): New file.
29437         * lib/stdio-safer.h (freopen_safer): New declaration.
29438         * lib/stdio--.h (freopen): New override.
29439         * MODULES.html.sh (File stream based Input/Output): Mention it.
29440         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29441         freopen-safer module.
29442         * doc/posix-functions/stderr.texi (stderr): Likewise.
29443         * doc/posix-functions/stdin.texi (stdin): Likewise.
29444         * doc/posix-functions/stdout.texi (stdout): Likewise.
29445         * modules/freopen-safer-tests: New test.
29446         * tests/test-reopen-safer.c: New file.
29447
29448 2009-11-05  Jim Meyering  <meyering@redhat.com>
29449
29450         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29451         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29452
29453 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29454
29455         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29456
29457 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29458
29459         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29460
29461 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29462
29463         Fix link error.
29464         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29466
29467 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29468
29469         * tests/test-func.c: Also test value of __func__.
29470
29471 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29472
29473         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29474         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29475
29476 2009-11-05  Bruno Haible  <bruno@clisp.org>
29477
29478         Fix link error.
29479         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29480         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29481         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29482
29483 2009-11-05  Bruno Haible  <bruno@clisp.org>
29484
29485         Tests for module 'inet_pton'.
29486         * modules/inet_pton-tests: New file.
29487         * tests/test-inet_pton.c: New file.
29488
29489 2009-11-05  Bruno Haible  <bruno@clisp.org>
29490
29491         Tests for module 'inet_ntop'.
29492         * modules/inet_ntop-tests: New file.
29493         * tests/test-inet_ntop.c: New file.
29494
29495 2009-11-04  Eric Blake  <ebb9@byu.net>
29496
29497         stdlib-safer: wrap all mkstemp variants
29498         * modules/mkostemp (configure.ac): Set witness.
29499         * modules/mkostemps (configure.ac): Likewise.
29500         * modules/mkstemps (configure.ac): Likewise.
29501         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29502         (mkstemps_safer): Wrap more functions.
29503         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29504         wrapping.
29505         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29506         (mkstemps_safer): Implement the wrappers.
29507
29508         mkstemps, mkostemps: new modules
29509         * modules/mkostemps: New module.
29510         * modules/mkstemps: Likewise.
29511         * lib/mkostemps.c (mkostemps): New file.
29512         * lib/mkstemps.c (mkstemps): Likewise.
29513         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29514         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29516         * modules/stdlib (Makefile.am): Substitute them.
29517         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29518         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29519         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29520         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29521         * MODULES.html.sh (File system functions): Mention them.
29522
29523         tempname: resync from glibc
29524         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29525         same values for __GT_FILE as glibc.  Abort even when assertions
29526         are disabled.
29527         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29528         match its value otherwise.  Allow idempotent inclusion.
29529         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29530         * lib/mkostemp.c (mkostemp): Likewise.
29531         * lib/mkstemp.c (mkstemp): Likewise.
29532         * lib/tmpfile.c (tmpfile): Likewise.
29533         * NEWS: Document this.
29534
29535         utimens: fix use of futimens on older Linux
29536         * lib/utimens.c (fdutimens): Use updated, rather than original,
29537         timespec to avoid bug in older Linux kernel.
29538         Reported by Simon Josefsson.
29539
29540 2009-11-04  Bruno Haible  <bruno@clisp.org>
29541
29542         Make num_processors more flexible and consistent.
29543         * lib/nproc.h (enum nproc_query): New type.
29544         (num_processors): Add a 'query' argument.
29545         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29546         (num_processors): Add a 'query' argument. Test the value of the
29547         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29548         mingw, count the number of CPUs available for the current process.
29549         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29550         Check for sched_getaffinity and sched_getaffinity_np.
29551         * modules/nproc (Depends-on): Add c-ctype, extensions.
29552         * NEWS: Mention the change.
29553
29554 2009-11-03  Bruno Haible  <bruno@clisp.org>
29555
29556         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29557
29558 2009-11-03  Jim Meyering  <meyering@redhat.com>
29559
29560         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29561         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29562         if it is defined.
29563
29564 2009-11-02  Eric Blake  <ebb9@byu.net>
29565
29566         mktime, timegm: share common declaration
29567         * lib/mktime-internal.h: New file.
29568         * lib/mktime.c: Use it rather than open-coding a declaration.
29569         * lib/timegm.c: Likewise.
29570         * modules/mktime (Files): Ship it.
29571         * modules/timegm (Files): Likewise.
29572         Suggested by Bruno Haible.
29573
29574         test-update-copyright: update test to match script changes
29575         * tests/test-update-copyright.sh: Avoid hard-coding perl
29576         location.  Don't update *.bak created by earlier runs.
29577
29578 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29579             Simon Josefsson  <simon@josefsson.org>
29580             Bruno Haible  <bruno@clisp.org>
29581
29582         Fix link error on Solaris 8.
29583         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29584         also in libnsl. Define also INET_PTON_LIB.
29585         * modules/inet_pton (Link): New section.
29586
29587 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29588             Bruno Haible  <bruno@clisp.org>
29589
29590         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29591         * modules/inet_ntop (Link): New section.
29592         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29593
29594 2009-11-02  Eric Blake  <ebb9@byu.net>
29595
29596         maint: avoid compiler warnings in m4 macros
29597         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29599
29600 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29601
29602         * m4/pmccabe2html.m4: Remove file.
29603         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29604         function.  Change maintainer.
29605         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29606         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29607         Courtès).
29608
29609 2009-10-31  Eric Blake  <ebb9@byu.net>
29610
29611         fseeko: fix m4 regression
29612         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29613         regression from 2009-10-27.
29614         Reported by Ralf Wildenhues.
29615
29616 2009-10-31  Jim Meyering  <meyering@redhat.com>
29617
29618         inttostr: aesthetics and improved (compile-time) safety
29619         Define inttype_is_signed rather than inttype_is_unsigned,
29620         since the sole use is via "#if inttype_is_signed".
29621         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29622         inttype_is_unsigned.
29623         * lib/offtostr.c (inttype_is_signed): Likewise.
29624         * lib/uinttostr.c (inttype_is_signed): Likewise.
29625         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29626         * lib/inttostr.c (inttostr): Use verify to cross-check the
29627         inttype_is_signed value and the signedness of the actual type.
29628         * modules/inttostr (Depends-on): Add verify.
29629
29630 2009-10-30  Eric Blake  <ebb9@byu.net>
29631
29632         build: avoid compiler warnings
29633         * lib/fchmodat.c (lchmod): Mark unused variables.
29634         * lib/getopt.c (_getopt_initialize): Likewise.
29635         * lib/mktime.c (__mktime_internal): Provide prototype.
29636         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29637         older gcc that do not understand #pragma GCC diagnostic.
29638         * lib/uinttostr.c (inttype_is_unsigned): Define.
29639         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29640
29641 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29642
29643         stat: fix compilation on AIX
29644         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29645         only see struct stat64.
29646
29647 2009-10-30  Eric Blake  <ebb9@byu.net>
29648
29649         exclude: make more robust
29650         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29651         rather than masking a coding bug.
29652         Suggested by Bruno Haible.
29653
29654 2009-10-30  Jim Meyering  <meyering@redhat.com>
29655
29656         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29657         Rather than putting #!/usr/bin/perl on the first line,
29658         start with a variant of what's recommended by "man perlrun" that
29659         invokes the first "perl" program from your shell's search path.
29660         * build-aux/gitlog-to-changelog: Replace #!... as above.
29661         Add a "Local Variables" perl mode setting.
29662         Prompted by a patch from Ludovic Courtès.
29663         Improved by Eric Blake.
29664         * build-aux/useless-if-before-free: Likewise.
29665         * build-aux/announce-gen: Likewise.
29666         * build-aux/update-copyright: Likewise.
29667
29668 2009-10-29  Eric Blake  <ebb9@byu.net>
29669
29670         filenamecat-lgpl: adjust clients
29671         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29672         filenamecat.
29673         * modules/renameat (Depends-on): Likewise.
29674
29675         filenamecat: split into filenamecat-lgpl
29676         * modules/filenamecat-lgpl: New module.
29677         * modules/filenamecat (Files): Move library-safe files into
29678         filenamecat-lgpl.
29679         (Depends-on): Add filenamecat-lgpl.
29680         (configure.ac): Declare witness.
29681         * lib/filenamecat.h (file_name_concat): Only declare when using
29682         GPL module.
29683         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29684         Move...
29685         * lib/filenamecat-lgpl.c: ...into new file.
29686         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29687         (gl_FILE_NAME_CONCAT): Use it.
29688         * MODULES.html.sh (File system functions): Mention new module.
29689
29690         argp: avoid memory leak
29691         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29692         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29693         base_name, since the latter malloc()s and can call exit().
29694         Leak introduced 2006-07-03.
29695
29696         dirname-lgpl: adjust clients that don't need full dirname
29697         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29698         * modules/filenamecat (Depends-on): Likewise.
29699         * modules/linkat (Depends-on): Likewise.
29700         * modules/mkancesdirs (Depends-on): Likewise.
29701         * modules/mkdir (Depends-on): Likewise.
29702         * modules/openat (Depends-on): Likewise.
29703         * modules/savewd (Depends-on): Likewise.
29704         * modules/rename (Depends-on): Likewise.
29705         (License): Relax license.
29706         * modules/mkdir-tests (Depends-on): Drop progname.
29707         (Makefile.am): Delete unneeded LDADD.
29708         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29709
29710         dirname: split into dirname-lgpl
29711         * modules/dirname-lgpl: New module.
29712         * modules/dirname (Files): Move library-safe files into
29713         dirname-lgpl.
29714         (Depends-on): Add dirname-lgpl.
29715         (configure.ac): Declare witness.
29716         * modules/double-slash-root (License): Relax license.
29717         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29718         module.
29719         * lib/dirname.c (dir_len, mdir_name): Move...
29720         * lib/dirname-lgpl.c: ...into new file.
29721         * lib/basename.c (last_component, base_len): Move...
29722         * lib/basename-lgpl.c: ...into new file.
29723         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29724         (gl_DIRNAME): Use it.
29725         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29726         Mention new module.
29727         * modules/dirname-tests (Depends-on): Add progname.
29728         * tests/test-dirname.c (program_name): Delete.
29729
29730         mkdir: make safe for libraries
29731         * modules/mkdir (Depends-on): Drop xalloc.
29732         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29733         exit.
29734
29735         tests: avoid some compiler warnings
29736         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29737         literals.
29738         * tests/test-memchr.c (main): Avoid type mismatch.
29739         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29740         * tests/test-base64.c (main): Likewise.
29741         * tests/test-getdelim.c (main): Likewise.
29742         * tests/test-gethostname.c (main): Likewise.
29743         * tests/test-getline.c (main): Likewise.
29744         * tests/test-netinet_in.c (main): Likewise.
29745         * tests/test-select.c (open_server_socket, main): Likewise.
29746         * tests/test-select-stdin.c (main): Likewise.
29747         * tests/test-sockets.c (main): Likewise.
29748         * tests/test-strsignal.c (main): Likewise.
29749         * tests/test-sys_select.c (main): Likewise.
29750         * tests/test-sys_socket.c (main): Likewise.
29751         * tests/test-u64.c (main): Likewise.
29752         * tests/test-xfprintf-posix.c (main): Likewise.
29753         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29754
29755         sockets: avoid compiler warning
29756         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29757
29758         maint: detect usage(1) and other suspicious exits
29759         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29760
29761 2009-10-29  Jim Meyering  <meyering@redhat.com>
29762
29763         timespec: long-to-int truncation could make timespec_cmp malfunction
29764         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29765         a multiple of 2^32 nanoseconds as no difference.
29766
29767 2009-10-28  Jim Meyering  <meyering@redhat.com>
29768
29769         fprintftime: wrap macro code argument in "do {...} while(0)"
29770         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29771         cpy macro must be a statement that can be followed by a semicolon.
29772         Now that the else clause contains a comment and is hence longer
29773         than one line, I require curly braces.  That in turn requires
29774         that we wrap this code block in the standard do...while(0).
29775
29776         fprintftime: remove stray semicolon from previous change
29777         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29778
29779         fprintftime: avoid a warning about ignored fwrite return value
29780         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29781         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29782         that is unsafe.
29783         * modules/fprintftime (Depends-on): Add ignore-value.
29784
29785         exclude: avoid an unwarranted warning
29786         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29787
29788 2009-10-27  Eric Blake  <ebb9@byu.net>
29789
29790         fseek: avoid compilation failure when fflush is replaced
29791         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29792         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29793         module is in use.
29794         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29795         module is not in use; since REPLACE_FSEEK worked otherwise.
29796         (GNULIB_FTELLO): Likewise for ftell.
29797         Reported by Ian Beckwith and others.
29798
29799 2009-10-27  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29802         Reported by Jim Meyering.
29803
29804 2009-10-27  Jim Meyering  <jim@meyering.net>
29805             Bruno Haible  <bruno@clisp.org>
29806
29807         Avoid warning despite dropping the return value of fwrite.
29808         * lib/unicodeio.c: Include ignore-value.h.
29809         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29810         * modules/unicodeio (Depends-on): Add ignore-value.
29811
29812 2009-10-26  Eric Blake  <ebb9@byu.net>
29813
29814         areadlinkat: fix fallback path
29815         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29816         pointer and zero.
29817
29818 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29819
29820         Use a better IO block size for modern systems
29821         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29822         * lib/md2.c: Likewise.
29823         * lib/md4.c: Likewise.
29824         * lib/md5.c: Likewise.
29825         * lib/sha1.c: Likewise.
29826         * lib/sha256.c: Likewise.
29827         * lib/sha512.c: Likewise.
29828
29829 2009-10-22  Eric Blake  <ebb9@byu.net>
29830
29831         tests: avoid several compiler warnings
29832         * tests/test-getcwd.c (main): Avoid buffer underflow.
29833         * tests/test-getdate.c (main): String literals are not safe with
29834         putenv, so use setenv.  Declare unused argument.
29835         * modules/getdate-tests (Depends-on): Add setenv.
29836         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29837         problems with string literals in char *.
29838         * tests/test-hash.c (main): Avoid shadowing declaration.
29839         (insert_new): Treat string literals as char const *.
29840         * tests/test-getopt.h (test_getopt): Likewise.
29841         (getopt_loop): Alter types to minimize casting elsewhere.
29842         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29843         (test_getopt_long_posix): Likewise.
29844         (do_getopt_long): Add wrapper to minimize casting.
29845         * tests/test-atexit.c (clear_temp_file): Use void.
29846         * tests/test-areadlink-with-size.c (main): Declare unused
29847         arguments.
29848         * tests/test-areadlink.c (main): Likewise.
29849         * tests/test-areadlinkat-with-size.c (main): Likewise.
29850         * tests/test-areadlinkat.c (main): Likewise.
29851         * tests/test-canonicalize-lgpl.c (main): Likewise.
29852         * tests/test-canonicalize.c (main): Likewise.
29853         * tests/test-dirent-safer.c (main): Likewise.
29854         * tests/test-dirname.c (main): Likewise.
29855         * tests/test-dup2.c (main): Likewise.
29856         * tests/test-fchdir.c (main): Likewise.
29857         * tests/test-fcntl-h.c (main): Likewise.
29858         * tests/test-fcntl-safer.c (main): Likewise.
29859         * tests/test-fdopendir.c (main): Likewise.
29860         * tests/test-fdutimensat.c (main): Likewise.
29861         * tests/test-fflush.c (main): Likewise.
29862         * tests/test-filenamecat.c (main): Likewise.
29863         * tests/test-filevercmp.c (main): Likewise.
29864         * tests/test-fopen-safer.c (main): Likewise.
29865         * tests/test-fopen.c (main): Likewise.
29866         * tests/test-fpending.c (main): Likewise.
29867         * tests/test-fpurge.c (main): Likewise.
29868         * tests/test-freading.c (main): Likewise.
29869         * tests/test-fstatat.c (main): Likewise.
29870         * tests/test-fsync.c (main): Likewise.
29871         * tests/test-futimens.c (main): Likewise.
29872         * tests/test-getndelim2.c (main): Likewise.
29873         * tests/test-gettimeofday.c (main): Likewise.
29874         * tests/test-getopt.c (main): Likewise.
29875         * tests/test-i-ring.c (main): Likewise.
29876         * tests/test-inttypes.c (main): Likewise.
29877         * tests/test-link.c (main): Likewise.
29878         * tests/test-lstat.c (main): Likewise.
29879         * tests/test-math.c (main): Likewise.
29880         * tests/test-md5.c (main): Likewise.
29881         * tests/test-memchr2.c (main): Likewise.
29882         * tests/test-memrchr.c (main): Likewise.
29883         * tests/test-mkdir.c (main): Likewise.
29884         * tests/test-mkdirat.c (main): Likewise.
29885         * tests/test-mkfifoat.c (main): Likewise.
29886         * tests/test-open.c (main): Likewise.
29887         * tests/test-openat-safer.c (main): Likewise.
29888         * tests/test-openat.c (main): Likewise.
29889         * tests/test-quotearg.c (main): Likewise.
29890         * tests/test-rawmemchr.c (main): Likewise.
29891         * tests/test-readlink.c (main): Likewise.
29892         * tests/test-remove.c (main): Likewise.
29893         * tests/test-rename.c (main): Likewise.
29894         * tests/test-renameat.c (main): Likewise.
29895         * tests/test-rmdir.c (main): Likewise.
29896         * tests/test-sha1.c (main): Likewise.
29897         * tests/test-signal.c (main): Likewise.
29898         * tests/test-sigaction.c (main): Likewise.
29899         * tests/test-stat.c (main): Likewise.
29900         * tests/test-stat-time.c (main): Likewise.
29901         * tests/test-stddef.c (main): Likewise.
29902         * tests/test-stdint.c (main): Likewise.
29903         * tests/test-stdio.c (main): Likewise.
29904         * tests/test-stdlib.c (main): Likewise.
29905         * tests/test-strchrnul.c (main): Likewise.
29906         * tests/test-strerror.c (main): Likewise.
29907         * tests/test-string.c (main): Likewise.
29908         * tests/test-strtod.c (main): Likewise.
29909         * tests/test-strverscmp.c (main): Likewise.
29910         * tests/test-symlink.c (main): Likewise.
29911         * tests/test-symlinkat.c (main): Likewise.
29912         * tests/test-sys_stat.c (main): Likewise.
29913         * tests/test-sys_time.c (main): Likewise.
29914         * tests/test-time.c (main): Likewise.
29915         * tests/test-unistd.c (main): Likewise.
29916         * tests/test-unlink.c (main): Likewise.
29917         * tests/test-unlinkat.c (main): Likewise.
29918         * tests/test-utimens.c (main): Likewise.
29919         * tests/test-utimensat.c (main): Likewise.
29920         * tests/test-version-etc.c (main): Likewise.
29921         * tests/test-wchar.c (main): Likewise.
29922         * tests/test-wctype.c (main): Likewise.
29923         * tests/test-xprintf-posix.c (main): Likewise.
29924         * tests/test-posixtm.c (main): Likewise.
29925         (STREQ): Delete unused macro.
29926         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29927         shadowed variables.
29928         * tests/test-memchr.c (main): Likewise.
29929
29930 2009-10-21  Eric Blake  <ebb9@byu.net>
29931
29932         areadlinkat: avoid failure on older glibc
29933         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29934         rather than mis-comparing 0 against FUNC_RESULT of char*.
29935
29936 2009-10-21  Bruno Haible  <bruno@clisp.org>
29937
29938         * modules/stpncpy (License): Relicense under LGPLv2+.
29939         Reported by David Lutterkort <lutter@redhat.com>.
29940
29941 2009-10-20  Eric Blake  <ebb9@byu.net>
29942
29943         utimensat: work around Solaris 9 bug
29944         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29945         has trailing slash bugs.
29946         * tests/test-lutimens.h (test_lutimens): Enhance test.
29947         * tests/test-utimens.h (test_utimens): Likewise.
29948         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29949         * doc/posix-functions/utimes.texi (utimes): Likewise.
29950         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29951         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29952         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29953         * doc/posix-functions/futimens.texi (futimens): Likewise.
29954
29955         fdutimensat: new module
29956         * modules/fdutimensat: New file.
29957         * lib/fdutimensat.c (fdutimensat): Likewise.
29958         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29959         * MODULES.html.sh (File system functions): Mention module.
29960         * modules/fdutimensat-tests: New test.
29961         * tests/test-fdutimensat.c: Likewise.
29962
29963         doc: regenerate INSTALL
29964         * doc/INSTALL: Reflect recent autoconf update.
29965         * doc/INSTALL.ISO: Likewise.
29966         * doc/INSTALL.UTF-8: Likewise.
29967
29968 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29969
29970         acl: warn if ACL support is not detected
29971         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29972
29973 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29974
29975         * lib/nproc.h: Add extern "C" block for C++.
29976
29977 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29978             Bruno Haible  <bruno@clisp.org>
29979
29980         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29981         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29982         * doc/posix-functions/isalpha.texi: Likewise.
29983         * doc/posix-functions/isblank.texi: Likewise.
29984         * doc/posix-functions/iscntrl.texi: Likewise.
29985         * doc/posix-functions/isdigit.texi: Likewise.
29986         * doc/posix-functions/isgraph.texi: Likewise.
29987         * doc/posix-functions/islower.texi: Likewise.
29988         * doc/posix-functions/isprint.texi: Likewise.
29989         * doc/posix-functions/ispunct.texi: Likewise.
29990         * doc/posix-functions/isspace.texi: Likewise.
29991         * doc/posix-functions/isupper.texi: Likewise.
29992         * doc/posix-functions/isxdigit.texi: Likewise.
29993
29994 2009-10-18  Bruno Haible  <bruno@clisp.org>
29995
29996         Tests for module 'isblank'.
29997         * modules/isblank-tests: New file.
29998         * tests/test-isblank.c: New file.
29999
30000         New module 'isblank'.
30001         * lib/isblank.c: New file.
30002         * m4/isblank.m4: New file.
30003         * modules/isblank: New file.
30004         * doc/posix-functions/isblank.texi: Mention the new module.
30005
30006 2009-10-18  Bruno Haible  <bruno@clisp.org>
30007
30008         New module 'ctype'.
30009         * lib/ctype.in.h: New file.
30010         * m4/ctype.m4: New file.
30011         * modules/ctype: New file.
30012         * doc/posix-headers/ctype.texi: Mention the new module.
30013
30014 2009-10-18  Jim Meyering  <meyering@redhat.com>
30015
30016         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30017         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30018         right after its initialization, rather than farther down.
30019         Keeping these in close proximity makes it easier to ensure
30020         that each such variable is initialized.  E.g.,
30021
30022             LIB_CLOCK_GETTIME=
30023             AC_SUBST([LIB_CLOCK_GETTIME])
30024
30025         This change also increments these serial numbers.
30026         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30027         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30029
30030 2009-10-18  Bruno Haible  <bruno@clisp.org>
30031
30032         Don't let environment variables perturb build.
30033         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30034         (gl_PREREQ_GETHRXTIME): ... not here.
30035
30036 2009-10-18  Bruno Haible  <bruno@clisp.org>
30037
30038         Avoid symlink attack in localcharset module.
30039         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30040         (O_NOFOLLOW): Define fallback.
30041         (get_charset_aliases): Don't open the file if it is a symbolic link.
30042         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30043         gl_FCNTL_H.
30044         (gl_FCNTL_H): Require it.
30045         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30046         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30047         Reported by Fergal Glynn <fglynn@veracode.com>.
30048
30049 2009-10-18  Bruno Haible  <bruno@clisp.org>
30050
30051         Implement nproc for mingw.
30052         * lib/nproc.c: Include <windows.h>
30053         (num_processors): On native Windows platforms, try GetSystemInfo.
30054
30055 2009-10-18  Bruno Haible  <bruno@clisp.org>
30056
30057         Implement nproc for IRIX.
30058         * lib/nproc.c: Include <sys/sysmp.h>.
30059         (num_processors): On IRIX systems, try sysmp.
30060         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30061
30062 2009-10-18  Bruno Haible  <bruno@clisp.org>
30063
30064         Implement nproc for HP-UX.
30065         * lib/nproc.c: Include <sys/pstat.h>
30066         (num_processors): On HP-UX systems, try pstat_getdynamic.
30067         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30068         pstat_getdynamic.
30069
30070 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30071             Bruno Haible  <bruno@clisp.org>
30072
30073         Implement nproc for NetBSD, OpenBSD.
30074         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30075         (ARRAY_SIZE): New macro.
30076         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30077         * m4/nproc.m4: New file.
30078         * modules/nproc (Files): Add m4/nproc.m4.
30079         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30080         (Makefile.am): Instead, augment lib_SOURCES.
30081
30082 2009-10-18  Bruno Haible  <bruno@clisp.org>
30083
30084         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30085         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30086         sys/param.h.
30087
30088 2009-10-16  Eric Blake  <ebb9@byu.net>
30089
30090         utimensat: new module
30091         * modules/utimensat: New file.
30092         * lib/utimensat.c (utimensat): Likewise.
30093         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30094         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30095         so we can work around Linux bugs.
30096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30097         * modules/sys_stat (Makefile.am): Substitute them.
30098         * lib/sys_stat.in.h (utimensat): Declare it.
30099         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30100         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30101         * modules/utimensat-tests: New test.
30102         * tests/test-utimensat.c: Likewise.
30103
30104         utimens: let lutimens work on non-symlinks
30105         * lib/utimens.c (lutimens): Fall back to utimens rather than
30106         failing with ENOSYS, when file is not a symlink.
30107         (utimens): Reduce redirection.
30108         * tests/test-lutimens.h (test_lutimens): Update test to cover
30109         non-symlinks.
30110         * tests/test-utimens.h (test_utimens): Update test to cover
30111         symlinks.
30112         * tests/test-utimens.c (main): Update caller.
30113
30114         utimens: cache whether utimensat syscall works
30115         * lib/utimens.c (utimensat_works_really): New cache variable.
30116         (fdutimens, lutimens): Use it to avoid failing syscall.
30117
30118         test-stat-time, test-utimens: improve portability
30119         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30120         ext4 on alpha, and for cygwin.
30121         * tests/test-utimens-common.h: New file.
30122         (nap): Factor delays into single function.
30123         * tests/test-lutimens.h (test_lutimens): Use new header.
30124         * tests/test-futimens.h (test_futimens): Likewise.
30125         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30126         timestamps to occur from same machine, as was done previously for
30127         test_utimens.
30128         * modules/utimens-tests (Files): Ship new file.
30129         * modules/futimens-tests (Files): Likewise.
30130         Reported in part by Jim Meyering.
30131
30132         sys_stat: sort replacement declarations
30133         * lib/sys_stat.in.h: Sort declarations.
30134         * lib/futimens.c (futimens): Fix typo.
30135
30136 2009-10-15  Jim Meyering  <meyering@redhat.com>
30137
30138         don't let environment settings perturb build
30139         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30140         could cause a configure-time and/or build-time malfunction.
30141         Typically, a configure-time function-in-library test is performed
30142         via code like this:
30143
30144           LIB_VAR=
30145           AC_SUBST([LIB_VAR])
30146           prefix_saved_LIBS=$LIBS
30147             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30148                        [test "$ac_cv_search_FUNC" = "none required" ||
30149                         LIB_VAR=$ac_cv_search_FUNC])
30150           LIBS=$prefix_saved_LIBS
30151
30152         However, in each of the files affected by this change, the LIB_VAR=
30153         initialization was omitted.  Thus, when set in the environment, its
30154         value would propagate into generated Makefiles when FUNC is not found
30155         in LIB_NAME.
30156         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30157         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30159
30160 2009-10-14  Eric Blake  <ebb9@byu.net>
30161
30162         fchdir: avoid infinite recursion in mingw
30163         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30164         recursing.
30165
30166         test-stat-time: port to mingw
30167         * tests/test-stat-time.c (force_unlink): Return a value.
30168         (test_ctime) [W32]: Fix compilation error.
30169         (nap): Don't call usleep with too large an argument.  Use
30170         force_unlink.
30171         * doc/pastposix-functions/usleep.texi (usleep): Document the
30172         portability issue.
30173
30174 2009-10-13  Jim Meyering  <meyering@redhat.com>
30175
30176         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30177         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30178         * modules/pipe-filter-ii: Likewise.
30179         * modules/sys_socket-tests: Likewise.
30180         * modules/tsearch-tests: Likewise.
30181         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30182         (check): Depend on it.
30183
30184 2009-10-12  Eric Blake  <ebb9@byu.net>
30185
30186         utimens-tests: port to NFS file systems
30187         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30188         comparisons to avoid spurious failures from timestamp drift
30189         between NFS machines.
30190
30191 2009-10-12  Eric Blake  <ebb9@byu.net>
30192
30193         stat-time-tests: minor cleanups
30194         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30195         * tests/test-stat-time.c (nap): Separate assignment from call.
30196         Suggested by Paolo Bonzini and Bruno Haible.
30197
30198         sys_stat: guarantee struct timespec
30199         * lib/sys_stat.in.h (includes): Always include <time.h>
30200         * modules/sys_stat (Depends-on): Add time.
30201         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30202         mode_t permission values.
30203         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30204         get at subsecond timestamps.
30205
30206 2009-10-10  Eric Blake  <ebb9@byu.net>
30207
30208         futimens: new module
30209         * modules/futimens: New file.
30210         * lib/futimens.c (futimens): Likewise.
30211         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30212         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30213         we can work around Linux bugs.
30214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30215         * modules/sys_stat (Makefile.am): Substitute them.
30216         * lib/sys_stat.in.h (futimens): Declare it.
30217         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30218         * doc/posix-functions/futimens.texi (futimens): Likewise.
30219         * modules/futimens-tests: New test.
30220         * tests/test-futimens.c: Likewise.
30221
30222         utimens: introduce fdutimens
30223         * lib/utimens.h (fdutimens): New prototype.
30224         * lib/utimens.c (gl_futimens): Move guts...
30225         (fdutimens): ...to new interface.
30226         * tests/test-utimens.c (do_fdutimens): Use it.
30227
30228         utimens: add UTIME_NOW and UTIME_OMIT support
30229         * lib/utimens.c (validate_timespec, update_timespec): New helper
30230         functions.
30231         (gl_futimens, lutimens): Use them.
30232         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30233         stdbool, sys_stat.
30234         (Link): Mention resulting library dependency.
30235         * modules/utimecmp (Link): Likewise.
30236         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30237         (Makefile.am): Pick up library dependency.
30238         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30239         definition.
30240         * tests/test-sys_stat.c: Test the definitions.
30241         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30242         * NEWS: Document library dependency.
30243
30244         utimecmp: support symlink timestamps
30245         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30246         hashing when possible.  Use pathconf when available.
30247         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30248         * modules/utimecmp (Depends-on): Add lstat.
30249
30250         utimens: add lutimens interface
30251         * lib/utimens.c (lutimens): New function.
30252         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30253         * lib/utimens.h (lutimens): Declare new interface.
30254         * tests/test-utimens.c (main): Enhance test.
30255         * tests/test-lutimens.h (test_lutimens): New file.
30256         * modules/utimens-tests (Files): Distribute it.
30257         (Depends-on): Add symlink.
30258         (configure.ac): Check for usleep.
30259
30260         utimens: validate futimens usage
30261         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30262         fewer syscalls on failure later on.  Avoid compiler warning on
30263         mingw.
30264         * modules/utimens (Depends-on): Add dup2.
30265
30266         utimens: add test
30267         * modules/utimens-tests: New test.
30268         * tests/test-utimens.h: New file.
30269         * tests/test-futimens.h: Likewise.
30270         * tests/test-utimens.c: Likewise.
30271
30272         doc: mention timestamp portability issues
30273         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30274         instead.
30275         * doc/posix-functions/utime.texi (utime): Likewise.
30276         * doc/posix-functions/utimes.texi (utimes): Likewise.
30277         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30278         instead.
30279         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30280         module.
30281         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30282         Mention weakness with symlink timestamps.
30283         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30284         to utimensat/futimens instead.
30285         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30286
30287         test-dup2: enhance test
30288         * tests/test-dup2.c (main): Also check AT_FDCWD.
30289
30290         test-stat-time: avoid more spurious failures
30291         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30292         xfs; and avoid race if the two timestamps cross quantization edge.
30293
30294         relocatable: prefer 'file system' over 'filesystem'
30295         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30296         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30297         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30298         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30299         * lib/relocatable.c (compute_curr_prefix): Likewise.
30300
30301 2009-10-10  Jim Meyering  <meyering@redhat.com>
30302
30303         stat-time-tests: check for the usleep function
30304         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30305
30306 2009-10-10  Bruno Haible  <bruno@clisp.org>
30307
30308         * modules/xnanosleep: Put the Link section after the Include section.
30309
30310 2009-10-09  Eric Blake  <ebb9@byu.net>
30311
30312         dup2: work around FreeBSD 6.1 bug
30313         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30314         * doc/posix-functions/dup2.texi (dup2): Document it.
30315         Reported by Nelson H. F. Beebe and Jim Meyering.
30316
30317         test-stat-time: port to buggy NFS clients
30318         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30319         (test_ctime): Also skip test if mtime and ctime are skewed.
30320
30321         maint: prefer 'file system' over 'filesystem'
30322         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30323         * doc/posix-functions/lstat.texi (lstat): Likewise.
30324         * lib/file-has-acl.c (file_has_acl): Likewise.
30325         * lib/fwriteerror.c [TEST]: Likewise.
30326         * tests/test-areadlink.h (test_areadlink): Likewise.
30327         * tests/test-areadlinkat-with-size.c (main): Likewise.
30328         * tests/test-areadlinkat.c (main): Likewise.
30329         * tests/test-canonicalize-lgpl.c (main): Likewise.
30330         * tests/test-canonicalize.c (main): Likewise.
30331         * tests/test-fstatat.c (main): Likewise.
30332         * tests/test-linkat.c (main): Likewise.
30333         * tests/test-lstat.h (test_lstat_func): Likewise.
30334         * tests/test-mkdir.h (test_mkdir): Likewise.
30335         * tests/test-readlink.h (test_readlink): Likewise.
30336         * tests/test-remove.c (main): Likewise.
30337         * tests/test-rename.h (test_rename): Likewise.
30338         * tests/test-renameat.c (main): Likewise.
30339         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30340         * tests/test-symlink.h (test_symlink): Likewise.
30341         * tests/test-symlinkat.c (main): Likewise.
30342         * tests/test-unlink.h (test_unlink_func): Likewise.
30343         * tests/test-unlinkat.c (main): Likewise.
30344
30345         maint: make realtime library usage explicit
30346         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30347         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30348         * modules/settime (Link): Likewise.
30349         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30350
30351         test-stat-time: speed up execution
30352         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30353         warning on mingw.
30354         (nap): New helper function.
30355         (prepare_test): Use it to reduce sleep time.
30356         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30357         execution.
30358         * modules/stat-time-tests (configure.ac): Check for usleep.
30359
30360 2009-10-09  Jim Meyering  <meyering@redhat.com>
30361
30362         selinux-h: always use getfilecon wrappers
30363         * lib/getfilecon.c: New file.
30364         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30365         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30366         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30367         (fgetfilecon): Provide a stub.
30368         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30369         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30370         file unconditionally.
30371         When <selinux/selinux.h> is found, arrange to use wrappers.
30372         * modules/selinux-h (Files): Add getfilecon.c.
30373         (Makefile.am): Substitute include-next-related bits
30374         into the now-always-generated selinux/selinux.h file.
30375         * doc/glibc-functions/lgetfilecon.texi: New file.
30376         * doc/glibc-functions/fgetfilecon.texi: New file.
30377         * doc/glibc-functions/getfilecon.texi: New file.
30378         * doc/glibc-functions/getfilecon-desc.texi: New file.
30379         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30380         which to pull in the new files.
30381         * MODULES.html.sh (Misc): Add selinux-h.
30382
30383 2009-10-08  Jim Meyering  <meyering@redhat.com>
30384
30385         unistd: fix comment typo
30386         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30387
30388 2009-10-08  Eric Blake  <ebb9@byu.net>
30389
30390         areadlink: use SIZE_MAX consistently
30391         * modules/areadlink (Depends-on): Add stdint.
30392         * modules/areadlink-with-size (Depends-on): Likewise.
30393         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30394         gives NULL; drop sys/types, since unistd gives size_t; and add
30395         stdint for SIZE_MAX.
30396         (SIZE_MAX): Rely on headers.
30397         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30398         and add stdint.
30399         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30400         (SIZE_MAX): Likewise.
30401         (INITIAL_BUF_SIZE): Turn into enum.
30402         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30403
30404 2009-10-08  Jim Meyering  <meyering@redhat.com>
30405
30406         areadlinkat: avoid compilation failure
30407         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30408         Fix typo in comment.
30409
30410 2009-10-07  Eric Blake  <ebb9@byu.net>
30411
30412         areadlinkat-with-size: new module
30413         * modules/areadlinkat-with-size: New module.
30414         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30415         * lib/areadlink.h (areadlinkat): Declare it.
30416         * MODULES.html.sh (File system functions): Mention it.
30417         * modules/areadlinkat-with-size-tests: New test.
30418         * tests/test-areadlinkat-with-size.c: New file.
30419
30420         xreadlinkat: new module
30421         * modules/xreadlinkat: New module.
30422         * lib/xreadlinkat.c (xreadlinkat): New file.
30423         * lib/xreadlink.h (xreadlinkat): Declare it.
30424         * MODULES.html.sh (File system functions): Mention it.
30425
30426         areadlinkat: new module
30427         * lib/at-func.c (FUNC_FAIL): New define.
30428         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30429         * modules/areadlinkat: New module.
30430         * lib/linkat.c (areadlinkat): Move...
30431         * lib/areadlinkat.c (areadlinkat): ...to new file.
30432         * lib/areadlink.h (areadlinkat): Declare it.
30433         * modules/linkat (Depends-on): Add areadlinkat.
30434         * MODULES.html.sh (File system functions): Mention it.
30435         * modules/areadlinkat-tests: New test.
30436         * tests/test-areadlinkat.c: New file.
30437
30438         areadlink, areadlink-with-size: add tests
30439         * modules/areadlink-tests: New test.
30440         * modules/areadlink-with-size-tests: Likewise.
30441         * tests/test-areadlink.h: New file.
30442         * tests/test-areadlink.c: Likewise.
30443         * tests/test-areadlink-with-size.c: Likewise.
30444
30445         maint: minor cleanups
30446         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30447         _UNUSED_PARAMETER_ instead.
30448         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30449         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30450         * modules/linkat-tests (Files): Distribute test-link.h.
30451
30452         openat, utimens: whitespace cleanup
30453         * lib/openat.c: Prefer space throughout, rather than mix of 8
30454         spaces vs. tabs.
30455         * lib/at-func.c: Likewise.
30456         * lib/utimens.c: Likewise.
30457
30458         openat: avoid using wrong fd
30459         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30460         working directory chooses same fd.
30461         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30462
30463         mkdir, mkdirat: fix cygwin 1.5.x bug
30464         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30465         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30466         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30467         bug.
30468         (gl_PREREQ_MKDIR): Delete unused macro.
30469         * modules/mkdir (Files): Track file rename.
30470         (configure.ac): Update macro name.
30471         * modules/openat (Depends-on): Add mkdir.
30472         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30473
30474         mkdir, mkdirat: add tests
30475         * modules/mkdir-tests: New test.
30476         * tests/test-mkdir.h: New file.
30477         * tests/test-mkdir.c: Likewise.
30478         * tests/test-mkdirat.c: Likewise.
30479         * modules/openat-tests (Files): Add new files.
30480         (Makefile.am): Run new test.
30481
30482 2009-10-06  Eric Blake  <ebb9@byu.net>
30483
30484         doc: tweak *at function documentation
30485         * doc/posix-functions/faccessat.texi (faccessat): Mention
30486         known issue with replacement.
30487         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30488         * doc/posix-functions/linkat.texi (linkat): Likewise.
30489         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30490         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30491         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30492         * doc/posix-functions/renameat.texi (renameat): Likewise.
30493         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30494
30495         openat: fix GNU/Hurd bug in unlinkat
30496         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30497         broken.
30498         * doc/posix-functions/unlink.texi (unlink): Document this.
30499         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30500
30501         fdopendir: fix GNU/Hurd bug
30502         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30503         allowing non-directory fds.
30504         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30505         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30506         * modules/dirent (Makefile.am): Substitute it.
30507         * lib/dirent.in.h (fdopendir): Declare replacement.
30508         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30509         * tests/test-fdopendir.c (main): Test something other than
30510         /dev/null, since on Hurd that behaves like a directory.
30511
30512         test-symlink: port to GNU/Hurd
30513         * tests/test-symlink.h (test_symlink): Relax expected errno.
30514
30515         doc: tweak more cygwin information
30516         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30517         now compatible with glibc.
30518         * doc/posix-functions/getopt.texi (getopt): Likewise.
30519
30520         getopt-gnu: add another test
30521         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30522         guarantee behavior relied on by m4.
30523         * tests/test-getopt.c (main): Use it.
30524         * modules/getopt-posix-tests (Depends-on): Add setenv.
30525         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30526
30527         getopt: fix compilation on darwin
30528         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30529         include.
30530         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30531         Reported by Ludovic Courtès.
30532
30533 2009-10-06  Bruno Haible  <bruno@clisp.org>
30534
30535         * modules/size_max (Description): Discourage its use.
30536         Reported by Simon Josefsson.
30537
30538 2009-10-06  Jim Meyering  <meyering@redhat.com>
30539
30540         linkat: avoid compilation failure
30541         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30542
30543 2009-10-05  Eric Blake  <ebb9@byu.net>
30544
30545         linkat: support Linux 2.6.17
30546         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30547         linkat on Linux, but allow cache variable override.
30548         * lib/linkat.c (rpl_linkat): Define override.
30549         * modules/linkat (Depends-on): Add symlinkat.
30550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30551         * modules/unistd (Makefile.am): Substitute it.
30552         * lib/unistd.in.h (linkat): Declare replacement.
30553         Reported by Pádraig Brady.
30554
30555         quotearg: port test to systems with C.UTF-8 locale
30556         * tests/test-quotearg.c (struct result_strings): Add another
30557         member, differentiating between C.ASCII and C.UTF-8 handling.
30558         (compare_strings): Add parameter.
30559         (main): Adjust all callers.
30560
30561         getopt: avoid clash with FreeBSD _getopt_internal
30562         * lib/getopt.in.h (_getopt_internal): Override the name.
30563         * lib/getopt_int.h (includes): Pick up any overrides.
30564         Reported by Reuben Thomas.
30565
30566         hash: allow C89 compilation
30567         * lib/hash.c (check_tuning): Move declaration before statement.
30568         Reported by Reuben Thomas.
30569
30570 2009-10-05  Karl Berry  <karl@gnu.org>
30571
30572         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30573
30574 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30575             Bruno Haible  <bruno@clisp.org>
30576
30577         * lib/uname.c (uname): Use a table-driven algorithm to compute
30578         Windows NT versions.
30579
30580 2009-10-04  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30583         program_invocation_short_name.
30584         * modules/progname (configure.ac): Test for presence of
30585         program_invocation_short_name.
30586         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30587
30588 2009-10-04  Bruno Haible  <bruno@clisp.org>
30589
30590         * lib/progname.c (set_program_name): Fix comment.
30591         Reported by Jim Meyering.
30592
30593 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30594             Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/uname.c: Include <string.h>.
30597         (uname): Do only one call to GetVersionEx in the common case.
30598
30599 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30600             Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30603         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30604         (uname): Add support for Windows CE and various non-x86 CPU types.
30605
30606 2009-10-03  Bruno Haible  <bruno@clisp.org>
30607
30608         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30609         invocation to tests/configure.ac.
30610         Reported by Ian Beckwith <ianb@erislabs.net>.
30611
30612 2009-10-02  Eric Blake  <ebb9@byu.net>
30613
30614         fchdir: avoid compiler warning
30615         * lib/fchdir.c (canonicalize_file_name)
30616         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30617
30618         test-open: support mingw errno values
30619         * tests/test-open.h (test_open): Relax test.
30620         * tests/test-fopen.h (test_fopen): Likewise.
30621         * tests/test-openat-safer.c (main): Likewise.
30622
30623         open: fix opening directory on mingw
30624         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30625
30626         test-open: on GNU/Hurd, /dev/null is a directory
30627         * tests/test-fopen.h (main): Rename...
30628         (test_fopen): ...to this.  Use a guaranteed non-directory when
30629         confirming open behavior on trailing slash.
30630         * tests/test-openat-safer.c (main): Likewise.
30631         * tests/test-open.h (main): Likewise....
30632         (test_open): ...to this.
30633         * tests/test-fopen.c (main): Adjust caller.
30634         * tests/test-fopen-safer.c (main): Likewise.
30635         * tests/test-open.c (main): Likewise.
30636         * tests/test-fcntl-safer.c (main): Likewise.
30637         Reported by Samuel Thibault.
30638
30639         rename, fchdir: don't ignore chdir failure
30640         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30641         * lib/rename.c (rpl_rename) [W32]: Likewise.
30642         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30643         an empty destination directory if source cannot be renamed,
30644         although there is still possibility for failure.
30645         * doc/posix-functions/rename.texi (rename): Document the race.
30646         Reported by Jim Meyering.
30647
30648         maint: cleanup whitespace in recent commits
30649         * lib/rename.c (rpl_rename): Remove tabs.
30650         * tests/test-link.h (test_link): Likewise.
30651         * lib/fchdir.c (get_name): Likewise.
30652         Reported by Jim Meyering.
30653
30654 2009-10-02  Ben Pfaff  <blp@gnu.org>
30655
30656         relocatable-prog-wrapper: Add missing dependency on
30657         double-slash-root.
30658         * modules/relocatable-prog-wrapper: Add dependency.
30659         Reported by Ian Beckwith <ianb@erislabs.net>.
30660
30661 2009-10-02  Eric Blake  <ebb9@byu.net>
30662
30663         renameat: fix Solaris bugs
30664         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30665         needed fixing.
30666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30667         * modules/stdio (Makefile.am): Substitute it.
30668         * lib/stdio.in.h (renameat): Declare replacement.
30669         * lib/renameat.c (rpl_renameat): Implement fix.
30670
30671         renameat: new module
30672         * modules/renameat: New file.
30673         * lib/renameat.c (renameat): Likewise.
30674         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30676         * modules/stdio (Makefile.am): Substitute them.
30677         * lib/stdio.in.h (renameat): Declare it.
30678         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30679         * doc/posix-functions/renameat.texi (renameat): Likewise.
30680         * modules/renameat-tests: New test.
30681         * tests/test-renameat.c: Likewise.
30682
30683         rename: fix mingw bugs
30684         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30685         directory overwrite bugs.
30686
30687         rename: fix another cygwin 1.5 bug
30688         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30689         checks.
30690         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30691         unnecessary cygwin workarounds.  Also work around bug with moving
30692         full directory onto an empty one.
30693         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30694
30695         rename-dest-slash: merge into rename module
30696         * modules/rename-dest-slash (Status): Mark obsolete.
30697         (Depends-on): Add rename.
30698         (Files): Let rename do it all.
30699         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30700         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30701         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30702         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30703         * lib/rename.c (rpl_rename): Update comments.
30704
30705         rename: fix cygwin 1.5.x bugs
30706         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30707         * lib/rename.c (rpl_rename): Work around them.
30708         * modules/rename (Depends-on): Add same-inode.
30709
30710         rename: fix Solaris 10 bug
30711         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30712         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30713         was the only bug.
30714
30715         rename: fix Solaris 9 bug
30716         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30717         on non-directory.  Avoid calling exit.
30718         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30719         strdup.
30720         * modules/rename-tests (Depends-on): Drop lstat.
30721         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30722         (gl_PREREQ_RENAME): Delete unused macro.
30723
30724         rename-dest-slash: fix NetBSD bug
30725         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30726         links.
30727         * modules/rename-dest-slash (Depends-on): Add same-inode.
30728
30729         rename-tests: new test, exposes several platform bugs
30730         * modules/rename-tests: New file.
30731         * tests/test-rename.h: Likewise.
30732         * tests/test-rename.c: Likewise.
30733         * doc/posix-functions/rename.texi (rename): Improve documentation,
30734         including bugs that will eventually be fixed in gnulib.
30735
30736 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30737
30738         * lib/uname.c: Include <stdlib.h>
30739         (uname): Assume version info is available.
30740
30741 2009-10-02  Jim Meyering  <meyering@redhat.com>
30742
30743         gnu-web-doc-update: correct --help output
30744         * build-aux/gnu-web-doc-update: Make --help output relevant.
30745
30746         gnu-web-doc-update: add standard options
30747         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30748
30749         gnu-web-doc-update: New module.
30750         Use this script to automatically update the on-line web documentation
30751         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30752         * modules/gnu-web-doc-update: New file, from coreutils.
30753         * build-aux/gnu-web-doc-update: New script.
30754
30755 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30756
30757         link: LoadLibrary is not needed.
30758         * lib/link.c: Use GetModuleHandle.
30759
30760 2009-10-01  Eric Blake  <ebb9@byu.net>
30761
30762         getopt: bump serial number
30763         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30764         change.
30765
30766         tests: tighten link, rmdir, and remove tests
30767         * tests/test-link.h (includes): No need to use <config.h> here.
30768         Clean up if directory hard link was created, otherwise test for
30769         trailing '.'.
30770         * tests/test-linkat.c (main): Simplify.
30771         * tests/test-remove.c (main): Enhance test for trailing '.'.
30772         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30773
30774 2009-10-01  Jim Meyering  <meyering@redhat.com>
30775
30776         maint.mk: requiring "make major" was annoying, for a "minor" release.
30777         What is intended is "stable", to contrast with alpha and beta,
30778         so require "make stable", not "make major".
30779         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30780         (get_tool_versions): Likewise.
30781         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30782
30783 2009-09-30  Ben Pfaff  <blp@gnu.org>
30784
30785         Fix broken build of replacement for Windows tmpfile().
30786         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30787         flags argument added along with the 'mkostemp' module.
30788
30789 2009-09-28  Bruno Haible  <bruno@clisp.org>
30790
30791         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30792         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30793         to 'remove_elt'.
30794         (gl_list_remove): Update.
30795         * lib/gl_list.c (gl_list_remove): Update.
30796         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30797         to 'remove_elt'.
30798         (gl_oset_remove): Update.
30799         * lib/gl_list.c (gl_oset_remove): Update.
30800         Reported by Eric Blake.
30801
30802 2009-09-28  Eric Blake  <ebb9@byu.net>
30803
30804         doc: mention yet more cygwin 1.7 status
30805         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30806         cygwin.
30807         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30808         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30809
30810         argp: fix test failure
30811         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30812         that are not upper-case.  Pass correct range to tolower.
30813
30814 2009-09-27  Jim Meyering  <meyering@redhat.com>
30815
30816         test-yesno: work around sparc-dash here-document infelicity
30817         Without this change, the literal \177 byte in a here document
30818         would make dash 0.5.5.1-3 access uninitialized memory.
30819         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30820         Instead, use a marker, "@", and filter through tr to create the desired
30821         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30822
30823 2009-09-27  Bruno Haible  <bruno@clisp.org>
30824
30825         Disable untested support for new flavours of ACLs on AIX.
30826         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30827         progress.
30828         * lib/set-mode-acl.c (qset_acl): Likewise.
30829
30830 2008-12-07  Bruno Haible  <bruno@clisp.org>
30831
30832         Add support for new flavours of ACLs on AIX. (Untested.)
30833         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30834         (file_has_acl): Add support for newer AIX.
30835         * lib/set-mode-acl.c (qset_acl): Likewise.
30836         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30837         Rainer Tammer <tammer@tammer.net>.
30838
30839 2009-09-26  Eric Blake  <ebb9@byu.net>
30840
30841         argp: fix compilation of getopt
30842         * lib/getopt.in.h (includes): Use different guard than glibc.
30843         Reported by Sergey Poznyakoff.
30844
30845         doc: mention more cygwin 1.7 status
30846         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30847         bug.
30848         * doc/posix-functions/execl.texi (execl): Likewise.
30849         * doc/posix-functions/execle.texi (execle): Likewise.
30850         * doc/posix-functions/execlp.texi (execlp): Likewise.
30851         * doc/posix-functions/execv.texi (execv): Likewise.
30852         * doc/posix-functions/execve.texi (execve): Likewise.
30853         * doc/posix-functions/execvp.texi (execvp): Likewise.
30854         * doc/glibc-functions/canonicalize_file_name.texi
30855         (canonicalize_file_name): Cygwin 1.7 now provides this.
30856         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30857         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30858         on AT_SYMLINK_NOFOLLOW.
30859
30860 2009-09-24  Eric Blake  <ebb9@byu.net>
30861
30862         test-linkat: make test more robust
30863         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30864
30865         getopt: fix inclusion guards for cygwin
30866         * modules/getopt-posix (Depends-on): Add include-next.
30867         (Makefile.am): Substitute more items in replacement header.
30868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30869         <getopt.h>.
30870         * lib/getopt.in.h (includes): Use split inclusion guard, and
30871         prefer <getopt.h> over include <unistd.h> when one is present.
30872         (option): Also override name of 'struct option'.
30873
30874         same-inode: revert prior change; it is not yet ready
30875         * NEWS: Undo mention of this change.
30876         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30877         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30878         * lib/cycle-check.c (cycle_check): Likewise.
30879         * lib/same.c (same_name): Likewise.
30880         * lib/at-func2.c (at_func2): Likewise.
30881
30882 2009-09-23  Eric Blake  <ebb9@byu.net>
30883
30884         linkat: new module
30885         * modules/linkat: New file.
30886         * lib/at-func2.c (at_func2): Likewise.
30887         * lib/linkat.c (linkat): Likewise.
30888         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30889         * lib/openat-priv.h (at_func2): Add declaration.
30890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30891         * modules/unistd (Makefile.am): Substitute them.
30892         * lib/unistd.in.h (linkat): Declare it.
30893         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30894         * doc/posix-functions/linkat.texi (linkat): Likewise.
30895         * doc/posix-functions/link.texi (link): Tweak wording.
30896         * tests/test-link.c (main): Move guts...
30897         * tests/test-link.h (test_link): ...into new file.
30898         * modules/linkat-tests: New test.
30899         * tests/test-linkat.c: Likewise.
30900         * modules/link-tests (Files): Ship new file.
30901         (Depends-on): Add stdbool.
30902
30903         dirname: add library-safe mdir_name
30904         * lib/dirname.h (mdir_name): New prototype.
30905         * lib/dirname.c (dir_name): Move guts...
30906         (mdir_name): ...to new function that avoids xalloc_die.
30907
30908         fchdir: another mingw fix
30909         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30910         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30911         on mingw (where it has not yet been ported), and make it optional
30912         elsewhere.
30913         (_gl_register_fd): Use it.
30914
30915         same-inode: make SAME_INODE tri-state, to port to mingw
30916         * NEWS: Mention this change.
30917         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30918         st_ino always being 0.
30919         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30920         * lib/cycle-check.c (cycle_check): Likewise.
30921         * lib/same.c (same_name): Likewise.
30922
30923         lstat: avoid mingw compilation error
30924         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30925         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30926         lstat ourselves.
30927         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30928         was adequate.
30929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30930         the checks for lstat.
30931         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30932
30933         link: fix test failure on Solaris 9
30934         * lib/link.c (rpl_link): Don't assume link will catch bogus
30935         trailing slash on source.
30936
30937         test-symlinkat: enhance test
30938         * tests/test-readlink.c (main): Move guts...
30939         * tests/test-readlink.h (test_readlink): ...into new file.
30940         * tests/test-symlink.c (main): Move guts...
30941         * tests/test-symlink.h (test_symlink): ...into new file.
30942         * tests/test-symlinkat.c (main): Use new files for further
30943         coverage.
30944         (do_symlink, do_readlink): New helper functions.
30945         * modules/symlink-tests (Files): Ship new file.
30946         (Depends-on): Add stdbool.
30947         * modules/readlink-tests (Files): Ship new file.
30948         (Depends-on): Add stdbool.
30949         * modules/symlinkat-tests (Files): Use new files.
30950
30951 2009-09-23  Eric Blake  <ebb9@byu.net>
30952
30953         readlink: document portability issue with symlink length
30954         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30955         systems have bogus st_size on symlinks, and mention the
30956         areadlink-with-size module.
30957         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30958         * doc/posix-functions/readlink.texi (readlink): Mention the
30959         areadlink module, and ERANGE failure.
30960         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30961         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30962
30963         readlink: fix Solaris 9 bug with trailing slash
30964         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30965         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30966         * doc/posix-functions/readlink.texi (readlink): Document this.
30967         * modules/readlink-tests: New test.
30968         * tests/test-readlink.c: Likewise.
30969
30970         readlink: fix cygwin 1.5.x bug with return type
30971         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30972         * lib/unistd.in.h (readlink): Use ssize_t.
30973         * lib/readlink.c (readlink): Likewise.
30974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30975         * modules/unistd (Makefile.am): Substitute it.
30976         * lib/unistd.in.h (readlink): Declare replacement.
30977         * doc/posix-functions/readlink.texi (readlink): Document this.
30978
30979         symlink: use throughout gnulib
30980         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30981         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30982         symlink is not used.
30983         * modules/symlinkat (Depends-on): Add symlink.
30984         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30985         * modules/canonicalize-tests (Depends-on): Likewise.
30986         * modules/lstat-tests (Depends-on): Likewise.
30987         * modules/openat-tests (Depends-on): Likewise.
30988         * modules/remove-tests (Depends-on): Likewise.
30989         * modules/rmdir-tests (Depends-on): Likewise.
30990         * modules/unlink-tests (Depends-on): Likewise.
30991         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30992         * tests/test-canonicalize.c (symlink): Likewise.
30993         * tests/test-fstatat.c (symlink): Likewise.
30994         * tests/test-lstat.c (symlink): Likewise.
30995         * tests/test-remove.c (symlink): Likewise.
30996         * tests/test-rmdir.c (symlink): Likewise.
30997         * tests/test-unlink.c (symlink): Likewise.
30998         * tests/test-unlinkat.c (symlink): Likewise.
30999
31000         symlink: new module, for Solaris 9 bug
31001         * modules/symlink: New file.
31002         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31003         * lib/symlink.c: Likewise.
31004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31005         * modules/unistd (Makefile.am): Substitute them.
31006         * lib/unistd.in.h (symlink): Declare replacement.
31007         * MODULES.html.sh (File system functions): Mention it.
31008         * doc/posix-functions/symlink.texi (symlink): Likewise.
31009         * modules/symlink-tests: New test.
31010         * tests/test-symlink.c: Likewise.
31011
31012 2009-09-23  Bruno Haible  <bruno@clisp.org>
31013
31014         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31015         when needed.
31016         Test case: gnulib-tool --import --with-tests atexit inttypes.
31017         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31018
31019 2009-09-23  Bruno Haible  <bruno@clisp.org>
31020
31021         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31022         subcommand, not in a subshell.
31023
31024 2009-09-22  Eric Blake  <ebb9@byu.net>
31025
31026         unistd: sort replacement declarations
31027         * lib/unistd.in.h: Sort declarations.
31028
31029         open, openat: minor optimization
31030         * lib/open.c (open): If open succeeded, len is non-zero.
31031         * lib/openat.c (rpl_openat): Likewise.
31032
31033         link-follow: ensure correct result
31034         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31035         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31036         distinguish between possible failures.
31037
31038 2009-09-21  Eric Blake  <ebb9@byu.net>
31039
31040         fts: avoid compiler warning
31041         * lib/fts.c (dirent_inode_sort_may_be_useful)
31042         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31043
31044 2009-09-19  Bruno Haible  <bruno@clisp.org>
31045
31046         * lib/progreloc.c (canonicalize_file_name): New declaration.
31047
31048 2009-09-19  Eric Blake  <ebb9@byu.net>
31049
31050         link: fix quoting
31051         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31052
31053         openat: fix openat bugs on Solaris 9
31054         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31055         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31056         * modules/openat (Depends-on): Add open.
31057         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31058         * modules/fcntl-h (Makefile.am): Substitute it.
31059         * lib/fcntl.in.h (openat): Declare replacement.
31060         * doc/posix-functions/openat.texi (openat): Document this.
31061
31062         openat: move fstatat and unlinkat into correct files
31063         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31064         compiled.
31065         * lib/openat.c (fstatat, unlinkat): Move...
31066         * lib/fstatat.c (fstatat): ...into correct files.
31067         * lib/unlinkat.c (unlinkat): Likewise.
31068
31069         openat: fix unlinkat bugs on Solaris 9
31070         * lib/unlinkat.c (unlinkat): New file.
31071         * modules/openat (Depends-on): Add unlink.
31072         (Files): Distribute it.
31073         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31074         trailing slash behavior is broken.
31075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31076         * modules/unistd (Makefile.am): Substitute it.
31077         * lib/unistd.in.h (unlinkat): Declare replacement.
31078         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31079
31080         openat: fix fstatat bugs on Solaris 9
31081         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31082         stat.
31083         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31084
31085         test-unlinkat: enhance test, to expose Solaris 9 bug
31086         * tests/test-unlink.c (main): Factor guts...
31087         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31088         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31089         * tests/test-rmdir.c (main): Adjust caller.
31090         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31091         (unlinker): New helper function.
31092         (rmdirat): Enhance check.
31093         * modules/rmdir-tests (Depends-on): Add stdbool.
31094         * modules/unlink-tests (Depends-on): Likewise.
31095         (Files): Add test-unlink.h.
31096         * modules/openat-tests (Files): Likewise.
31097         (Depends-on): Add unlinkdir.
31098
31099         test-fstatat: new test, to expose Solaris 9 bugs
31100         * tests/test-stat.c (main): Factor guts...
31101         * tests/test-stat.h (test_stat_func): ...into new file.
31102         * tests/test-lstat.c (main): Factor guts...
31103         * tests/test-lstat.h (test_lstat_func): ...into new file.
31104         * tests/test-fstatat.c: New file.
31105         * modules/stat-tests (Files): Add test-stat.h.
31106         * modules/lstat-tests (Files): Add test-lstat.h.
31107         (Depends-on): Add stdbool.
31108         * modules/openat-tests (Depends-on): Add pathmax.
31109         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31110         (Makefile.am): Run new test.
31111
31112         remove: new module, for mingw and Solaris 9 bugs
31113         * modules/remove: New file.
31114         * lib/remove.c: Likewise.
31115         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31117         * modules/stdio (Makefile.am): Use them.
31118         * lib/stdio.in.h (remove): Declare replacement.
31119         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31120         * doc/posix-functions/remove.texi (remove): Likewise.
31121         * modules/remove-tests: New test.
31122         * tests/test-remove.c: Likewise.
31123
31124         unlink: new module, for Solaris 9 bug
31125         * modules/unlink: New file.
31126         * lib/unlink.c: Likewise.
31127         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31129         * modules/unistd (Makefile.am): Use them.
31130         * lib/unistd.in.h (stat): Declare replacement.
31131         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31132         * doc/posix-functions/unlink.texi (unlink): Likewise.
31133         * modules/unlink-tests: New test.
31134         * tests/test-unlink.c: Likewise.
31135
31136         lstat: fix Solaris 9 bug
31137         * lib/lstat.c (lstat): Also check for trailing slash on
31138         non-symlink, non-directories.  Use stat module to simplify logic.
31139         * doc/posix-functions/lstat.texi (lstat): Document it.
31140         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31141         (configure.ac): Check for symlink.
31142         * tests/test-lstat.c (main): Add more tests.
31143
31144         stat: add as dependency to other modules
31145         * modules/chown (Depends-on): Add stat.
31146         * modules/euidaccess (Depends-on): Likewise.
31147         * modules/fchdir (Depends-on): Likewise.
31148         * modules/isdir (Depends-on): Likewise.
31149         * modules/link (Depends-on): Likewise.
31150         * modules/lstat (Depends-on): Likewise.
31151         * modules/mkdir-p (Depends-on): Likewise.
31152         * modules/modechange (Depends-on): Likewise.
31153         * modules/open (Depends-on): Likewise.
31154         * modules/readlink (Depends-on): Likewise.
31155         * modules/same (Depends-on): Likewise.
31156
31157         stat: fix Solaris 9 bug
31158         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31159         slash.
31160         * lib/stat.c (rpl_stat): Work around it.
31161         * doc/posix-functions/stat.texi (stat): Update documentation.
31162
31163         stat: new module, for mingw bug
31164         * modules/stat: New file.
31165         * lib/stat.c: Likewise.
31166         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31168         * modules/sys_stat (Makefile.am): Use them.
31169         * lib/sys_stat.in.h (stat): Declare replacement.
31170         * lib/openat.c (fstatat): Deal with lstat and stat being function
31171         macros.
31172         * modules/openat (Depends-on): Add inline.
31173         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31174         * doc/posix-functions/stat.texi (stat): Likewise.
31175         * modules/stat-tests: New test.
31176         * tests/test-stat.c: Likewise.
31177
31178 2009-09-19  Jim Meyering  <meyering@redhat.com>
31179
31180         syntax-check: detect unnecessary inclusion of canonicalize.h
31181         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31182
31183 2009-09-19  Eric Blake  <ebb9@byu.net>
31184
31185         canonicalize-lgpl: adjust clients to use correct header
31186         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31187         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31188         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31189         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31190         * lib/progreloc.c (includes): Likewise.
31191
31192 2009-09-19  Jim Meyering  <meyering@redhat.com>
31193
31194         test-posixtm.c: correct a comment
31195         * tests/test-posixtm.c: Correct first-line comment.
31196         Spotted by Eric Blake.
31197
31198 2009-09-16  Jim Meyering  <meyering@redhat.com>
31199
31200         posixtm-tests: make T const-correct; add a test case
31201         * tests/test-posixtm.c (T): Declare const.
31202         Add a test for -(2^31+1).
31203         Remove useless can-succeed-only-in-2002 test.
31204
31205         posixtm-tests: adjust the sole failing test
31206         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31207         expected output matches what mktime now produces.  Cross-checked via
31208         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31209
31210         posixtm: move #ifdef'd tests into a new module
31211         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31212         * tests/test-posixtm.c: ... this new file.
31213         * modules/posixtm-tests: New module.
31214
31215 2009-09-19  Eric Blake  <ebb9@byu.net>
31216
31217         openat: simplify use of at-func.c
31218         * lib/at-func.c (includes): Include prerequisites here, to
31219         simplify requirements on client files.
31220         * lib/openat-priv.h: Add double-inclusion guard.
31221         * lib/faccessat.c (includes): Simplify.
31222         * lib/fchmodat.c (includes): Likewise.
31223         * lib/fchownat.c (includes): Likewise.
31224         * lib/mkdirat.c (includes): Likewise.
31225         * lib/mkfifoat.c (includes): Likewise.
31226         * lib/symlinkat.c (includes): Likewise.
31227
31228         openat: allow return of fd 0
31229         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31230         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31231         unistd-safer.
31232         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31233         <fcntl.h>; this module does not leak fds.
31234         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31235         must be allowed to return 0, leaving openat_safer to add the
31236         safety.
31237         (openat_permissive): Avoid writing to just-opened fd 2 if
31238         restoring the current directory fails.
31239         * lib/openat-die.c (openat_restore_fail): Add comment.
31240         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31241         (save_cwd): Guarantee safe fd, but without use of open_safer.
31242         * tests/test-openat.c: New test.
31243         * modules/openat-tests (Files, Makefile.am): Distribute and build
31244         new file.
31245
31246         relocatable-prog-wrapper: fix build
31247         * modules/relocatable-prog-wrapper (Files): Update name of
31248         canonicalize m4 file, broken on 2009-09-17.
31249         Reported by emad hajjar <aleppos@hotmail.com>.
31250
31251 2009-09-19  Bruno Haible  <bruno@clisp.org>
31252
31253         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31254         * lib/safe-alloc.c: Likewise.
31255         Reported by Ian Beckwith <ianb@erislabs.net>.
31256
31257 2009-09-18  Bruno Haible  <bruno@clisp.org>
31258
31259         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31260         Reported by <erobles@sensacd.com.mx>.
31261
31262 2009-09-17  Eric Blake  <ebb9@byu.net>
31263
31264         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31265         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31266         slashes when checking if last component is missing.
31267         * tests/test-canonicalize.c (main): Test this.
31268
31269         canonicalize, canonicalize-lgpl: honor // if distinct from /
31270         * modules/canonicalize (Files): Add double-slash-root.m4.
31271         * modules/canonicalize-lgpl (Files): Likewise.
31272         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31273         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31274         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31275         fallback definition.
31276         (canonicalize_filename_mode): Use it to protect //.
31277         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31278         (__realpath): Likewise.
31279         * tests/test-canonicalize.c (main): Test this.
31280         * tests/test-canonicalize-lgpl.c (main): Likewise.
31281         * modules/canonicalize-tests (Depends-on): Add same-inode.
31282         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31283
31284         canonicalize-lgpl: fix glibc bug with trailing slash
31285         * m4/canonicalize-lgpl.m4: Move contents...
31286         * m4/canonicalize.m4: ...here.
31287         (gl_CANONICALIZE_LGPL): Factor realpath check...
31288         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31289         glibc 2.3.5 bug, fixed 2005-04-27.
31290         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31291         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31292         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31293         * modules/canonicalize-lgpl (Files): Manage file rename.
31294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31295         * modules/stdlib (Makefile.am): Substitute witness.
31296         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31297         is needed.
31298         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31299         replacement is required.
31300         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31301         * doc/glibc-functions/canonicalize_file_name.texi
31302         (canonicalize_file_name): Document this.
31303         * doc/posix-functions/realpath.texi (realpath): Likewise.
31304
31305         canonicalize-lgpl: reject non-directory with trailing slash
31306         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31307         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31308         catches failures in glibc 2.3.5.
31309         * tests/test-canonicalize.c (main): Likewise.
31310
31311         canonicalize-lgpl: use native realpath if it works
31312         * lib/canonicalize-lgpl.c (realpath): Guard with
31313         FUNC_REALPATH_WORKS.
31314         * lib/stdlib.in.h (realpath): Make declaration optional based on
31315         HAVE_REALPATH.
31316         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31317         native realpath works.
31318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31319         * modules/stdlib (Makefile.am): Substitute witness.
31320
31321         canonicalize, canonicalize-lgpl: use <stdlib.h>
31322         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31323         (Include): Mention <stdlib.h>.
31324         (configure.ac): Mention functions we provide.
31325         * modules/canonicalize (configure.ac): Likewise.
31326         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31327         realpath if canonicalize_file_name is missing.
31328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31329         * modules/stdlib (Makefile.am): Substitute witnesses.
31330         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31331         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31332         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31333         * NEWS: Document this.
31334         * doc/glibc-functions/canonicalize_file_name.texi
31335         (canonicalize_file_name): Likewise.
31336         * doc/posix-functions/realpath.texi (realpath): Likewise.
31337         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31338
31339         test-canonicalize: consolidate into single C program
31340         * tests/test-canonicalize.sh: Delete; move setup into...
31341         * tests/test-canonicalize.c (main): ...the program, making it
31342         easier to run in debugger.  Add some tests.
31343         * modules/canonicalize-tests (Files): Remove unused file.
31344         (Depends-on): Add progname.
31345         (configure.ac, Makefile.am): Simplify.
31346
31347         test-canonicalize-lgpl: consolidate into single C program
31348         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31349         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31350         easier to run in debugger.  Add some tests.
31351         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31352         (configure.ac, Makefile.am): Simplify.
31353
31354         canonicalize: avoid resolvepath
31355         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31356         unnecessary checks.
31357         * lib/canonicalize.c (includes): Simplify.
31358         (canonicalize_file_name): Drop resolvepath implementation.
31359         * modules/canonicalize (Depends-on): Drop filenamecat.
31360
31361         canonicalize: don't lose errno
31362         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31363         over calls to free.
31364
31365         canonicalize: simplify errno handling
31366         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31367         assignment.
31368
31369         canonicalize, canonicalize-lgpl: update module dependencies
31370         * modules/canonicalize (Depends-on): Add extensions, lstat,
31371         pathmax, stdlib.
31372         (Files): Drop pathmax.h.
31373         (configure.ac): Adjust macro name.
31374         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31375         lstat, stdlib, sys_stat.
31376         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31377         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31378         extensions.
31379         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31380         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31381         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31382         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31383         declaration, if available.
31384         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31385         we can rely on the readlink module.
31386         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31387         (includes): Use <unistd.h> unconditionally.
31388
31389 2009-09-17  Eric Blake  <ebb9@byu.net>
31390
31391         maint: make Include sections of modules consistent
31392         * modules/alloca: Use only header name; no need to list #include.
31393         * modules/alloca-opt: Likewise.
31394         * modules/arpa_inet: Likewise.
31395         * modules/canon-host: Likewise.
31396         * modules/configmake: Likewise.
31397         * modules/dirent: Likewise.
31398         * modules/eealloc: Likewise.
31399         * modules/environ: Likewise.
31400         * modules/fchdir: Likewise.
31401         * modules/fcntl: Likewise.
31402         * modules/fcntl-h: Likewise.
31403         * modules/gethrxtime: Likewise.
31404         * modules/gettime: Likewise.
31405         * modules/ignore-value: Likewise.
31406         * modules/inet_ntop: Likewise.
31407         * modules/inet_pton: Likewise.
31408         * modules/inttypes: Likewise.
31409         * modules/isnand-nolibm: Likewise.
31410         * modules/isnanf-nolibm: Likewise.
31411         * modules/mbchar: Likewise.
31412         * modules/mbfile: Likewise.
31413         * modules/mbiter: Likewise.
31414         * modules/mbuiter: Likewise.
31415         * modules/netdb: Likewise.
31416         * modules/netinet_in: Likewise.
31417         * modules/nproc: Likewise.
31418         * modules/pagealign_alloc: Likewise.
31419         * modules/poll: Likewise.
31420         * modules/printf-frexp: Likewise.
31421         * modules/pthread: Likewise.
31422         * modules/putenv: Likewise.
31423         * modules/random_r: Likewise.
31424         * modules/relocatable-prog: Likewise.
31425         * modules/search: Likewise.
31426         * modules/select: Likewise.
31427         * modules/selinux-h: Likewise.
31428         * modules/settime: Likewise.
31429         * modules/signal: Likewise.
31430         * modules/size_max: Likewise.
31431         * modules/socklen: Likewise.
31432         * modules/ssize_t: Likewise.
31433         * modules/stdarg: Likewise.
31434         * modules/stdbool: Likewise.
31435         * modules/stddef: Likewise.
31436         * modules/stdint: Likewise.
31437         * modules/stdio: Likewise.
31438         * modules/stdlib: Likewise.
31439         * modules/string: Likewise.
31440         * modules/strings: Likewise.
31441         * modules/sys_file: Likewise.
31442         * modules/sys_ioctl: Likewise.
31443         * modules/sys_select: Likewise.
31444         * modules/sys_socket: Likewise.
31445         * modules/sys_stat: Likewise.
31446         * modules/sys_time: Likewise.
31447         * modules/sys_times: Likewise.
31448         * modules/sys_utsname: Likewise.
31449         * modules/sys_wait: Likewise.
31450         * modules/sysexits: Likewise.
31451         * modules/time: Likewise.
31452         * modules/times: Likewise.
31453         * modules/tmpfile: Likewise.
31454         * modules/trim: Likewise.
31455         * modules/unistd: Likewise.
31456         * modules/wchar: Likewise.
31457         * modules/wctype: Likewise.
31458
31459 2009-09-17  Bruno Haible  <bruno@clisp.org>
31460
31461         Make getdate.y compile on QNX and NetBSD 5 / i386.
31462         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31463         TIME_T_FITS_IN_LONG_INT.
31464         * lib/getdate.y (long_time_t): New type.
31465         (relative_time): Change type of 'seconds' field to long_time_t.
31466         (get_date): Update types of local variables. Check against overflow
31467         during conversion from long_time_t to time_t.
31468         Reported by Matt Kraai <kraai@ftbfs.org>
31469         and Hasso Tepper <hasso@netbsd.org>.
31470
31471 2009-09-17  Bruno Haible  <bruno@clisp.org>
31472
31473         * modules/COPYING: Update copyright years.
31474         * modules/README: Likeiwse.
31475         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31476         Reported by Ian Beckwith <ianb@erislabs.net>.
31477
31478 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31479
31480         * users.txt: Update references for gnuit package.
31481
31482 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31483
31484         * m4/getdelim.m4: Fix typo in copyright line.
31485
31486 2009-09-17  Bruno Haible  <bruno@clisp.org>
31487
31488         * lib/atoll.c: Use the standard header with GPL copyright.
31489         * lib/argz.in.h: Likewise.
31490         * lib/glob.c: Likewise.
31491         * lib/glob-libc.h: Likewise.
31492         * lib/random_r.c: Likewise.
31493         * lib/siglist.h: Likewise.
31494         * lib/strsignal.c: Likewise.
31495         Reported by Ian Beckwith <ianb@erislabs.net>.
31496
31497 2009-09-17  Eric Blake  <ebb9@byu.net>
31498
31499         rmdir: ensure correct dependency order
31500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31501
31502 2009-09-17  Bruno Haible  <bruno@clisp.org>
31503
31504         Disable assertion that fails on NetBSD 5 / i386.
31505         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31506         Reported by Sam Steingold <sds@gnu.org>
31507         and Hasso Tepper <hasso@netbsd.org>.
31508
31509 2009-09-16  Eric Blake  <ebb9@byu.net>
31510
31511         unlinkdir: port to mingw
31512         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31513         on which no one can unlink a directory.
31514
31515         stdlib: sort witness names
31516         * modules/stdlib (Makefile.am): Sort replacements.
31517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31518         * lib/stdlib.in.h: Likewise.
31519
31520         parse-duration-tests: avoid link failure
31521         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31522         LIBINTL.
31523         Reported by Tom G. Christensen.
31524
31525         openat-tests: ensure unlinkat behaves like rmdir
31526         * tests/test-rmdir.c (main): Factor guts...
31527         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31528         * modules/rmdir-tests (Files): Ship new file.
31529         * modules/openat-tests: New test.
31530         * tests/test-unlinkat.c: Likewise.
31531
31532         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31533         * modules/rmdir-errno (Status, Notice): Now obsolete.
31534
31535         rmdir: work around cygwin 1.5.x and mingw bugs
31536         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31537         * lib/rmdir.c (rmdir): Work around it.
31538         * modules/rmdir (Status, Notice): No longer obsolete.
31539         (Files): Add dos.m4.
31540         (Depends-on): Add unistd.
31541         (configure.ac): Set witnesses.
31542         (License): Relax to LGPLv2+.
31543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31544         * modules/unistd (Makefile.am): Substitute witnesses.
31545         * lib/unistd.in.h (rmdir): Declare replacement.
31546         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31547         * modules/rmdir-tests: New tests.
31548         * tests/test-rmdir.c: Likewise.
31549
31550 2009-09-15  Eric Blake  <ebb9@byu.net>
31551
31552         fchdir: improve use of replacement functions
31553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31555         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31556         REPLACE_CLOSEDIR.
31557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31558         * modules/sys_stat (Makefile.am): Substitute correct witness.
31559         * modules/dirent (Makefile.am): Likewise.
31560         * modules/unistd (Makefile.am): Likewise.
31561         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31562         * lib/unistd.in.h (dup): Likewise.
31563         * lib/sys_stat.in.h (fstat): Likewise.
31564
31565         maint: ignore gnulib-tool temp files
31566         * .gitignore: Ignore files created during gnulib-tool --test.
31567
31568 2009-09-13  Jim Meyering  <meyering@redhat.com>
31569
31570         posixtm: don't reject a time that specify "60" as the number of seconds
31571         * lib/posixtm.c (posixtime): The code to reject invalid dates
31572         would also reject a time specified with the .60 suffix.
31573         But POSIX allows that, in order to accommodate leap seconds.
31574         So don't reject it.
31575         (main): Adjust tests accordingly.
31576         * modules/posixtm (Depends-on): Add stpcpy.
31577
31578 2009-09-11  Jim Meyering  <meyering@redhat.com>
31579
31580         announce-gen: include [$release_type] in emitted Subject:
31581         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31582         e.g., [stable] in the emitted Subject: line.
31583
31584 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31585
31586         Remove obsolete macros from several modules.
31587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31588         obsolete Autoconf macros with their modern counterparts.
31589         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31590         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31592         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31593         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31594         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31596         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31597         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31598         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31599         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31600         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31601         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31602         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31603         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31604         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31605         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31606         * m4/time_r.m4 (gl_TIME_R): Likewise.
31607         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31608         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31609         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31610
31611         Fix copyright header in build-aux scripts.
31612         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31613         recommendation.
31614         * build-aux/ncftpput-ftp: Likewise.
31615         * build-aux/update-copyright: Likewise.
31616
31617 2009-09-09  Eric Blake  <ebb9@byu.net>
31618
31619         test-link: allow Linux choice of errno
31620         * tests/test-link.c (main): Relax test for alternate error.
31621
31622         strndup: fix improper m4 caching
31623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31624         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31625         (gl_PREREQ_STRNDUP): Delete.
31626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31627         * modules/string (Makefile.am): Substitute it.
31628         * lib/string.in.h (strndup): Modernize prototype.
31629
31630         getcwd: port to mingw
31631         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31632         different from the POSIX assumptions made throughout the getcwd
31633         module; fortunately, the mingw getcwd does not need replacement.
31634         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31635         * modules/getcwd-tests: New test.
31636         * tests/test-getcwd.c: Likewise.
31637
31638         link: fix platform bugs
31639         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31640         * lib/link.c (link): Work around them.  Fix related mingw bug.
31641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31642         * modules/unistd (Makefile.am): Substitute it.
31643         * lib/unistd.in.h (link): Declare replacement.
31644         * doc/posix-functions/link.texi (link): Document this.
31645         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31646
31647         test-link: consolidate into single C program, test more cases
31648         * tests/test-link.sh: Delete.
31649         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31650         at least Cygwin and Solaris.
31651         * modules/link-tests (Files): Remove unused file.
31652         (Depends-on): Add errno, sys_stat.
31653         (Makefile.am): Simplify.
31654
31655 2009-09-08  Bruno Haible  <bruno@clisp.org>
31656
31657         Work around towlower, towupper bug on mingw.
31658         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31659         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31660         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31661         * doc/posix-functions/towupper.texi: Likewise.
31662         Reported by Eric Blake.
31663
31664 2009-09-08  Jim Meyering  <meyering@redhat.com>
31665
31666         build: don't try to run autoheader if we don't use it
31667         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31668         is not used in configure.ac.
31669
31670 2009-09-08  Eric Blake  <ebb9@byu.net>
31671
31672         euidaccess: fix compilation error
31673         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31674
31675         rawmemchr: relax license
31676         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31677         okay.
31678         Reported by Jim Meyering.
31679
31680         mkfifoat: new module
31681         * modules/mkfifoat: New file.
31682         * lib/mkfifoat.c: Likewise.
31683         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31684         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31685         * modules/sys_stat (Makefile.am): Use them.
31686         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31687         * MODULES.html.sh (File system functions): Mention module.
31688         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31689         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31690         * modules/mkfifoat-tests: New test.
31691         * tests/test-mkfifoat.c: Likewise.
31692
31693         strchrnul: relax license
31694         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31695         okay.
31696         Reported by Jim Meyering.
31697
31698 2009-09-08  Eric Blake  <ebb9@byu.net>
31699
31700         fstatat: fix compilation on Solaris
31701         * lib/fstatat.c (includes): Add fcntl.h.
31702         Reported by Pádraig Brady.
31703
31704 2009-09-07  Eric Blake  <ebb9@byu.net>
31705
31706         rename: modernize replacement
31707         * modules/rename (Depends-on): Add stdio.
31708         (configure.ac): Declare witness.
31709         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31710         stdio take care of replacement.
31711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31712         * modules/stdio (Makefile.am): Substitute them.
31713         * lib/stdio.in.h (rename): Declare replacement.
31714         * lib/rename.c (includes): Allow cross-compilation to non-windows
31715         machines.
31716         * doc/posix-functions/rename.texi (rename): Improve
31717         documentation.
31718
31719         stdio: sort witness names
31720         * modules/stdio (Makefile.am): Sort replacements.
31721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31722         * lib/stdio.in.h: Likewise.
31723
31724         getcwd: minor cleanups
31725         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31726         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31727
31728         openat: provide more convenience names
31729         * modules/faccessat (configure.ac): Add C witness.
31730         * lib/unistd.in.h (readlinkat): Fix typo.
31731         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31732         convenience wrappers.
31733         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31734         wrappers in syntax checks.
31735
31736 2009-09-06  Eric Blake  <ebb9@byu.net>
31737
31738         doc: fix comments in recent patches
31739         * lib/faccessat.c: Mention correct function.
31740         * lib/fchmodat.c: Likewise.
31741         * lib/fchownat.c: Likewise.
31742         * lib/symlinkat.c: Likewise.
31743         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31744         constants.
31745
31746         faccessat, symlinkat: continue cleanup of previous patch
31747         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31748         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31749         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31751         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31752         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31753         set.
31754
31755 2009-09-06  Bruno Haible  <bruno@clisp.org>
31756
31757         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31758         (fstatat): Declare if GNULIB_FSTATAT is set.
31759         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31760         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31761         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31762         * modules/fcntl-h (Files): Remove m4/openat.m4.
31763         * modules/sys_stat (Files): Remove m4/openat.m4.
31764         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31765         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31766         * modules/unistd (Files): Remove m4/openat.m4.
31767         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31768         GNULIB_OPENAT.
31769         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31770         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31772         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31773         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31774         gl_OPENAT_DEFAULTS.
31775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31776         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31777         Don't require gl_OPENAT_DEFAULTS.
31778         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31779         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31780         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31781         (gl_OPENAT_DEFAULTS): Remove macro.
31782
31783 2009-09-06  Bruno Haible  <bruno@clisp.org>
31784
31785         * modules/openat (configure.ac): Remove unneeded witness.
31786
31787 2009-09-06  Bruno Haible  <bruno@clisp.org>
31788
31789         Set errno to ENOSYS when a function is entirely unsupported.
31790         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31791         EOPNOTSUPP.
31792         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31793         * modules/chown (Depends-on): Remove errno.
31794
31795 2009-09-06  Bruno Haible  <bruno@clisp.org>
31796
31797         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31798
31799 2009-09-06  Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31802
31803 2009-09-06  Ben Pfaff  <blp@gnu.org>
31804             Bruno Haible  <bruno@clisp.org>
31805
31806         Work around a glibc bug in strtok_r.
31807         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31808         Undefine if UNDEFINE_STRTOK_R is set.
31809         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31811         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31812         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31813         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31814         UNDEFINE_STRTOK_R.
31815         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31816
31817 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31818
31819         exclude: minor fix
31820         * lib/exclude.c: Include wctype.h
31821
31822 2009-09-06  Akim Demaille  <demaille@gostai.com>
31823
31824         bootstrap: improve error message
31825         * build-aux/bootstrap (find_tool): Upon failure, report the list
31826         of candidates.
31827         Honor the initial value of the envvar.
31828
31829 2009-09-05  Eric Blake  <ebb9@byu.net>
31830
31831         symlinkat: new module
31832         * modules/symlinkat: New file.
31833         * lib/symlinkat.c: Likewise.
31834         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31836         * modules/unistd (Makefile.am): Use them.
31837         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31838         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31839         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31840         * MODULES.html.sh (File system functions): Mention module.
31841         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31842         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31843         * modules/symlinkat-tests: New test.
31844         * tests/test-symlinkat.c: Likewise.
31845
31846         test-openat-safer: add more checks
31847         * tests/test-openat-safer.c (main): Check more code paths.
31848
31849 2009-09-05  Jim Meyering  <meyering@redhat.com>
31850
31851         syntax-check: detect unnecessary inclusion of openat.h
31852         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31853
31854 2009-09-05  Bruno Haible  <bruno@clisp.org>
31855
31856         Support towlower, towupper.
31857         * doc/posix-functions/towlower.texi: Mention module wctype.
31858         * doc/posix-functions/towupper.texi: Likewise.
31859         * lib/wctype.in.h (towlower, towupper): New functions.
31860         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31861         (ASSERT): New macro.
31862         (e): New variable.
31863         (main): Test also towlower, towupper. Test WEOF argument.
31864         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31865
31866 2009-09-05  Bruno Haible  <bruno@clisp.org>
31867
31868         Fix conversion behaviour when the input is invalid.
31869         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31870         mark occurring in first pass of indirect conversion.
31871         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31872         input.
31873         Found by clang's static analyzer.
31874
31875 2009-09-05  Bruno Haible  <bruno@clisp.org>
31876
31877         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31878         where direct conversion is possible.
31879
31880 2009-09-04  Eric Blake  <ebb9@byu.net>
31881
31882         openat: fail with ENOENT on empty name
31883         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31884         buffer.
31885
31886         link-follow: fix logic bug in prior patch
31887         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31888         reversed sense of yes and no in prior patch.  Avoid confusing
31889         compilation failure with desired semantics.
31890
31891         link-follow: accomodate mingw and cross-compilation
31892         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31893         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31894         cross-compilation results to -1, to make linkat easier to
31895         implement when cross-compiling.  Trivially support mingw.
31896         * modules/link-follow (configure.ac): Call new name.
31897         * NEWS: Mention this.
31898
31899 2009-09-03  Eric Blake  <ebb9@byu.net>
31900
31901         faccessat: compile replacement
31902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31903         needed.
31904
31905         fts: fix compilation error
31906         * lib/fts.c (includes): Re-add "openat.h", for
31907         openat_needs_fchdir.
31908
31909         faccessat: new module
31910         * modules/faccessat: New file.
31911         * lib/faccessat.c: Likewise.
31912         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31914         * modules/unistd (Makefile.am): Use it.
31915         * lib/unistd.in.h (faccessat): Declare it.
31916         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31917         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31918         * MODULES.html.sh (File system functions): Mention it.
31919         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31920         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31921
31922         euidaccess: prefer POSIX over non-standard implementation
31923         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31924         * lib/euidaccess.c (euidaccess): Use it if available.
31925
31926         openat: make template easier to use
31927         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31928         AT_FUNC_F2 to be undefined.
31929         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31930         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31931         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31932         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31933         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31934         Likewise.
31935         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31936         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31937         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31938         Likewise.
31939
31940         openat: declare in POSIX headers
31941         * NEWS: Mention this.
31942         * modules/openat (configure.ac): Declare witnesses.
31943         (Depends-on): Add fcntl-h, sys_stat, unistd.
31944         (Include): Mention correct headers.
31945         * modules/fcntl-h (Depends-on): Add link-warning.
31946         (Files): Add openat.m4.
31947         (Makefile.am): Substitute witnesses.
31948         * modules/sys_stat (Files, Makefile.am): Likewise.
31949         * modules/unistd (Files, Makefile.am): Likewise.
31950         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31951         (gl_OPENAT_DEFAULTS): New macro.
31952         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31955         (SYS_STAT_H): Remove unused variable.
31956         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31957         * lib/fcntl--.h (includes): Remove unneeded header.
31958         * lib/openat-safer.c (includes): Likewise.
31959         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31960         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31961         appropriate headers.
31962         (__OPENAT_PREFIX): Delete.
31963         * lib/fcntl.in.h (openat): Provide declaration.
31964         (AT_FDCWD): Fix Solaris bug.
31965         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31966         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31967         * lib/fchmodat.c (includes):  Adjust to find declaration.
31968         * lib/fchownat.c (includes): Likewise.
31969         * lib/mkdirat.c (includes): Likewise.
31970         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31971         still visible.
31972
31973 2009-09-02  Eric Blake  <ebb9@byu.net>
31974
31975         errno: use consistently
31976         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31977         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31978         * lib/canonicalize.c (ELOOP): Likewise.
31979         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31980         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31981         * lib/lchown.c (EOPNOTSUPP): Likewise.
31982         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31983         * lib/savewd.c (ESTALE): Likewise.
31984         * lib/settime.c (ENOSYS): Likewise.
31985         * lib/utimens.c (ENOSYS): Likewise.
31986         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31987         * lib/chdir-safer.c (ELOOP): Likewise.
31988         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31989         * modules/c-stack (Depends-on): Add errno.
31990         * modules/canonicalize (Depends-on): Likewise.
31991         * modules/chdir-safer (Depends-on): Likewise.
31992         * modules/fdopendir (Depends-on): Likewise.
31993         * modules/inet_ntop (Depends-on): Likewise.
31994         * modules/inet_pton (Depends-on): Likewise.
31995         * modules/lchown (Depends-on): Likewise.
31996         * modules/openat (Depends-on): Likewise.
31997         * modules/savewd (Depends-on): Likewise.
31998         * modules/settime (Depends-on): Likewise.
31999         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32000
32001         fts: avoid leaking fds
32002         * modules/fts (Depends-on): Add cloexec.
32003         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32004         flag.
32005
32006         fts: make directory fds more robust
32007         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32008         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32009
32010         backupfile, chdir-long, fts, savedir: make safer
32011         * lib/backupfile.c (includes): Use "dirent--.h", since
32012         numbered_backup can write to stderr during readdir.
32013         * lib/savedir.c (includes): Likewise.
32014         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32015         emulation can write to stderr on failure.
32016         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32017         * lib/getcwd.c: Document why opendir_safer is unused.
32018         * lib/glob.c: Likewise.
32019         * lib/scandir.c: Likewise.
32020         * lib/openat-proc.c: Likewise, for open_safer.
32021         * modules/backupfile (Depends-on): Add dirent-safer.
32022         * modules/savedir (Depends-on): Likewise.
32023         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32024         * modules/chdir-long (Depends-on): Add openat-safer.
32025
32026         openat-safer: new module
32027         * modules/openat-safer: New file.
32028         * lib/openat-safer.c: Likewise.
32029         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32030         * lib/fcntl-safer.h (openat_safer): Declare.
32031         * lib/fcntl--.h (openat): Override.
32032         * MODULES.html.sh (File descriptor based I/O): Mention it.
32033         * lib/openat.h: Add double-inclusion guards.
32034         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32035         "fcntl--.h", so we can implement openat.
32036         * modules/openat-safer-tests: New test.
32037         * tests/test-openat-safer.c: New file.
32038
32039         dirent-safer: new module
32040         * modules/dirent-safer: New file.
32041         * lib/dirent--.h: Likewise.
32042         * lib/dirent-safer.h: Likewise.
32043         * lib/opendir-safer.c: Likewise.
32044         * m4/dirent-safer.m4: Likewise.
32045         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32046         * modules/dirent-safer-tests: New test.
32047         * tests/test-dirent-safer.c: New file.
32048         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32049
32050         fdopendir: optimize on mingw
32051         * lib/unistd.in.h (_gl_directory_name): New prototype.
32052         * lib/fchdir.c (_gl_directory_name): Implement it.
32053         (fchdir): Use it to simplify implementation.
32054         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32055         fchdir, when available, to avoid calling [f]chdir().
32056
32057         fdopendir: split into its own module
32058         * lib/openat.c (fdopendir): Move...
32059         * lib/fdopendir.c: ...into new file.
32060         * modules/fdopendir: New module.
32061         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32062         * modules/openat (Depends-on): Add fdopendir.
32063         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32064         fdopendir here.
32065         * modules/savedir (Depends-on): Only need fdopendir, not full
32066         openat.
32067         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32068         * lib/openat.h (fdopendir): Drop prototype.
32069         * lib/dirent.in.h (fdopendir): Provide prototype.
32070         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32071         * modules/dirent (Makefile.am): Substitute them.
32072         * MODULES.html.sh (File system functions): Mention it.
32073         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32074         * modules/fdopendir-tests: New file.
32075         * tests/test-fdopendir.c: Likewise.
32076
32077         fchdir: use more consistent macro convention
32078         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32079         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32080         REPLACE_FCHDIR, rather than relying on config.h macros.
32081         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32082         inside a single make-time REPLACE_FCHDIR block, rather than using
32083         the config.h FCHDIR_REPLACEMENT.
32084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32085         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32086         Manage fstat replacement.
32087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32088         REPLACE_FCHDIR.
32089         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32090         (Makefile.am): Substitute REPLACE_FCHDIR.
32091         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32092         FCHDIR_REPLACEMENT.
32093         * lib/dup-safer.c (dup_safer): Likewise.
32094         * lib/dup2.c (rpl_dup2): Likewise.
32095         * lib/dup3.c (rpl_dup3): Likewise.
32096         * lib/open.c (rpl_open): Likewise.
32097
32098         fchdir: simplify error handling, and support dup3
32099         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32100         stdbool, malloc-posix, realloc-posix.
32101         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32102         (ensure_dirs_slot): Return false on allocation failure.
32103         (rpl_dup2): Delete.
32104         (_gl_register_dup): New function.
32105         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32106         (_gl_register_fd): Close fd on allocation failure.
32107         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32108         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32109         prototype.
32110         (rpl_dup2_fchdir): Delete prototype.
32111         * lib/open.c (open): Update caller.
32112         * lib/dup2.c (dup2): Track fchdir metadata.
32113         * lib/dup3.c (dup3): Likewise.
32114         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32116
32117 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32118
32119         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32120         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32121         don't pass arguments to AC_OUTPUT.
32122
32123 2009-09-02  Bruno Haible  <bruno@clisp.org>
32124
32125         * modules/mkdtemp (License): Relicense under LGPLv2+.
32126         Reported by Paolo Bonzini.
32127
32128 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32129
32130         Replace uses of obsolete autoconf macros in Jim's modules.
32131         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32132         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32133         can evoke a warning from autoconf when run with -Wobsolete
32134         enabled.  They were declared obsolete for good reasons (see
32135         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32136         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32137         should not continue using the deprecated macros.
32138         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32139         obsolete Autoconf macros with modern counterparts.
32140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32141         * m4/dos.m4 (gl_AC_DOS): Likewise.
32142         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32143         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32144         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32145         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32146         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32148         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32149         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32150         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32151         Likewise.
32152         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32153         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32154         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32155         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32156         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32157         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32158
32159 2009-09-01  Eric Blake  <ebb9@byu.net>
32160
32161         fchdir: fix off-by-one bug in previous patch
32162         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32163         (_gl_unregister_fd): Delete useless if.
32164
32165 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32166
32167         maint.mk: sort the list of syntax-check rules
32168         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32169         easier to get a sense of progress when the rules are run sequentially
32170         and take a long time.
32171
32172 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32173
32174         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32175         * modules/netinet_in: Likewise.
32176         * modules/sys_file: Likewise.
32177         * modules/sys_ioctl: Likewise.
32178         * modules/sys_select: Likewise.
32179         * modules/sys_socket: Likewise.
32180         * modules/sys_stat: Likewise.
32181         * modules/sys_time: Likewise.
32182         * modules/sys_times: Likewise.
32183         * modules/sys_utsname: Likewise.
32184         * modules/sys_wait: Likewise.
32185
32186 2009-09-01  Jim Meyering  <meyering@redhat.com>
32187
32188         fts: help ensure that return values are not ignored
32189         * lib/fts_.h (__GNUC_PREREQ): Define.
32190         (__attribute_warn_unused_result__): Define.
32191         (fts_children, fts_close, fts_open, fts_read): Declare with
32192         __attribute_warn_unused_result__.
32193
32194         fts: fts_close now fails also when closing a dir file descriptor fails
32195         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32196         and propagate to caller, along with errno.
32197
32198         announce-gen: correct formatting in --help output
32199         * build-aux/announce-gen (usage): Move the one-line description in
32200         --help output "up", to where it belongs, just after Usage:.
32201
32202 2009-08-31  Eric Blake  <ebb9@byu.net>
32203
32204         fchdir: port to mingw
32205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32206         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32207         opened, then use a substitute.
32208         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32209         replacement.
32210         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32211         (_gl_register_fd): No need to check stat if open already filters
32212         all directories.
32213         (fchdir): Fix error condition to match POSIX.
32214         * modules/fchdir (Depends-on): Add sys_stat.
32215         * doc/posix-functions/open.texi (open): Document the limitation.
32216         * modules/fchdir-tests: New file.
32217         * tests/test-fchdir.c: Likewise.
32218
32219         canonicalize: allow cross-testing from cygwin to mingw
32220         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32221         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32222         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32223         Likewise.
32224         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32225         target does not support symlinks.
32226         * tests/test-canonicalize-lgpl.sh: Likewise.
32227
32228         chown: avoid compilation warning on mingw
32229         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32230         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32231         mingw.
32232         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32233         * modules/chown (Depends-on): Add errno.
32234
32235 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32236
32237         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32238         command.
32239
32240 2009-08-31  Jim Meyering  <meyering@redhat.com>
32241
32242         canonicalize: remove useless initialization
32243         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32244         initialization of local, "end".
32245
32246 2009-08-30  Bruno Haible  <bruno@clisp.org>
32247
32248         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32249         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32250         ENOSYS.
32251
32252 2009-08-30  Bruno Haible  <bruno@clisp.org>
32253
32254         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32255         /usr/xpg4/bin/tr when it exists.
32256         * tests/test-pipe-filter-gi1.sh: Likewise.
32257
32258 2009-08-30  Bruno Haible  <bruno@clisp.org>
32259
32260         Work around deficient /usr/bin/id program on Solaris.
32261         * tests/test-file-has-acl.sh (ID): New variable.
32262         * tests/test-set-mode-acl.sh (ID): Likewise.
32263         * tests/test-copy-acl.sh (ID): Likewise.
32264         * tests/test-copy-file.sh (ID): Likewise.
32265
32266 2009-08-30  Bruno Haible  <bruno@clisp.org>
32267
32268         New module 'xstriconveh'.
32269         * lib/xstriconveh.h: New file.
32270         * lib/xstriconveh.c: New file.
32271         * modules/xstriconveh: New file.
32272
32273 2009-08-30  Bruno Haible  <bruno@clisp.org>
32274
32275         Make it easier to use mem_cd_iconveh.
32276         * lib/striconveh.h (iconveh_t): New type.
32277         (iconveh_open, iconveh_close): New declarations.
32278         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32279         with a single 'const iconveh_t *' argument.
32280         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32281         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32282         with a single 'const iconveh_t *' argument.
32283         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32284         * tests/test-striconveh.c (main): Update.
32285         * NEWS: Mention the change.
32286
32287 2009-08-30  Bruno Haible  <bruno@clisp.org>
32288
32289         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32290         problem.
32291
32292 2009-08-30  Bruno Haible  <bruno@clisp.org>
32293
32294         Work around iconv_open problem on Solaris.
32295         * lib/iconv_open-solaris.gperf: New file.
32296         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32297         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32298         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32299         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32300         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32301         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32302
32303 2009-08-29  Jim Meyering  <meyering@redhat.com>
32304
32305         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32306         * top/maint.mk (cvs-check): Remove target; it was just an alias
32307         to the better-named vc-diff-check.
32308         (maintainer-distcheck): Remove rule.  It was used only from
32309         the (alpha/beta/major) target, and all of its commands but one
32310         were coreutils-specific.
32311         (vc-dist): Remove rule.
32312         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32313         Run vc-diff-check, not vc-dist.
32314         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32315
32316 2009-08-27  Bruno Haible  <bruno@clisp.org>
32317
32318         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32319         of 0.
32320
32321 2009-08-27  Bruno Haible  <bruno@clisp.org>
32322
32323         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32324         compilers.
32325         * doc/func.texi: Document the SunPRO C bug.
32326
32327 2009-08-27  Bruno Haible  <bruno@clisp.org>
32328
32329         Fix link error on Solaris.
32330         * tests/test-parse-duration.c (xstrdup): Remove function.
32331
32332 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32333
32334         ignore-value: handle pointer types, too
32335         * lib/ignore-value.h (__attribute__): Remove definition.
32336         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32337         of a more concise and more-often effective "(void) i" statement.
32338         (ignore_ptr): New function to suppress warnings from functions that
32339         return pointers, and to make it explicit that one function doesn't
32340         handle all cases.
32341
32342 2009-08-25  Bruno Haible  <bruno@clisp.org>
32343
32344         dup2: work around a Linux bug.
32345         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32346         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32347         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32348         Reported by Simon Josefsson.
32349
32350 2009-08-25  Jim Meyering  <meyering@redhat.com>
32351
32352         libguestfs uses gnulib
32353         * users.txt: Add libguestfs.
32354
32355 2009-08-24  Eric Blake  <ebb9@byu.net>
32356
32357         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32358         * lib/pipe2.c (includes): Add binary-io.h.
32359         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32360
32361 2009-08-24  Bruno Haible  <bruno@clisp.org>
32362
32363         Tolerate declared but missing accept4 syscall.
32364         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32365         available.
32366         * lib/sys_socket.in.h (accept4): If the function is already present,
32367         override it.
32368         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32369         * modules/accept4 (Makefile.am): Compile accept4.c always.
32370         Reported by Paolo Bonzini and Eric Blake.
32371
32372 2009-08-23  Bruno Haible  <bruno@clisp.org>
32373
32374         New module 'accept4'.
32375         * lib/sys_socket.in.h (accept4): New declaration.
32376         * lib/accept4.c: New file.
32377         * m4/accept4.m4: New file.
32378         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32379         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32380         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32381         HAVE_ACCEPT4.
32382         * modules/accept4: New file.
32383         * doc/glibc-functions/accept4.texi: Mention the new module.
32384
32385 2009-08-24  Jim Meyering  <meyering@redhat.com>
32386
32387         progname: also set global program_invocation_name, when possible
32388         Before this change, a libtool-enabled program that calls glibc's
32389         error function would report the program name as
32390         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32391         * modules/progname (configure.ac): Check for a declaration of
32392         program_invocation_name.
32393         * lib/progname.c:  Include <errno.h>.
32394         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32395         Set program_invocation_name.
32396
32397 2009-08-23  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/dup3.c: Include <string.h>.
32400
32401 2009-08-23  Bruno Haible  <bruno@clisp.org>
32402
32403         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32404         * lib/pipe2.c (pipe2): Likewise.
32405         Suggested by Eric Blake.
32406
32407 2009-08-23  Bruno Haible  <bruno@clisp.org>
32408
32409         Tolerate declared but missing dup3 syscall.
32410         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32411         * lib/unistd.in.h (dup3): If the function is already present,
32412         override it.
32413         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32414         * modules/dup3 (Makefile.am): Compile dup3.c always.
32415         Reported by Paolo Bonzini.
32416
32417 2009-08-23  Bruno Haible  <bruno@clisp.org>
32418
32419         Tolerate declared but missing pipe2 syscall.
32420         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32421         available.
32422         * lib/unistd.in.h (pipe2): If the function is already present,
32423         override it.
32424         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32425         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32426         Reported by Paolo Bonzini.
32427
32428 2009-08-23  Bruno Haible  <bruno@clisp.org>
32429
32430         * lib/pipe2.c (pipe2): Move #ifs inside function.
32431
32432 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32433
32434         quotearg: document limitations of quote_these_too
32435         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32436         those limitations are created.
32437         * lib/quotearg.h (set_char_quoting): Document that digits and
32438         letters that are special after backslash are not permitted.
32439         (quotearg_char): Cross-reference set_char_quoting documentation.
32440
32441 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32442
32443         quotearg: implement custom_quoting_style
32444         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32445         right_quote fields.
32446         (set_custom_quoting): New public function.
32447         (quotearg_buffer_restyled): Add left_quote and right_quote
32448         arguments, handle them very much like locale quoting, and update
32449         all uses.
32450         (quotearg_n_custom): New public function.
32451         (quotearg_n_custom_mem): New public function.
32452         (quotearg_custom): New public function.
32453         (quotearg_custom_mem): New public function.
32454         * lib/quotearg.h: Prototype and document new public functions.
32455         (enum quoting_style): For escape_quoting_style and
32456         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32457         ignored even though they're otherwise like c_quoting_style.
32458         Add custom_quoting_style member and document with comparison to
32459         clocale_quoting_style.
32460         * tests/test-quotearg.c (custom_quotes): New array.
32461         (custom_results): New array.
32462         (main): Extend to test custom quoting.
32463
32464 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32465
32466         quotearg: fix right quote escaping when it's in quote_these_too
32467         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32468         quote, be sure to prepend only one backslash.
32469         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32470         (main): Test it.
32471
32472 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32473
32474         quotearg-tests: test escaping of embedded locale quotes
32475         * tests/test-quotearg.c (struct result_strings): Add member for
32476         new input.
32477         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32478         (inputs): Add new input.
32479         (results_g): Add expected results.
32480         (flag_results): Likewise.
32481         (locale_results): Likewise.
32482         (compare_strings): Check those.
32483
32484 2009-08-23  Bruno Haible  <bruno@clisp.org>
32485
32486         Tests for module 'dup3'.
32487         * modules/dup3-tests: New file.
32488         * tests/test-dup3.c: New file.
32489
32490         New module 'dup3'.
32491         * lib/unistd.in.h (dup3): New declaration.
32492         * lib/dup3.c: New file.
32493         * m4/dup3.m4: New file.
32494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32495         HAVE_DUP3.
32496         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32497         * modules/dup3: New file.
32498         * doc/glibc-functions/dup3.texi: Mention the new module.
32499
32500 2009-08-23  Bruno Haible  <bruno@clisp.org>
32501
32502         Tweak the dup2 test.
32503         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32504         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32505         the test file is still empty. Fix argument order of lseek.
32506
32507 2009-08-23  Bruno Haible  <bruno@clisp.org>
32508
32509         Avoid test link errors when the modules getopt-gnu, gettext are used.
32510         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32512
32513 2009-08-23  Bruno Haible  <bruno@clisp.org>
32514
32515         Fix getdtablesize() on mingw.
32516         * lib/getdtablesize.c (getdtablesize): Implement differently.
32517         * lib/unistd.in.h (getdtablesize): Improve comment.
32518
32519 2009-08-23  Bruno Haible  <bruno@clisp.org>
32520
32521         New module 'mkostemp'.
32522         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32523         * lib/stdlib.in.h (mksotemp): New declaration.
32524         * lib/mkostemp.c: New file, from glibc with modifications.
32525         * lib/tempname.h (GT_FILE): Remove outdated comment.
32526         (gen_tempname): Add flags argument.
32527         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32528         (__GT_FILE): Map to 1.
32529         (small_open, large_open): Remove macros.
32530         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32531         * lib/mkstemp.c (mkstemp): Update.
32532         * lib/mkdtemp.c (mkdtemp): Likewise.
32533         * m4/mkostemp.m4: New file.
32534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32535         HAVE_MKOSTEMP.
32536         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32537         HAVE_MKOSTEMP.
32538         * modules/mkostemp: New file, based on modules/mkstemp.
32539         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32540         * NEWS: Mention the change.
32541
32542 2009-08-23  Bruno Haible  <bruno@clisp.org>
32543
32544         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32545         Reported by Eric Blake.
32546
32547 2009-08-23  Bruno Haible  <bruno@clisp.org>
32548
32549         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32550         Reported by Eric Blake.
32551
32552 2009-08-23  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32555         * modules/pipe2 (Depends-on): Likewise.
32556
32557 2009-08-23  Eric Blake  <ebb9@byu.net>
32558
32559         fcntl-h: add O_TTY_INIT support
32560         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32561         * tests/test-fcntl-h.c (o): Test it.
32562         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32563
32564         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32565         * modules/fcntl: Move <fcntl.h> header replacement...
32566         * modules/fcntl-h: ...to new name, so as not to collide with
32567         like-named function.
32568         * tests/test-fcntl.c: Rename...
32569         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32570         * modules/fcntl-tests: Rename...
32571         * modules/fcntl-h-tests: ...to this.  Update test file name.
32572         * modules/chdir-long (Depends-on): Update clients.
32573         * modules/chdir-safer (Depends-on): Likewise.
32574         * modules/fcntl-safer (Depends-on): Likewise.
32575         * modules/fts (Depends-on): Likewise.
32576         * modules/mkancesdirs (Depends-on): Likewise.
32577         * modules/mkdir-p (Depends-on): Likewise.
32578         * modules/open (Depends-on): Likewise.
32579         * modules/savewd (Depends-on): Likewise.
32580         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32581         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32582
32583 2009-08-22  Bruno Haible  <bruno@clisp.org>
32584
32585         * modules/binary-io (License): Relicense under LGPL.
32586         * modules/pipe2 (License): Likewise.
32587
32588 2009-08-22  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32591         return value.
32592         * lib/pipe-filter-gi.c (filter_init): Likewise.
32593         Reported by Eric Blake.
32594
32595 2009-08-22  Bruno Haible  <bruno@clisp.org>
32596
32597         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32598         * modules/pipe (Depends-on): Add pipe2.
32599
32600 2009-08-22  Bruno Haible  <bruno@clisp.org>
32601
32602         Tests for module 'pipe2'.
32603         * modules/pipe2-tests: New file.
32604         * tests/test-pipe2.c: New file.
32605
32606         New module 'pipe2'.
32607         * lib/unistd.in.h (pipe2): New declaration.
32608         * lib/pipe2.c: New file.
32609         * m4/pipe2.m4: New file.
32610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32611         HAVE_PIPE2.
32612         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32613         * modules/pipe2: New file.
32614         * doc/glibc-functions/pipe2.texi: Mention the new module.
32615
32616 2009-08-22  Bruno Haible  <bruno@clisp.org>
32617
32618         Reference some new glibc functions.
32619         * doc/glibc-functions/accept4.texi: New file.
32620         * doc/glibc-functions/dup3.texi: New file.
32621         * doc/glibc-functions/mkostemp.texi: New file.
32622         * doc/glibc-functions/pipe2.texi: New file.
32623         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32624         (Glibc sys/socket.h): Refer to accept4.
32625         (Glibc unistd.h): Refer to dup3, pipe2.
32626         Reported by Eric Blake.
32627
32628 2009-08-22  Jim Meyering  <meyering@redhat.com>
32629             Bruno Haible  <bruno@clisp.org>
32630
32631         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32632         This makes it so packages using automake-1.11's silent-rules option
32633         can print e.g., a single "GEN    configmake.h" line, rather than
32634         the 30+ statements that perform the job.  If you want to see the
32635         actual commands, you can still run "make V=1".
32636         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32637         so that make output is abbreviated when those variables are defined
32638         appropriately.
32639         * modules/argz: Likewise.
32640         * modules/arpa_inet: Likewise.
32641         * modules/byteswap: Likewise.
32642         * modules/configmake: Likewise.
32643         * modules/dirent: Likewise.
32644         * modules/errno: Likewise.
32645         * modules/fcntl: Likewise.
32646         * modules/float: Likewise.
32647         * modules/fnmatch: Likewise.
32648         * modules/getopt-posix: Likewise.
32649         * modules/glob: Likewise.
32650         * modules/iconv_open: Likewise.
32651         * modules/inttypes: Likewise.
32652         * modules/localcharset: Likewise.
32653         * modules/locale: Likewise.
32654         * modules/math: Likewise.
32655         * modules/netdb: Likewise.
32656         * modules/netinet_in: Likewise.
32657         * modules/poll: Likewise.
32658         * modules/posix_spawnp-tests: Likewise.
32659         * modules/sched: Likewise.
32660         * modules/search: Likewise.
32661         * modules/selinux-h: Likewise.
32662         * modules/signal: Likewise.
32663         * modules/spawn: Likewise.
32664         * modules/stdarg: Likewise.
32665         * modules/stdbool: Likewise.
32666         * modules/stddef: Likewise.
32667         * modules/stdint: Likewise.
32668         * modules/stdio: Likewise.
32669         * modules/stdlib: Likewise.
32670         * modules/string: Likewise.
32671         * modules/strings: Likewise.
32672         * modules/sys_file: Likewise.
32673         * modules/sys_ioctl: Likewise.
32674         * modules/sys_select: Likewise.
32675         * modules/sys_socket: Likewise.
32676         * modules/sys_stat: Likewise.
32677         * modules/sys_time: Likewise.
32678         * modules/sys_times: Likewise.
32679         * modules/sys_utsname: Likewise.
32680         * modules/sys_wait: Likewise.
32681         * modules/sysexits: Likewise.
32682         * modules/time: Likewise.
32683         * modules/unistd: Likewise.
32684         * modules/wchar: Likewise.
32685         * modules/wctype: Likewise.
32686
32687 2009-08-22  Jim Meyering  <meyering@redhat.com>
32688
32689         announce-gen: detect write failure
32690         * build-aux/announce-gen: Add Coda at end.
32691         Remove equivalent-but-more-verbose block at top.
32692
32693 2009-08-19  Akim Demaille  <demaille@gostai.com>
32694
32695         bootstrap: --help to stdout.
32696         * bootstrap (usage): Don't send --help to stderr.
32697         Use a here doc instead of a long string.
32698
32699 2009-08-21  Eric Blake  <ebb9@byu.net>
32700
32701         test-popen-safer: split from test-popen
32702         * tests/test-popen.c (main): Move...
32703         * tests/test-popen.h: ...into new file.
32704         * tests/test-popen-safer2.c: New file.
32705         * modules/popen-tests (Files): Add test-popen.h.
32706         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32707         Suggested by Bruno Haible.
32708
32709         test-fcntl-safer: split from test-open
32710         * tests/test-open.c (main): Move...
32711         * tests/test-open.h: ...into new file.
32712         * tests/test-fcntl-safer.c: New file.
32713         * modules/open-tests (Files): Add test-open.h.
32714         * modules/fcntl-safer-tests: New file.
32715         Suggested by Bruno Haible.
32716
32717         test-fopen-safer: split from test-fopen
32718         * tests/test-fopen.c (main): Move...
32719         * tests/test-fopen.h: ...into new file.
32720         * tests/test-fopen-safer.c: New file.
32721         * modules/fopen-tests (Files): Add test-fopen.h.
32722         * modules/fopen-safer-tests: New file.
32723         Suggested by Bruno Haible.
32724
32725 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32726
32727         popen-safer: test O_CLOEXEC at run-time.
32728         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32729
32730 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32731
32732         fcntl: move more flags to the header
32733         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32734         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32735         * lib/fcntl.in.h: Do both things here.
32736
32737 2009-08-21  Jim Meyering  <meyering@redhat.com>
32738
32739         consistently remove $@-t before redirecting to it
32740         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32741         * modules/alloca-opt: Likewise.
32742         * modules/byteswap: Likewise.
32743         * modules/fnmatch: Likewise.
32744         * modules/getopt-posix: Likewise.
32745         * modules/glob: Likewise.
32746         * modules/poll: Likewise.
32747         * modules/posix_spawnp-tests: Likewise.
32748         * modules/sys_socket: Likewise.
32749         * modules/sysexits: Likewise.
32750
32751 2009-08-21  Eric Blake  <ebb9@byu.net>
32752
32753         popen: simplify access to original popen
32754         * lib/popen.c (rpl_popen): No need to worry about popen being a
32755         macro.
32756         Reported by Bruno Haible.
32757
32758 2009-08-20  Eric Blake  <ebb9@byu.net>
32759
32760         build: avoid some compiler warnings
32761         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32762         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32763         type.
32764         (new_exclude_segment, excluded_file_pattern_p)
32765         (excluded_file_name_p): Reduce scope.
32766         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32767         old-style declaration.
32768
32769 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32770
32771         * tests/test-exclude1.sh: Handle Windows EOL.
32772         * tests/test-exclude2.sh: Likewise.
32773         * tests/test-exclude3.sh: Likewise.
32774         * tests/test-exclude4.sh: Likewise.
32775         * tests/test-exclude5.sh: Likewise.
32776         * tests/test-exclude6.sh: Likewise.
32777         * tests/test-exclude7.sh: Likewise.
32778
32779 2009-08-19  Akim Demaille  <demaille@gostai.com>
32780
32781         bootstrap: find sha1sum when named gsha1sum.
32782         * bootstrap (find_tool): New.
32783         ($SHA1SUM): New.
32784         Use it.
32785
32786 2009-08-20  Jim Meyering  <meyering@redhat.com>
32787
32788         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32789         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32790         expression that converts "." in a file name to "\." in the resulting
32791         regexp.  Start with a dummy statement, so that prior shell variable
32792         definitions are expanded portably.  Reported by Simon Josefsson.
32793
32794 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32795
32796         Fix polling for writeability of a screen buffer.
32797         * lib/poll.c: Distinguish input and screen buffers for the
32798         Win32 implementation.
32799         * lib/select.c: Likewise.
32800
32801 2009-08-19  Eric Blake  <ebb9@byu.net>
32802
32803         popen-safer: prevent popen from clobbering std descriptors
32804         * modules/popen-safer: New file.
32805         * lib/popen-safer.c: Likewise.
32806         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32807         * lib/stdio--.h (popen): Provide override.
32808         * lib/stdio-safer.h (popen_safer): Provide declaration.
32809         * tests/test-popen.c (includes): Partially test this.
32810         * modules/popen-safer-tests: New file, for more tests.
32811         * tests/test-popen-safer.c: Likewise.
32812         * MODULES.html.sh (file stream based Input/Output): Mention it.
32813
32814         tests: test some of the *-safer modules
32815         * modules/fopen-safer (Depends-on): Add fopen.
32816         * modules/fcntl-safer (Depends-on): Add fcntl.
32817         * modules/stdlib-safer (Depends-on): Add stdlib.
32818         (configure.ac): Set indicator.
32819         * modules/unistd-safer (configure.ac): Likewise.
32820         * modules/tmpfile-safer (configure.ac): Likewise.
32821         (Depends-on): Add tmpfile.
32822         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32823         active.
32824         * tests/test-fopen.c (includes): Test safer versions when they are
32825         in use.
32826         * tests/test-open.c (includes): Likewise.
32827
32828         popen: fix cygwin 1.5 bug when stdin closed
32829         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32830         * modules/popen: New file.
32831         * modules/popen-tests: Likewise.
32832         * tests/test-popen.c: Likewise.
32833         * m4/popen.m4: Likewise.
32834         * lib/popen.c: Likewise.
32835         * lib/stdio.in.h (popen): New declaration.
32836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32837         * modules/stdio (Makefile.am): Likewise.
32838         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32839
32840 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32841
32842         maint.mk: give full control over update-copyright exclusions
32843         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32844         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32845         (update-copyright): Don't force inclusion of top-level
32846         ChangeLog.  Don't force exclusion of all COPYING files, but make
32847         them the default exclusion instead.
32848
32849 2009-08-16  Bruno Haible  <bruno@clisp.org>
32850
32851         Fix test failures on Solaris 10.
32852         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32853         tests when Solaris iconv() is used.
32854         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32855         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32856         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32857         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32858         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32859
32860 2009-08-16  Bruno Haible  <bruno@clisp.org>
32861
32862         Fix test failures on Solaris 10.
32863         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32864         'tr' program and pass it as first argument.
32865         * tests/test-pipe-filter-gi1.sh: Likewise.
32866         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32867         program as first argument.
32868         * tests/test-pipe-filter-gi1.c (main): Likewise.
32869
32870 2009-08-16  Eric Blake  <ebb9@byu.net>
32871
32872         fpurge: fix previous commits
32873         * modules/fpurge (Makefile.am): Make replacement conditional,
32874         partially reverting 2007-04-29 change; missed in previous
32875         attempt.
32876         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32877         is missing.
32878
32879 2009-08-16  Bruno Haible  <bruno@clisp.org>
32880
32881         Clarify fpurge's effect on the file position.
32882         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32883         * tests/test-fpurge.c (main): Make a second pass for checking the file
32884         position.
32885
32886 2009-08-16  Bruno Haible  <bruno@clisp.org>
32887
32888         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32889         declaration of fpurge is missing.
32890         * tests/test-fpurge.c (main): Check that the file has not more contents
32891         than expected. Close the file before removing it.
32892
32893 2009-08-15  Eric Blake  <ebb9@byu.net>
32894
32895         fpurge: don't wrap working cygwin implementation
32896         * lib/fpurge.c (fpurge): Fix comment typo.
32897         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32898         1.7 to avoid replacement.
32899         * tests/test-fpurge.c (main): Enhance test.
32900
32901 2009-08-15  Eric Blake  <ebb9@byu.net>
32902         and Jim Meyering  <meyering@redhat.com>
32903
32904         test-update-copyright: skip if perl is insufficient
32905         * tests/test-update-copyright.sh: Failure to run maintainer tool
32906         should not cause testsuite failure on cygwin 1.5.
32907
32908 2009-08-14  Eric Blake  <ebb9@byu.net>
32909
32910         doc: mention more functions added in cygwin 1.7.0
32911         * doc/posix-headers/limits.texi (limits.h): Update for recent
32912         cygwin additions.
32913         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32914         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32915         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32916         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32917         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32918
32919 2009-08-14  Eric Blake  <ebb9@byu.net>
32920
32921         maint.mk: simplify update-copyright rule
32922         * top/maint.mk (update-copyright-local): Delete, and document how
32923         to do it in cfg.mk instead.
32924         (update-copyright-exclude-regexp): Delete, and document how to do
32925         it in .x-update-copyright instead.
32926         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32927         exclude ChangeLog.
32928
32929 2009-08-14  Bruno Haible  <bruno@clisp.org>
32930
32931         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32932
32933 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32934
32935         maint.mk: support update-copyright-env
32936         * top/maint.mk (update-copyright-env): Define place-holder.
32937         (update-copyright): Expand $(update-copyright-env) before
32938         invoking update-copyright.
32939
32940 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32941
32942         update-copyright: implement forced reformatting
32943         * build-aux/update-copyright: Implement and document
32944         UPDATE_COPYRIGHT_FORCE.
32945         * tests/test-update-copyright.sh: Test it.
32946
32947 2009-08-14  Eric Blake  <ebb9@byu.net>
32948         and Bruno Haible  <bruno@clisp.org>
32949
32950         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32951         * tests/test-locale.c: Revert previous patch related to NULL.
32952         * tests/test-stdio.c: Likewise.
32953         * tests/test-stdlib.c: Likewise.
32954         * tests/test-string.c: Likewise.
32955         * tests/test-unistd.c: Likewise.
32956         * modules/time-tests (Depends-on): Add verify.
32957         * modules/wchar-tests (Depends-on): Likewise.
32958         * tests/test-time.c: Test for NULL compliance.
32959         * tests/test-wchar.c: Likewise.
32960         * modules/locale (Depends-on): Add stddef.
32961         * modules/stdio (Depends-on): Likewise.
32962         * modules/stdlib (Depends-on): Likewise.
32963         * modules/string (Depends-on): Likewise.
32964         * modules/time (Depends-on): Likewise.
32965         * modules/unistd (Depends-on): Likewise.
32966         * modules/wchar (Depends-on): Likewise.
32967         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32968         * lib/stdlib.in.h (includes): Likewise.
32969         * lib/string.in.h (includes): Likewise.
32970         * lib/time.in.h (includes): Likewise.
32971         * lib/unistd.in.h (includes): Likewise.
32972         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32973         replaced.
32974         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32975         * m4/stddef_h.m4: New file.
32976         * modules/stddef: Likewise.
32977         * lib/stddef.in.h: Likewise.
32978         * modules/stddef-tests: Likewise.
32979         * tests/test-stddef.c: Likewise.
32980         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32981         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32982         * doc/posix-headers/locale.texi (locale.h): Likewise.
32983         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32984         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32985         * doc/posix-headers/string.texi (string.h): Likewise.
32986         * doc/posix-headers/time.texi (time.h): Likewise.
32987         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32988         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32989
32990 2009-08-14  Eric Blake  <ebb9@byu.net>
32991
32992         doc: improve git diff of texinfo files
32993         * .gitattributes: Add rule for *.texi files, with hint on how to
32994         use it.
32995         Copied from m4, and based on a report by Bruno Haible.
32996
32997 2009-08-14  Bruno Haible  <bruno@clisp.org>
32998
32999         Disable multithread support by default on Cygwin 1.5.x for real.
33000         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33001
33002 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33003
33004         update-copyright: much ado about intervals
33005         * build-aux/update-copyright: Implement and document
33006         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33007         of copyright year intervals.
33008         Also, document UPDATE_COPYRIGHT_YEAR.
33009         * tests/test-update-copyright.sh: Test it.
33010
33011         update-copyright: convert 2-digit to 4-digit years
33012         * build-aux/update-copyright: Implement and document.
33013         * tests/test-update-copyright.sh: Update.
33014
33015 2009-08-14  Jim Meyering  <meyering@redhat.com>
33016
33017         test-exclude: avoid coreutils "make check" failure
33018         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33019         just as in test-argmatch.c.
33020
33021 2009-08-13  Eric Blake  <ebb9@byu.net>
33022
33023         test-dup2: fix bad assumption
33024         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33025         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33026
33027         test-version-etc: fix CRLF portability issue
33028         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33029         recognize \r.
33030         * tests/test-argp-version-etc-1.sh: Likewise.
33031
33032         getopt: update client modules
33033         * modules/argp (Depends-on): Use getopt-gnu.
33034         * modules/git-merge-changelog (Depends-on): Likewise.
33035         * modules/long-options (Depends-on): Likewise.
33036         * modules/xstrtol (Depends-on): Likewise.
33037
33038 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33039
33040         * tests/test-version-etc.sh: Don't fail on different
33041         project/version.  Don't fail on CRLF differences.  Rewrite to use
33042         multiple -e instead of multiple sed forks, suggested by Eric Blake
33043         <ebb9@byu.net>.
33044         * tests/test-argp-version-etc-1.sh: Likewise.
33045
33046 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33047
33048         * tests/test-version-etc.sh: Don't fail on different
33049         project/version.
33050
33051 2009-08-12  Bruno Haible  <bruno@clisp.org>
33052
33053         Tests for modules 'getopt-posix', 'getopt-gnu'.
33054         * modules/getopt-posix-tests: New file.
33055         * tests/test-getopt.c: New file.
33056         * tests/test-getopt.h: New file.
33057         * tests/test-getopt_long.h: New file.
33058
33059         New modules 'getopt-posix', 'getopt-gnu'.
33060         * modules/getopt-gnu: New file, renamed from modules/getopt.
33061         * modules/getopt-posix: New file.
33062         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33063         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33064         (gl_GETOPT): Remove macro.
33065         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33066         Disable the test against BSD systems that declare optreset. Test
33067         against mingw bug. Test against lack of support of optional arguments
33068         on many platforms.
33069         * doc/glibc-headers/getopt.texi: Update module name and list of
33070         relevant platforms.
33071         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33072         'getopt-gnu' and more portability problems.
33073         * NEWS: Mention the changes.
33074
33075 2009-08-12  Bruno Haible  <bruno@clisp.org>
33076
33077         Ensure that optarg etc. get declared by <unistd.h>.
33078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33079         AC_USE_SYSTEM_EXTENSIONS.
33080         * modules/getopt (Depends-on): Add 'extensions'.
33081
33082 2009-08-12  Bruno Haible  <bruno@clisp.org>
33083
33084         Avoid test link errors.
33085         * modules/pipe-filter-ii-tests (Makefile.am): Define
33086         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33087         * modules/pipe-filter-gi-tests (Makefile.am): Define
33088         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33090
33091 2009-08-12  Bruno Haible  <bruno@clisp.org>
33092
33093         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33094         gl_GETOPT_SUBSTITUTE before.
33095         (gl_GETOPT): Use it.
33096         * m4/argp.m4 (gl_ARGP): Update.
33097         Reported by Sergey Poznyakoff.
33098
33099         * m4/getopt.m4: Reorder macros.
33100         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33101         (gl_GETOPT_SUBSTITUTE): Remove macro.
33102
33103 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33104
33105         Minor improvement in gitlog-to-changelog
33106
33107         * build-aux/gitlog-to-changelog: New option `--format' makes
33108         output format string configurable.
33109
33110 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33111
33112         Optimize exclude: use hash tables for non-wildcard patterns.
33113
33114         * lib/exclude.c: Include hash.h and mbuiter.h
33115         (struct exclude_pattern, exclude_segment): New data types.
33116         (struct exclude): Rewrite.
33117         (fnmatch_pattern_has_wildcards): New function.
33118         (new_exclude_segment, free_exclude_segment): New functions.
33119         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33120         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33121         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33122         * modules/exclude: Depend on hash and mbuiter.
33123
33124         * modules/exclude-tests: New file.
33125         * tests/test-exclude.c: New file.
33126         * tests/test-exclude1.sh: New file.
33127         * tests/test-exclude2.sh: New file.
33128         * tests/test-exclude3.sh: New file.
33129         * tests/test-exclude4.sh: New file.
33130         * tests/test-exclude5.sh: New file.
33131         * tests/test-exclude6.sh: New file.
33132         * tests/test-exclude7.sh: New file.
33133
33134 2009-08-12  Bruno Haible  <bruno@clisp.org>
33135
33136         Ensure that getopt() gets declared by <unistd.h>.
33137         * lib/unistd.in.h: Conditionally include getopt.h.
33138         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33139         Set GNULIB_UNISTD_H_GETOPT.
33140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33141         GNULIB_UNISTD_H_GETOPT.
33142         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33143
33144 2009-08-12  Bruno Haible  <bruno@clisp.org>
33145
33146         Clarify logic.
33147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33148         gl_replace_getopt instead of GETOPT_H.
33149
33150 2009-08-12  Bruno Haible  <bruno@clisp.org>
33151
33152         * m4/getopt.m4: Add comments.
33153
33154 2009-08-12  Bruno Haible  <bruno@clisp.org>
33155
33156         Disable multithread support by default on Cygwin 1.5.x.
33157         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33158         set gl_use_threads=no if not specified otherwise.
33159
33160 2009-08-11  Bruno Haible  <bruno@clisp.org>
33161
33162         Avoid compilation error on NetBSD 5.0.
33163         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33164         * tests/test-stdio.c: Likewise.
33165         * tests/test-stdlib.c: Likewise.
33166         * tests/test-string.c: Likewise.
33167         * tests/test-unistd.c: Likewise.
33168         Reported by Greg Troxel <gdt@ir.bbn.com>
33169         at <https://savannah.gnu.org/support/?106973>.
33170
33171 2009-08-11  Bruno Haible  <bruno@clisp.org>
33172
33173         * modules/dup2-tests (Depends-on): Remove close.
33174
33175         Undo 2009-07-19 commit.
33176         * modules/acl-tests (Depends-on): Remove close.
33177         * modules/binary-io-tests (Depends-on): Likewise.
33178         * modules/closein-tests (Depends-on): Likewise.
33179         * modules/flock-tests (Depends-on): Likewise.
33180         * modules/fsync-tests (Depends-on): Likewise.
33181         * modules/lseek-tests (Depends-on): Likewise.
33182         * modules/pipe-tests (Depends-on): Likewise.
33183         * modules/posix_spawn-tests (Depends-on): Likewise.
33184         * modules/posix_spawnp-tests (Depends-on): Likewise.
33185         * modules/stat-time-tests (Depends-on): Likewise.
33186         * modules/yesno-tests (Depends-on): Likewise.
33187
33188 2009-08-10  Bruno Haible  <bruno@clisp.org>
33189
33190         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33191
33192 2009-08-10  Bruno Haible  <bruno@clisp.org>
33193
33194         Fix a gcc warning.
33195         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33196
33197 2009-08-10  Bruno Haible  <bruno@clisp.org>
33198
33199         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33200         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33201         not only the first time.
33202         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33203         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33204         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33205         is 1, not only the the first time.
33206
33207 2009-08-10  Bruno Haible  <bruno@clisp.org>
33208
33209         Make it possible to use module 'gethostname' without module 'close'.
33210         * lib/unistd.in.h (close): Evoke a link error only if
33211         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33213         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33214         * modules/unistd (Makefile.am): Substitute
33215         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33216         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33217         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33218         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33219         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33220         * modules/sys_ioctl (Makefile.am): Substitute
33221         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33222         * modules/socket (configure.ac): On native Windows, set
33223         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33224         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33225         Reported by Sam Steingold <sds@gnu.org>.
33226
33227 2009-08-10  Bruno Haible  <bruno@clisp.org>
33228
33229         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33230         * modules/ioctl (configure.ac): Likewise.
33231
33232 2009-08-10  Bruno Haible  <bruno@clisp.org>
33233
33234         Avoid collision between gnulib wrapper and libintl wrapper.
33235         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33236         already defined in intl/printf.c.
33237         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33238         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33239
33240 2009-08-09  Bruno Haible  <bruno@clisp.org>
33241
33242         Make <sys/select.h> really self-contained, also on Solaris 10.
33243         * lib/sys_select.in.h: Include <string.h>.
33244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33245         Solaris 10 problem.
33246         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33247         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33248         Reported by Jim Meyering.
33249
33250 2009-08-09  Bruno Haible  <bruno@clisp.org>
33251
33252         Avoid warnings from 'aclocal' that are due to a use of macro name
33253         AM_XGETTEXT_OPTION that is not defined in automake.
33254         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33255         automake.
33256         * modules/error (configure.ac): Likewise.
33257         * modules/propername (configure.ac): Likewise.
33258         * modules/vasprintf (configure.ac): Likewise.
33259         * modules/verror (configure.ac): Likewise.
33260         * modules/xprintf (configure.ac): Likewise.
33261         * modules/xvasprintf (configure.ac): Likewise.
33262
33263 2009-08-08  Bruno Haible  <bruno@clisp.org>
33264
33265         Avoid compilation error in C++ mode.
33266         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33267         Reported by Sam Steingold <sds@gnu.org>.
33268
33269 2009-08-08  Bruno Haible  <bruno@clisp.org>
33270
33271         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33272         for the various Unix platforms.
33273         * doc/posix-headers/limits.texi: Update platforms list regarding
33274         HOST_NAME_MAX.
33275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33276
33277 2009-08-07  Jim Meyering  <meyering@redhat.com>
33278
33279         selinux-at: fix typo in a comment
33280         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33281         Spotted by Paolo Bonzini.
33282
33283         selinux-at: remove redundant m4 code, add documentation
33284         * modules/selinux-at (configure.ac): Remove redundant code.
33285         LIB_SELINUX is already set via the dependent module, selinux-h.
33286         (Include): Add quotes around selinux-at.h.
33287         * lib/selinux-at.h: Add documentation.
33288         Reported by Bruno Haible in
33289         http://marc.info/?l=gnulib-bug&m=124958988300749
33290
33291 2009-08-07  Bruno Haible  <bruno@clisp.org>
33292
33293         Avoid link error on MacOS X 10.3 and 10.4.
33294         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33295         on non-ELF systems.
33296         * lib/argp-pv.c (argp_program_version): Likewise.
33297         Reported by Simon Josefsson.
33298
33299 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33300
33301         * tests/test-version-etc.sh: Use $EXEEXT.
33302
33303 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33304
33305         update-copyright: update documentation to point to maint.mk
33306         * build-aux/update-copyright: Here.
33307
33308 2009-08-06  Jim Meyering  <meyering@redhat.com>
33309
33310         maint.mk: support update-copyright-local
33311         * top/maint.mk (update-copyright-local): Define place-holder.
33312         (update-copyright): Depend on $(update-copyright-local).
33313
33314 2009-08-06  Jim Meyering  <meyering@redhat.com>
33315
33316         selinux-at: new module
33317         Initially written for coreutils, this module will soon be
33318         used by findutils, too.
33319         * MODULES.html.sh [Misc]: Add selinux-at.
33320         * lib/selinux-at.h: New file, from coreutils.
33321         * lib/selinux-at.c: Likewise.
33322         * modules/selinux-at: Likewise.
33323         (License): Change from LGPL to GPL, since it depends
33324         on the GPL'd openat module.
33325
33326         doc: update README
33327         * README: Remove references to cogito.
33328         Remove cvs-repo-updating instructions from 2007.
33329         Don't imply that CVS is better if you have limited disk space.
33330
33331 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33332
33333         update-copyright: support C-style comments
33334         * build-aux/update-copyright: Implement and document.
33335         * tests/test-update-copyright.sh: Test.
33336
33337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33338
33339         update-copyright: support omitted "(C)"
33340         * build-aux/update-copyright: Implement and document.  Also,
33341         allow variable whitespace before "(C)".
33342         * tests/test-update-copyright.sh: Test.
33343
33344 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33345
33346         update-copyright: don't trip on non-FSF copyright statements
33347         * build-aux/update-copyright: Fix so that the first correctly
33348         formatted FSF copyright statement is recognized no matter what
33349         appears before it.  Update documentation.
33350         * tests/test-update-copyright.sh: Test that.
33351
33352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33353
33354         update-copyright: clean up code a little
33355         * build-aux/update-copyright: Append "_re" to the name of any
33356         variable holding a regular expression.
33357         Replace "old" and "new" with "stmt" in variable names.
33358         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33359         handled correctly.
33360         Format code more consistently.
33361
33362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33363
33364         update-copyright-tests: improve portability
33365         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33366         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33367
33368 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33369
33370         update-copyright: support @copyright{} and &copy;
33371         * build-aux/update-copyright: Implement and document.
33372         * tests/test-update-copyright.sh: Test.
33373
33374 2009-08-04  Jim Meyering  <meyering@redhat.com>
33375
33376         update-copyright-tests: correctly test EOL=\r\n handling
33377         * tests/test-update-copyright.sh: Put \r at the end of some lines
33378         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33379
33380         maint.mk: make update-copyright exclusion list more configurable
33381         * top/maint.mk (update-copyright): Default to excluding COPYING,
33382         but allow an override, in case someone does want to update that file.
33383
33384         maint.mk: don't update copyright date in COPYING
33385         * top/maint.mk (update-copyright): Exclude COPYING.
33386
33387         maint.mk: add a copyright-updating rule
33388         * top/maint.mk (update-copyright): New rule.
33389         Derived from coreutils/Makefile.am.
33390
33391         update-copyright: rename some variables
33392         * build-aux/update-copyright: Rename a few variables for clarity.
33393         Tweak syntax.  List Joel E. Denny as coauthor.
33394
33395 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33396
33397         update-copyright: fix bug for 2-digit last year and add tests
33398         * build-aux/update-copyright: Fix bug.
33399         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33400         specified.
33401         * modules/update-copyright-tests: New
33402         * tests/test-update-copyright.sh: New.
33403
33404 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33405
33406         update-copyright: handle leading tabs in line prefix
33407         * build-aux/update-copyright: Count leading tabs as 8 spaces
33408         when computing margin.  This helps with the formatting of
33409         ChangeLogs, for example.
33410         Fix documentation a little.
33411
33412 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33413
33414         update-copyright: support EOL=\r\n
33415         * build-aux/update-copyright: Implement that.
33416
33417 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33418
33419         update-copyright: automatically format copyright statements
33420         * build-aux/update-copyright: Implement that.
33421         Also, be a little more predictable and safer by always failing
33422         when the full copyright format is not perfectly recognized as an
33423         unbroken whole.  Discussed at
33424         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33425         Rewrite documentation.
33426
33427 2009-08-03  Bruno Haible  <bruno@clisp.org>
33428
33429         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33430
33431 2009-08-02  Bruno Haible  <bruno@clisp.org>
33432
33433         Tests for module 'uname'.
33434         * modules/uname-tests: New file.
33435         * tests/test-uname.c: New file.
33436
33437         New module 'uname'.
33438         * lib/uname.c: New file.
33439         * m4/uname.m4: New file.
33440         * modules/uname: New file.
33441         * doc/posix-functions/uname.texi: Mention the new module.
33442
33443 2009-08-02  Bruno Haible  <bruno@clisp.org>
33444
33445         Tests for module 'sys_utsname'.
33446         * modules/sys_utsname-tests: New file.
33447         * tests/test-sys_utsname.c: New file.
33448
33449         New module 'sys_utsname'.
33450         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33451         * m4/sys_utsname_h.m4: New file.
33452         * modules/sys_utsname: New file.
33453         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33454
33455 2009-08-02  Bruno Haible  <bruno@clisp.org>
33456
33457         Implicitly initialize the sockets library.
33458         * lib/gethostname.c: Include sockets.h.
33459         (rpl_gethostname): Invoke gl_sockets_startup.
33460         * lib/socket.c: Include sockets.h.
33461         (rpl_socket): Invoke gl_sockets_startup.
33462         * modules/gethostname (Depends-on): Add sockets.
33463         * modules/socket (Depends-on): Likewise.
33464         * tests/test-poll.c: Don't include sockets.h.
33465         (main): Don't invoke gl_sockets_startup.
33466         * tests/test-select.c: Don't include sockets.h.
33467         (main): Don't invoke gl_sockets_startup.
33468
33469 2009-08-02  Bruno Haible  <bruno@clisp.org>
33470
33471         Allow multiple calls to gl_sockets_startup.
33472         * lib/sockets.c (initialized_sockets_version): New variable.
33473         (gl_sockets_startup): Do nothing if already called for this or a higher
33474         version.
33475         (gl_sockets_cleanup): Reset initialized_sockets_version.
33476
33477 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33478
33479         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33480         different project/version.
33481
33482 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33483             Bruno Haible  <bruno@clisp.org>
33484
33485         Tests for module 'pipe-filter-gi'.
33486         * modules/pipe-filter-gi-tests: New file.
33487         * tests/test-pipe-filter-gi1.sh: New file.
33488         * tests/test-pipe-filter-gi1.c: New file.
33489         * tests/test-pipe-filter-gi2.sh: New file.
33490         * tests/test-pipe-filter-gi2-main.c: New file.
33491         * tests/test-pipe-filter-gi2-child.c: New file.
33492
33493         New module 'pipe-filter-gi'.
33494         * lib/pipe-filter-gi.c: New file.
33495         * modules/pipe-filter-gi: New file.
33496
33497 2009-08-02  Bruno Haible  <bruno@clisp.org>
33498             Paolo Bonzini  <bonzini@gnu.org>
33499
33500         Tests for module 'pipe-filter-ii'.
33501         * modules/pipe-filter-ii-tests: New file.
33502         * tests/test-pipe-filter-ii1.sh: New file.
33503         * tests/test-pipe-filter-ii1.c: New file.
33504         * tests/test-pipe-filter-ii2.sh: New file.
33505         * tests/test-pipe-filter-ii2-main.c: New file.
33506         * tests/test-pipe-filter-ii2-child.c: New file.
33507
33508         New module 'pipe-filter-ii'.
33509         * lib/pipe-filter.h: New file.
33510         * lib/pipe-filter-ii.c: New file.
33511         * lib/pipe-filter-aux.h: New file.
33512         * modules/pipe-filter-ii: New file.
33513
33514 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33515
33516         * lib/gc-libgcrypt.c: Change copyright to FSF.
33517         * lib/gc-gnulib.c: Likewise.
33518
33519 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33520
33521         * lib/gethostname.c: Include limits.h.
33522
33523 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33524             Bruno Haible  <bruno@clisp.org>
33525
33526         Ensure HOST_NAME_MAX as part of the gethostname module.
33527         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33528         define also HOST_NAME_MAX.
33529         * tests/test-gethostname.c: Include <limits.h>.
33530         (main): Check also HOST_NAME_MAX.
33531         * doc/posix-headers/limits.texi: Document the mingw problem.
33532
33533 2009-08-02  Bruno Haible  <bruno@clisp.org>
33534
33535         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33536         Add comments.
33537
33538 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33539
33540         * lib/gethostname.c: Add Windows wrapper.
33541         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33542         * modules/gethostname: Depend on sys_socket & errno, for also
33543         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33544         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33545
33546 2009-07-31  Jim Meyering  <meyering@redhat.com>
33547
33548         getloadavg: fix symbol name in comment
33549         * lib/getloadavg.c: Correct a typo I introduced when adding
33550         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33551         Matt Kraai spotted the problem.
33552
33553 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33554
33555         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33556         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33557         code also if ! defined N_NAME_POINTER.
33558         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33559         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33560         but the n_name member is a 12-byte array.
33561
33562 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33563
33564         update-copyright: generalize comment handling
33565         * build-aux/update-copyright: Handle copyright statements
33566         within more comment styles.
33567         Document usage.
33568         Report any file with an external copyright holder or parse failure.
33569
33570 2009-07-29  Jim Meyering  <meyering@redhat.com>
33571
33572         mktime: correct setting of REPLACE_MKTIME
33573         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33574
33575         update-copyright: new module
33576         * modules/update-copyright: New file.
33577         * build-aux/update-copyright: New file.
33578         * MODULES.html.sh (maint+release support): Add update-copyright.
33579
33580 2009-07-27  Bruno Haible  <bruno@clisp.org>
33581
33582         Fix compilation error when <ctime> is used and mktime is replaced.
33583         * lib/time.in.h (mktime): New declaration.
33584         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33585         REPLACE_MKTIME instead of defining mktime in config.h.
33586         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33587         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33588         Reported by Ross McFarland <rwmcfa1@neces.com>.
33589
33590 2009-07-27  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33593         Reported by Matt Kraai <mkraai@beckman.com>.
33594
33595 2009-07-25  Jim Meyering  <meyering@redhat.com>
33596
33597         maint.mk: avoid warnings about missing files
33598         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33599         diagnostic when .prev-version does not exist.
33600         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33601         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33602         nonexistent cfg.mk.
33603         Suggestions from Simon Josefsson.
33604
33605 2009-07-25  Bruno Haible  <bruno@clisp.org>
33606
33607         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33608         defined as macros. Needed on QNX 6.4.1.
33609         Reported by Matt Kraai <mkraai@beckman.com>.
33610
33611 2009-07-23  Jim Meyering  <meyering@redhat.com>
33612
33613         maint.mk: invoke "make dist" with a working value of XZ_OPT
33614         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33615
33616 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33617
33618         Make fseeko.c compile on QNX.
33619         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33620
33621 2009-07-22  Peter Simons  <simons@cryp.to>
33622
33623         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33624         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33625         * lib/md4.h: Likewise.
33626         * lib/md5.h: Likewise.
33627         * lib/sha1.h: Likewise.
33628         * lib/sha256.h: Likewise.
33629         * lib/sha512.h: Likewise.
33630
33631         tests-sha1: don't assign literal string to 'char *' variable
33632         * tests/test-sha1.c (main): Declare locals with "const" to match
33633         attributes of the right hand side.
33634
33635 2009-07-21  Eric Blake  <ebb9@byu.net>
33636
33637         dup2: fix more mingw problems
33638         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33639         fd to itself.
33640         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33641         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33642         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33643         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33644         care of mingw bugs.
33645
33646 2009-07-21  Jim Meyering  <meyering@redhat.com>
33647
33648         vc-list-files: avoid failure when /bin/sh is dash
33649         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33650         On some Debian based systems, /bin/sh is a symlink to dash, and running
33651         this command would omit the "/" following each 'tests' prefix:
33652           dash -x build-aux/vc-list-files -C . tests
33653         That is because bash and dash work differently:
33654           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33655           bash ok
33656           dash odd
33657
33658 2009-07-21  Eric Blake  <ebb9@byu.net>
33659
33660         dup2-tests: test previous patch
33661         * modules/dup2-tests: New file.
33662         * tests/test-dup2.c: Likewise.
33663         * tests/test-open.c (main): Avoid unspecified behavior.
33664         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33665         test.
33666
33667         dup2: work around mingw and cygwin 1.5 bug
33668         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33670         * modules/unistd (Makefile.am): Substitute it.
33671         * lib/unistd.in.h (dup2): Declare the replacement.
33672         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33673         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33674         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33675         * modules/execute (Depends-on): Add dup2.
33676         * modules/fseterr (Depends-on): Likewise.
33677         * modules/pipe (Depends-on): Likewise.
33678         * modules/posix_spawn-internal (Depends-on): Likewise.
33679
33680 2009-07-21  Bruno Haible  <bruno@clisp.org>
33681
33682         * modules/.gitattributes: New file.
33683
33684 2009-07-20  Bruno Haible  <bruno@clisp.org>
33685
33686         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33687         (main): Use it.
33688
33689 2009-07-20  Eric Blake  <ebb9@byu.net>
33690
33691         test-pipe: make a bit more robust.
33692         * tests/test-pipe.c (myerr): Allow error messages regardless of
33693         what we do to stderr.
33694         (test_pipe): Rearrange to avoid deadlock.
33695         (child_main): Try a larger read, to ensure we avoided deadlock.
33696         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33697         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33698         if misused.
33699
33700 2009-07-19  Jim Meyering  <meyering@redhat.com>
33701
33702         fts: avoid false-positive cycle-detection
33703         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33704         for each new command line argument.
33705
33706 2009-07-19  Bruno Haible  <bruno@clisp.org>
33707
33708         Fix build error on mingw with the modules sys_select and unistd.
33709         * modules/acl-tests (Depends-on): Add close.
33710         * modules/binary-io-tests (Depends-on): Likewise.
33711         * modules/closein-tests (Depends-on): Likewise.
33712         * modules/flock-tests (Depends-on): Likewise.
33713         * modules/fsync-tests (Depends-on): Likewise.
33714         * modules/lseek-tests (Depends-on): Likewise.
33715         * modules/pipe-tests (Depends-on): Likewise.
33716         * modules/posix_spawn-tests (Depends-on): Likewise.
33717         * modules/posix_spawnp-tests (Depends-on): Likewise.
33718         * modules/stat-time-tests (Depends-on): Likewise.
33719         * modules/yesno-tests (Depends-on): Likewise.
33720
33721 2009-07-19  Bruno Haible  <bruno@clisp.org>
33722
33723         Unify conditionals.
33724         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33725         macros, not at the compiler macros.
33726         * lib/pipe.c: Likewise.
33727         * lib/execute.c: Likewise.
33728         * lib/spawni.c: Likewise.
33729
33730 2009-07-19  Bruno Haible  <bruno@clisp.org>
33731
33732         Fix handling of closed stdin/stdout/stderr on mingw.
33733         * lib/w32spawn.h: Include unistd.h.
33734         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33735         file descriptor with O_NOINHERIT flag.
33736         (fd_safer_noinherit): New function, based on fd-safer.c.
33737         (dup_safer_noinherit): New function, based on dup-safer.c.
33738         (undup_safer_noinherit): New function.
33739         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33740         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33741         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33742         instead of fd_safer.
33743         * tests/test-pipe.c: Include <windows.h>.
33744         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33745         result.
33746
33747         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33748         from main.
33749         (test_pipe): Pass an extra argument for disambiguation.
33750         (main): Invoke parent_main or child_main.
33751
33752         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33753         consistently.
33754
33755 2009-07-18  Eric Blake  <ebb9@byu.net>
33756
33757         test-pipe: fix mingw build
33758         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33759
33760 2009-07-18  Bruno Haible  <bruno@clisp.org>
33761
33762         * modules/pipe-tests (Makefile.am): Fix typo.
33763
33764 2009-07-18  Eric Blake  <ebb9@byu.net>
33765
33766         error: fix mingw build
33767         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33768         Reported by Bruno Haible.
33769
33770         error: avoid undefined use of stdout
33771         * lib/error.c (error, error_at_line): Check that fd 1 is open
33772         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33773         is handling faults and the close_stdout module wants to report the
33774         detection of closed stdout as an error.
33775
33776 2009-07-17  Eric Blake  <ebb9@byu.net>
33777
33778         pipe: be robust in face of closed fds
33779         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33780         should cause child to misbehave.
33781         * modules/pipe-tests: New module.
33782         * tests/test-pipe.c: New file.
33783         * tests/test-pipe.sh: New file.
33784         Reported by Akim Demaille.
33785
33786 2009-07-14  Bruno Haible  <bruno@clisp.org>
33787
33788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33789         Reported by anonymous kc.
33790
33791 2009-07-07  Jim Meyering  <meyering@redhat.com>
33792
33793         maint.mk: don't look for translatable strings in *.m4 or *.mk
33794         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33795         when searching for translatable strings.
33796
33797 2009-07-05  Jim Meyering  <meyering@redhat.com>
33798
33799         remove superfluous parentheses in STREQ definition
33800         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33801         * lib/getugroups.c (STREQ): Likewise.
33802         * lib/fnmatch.c (STREQ): Likewise.
33803         Spotted by Bruno Haible.
33804
33805 2009-07-04  Jim Meyering  <meyering@redhat.com>
33806
33807         argv-iter: new module
33808         * MODULES.html.sh: Add argv-iter.
33809         * lib/argv-iter.c, lib/argv-iter.h: New files.
33810         * modules/argv-iter: New file.
33811         * modules/argv-iter-tests: New file.
33812         * tests/test-argv-iter.c: Test it.
33813
33814 2009-07-04  Bruno Haible  <bruno@clisp.org>
33815
33816         Fix assertion.
33817         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33818         contains more exact copies of a given entry than file2, leave the extra
33819         copies unpaired rather than aborting.
33820         Reported by Eric Blake.
33821
33822 2009-07-02  Bruno Haible  <bruno@clisp.org>
33823
33824         Speedup git-merge-changelog for git cherry-pick.
33825         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33826         (entries_mapping_get): New function, extracted from compute_mapping.
33827         (entries_mapping_reverse_get): New function.
33828         (compute_mapping): Add a 'full' argument. Return the result in a
33829         'struct entries_mapping'.
33830         (main): Update. Access the mappings through entries_mapping_get.
33831         Reported by Eric Blake.
33832
33833 2009-07-02  Bruno Haible  <bruno@clisp.org>
33834
33835         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33836         best_i.
33837
33838 2009-07-02  Bruno Haible  <bruno@clisp.org>
33839
33840         Speed up approximate search for matching ChangeLog entries.
33841         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33842         argument. Call fstrcmp_bounded instead of fstrcmp.
33843         (compute_mapping, try_split_merged_entry, main): Update callers.
33844
33845 2009-07-02  Bruno Haible  <bruno@clisp.org>
33846
33847         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33848
33849 2009-06-30  Bruno Haible  <bruno@clisp.org>
33850
33851         Reduce the number of uc_is_cased calls.
33852         * lib/unicase.h (casing_suffix_context_t): Add
33853         'first_char_except_ignorable' field.
33854         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33855         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33856         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33857         Update initializer.
33858         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33859         case-ignorable characters.
33860         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33861         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33862         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33863         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33864         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33865
33866 2009-06-30  Bruno Haible  <bruno@clisp.org>
33867
33868         Tests for module 'unicase/ignorable'.
33869         * modules/unicase/ignorable-tests: New file.
33870         * tests/unicase/test-ignorable.c: New file, generated by
33871         gen-uni-tables.
33872
33873         Tests for module 'unicase/cased'.
33874         * modules/unicase/cased-tests: New file.
33875         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33876         * tests/unicase/test-predicate-part1.h: New file, derived from
33877         tests/unictype/test-predicate-part1.h.
33878         * tests/unicase/test-predicate-part2.h: New file, same as
33879         tests/unictype/test-predicate-part2.h.
33880
33881         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33882         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33883         (output_casing_properties): New function.
33884         (main): Call it.
33885         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33886         * lib/unicase/cased.c: Include unictype/bitmap.h.
33887         (uc_is_cased): Define through a bitmap lookup.
33888         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33889         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33890         (uc_is_case_ignorable): Define through a bitmap lookup.
33891         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33892         lib/unictype/bitmap.h.
33893         (Depends-on): Add inline. Clean up.
33894         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33895         lib/unictype/bitmap.h.
33896         (Depends-on): Add inline. Clean up.
33897         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33898         recognition.
33899         * tests/unicase/test-u16-tolower.c (main): Likewise.
33900         * tests/unicase/test-u32-tolower.c (main): Likewise.
33901
33902 2009-06-30  Bruno Haible  <bruno@clisp.org>
33903
33904         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33905         * lib/unicase/u16-casemap.c: Likewise.
33906         * lib/unicase/u32-casemap.c: Likewise.
33907
33908 2009-06-29  Bruno Haible  <bruno@clisp.org>
33909
33910         Define u32_casefold as a wrapper around u32_ct_casefold.
33911         * lib/unicase/u32-casefold.c: Update.
33912         * modules/unicase/u32-casefold (Depends-on): Add
33913         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33914         unicase/empty-suffix-context. Clean up.
33915
33916         Define u16_casefold as a wrapper around u16_ct_casefold.
33917         * lib/unicase/u16-casefold.c: Update.
33918         * modules/unicase/u16-casefold (Depends-on): Add
33919         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33920         unicase/empty-suffix-context. Clean up.
33921
33922         Define u8_casefold as a wrapper around u8_ct_casefold.
33923         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33924         * lib/unicase/u8-casefold.c: Update.
33925         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33926         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33927
33928         Define u32_totitle as a wrapper around u32_ct_totitle.
33929         * lib/unicase/u32-totitle.c: Update.
33930         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33931         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33932
33933         Define u16_totitle as a wrapper around u16_ct_totitle.
33934         * lib/unicase/u16-totitle.c: Update.
33935         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33936         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33937
33938         Define u8_totitle as a wrapper around u8_ct_totitle.
33939         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33940         functions.
33941         (FUNC): Delegate to U_CT_TOTITLE.
33942         * lib/unicase/u8-totitle.c: Update.
33943         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33944         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33945
33946         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33947         invocation.
33948         * modules/unicase/u32-tolower (Depends-on): Add
33949         unicase/empty-prefix-context, unicase/empty-suffix-context.
33950
33951         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33952         invocation.
33953         * modules/unicase/u16-tolower (Depends-on): Add
33954         unicase/empty-prefix-context, unicase/empty-suffix-context.
33955
33956         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33957         * modules/unicase/u8-tolower (Depends-on): Add
33958         unicase/empty-prefix-context, unicase/empty-suffix-context.
33959
33960         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33961         invocation.
33962         * modules/unicase/u32-toupper (Depends-on): Add
33963         unicase/empty-prefix-context, unicase/empty-suffix-context.
33964
33965         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33966         invocation.
33967         * modules/unicase/u16-toupper (Depends-on): Add
33968         unicase/empty-prefix-context, unicase/empty-suffix-context.
33969
33970         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33971         * modules/unicase/u8-toupper (Depends-on): Add
33972         unicase/empty-prefix-context, unicase/empty-suffix-context.
33973
33974         New module 'unicase/u32-ct-casefold'.
33975         * lib/unicase/u32-ct-casefold.c: New file.
33976         * modules/unicase/u32-ct-casefold: New file.
33977
33978         New module 'unicase/u16-ct-casefold'.
33979         * lib/unicase/u16-ct-casefold.c: New file.
33980         * modules/unicase/u16-ct-casefold: New file.
33981
33982         New module 'unicase/u8-ct-casefold'.
33983         * lib/unicase/u8-ct-casefold.c: New file.
33984         * lib/unicase/u-ct-casefold.h: New file, derived from
33985         lib/unicase/u-casefold.h.
33986         * modules/unicase/u8-ct-casefold: New file.
33987
33988         New module 'unicase/u32-ct-totitle'.
33989         * lib/unicase/u32-ct-totitle.c: New file.
33990         * modules/unicase/u32-ct-totitle: New file.
33991
33992         New module 'unicase/u16-ct-totitle'.
33993         * lib/unicase/u16-ct-totitle.c: New file.
33994         * modules/unicase/u16-ct-totitle: New file.
33995
33996         New module 'unicase/u8-ct-totitle'.
33997         * lib/unicase/u8-ct-totitle.c: New file.
33998         * lib/unicase/u-ct-totitle.h: New file, derived from
33999         lib/unicase/u-totitle.h.
34000         * modules/unicase/u8-ct-totitle: New file.
34001
34002         New module 'unicase/u32-ct-tolower'.
34003         * lib/unicase/u32-ct-tolower.c: New file.
34004         * modules/unicase/u32-ct-tolower: New file.
34005
34006         New module 'unicase/u16-ct-tolower'.
34007         * lib/unicase/u16-ct-tolower.c: New file.
34008         * modules/unicase/u16-ct-tolower: New file.
34009
34010         New module 'unicase/u8-ct-tolower'.
34011         * lib/unicase/u8-ct-tolower.c: New file.
34012         * modules/unicase/u8-ct-tolower: New file.
34013
34014         New module 'unicase/u32-ct-toupper'.
34015         * lib/unicase/u32-ct-toupper.c: New file.
34016         * modules/unicase/u32-ct-toupper: New file.
34017
34018         New module 'unicase/u16-ct-toupper'.
34019         * lib/unicase/u16-ct-toupper.c: New file.
34020         * modules/unicase/u16-ct-toupper: New file.
34021
34022         New module 'unicase/u8-ct-toupper'.
34023         * lib/unicase/u8-ct-toupper.c: New file.
34024         * modules/unicase/u8-ct-toupper: New file.
34025
34026         Add context arguments to u*_casemap functions.
34027         * lib/unicase/unicasemap.h: Include unicase.h.
34028         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34029         suffix_context arguments.
34030         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34031         functions.
34032         (FUNC): Add prefix_context and suffix_context arguments. Use
34033         uc_is_cased and uc_is_case_ignorable.
34034         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34035         * lib/unicase/u16-casemap.c: Likewise.
34036         * lib/unicase/u32-casemap.c: Likewise.
34037         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34038         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34039         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34040         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34041         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34042         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34043
34044         New module 'unicase/u32-suffix-context'.
34045         * lib/unicase/u32-suffix-context.c: New file.
34046         * modules/unicase/u32-suffix-context: New file.
34047
34048         New module 'unicase/u16-suffix-context'.
34049         * lib/unicase/u16-suffix-context.c: New file.
34050         * modules/unicase/u16-suffix-context: New file.
34051
34052         New module 'unicase/u8-suffix-context'.
34053         * lib/unicase/u8-suffix-context.c: New file.
34054         * lib/unicase/u-suffix-context.h: New file.
34055         * modules/unicase/u8-suffix-context: New file.
34056
34057         New module 'unicase/empty-suffix-context'.
34058         * lib/unicase/empty-suffix-context.c: New file.
34059         * modules/unicase/empty-suffix-context: New file.
34060
34061         New module 'unicase/u32-prefix-context'.
34062         * lib/unicase/u32-prefix-context.c: New file.
34063         * modules/unicase/u32-prefix-context: New file.
34064
34065         New module 'unicase/u16-prefix-context'.
34066         * lib/unicase/u16-prefix-context.c: New file.
34067         * modules/unicase/u16-prefix-context: New file.
34068
34069         New module 'unicase/u8-prefix-context'.
34070         * lib/unicase/u8-prefix-context.c: New file.
34071         * lib/unicase/u-prefix-context.h: New file.
34072         * lib/unicase/context.h: New file.
34073         * modules/unicase/u8-prefix-context: New file.
34074
34075         New module 'unicase/empty-prefix-context'.
34076         * lib/unicase/empty-prefix-context.c: New file.
34077         * modules/unicase/empty-prefix-context: New file.
34078
34079         New module 'unicase/ignorable'.
34080         * lib/unicase/ignorable.c: New file.
34081         * modules/unicase/ignorable: New file.
34082
34083         New module 'unicase/cased'.
34084         * lib/unicase/caseprop.h: New file.
34085         * lib/unicase/cased.c: New file.
34086         * modules/unicase/cased: New file.
34087
34088         New functions for case mapping of substrings.
34089         * lib/unicase.h (casing_prefix_context_t): New type.
34090         (unicase_empty_prefix_context): New variable.
34091         (u8_casing_prefix_context, u16_casing_prefix_context,
34092         u32_casing_prefix_context, u8_casing_prefixes_context,
34093         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34094         declarations.
34095         (casing_suffix_context_t): New type.
34096         (unicase_empty_suffix_context): New variable.
34097         (u8_casing_suffix_context, u16_casing_suffix_context,
34098         u32_casing_suffix_context, u8_casing_suffixes_context,
34099         u16_casing_suffixes_context, u32_casing_suffixes_context,
34100         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34101         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34102         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34103         declarations.
34104
34105 2009-06-28  Jim Meyering  <meyering@redhat.com>
34106
34107         boostrap: indent only with spaces
34108         * build-aux/bootstrap: Indent only with spaces, never TABs.
34109
34110         bootstrap: split long lines
34111         * build-aux/bootstrap: Keep line length < 80.
34112
34113         bootstrap: sync from coreutils
34114         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34115         just as autoreconf does.  Verify a list of prerequisite
34116         package-name,version-number pairs if defined in bootstrap.conf.
34117         Refer to README-prereq, if prerequisites are not satisfied.
34118
34119 2009-06-27  Eric Blake  <ebb9@byu.net>
34120
34121         tests: add test for bogus NULL definition
34122         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34123         * tests/test-stdlib.c: Likewise.
34124         * tests/test-string.c: Likewise.
34125         * tests/test-locale.c: Likewise.
34126         * tests/test-unistd.c: Likewise.
34127         * modules/stdio-tests (Depends-on): Add verify.
34128         * modules/stdlib-tests (Depends-on): Likewise.
34129         * modules/string-tests (Depends-on): Likewise.
34130         * modules/locale-tests (Depends-on): Likewise.
34131         * modules/unistd-tests (Depends-on): Likewise.
34132
34133 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34134
34135         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34136         self-explaining comment.
34137         * m4/selinux-selinux-h: Update serial.
34138         (gl_LIBSELINUX): New macro, adding a warning for missing development
34139         packages to code extracted from...
34140         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34141         Add warning for missing development packages here, too.
34142
34143 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34144
34145         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34146
34147 2009-06-25  Eric Blake  <ebb9@byu.net>
34148
34149         version-etc: fix regression
34150         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34151         gcc.
34152         (version_etc): Use it, to catch bugs with trailing NULL.
34153         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34154         (version_etc_va): Fix logic bug.
34155         * modules/version-etc-tests: Add test.
34156         * tests/test-version-etc.c: New file.
34157         * tests/test-version-etc.sh: Likewise.
34158
34159 2009-06-25  Sam Steingold  <sds@gnu.org>
34160
34161         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34162         mbtowc declaration.
34163
34164 2009-06-25  Eric Blake  <ebb9@byu.net>
34165
34166         fpurge: migrate into <stdio.h>
34167         * lib/fpurge.h: Delete...
34168         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34169         * lib/fpurge.c (fpurge): Change declaring header.
34170         * modules/fpurge (Files): Drop deleted file.
34171         (Depends-on): Add stdio.
34172         (configure.ac): Set witness.
34173         * modules/stdio (Makefile.am): Support fpurge macros.
34174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34175         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34176         * lib/fflush.c: Update client.
34177         * tests/test-fpurge.c: Likewise.
34178         * NEWS: Mention the change.
34179
34180 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34181
34182         * lib/argp-version-etc.c (program_authors): Add const
34183         qualifier.
34184         * lib/version-etc.c: Fix typos in the comments.
34185         * modules/argp-version-etc: Depends on version-etc.
34186
34187 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34188
34189         argp-version-etc: new module.
34190
34191         * lib/argp-version-etc.c: New file.
34192         * lib/argp-version-etc.h: New file.
34193         * modules/argp-version-etc: New file.
34194         * modules/argp-version-etc-tests: New file.
34195         * tests/test-argp-version-etc.c: New test.
34196         * tests/test-argp-version-etc-1.sh: New test.
34197
34198 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34199
34200         Provide additional interfaces and documentation for version-etc
34201         module.
34202
34203         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34204         interfaces.
34205         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34206         prototypes.
34207
34208 2009-06-24  Bruno Haible  <bruno@clisp.org>
34209
34210         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34211         HAVE_LIB${NAME} macro.
34212         Reported by Sam Steingold <sds@gnu.org>.
34213
34214 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34215
34216         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34217         needed.
34218
34219 2009-06-21  Bruno Haible  <bruno@clisp.org>
34220
34221         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34222         work.
34223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34224         together with LIB${NAME}, LTLIB${NAME}.
34225         Reported by Sam Steingold <sds@gnu.org>.
34226
34227 2009-06-20  Jim Meyering  <meyering@redhat.com>
34228
34229         tests: make sc_require_test_exit_idiom more generic
34230         * top/maint.mk (Exit_witness_file): New overridable variable.
34231         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34232         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34233
34234 2009-06-19  Jim Meyering  <meyering@redhat.com>
34235
34236         hash: reverse order of src/dst parameters in an internal interface
34237         * lib/hash.c (transfer_entries): Reverse order of parameters to
34238         put DST before SRC.  Adjust callers.
34239
34240         tests: test-hash: avoid wholesale duplication
34241         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34242         Instead, use a loop and add a single conditional.
34243
34244         tests: test-hash: allow seed selection via a command line argument
34245         * tests/test-hash.c (get_seed): New function.
34246         (main): Use it.
34247
34248 2009-06-19  Eric Blake  <ebb9@byu.net>
34249
34250         hash: avoid memory leak on allocation failure
34251         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34252         failure.  Factor repeated algorithm...
34253         (transfer_entries): ...into new helper routine.
34254         (hash_delete): React to hash_rehash return value.
34255
34256         hash: reduce memory pressure in hash_rehash no-op case
34257         * lib/hash.c (next_prime): Avoid overflow.
34258         (hash_initialize): Factor bucket size computation...
34259         (compute_bucket_size): ...into new helper function.
34260         (hash_rehash): Use new function and open coding to reduce memory
34261         pressure, and avoid a memory leak in USE_OBSTACK code.
34262         Reported by Jim Meyering.
34263
34264 2009-06-18  Eric Blake  <ebb9@byu.net>
34265
34266         hash: make rotation more obvious
34267         * modules/hash (Depends-on): Add bitrotate and stdint.
34268         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34269         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34270         (SIZE_MAX): Rely on headers for definition.
34271         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34272         (raw_hasher): Use rotr_sz.
34273         Suggested by Jim Meyering.
34274
34275         hash: fix memory leak in last patch
34276         * lib/hash.c (hash_rehash): Avoid memory leak.
34277
34278         hash: avoid no-op rehashing
34279         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34280
34281         hash: provide default callback functions
34282         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34283         (hash_initialize): Use them as defaults.
34284         * tests/test-hash.c (main): Test this.
34285
34286         hash: minor optimization
34287         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34288         when possible.
34289         (hash_initialize): Document this promise.
34290         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34291         * tests/test-hash.c (hash_compare_strings): Test this.
34292
34293 2009-06-18  Bruno Haible  <bruno@clisp.org>
34294
34295         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34296         going to be replaced anyway.
34297
34298 2009-06-18  Bruno Haible  <bruno@clisp.org>
34299
34300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34301         in one place.
34302         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34303         be replaced anyway.
34304
34305 2009-06-18  Eric Blake  <ebb9@byu.net>
34306
34307         hash: check for resize before insertion
34308         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34309         threshold before insertion, so that a pathological hash_rehash
34310         that fills every bucket can still trigger another rehash.
34311
34312 2009-06-18  Jim Meyering  <meyering@redhat.com>
34313
34314         hash-tests: add a loop around the small tests
34315         * tests/test-hash.c (main): Repeat small tests with selected
34316         small initial table sizes.
34317
34318 2009-06-17  Eric Blake  <ebb9@byu.net>
34319
34320         hash: minor cleanups
34321         * lib/hash.h (hash_entry): Make opaque, by moving...
34322         * lib/hash.c (hash_entry): ...here.
34323         (hash_insert): Clarify restrictions on what can be inserted.
34324         (hash_get_next): Clarify when it is safe to remove an element
34325         during traversal.
34326         (check_tuning): Skip verification when tuning is known safe.
34327         (hash_initialize): Clarify restrictions on tuning.
34328
34329 2009-06-17  Jim Meyering  <jim@meyering.net>
34330         and Eric Blake  <ebb9@byu.net>
34331
34332         hash-tests: new module
34333         * modules/hash-tests: New file.
34334         * tests/test-hash.c: New file.
34335
34336 2009-06-17  Eric Blake  <ebb9@byu.net>
34337
34338         strstr-simple: document new module
34339         * MODULES.html.sh: Document new module.
34340
34341         strstr, strcasestr: replace on platforms with broken memchr
34342         * modules/strstr: Split into...
34343         * modules/strstr-simple: ...new module that does not care about
34344         performance, but does care about glibc bug.
34345         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34346         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34347         if platform memchr is broken, per Debian bug 521737.
34348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34349         memchr.
34350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34351         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34352         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34353         * modules/mountlist (Depends-on): Add strstr-simple.
34354         * modules/gen-uni-tables (Depends-on): Likewise.
34355         * modules/argz (Depends-on): Add strstr.
34356
34357 2009-06-17  Bruno Haible  <bruno@clisp.org>
34358
34359         * modules/posix_spawn-internal (Depends-on): Add errno.
34360
34361 2009-06-17  Bruno Haible  <bruno@clisp.org>
34362
34363         Define missing ESTALE on Interix 3.5.
34364         * lib/errno.in.h (ESTALE): Assign a value if missing.
34365         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34367         missing.
34368         * doc/posix-headers/errno.texi: Mention the Interix bug.
34369         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34370
34371 2009-06-15  Eric Blake  <ebb9@byu.net>
34372
34373         memchr, memchr2: add valgrind exception
34374         * lib/memchr.valgrind: New file.
34375         * lib/memchr2.valgrind: New file.
34376         * modules/memchr (Files): Distribute valgrind file.
34377         * modules/memchr2 (Files): Likewise.
34378
34379         docs: memchr is no longer obsolete
34380         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34381         * lib/string.in.h (memchr): Simplify logic.
34382
34383 2009-06-14  Jim Meyering  <meyering@redhat.com>
34384
34385         link-follow: fix the "checking..." message to not mention trailing slash
34386         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34387         never considered trailing slashes.
34388
34389 2009-06-14  Bruno Haible  <bruno@clisp.org>
34390
34391         * m4/memchr.m4: Mention also the bug on IA-64.
34392         * doc/posix-functions/memchr.texi: Likewise.
34393
34394 2009-06-12  Eric Blake  <ebb9@byu.net>
34395
34396         memchr: detect broken x86_64 and alpha implementations
34397         * modules/memchr-tests (Depends-on): Move mmap detection...
34398         * modules/memchr (Depends-on): ...here.
34399         (configure.ac): Set indicator.
34400         * lib/string.in.h (memchr): Declare replacement.
34401         * modules/string (Makefile.am): Trigger replacement.
34402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34403         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34404         bugs.
34405         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34406         * modules/getpagesize (License): Relax license.
34407
34408 2009-06-11  Bruno Haible  <bruno@clisp.org>
34409
34410         * lib/idpriv.h: Add more references.
34411
34412 2009-06-08  Bruno Haible  <bruno@clisp.org>
34413
34414         Tests for module 'idpriv-droptemp'.
34415         * modules/idpriv-droptemp-tests: New file.
34416         * tests/test-idpriv-droptemp.sh: New file.
34417         * tests/test-idpriv-droptemp.su.sh: New file.
34418         * tests/test-idpriv-droptemp.c: New file.
34419
34420         New module 'idpriv-droptemp'.
34421         * lib/idpriv-droptemp.c: New file.
34422         * modules/idpriv-droptemp: New file.
34423
34424 2009-06-08  Bruno Haible  <bruno@clisp.org>
34425
34426         Tests for module 'idpriv-drop'.
34427         * modules/idpriv-drop-tests: New file.
34428         * tests/test-idpriv-drop.sh: New file.
34429         * tests/test-idpriv-drop.su.sh: New file.
34430         * tests/test-idpriv-drop.c: New file.
34431
34432         New module 'idpriv-drop'.
34433         * lib/idpriv.h: New file.
34434         * lib-idpriv-drop.c: New file.
34435         * m4/idpriv.m4: New file.
34436         * modules/idpriv-drop: New file.
34437
34438 2009-06-08  Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34441         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34442         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34443         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34444         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34445         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34446         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34447
34448 2009-06-08  Eric Blake  <ebb9@byu.net>
34449
34450         test-strstr: use memory fence, when possible
34451         * tests/test-strstr.c (main): Use memory fence, in order to be
34452         more likely to trigger Debian bug 521737.
34453         * modules/strstr-tests (Files): Pull in additional files.
34454
34455         memchr: no longer obsolete, for wider field testing
34456         * modules/memchr (Status, Notice): Delete, this module is no
34457         longer obsolete.
34458         * modules/vasnprintf (Depends-on): Add memchr.
34459
34460 2009-06-07  Jim Meyering  <meyering@redhat.com>
34461
34462         hash: declare some functions with the warn_unused_result attribute
34463         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34464
34465 2009-06-07  Bruno Haible  <bruno@clisp.org>
34466
34467         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34468         Reported by Eric Blake.
34469
34470 2009-06-06  Eric Blake  <ebb9@byu.net>
34471
34472         test-alignof: fix typo with long double
34473         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34474         compiler error.
34475
34476 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34477
34478         Escape non-texinfo { and }s.
34479         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34480         markup error.
34481
34482 2009-06-04  Jim Meyering  <meyering@redhat.com>
34483
34484         gitlog-to-changelog: don't infloop on an empty commit log
34485         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34486         Reported by Boris Petersen <transacid@centerim.org>.
34487
34488 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34489
34490         version-etc: extend for packagers
34491         Add three new configure options, intended for packagers:
34492           --with-packager="packager name"
34493           --with-packager-version="packager-specific version"
34494           --with-packager-bug-reports="packager bug reporting"
34495         An example with coreutils:
34496           $ ./configure \
34497             --with-packager=Gentoo \
34498             --with-packager-bug-report=http://bugs.gentoo.org/ \
34499             --with-packager-version="patchset 1.6"
34500           $ ./src/ls --version | head -n2
34501           ls (GNU coreutils) 7.1-dirty
34502           Packaged by Gentoo (patchset 1.6)
34503         Note that the bug reporting info via --help doesn't show up because
34504         coreutils uses its own custom emit_bug_reporting_address() implementation
34505         in src/system.h.  If it didn't, it'd look like:
34506           $ ./src/ls --help | tail -n4
34507           Report bugs to <bug-coreutils@gnu.org>.
34508           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34509           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34510           General help using GNU software: <http://www.gnu.org/gethelp/>.
34511         * lib/version-etc.c: Print new information, if provided.
34512         * m4/version-etc.m4: New file.
34513         * modules/version-etc (Files): Add m4/version-etc.m4.
34514         (configure.ac): Add gl_VERSION_ETC.
34515
34516 2009-05-31  Bruno Haible  <bruno@clisp.org>
34517
34518         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34519         and 'int64_t'.
34520         * modules/alignof-tests (Dependencies): Add stdint.
34521         Reported by Eric Blake.
34522
34523 2009-05-31  Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34526         restriction due to compiler bugs.
34527         Reported by Eric Blake.
34528
34529 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34530             Bruno Haible  <bruno@clisp.org>
34531
34532         Fix test-alignof failure.
34533         * lib/alignof.h (alignof_slot): New macro.
34534         (alignof_type): New macro, with the same semantics as the previous
34535         'alignof'.
34536         (alignof): Alias to alignof_slot.
34537         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34538         check that the results are usable as constant expressions.
34539
34540 2009-05-31  Bruno Haible  <bruno@clisp.org>
34541
34542         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34543         * tests/test-memchr.c (main): Check that memchr does not read past the
34544         first occurrence of the byte.
34545         * tests/test-strstr.c (main): Update comment.
34546         Suggested by Eric Blake.
34547
34548 2009-05-30  Bruno Haible  <bruno@clisp.org>
34549
34550         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34551         detail how to use dumpbin.
34552         Reported by David Byron <dbyron@dbyron.com>.
34553
34554 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34555
34556         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34557
34558 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34559
34560         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34561
34562 2009-05-28  Bruno Haible  <bruno@clisp.org>
34563
34564         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34565         build-aux/ files.
34566
34567 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34568
34569         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34570
34571 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34572
34573         * gnulib-tool (sed_transform_main_lib_file)
34574         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34575         regexps.
34576
34577 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34578
34579         * tests/test-strstr.c: Add another self-test.
34580         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34581         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34582
34583 2009-05-23  Bruno Haible  <bruno@clisp.org>
34584
34585         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34586         change.
34587
34588 2009-05-21  Bruno Haible  <bruno@clisp.org>
34589
34590         Simplify use of mode_t varargs.
34591         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34592         uses 'mode_t' or 'int'.
34593         * lib/openat.c (openat): Likewise.
34594         * lib/open-safer.c (open_safer): Likewise.
34595         * m4/mode_t.m4: New file.
34596         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34597         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34598         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34599         * modules/open (Files): Add m4/mode_t.m4.
34600         * modules/openat (Files): Likewise.
34601         * modules/fcntl-safer (Files): Likewise.
34602         Suggested by Eric Blake.
34603
34604 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34605
34606         * doc/glibc-functions/fallocate.texi: New file.
34607         * doc/gnulib.texi: Include it.
34608
34609 2009-05-21  Eric Blake  <ebb9@byu.net>
34610             Bruno Haible  <bruno@clisp.org>
34611
34612         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34613         invocations.
34614         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34615
34616 2009-05-21  Eric Blake  <ebb9@byu.net>
34617             Bruno Haible  <bruno@clisp.org>
34618
34619         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34620         include_next. Fix of 2008-11-20 commit.
34621         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34622         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34623         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34624         NEXT_MATH_H.
34625         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34626         instead of NEXT_MATH_H.
34627
34628 2009-05-21  Bruno Haible  <bruno@clisp.org>
34629
34630         Avoid redefinition warnings for SIZE_MAX.
34631         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34632         Reported by Simon Josefsson.
34633
34634 2009-05-21  Bruno Haible  <bruno@clisp.org>
34635
34636         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34637         AC_CACHE_VAL.
34638
34639 2009-05-20  Bruno Haible  <bruno@clisp.org>
34640
34641         Make zeroptr.h work on mingw.
34642         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34643         mprotect.
34644         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34645         * modules/memchr2-tests (configure.ac): Likewise.
34646         * modules/memcmp-tests (configure.ac): Likewise.
34647         * modules/memmem-tests (configure.ac): Likewise.
34648         * modules/memrchr-tests (configure.ac): Likewise.
34649         Reported by Simon Josefsson.
34650
34651 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34652
34653         * tests/test-glob.c: Include string.h for strcmp prototype.
34654
34655 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34656
34657         * modules/getdelim (Depends-on): Add explicit stdint, although it
34658         was implicitly already pulled in via realloc-posix.
34659         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34660
34661 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34662
34663         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34664         G. Christensen" <tgc@jupiterrise.com>.
34665         * m4/sys_socket_h.m4: Check for sa_family_t.
34666         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34667         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34668         * tests/test-sys_socket.c: Check that sa_family_t works.
34669
34670 2009-05-18  Eric Blake  <ebb9@byu.net>
34671
34672         maint.mk: allow gnulib_dir in VPATH build
34673         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34674
34675 2009-05-15  Jim Meyering  <meyering@redhat.com>
34676
34677         maint.mk: Give gnulib_dir a default definition.
34678         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34679         Thus, most packages no longer need to specify this variable in cfg.mk
34680
34681 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34682
34683         rename.m4: fix typos that would make non-mingw cross-configure fail
34684         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34685
34686 2009-05-13  Eric Blake  <ebb9@byu.net>
34687
34688         mmap-anon: avoid out-of-order autoconf expansion
34689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34690         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34691         * modules/memchr-tests (Depends-on): Add extensions.
34692         * modules/memchr2-tests (Depends-on): Add extensions.
34693         * modules/memcmp-tests (Depends-on): Add extensions.
34694         * modules/memmem-tests (Depends-on): Add extensions.
34695         * modules/memrchr-tests (Depends-on): Add extensions.
34696
34697 2009-05-13  Bruno Haible  <bruno@clisp.org>
34698
34699         Make some tests ISO C 99 compliant.
34700         * tests/zerosize-ptr.h: New file.
34701         * tests/test-memchr.c: Include zerosize-ptr.h.
34702         (main): Use a zero-size object pointer instead of NULL.
34703         * tests/test-memchr2.c: Include zerosize-ptr.h.
34704         (main): Use a zero-size object pointer instead of NULL.
34705         * tests/test-memcmp.c: Include zerosize-ptr.h.
34706         (main): Use a zero-size object pointer instead of NULL.
34707         * tests/test-memmem.c: Include zerosize-ptr.h.
34708         (main): Use a zero-size object pointer instead of NULL.
34709         * tests/test-memrchr.c: Include zerosize-ptr.h.
34710         (main): Use a zero-size object pointer instead of NULL.
34711         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34712         m4/mmap-anon.m4.
34713         (Depends-on): Add getpagesize.
34714         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34715         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34716         m4/mmap-anon.m4.
34717         (Depends-on): Add getpagesize.
34718         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34719         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34720         m4/mmap-anon.m4.
34721         (Depends-on): Add getpagesize.
34722         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34723         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34724         m4/mmap-anon.m4.
34725         (Depends-on): Add getpagesize.
34726         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34727         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34728         m4/mmap-anon.m4.
34729         (Depends-on): Add getpagesize.
34730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34731
34732 2009-05-12  Bruno Haible  <bruno@clisp.org>
34733
34734         Tests for module 'alignof'.
34735         * modules/alignof-tests: New file.
34736         * tests/test-alignof.c: New file.
34737
34738 2009-05-12  Bruno Haible  <bruno@clisp.org>
34739
34740         Fix alignof macro.
34741         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34742         vendor compilers that are always correct.
34743
34744 2009-05-12  Bruno Haible  <bruno@clisp.org>
34745
34746         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34747         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34748         not whether its fully works.
34749
34750 2009-05-12  Bruno Haible  <bruno@clisp.org>
34751
34752         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34753
34754 2009-05-12  Jim Meyering  <meyering@redhat.com>
34755
34756         * top/maint.mk: Adjust backslash alignment.
34757
34758 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34759
34760         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34761
34762 2009-05-11  Eric Blake  <ebb9@byu.net>
34763
34764         argp: avoid undefined behavior
34765         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34766         macros.
34767
34768 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34769
34770         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34771         user.name to prevent git commit from complaining.
34772
34773 2009-05-10  Bruno Haible  <bruno@clisp.org>
34774
34775         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34776         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34777         it rewrites every file name only once.
34778         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34779
34780 2009-05-08  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34783         instead of 'max'.
34784
34785 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34786
34787         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34788         sockaddr_storage test.
34789
34790 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34791
34792         * modules/sys_socket (Makefile.am): Substitute
34793         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34794         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34795         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34796         * tests/test-sys_socket.c: Check sockaddr_storage.
34797
34798 2009-05-08  Bruno Haible  <bruno@clisp.org>
34799
34800         New module 'alignof'.
34801         * lib/alignof.h: New file.
34802         * modules/alignof: New file.
34803
34804 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34805             Bruno Haible  <bruno@clisp.org>
34806
34807         Fix test-file-has-acl on FreeBSD.
34808         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34809         mask is implicitly added.
34810         * tests/test-file-has-acl.c: Include <signal.h>.
34811         (main): Terminate the test after 5 seconds.
34812         * modules/acl-tests (configure.ac): Check for alarm function.
34813
34814 2009-05-04  Bruno Haible  <bruno@clisp.org>
34815
34816         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34817         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34818         * modules/errno (configure.ac): Drop AC_REQUIRE.
34819         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34820         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34821
34822 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34823
34824         * modules/glob-tests: New module.
34825         * tests/test-glob.c: Add.
34826
34827 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34828
34829         * modules/fnmatch-tests: New module.
34830         * tests/test-fnmatch.c: Add.
34831
34832 2009-05-04  Eric Blake  <ebb9@byu.net>
34833
34834         maint: make the new no-submodule-changes rule VPATH-safe
34835         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34836
34837 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34838             Bruno Haible  <bruno@clisp.org>
34839
34840         acl: Fix infinite loop on FreeBSD.
34841         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34842         of return value from acl_get_entry.
34843         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34844         Likewise.
34845
34846 2009-05-03  Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/acl-internal.h (acl_entries): Clarify return value.
34849         * lib/acl_entries.c (acl_entries): Likewise.
34850
34851 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34852
34853         Bug fix in acl module.
34854         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34855
34856 2009-05-03  Bruno Haible  <bruno@clisp.org>
34857
34858         Create gperf-generated file in the source dir, not in the build dir.
34859         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34860         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34861         * modules/unicase/locale-language (unicase/locale-languages.h):
34862         Likewise.
34863         * modules/unicase/special-casing (unicase/special-casing-table.h):
34864         Likewise.
34865         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34866         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34867         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34868         Reported by Ralf Wildenhues.
34869
34870 2009-05-03  Bruno Haible  <bruno@clisp.org>
34871
34872         * modules/fnmatch (Description, configure.ac): Taken from
34873         fnmatch-posix.
34874         * modules/fnmatch-posix: Turn into a symbolic reference to the
34875         'fnmatch' module, and deprecate.
34876         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34877
34878 2009-05-03  Bruno Haible  <bruno@clisp.org>
34879
34880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34881         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34882         Reported by Ralf Wildenhues.
34883
34884 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34885
34886         * m4/fnmatch.m4: Fix fnmatch re-define.
34887
34888 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34889
34890         priv-set: new module and tests; adapt write-any-file
34891         * lib/priv-set.c: New file.
34892         * lib/priv-set.h: New file.
34893         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34894         * lib/write-any-file.c: Simplify by using priv-set module.
34895         * m4/priv-set.m4: New file.
34896         * modules/priv-set: New file.
34897         * modules/unlinkdir: Add dependency on priv-set module.
34898         * modules/write-any-file: Likewise.
34899
34900         Tests for module 'priv-set'.
34901         * modules/priv-set-tests: New file.
34902         * tests/test-priv-set.c: New file.
34903
34904 2009-05-03  Jim Meyering  <meyering@redhat.com>
34905             Bruno Haible  <bruno@clisp.org>
34906
34907         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34908         use the converted UTF-8 variant of the name instead.
34909
34910 2009-05-03  Jim Meyering  <meyering@redhat.com>
34911
34912         tests: tighten some getdate tests
34913         * tests/test-getdate.c (main): Tighten tests: require equality,
34914         not just greater than.  Set TZ envvar to UTC0.
34915
34916 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34917
34918         getdate: correctly interpret "next monday" when run on a Monday
34919         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34920         that e.g., "next tues" (when run on a tuesday) results in a date
34921         that is one week in the future, and not today's date.
34922         I.e., add a week when the wday is the same as the current one.
34923         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34924         and earlier by Martin Bernreuther and Jan Minář.
34925         * tests/test-getdate.c (main): Check that "next DAY" is always in
34926         the future and that "last DAY" is always in the past.
34927
34928 2009-05-02  Jim Meyering  <meyering@redhat.com>
34929
34930         build: ensure that a release build fails when a submodule is unclean
34931         * top/maint.mk (no-submodule-changes): New rule.
34932         (alpha beta major): Depend on it.
34933
34934 2009-05-02  Bruno Haible  <bruno@clisp.org>
34935
34936         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34937         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34938         shell variable gl_fnmatch_required to detect which variant is
34939         requested.
34940         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34941         gl_FUNC_FNMATCH_POSIX.
34942         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34943         exclude fnmatch-posix.
34944
34945 2009-05-02  Bruno Haible  <bruno@clisp.org>
34946
34947         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34948         * modules/mbsrtowcs (License): Change to LGPLv2+.
34949         * modules/strnlen1 (License): Likewise.
34950         Reported by Simon Josefsson.
34951
34952 2009-05-02  Bruno Haible  <bruno@clisp.org>
34953
34954         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34955         "cross".
34956         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34957         gnulib-tool was called with option --source-base=lib.
34958
34959 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34960
34961         Use automake *-local hooks without commands, for extensibility.
34962         * modules/localcharset (Makefile.am): Rename install-exec-local
34963         rule to install-exec-localcharset, and make it a prerequisite of
34964         install-exec-local.  Likewise, rename the uninstall-local rule to
34965         uninstall-localcharset, and make it a prerequisite of the former.
34966
34967 2009-05-01  Bruno Haible  <bruno@clisp.org>
34968
34969         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34970         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34971         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34973         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34974         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34975         m4/locale-zh.m4, m4/codeset.m4.
34976
34977         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34978         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34979         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34980         m4/locale-zh.m4.
34981
34982         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34983         REPLACE_WCRTOMB if mbstate_t must be replaced.
34984         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34985         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34986
34987 2009-05-01  Bruno Haible  <bruno@clisp.org>
34988
34989         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34990         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34991         dngettext, dcngettext, textdomain, bindtextdomain,
34992         bind_textdomain_codeset): Undefine before redefining.
34993
34994 2009-04-30  Bruno Haible  <bruno@clisp.org>
34995
34996         Fix bug introduced on 2009-04-25.
34997         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34998         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34999         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35000         is defined.
35001         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35002         is defined.
35003         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35004         is defined.
35005         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35006
35007 2009-04-28  Bruno Haible  <bruno@clisp.org>
35008
35009         Comment tweaks.
35010         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35011         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35012         * lib/unicase.h (u*_casexfrm): Likewise.
35013         Reported by Paolo Bonzini.
35014
35015 2009-04-28  Bruno Haible  <bruno@clisp.org>
35016
35017         Fix a compilation error.
35018         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35019         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35020         Reported by Jim Meyering.
35021
35022 2009-04-27  Bruno Haible  <bruno@clisp.org>
35023
35024         New module 'libunistring'.
35025         * modules/libunistring: New file.
35026         * m4/libunistring.m4: New file.
35027         * MODULES.html.sh (Unicode string functions): Add it.
35028
35029 2009-04-27  Eric Blake  <ebb9@byu.net>
35030
35031         maint.mk: allow package-specific header to provide <config.h>
35032         * top/maint.mk (sc_require_config_h): New variable.
35033         (sc_require_config_h, sc_require_config_h_first): Use it.
35034
35035 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35036
35037         * top/maint.mk (sc_avoid_if_before_free): Except
35038         useless-if-before-free script.
35039
35040 2009-04-27  Eric Blake  <ebb9@byu.net>
35041
35042         maintainer-makefile: depend on all required helper scripts
35043         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35044         useless-if-before-free.
35045         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35046         version, rather than assuming gnulib checkout is available.
35047         Reported by Simen Josefsson.
35048
35049 2009-04-26  Bruno Haible  <bruno@clisp.org>
35050
35051         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35052         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35053         "../" or "..".
35054
35055 2009-04-26  Bruno Haible  <bruno@clisp.org>
35056
35057         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35058         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35059         AC_LIB_HAVE_LINKFLAGS.
35060
35061 2009-04-26  Bruno Haible  <bruno@clisp.org>
35062
35063         Simplify calling convention of u*_conv_from_encoding.
35064         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35065         u32_conv_from_encoding): Expect a resultbuf argument and return the
35066         result directly as a pointer.
35067         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35068         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35069         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35070         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35071         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35072         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35073         Update.
35074         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35075         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35076         * lib/vasnprintf.c (VASNPRINTF): Update.
35077         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35078         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35079         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35080         * NEWS: Mention the change.
35081
35082 2009-04-26  Bruno Haible  <bruno@clisp.org>
35083
35084         Simplify calling convention of u*_conv_to_encoding.
35085         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35086         u32_conv_to_encoding): Expect a resultbuf argument and return the
35087         result directly as a pointer.
35088         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35089         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35090         freeing scaled_offsets if mem_iconveha failed.
35091         * lib/unicase/u-casexfrm.h (FUNC): Update.
35092         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35093         * lib/vasnprintf.c (VASNPRINTF): Update.
35094         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35095         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35096         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35097         * NEWS: Mention the change.
35098
35099 2009-04-26  Bruno Haible  <bruno@clisp.org>
35100
35101         Avoid test failures on AIX and OSF/1.
35102         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35103         malloc(0).
35104         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35105         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35106         Likewise.
35107         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35108         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35109         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35110         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35111         * doc/posix-functions/malloc.texi: Document the portability problem
35112         related to malloc(0).
35113
35114 2009-04-26  Bruno Haible  <bruno@clisp.org>
35115
35116         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35117         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35118         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35119
35120 2009-04-25  Bruno Haible  <bruno@clisp.org>
35121
35122         Avoid link error when creating a namespace clean library.
35123         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35124         as macro with arguments if already defined as an alias.
35125         * lib/signbitf.c (gl_signbitf): Don't undefine.
35126         * lib/signbitd.c (gl_signbitd): Don't undefine.
35127         * lib/signbitl.c (gl_signbitl): Don't undefine.
35128
35129 2009-04-25  Jim Meyering  <meyering@redhat.com>
35130
35131         vc-list-files: fix another quoting bug
35132         * build-aux/vc-list-files: Avoid sed backslash expansion
35133         of pathological directory names.
35134
35135 2009-04-25  Eric Blake  <ebb9@byu.net>
35136
35137         vc-list-files: fix shell quoting error
35138         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35139         timestamp.
35140
35141 2009-04-25  Jim Meyering  <meyering@redhat.com>
35142
35143         vc-list-files: restore lost functionality with subdir argument
35144         * build-aux/vc-list-files: When given a non-"." sub-directory
35145         argument, substitute the $dir/ prefix back onto each resulting name.
35146         Otherwise, coreutils' root_tests check would fail.
35147
35148 2009-04-24  Eric Blake  <ebb9@byu.net>
35149
35150         vc-list-files: ignore git symlinks
35151         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35152         than ls-files, to ignore git symlinks.
35153
35154         maint.mk: import improvements from m4
35155         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35156         (move_if_change): Delete unused macro.
35157         (news-date-check, vc-diff-check): Support VPATH builds.
35158         (announcement): Likewise.  Split --bootstrap-tools list...
35159         (boostrap-tools): ...into separate list, which can be overridden
35160         in cfg.mk.
35161         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35162         requiring dependency on useless-if-before-free module.
35163         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35164         Support VPATH builds.
35165
35166 2009-04-24  Jim Meyering  <meyering@redhat.com>
35167
35168         maint.mk: remove coreutils-specific rules and variables
35169         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35170         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35171         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35172
35173         maint.mk: remove obsolete rule
35174         * top/maint.mk (rel-check): Remove rule.
35175         (WGET, WGETFLAGS): Remove now-unused variables.
35176
35177 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35178
35179         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35180         consistency.
35181
35182         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35183         '$(PATH_SEPARATOR)' instead of ':'.
35184
35185 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35186
35187         * lib/getopt1.c (main): Use 'const' for static array.
35188
35189 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35190
35191         * top/maint.mk: Sync with coreutils.
35192         * NEWS: Explain incompatibilities.
35193
35194 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35195             Bruno Haible  <bruno@clisp.org>
35196
35197         Fix cross-compilation results.
35198         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35199         statement, as third argument of AC_TRY_RUN.
35200         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35201         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35202         Likewise.
35203         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35204         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35205         Likewise.
35206         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35207         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35208         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35209
35210 2009-04-20  Bruno Haible  <bruno@clisp.org>
35211
35212         Avoid test failure on mingw.
35213         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35214
35215 2009-04-20  Bruno Haible  <bruno@clisp.org>
35216
35217         Avoid compilation error on mingw.
35218         * modules/localename-tests (Depends-on): Add locale.
35219
35220 2009-04-19  Bruno Haible  <bruno@clisp.org>
35221
35222         Support for building a shared library on Windows platforms.
35223         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35224         (main): Test the presence of UNINORM_NFC here.
35225         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35226         (main): Test the presence of UNINORM_NFD here.
35227         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35228         (main): Test the presence of UNINORM_NFKC here.
35229         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35230         (main): Test the presence of UNINORM_NFKD here.
35231
35232 2009-04-19  Bruno Haible  <bruno@clisp.org>
35233
35234         Avoid a compiler warning.
35235         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35236         Change type of variable 'sequence'.
35237
35238 2009-04-19  Bruno Haible  <bruno@clisp.org>
35239
35240         * modules/configmake (Makefile.am): When the contents of configmake.h
35241         does not change, arrange to preserve its modification time.
35242
35243 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35244
35245         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35246         gettext domain.
35247
35248 2009-04-16  Jim Meyering  <meyering@redhat.com>
35249
35250         useless-if-before-free: improve conversion code
35251         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35252         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35253
35254 2009-04-14  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/fcntl (Depends-on): Add extensions.
35257         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35258
35259 2009-04-12  Ben Pfaff  <blp@gnu.org>
35260
35261         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35262         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35263
35264 2009-03-20  Ben Pfaff  <blp@gnu.org>
35265
35266         Make rename replace existing destinations on Windows.
35267         * m4/rename.m4: Add test for Mingw.
35268         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35269         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35270         * doc/posix-functions/rename.texi: Document.
35271
35272 2009-04-10  Bruno Haible  <bruno@clisp.org>
35273
35274         New include file "iconveh.h".
35275         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35276         * lib/striconveh.h: Include it.
35277         (enum iconv_ilseq_handler): Remove definition.
35278         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35279         striconveh.h.
35280         * lib/striconveha.c: Include striconveh.h.
35281         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35282         * modules/striconveh (Files): Add lib/iconveh.h.
35283         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35284         lib/striconveh.h.
35285
35286 2009-04-10  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/uniconv.h: Update comment.
35289
35290 2009-04-10  Bruno Haible  <bruno@clisp.org>
35291
35292         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35293         always.
35294         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35295         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35296         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35297         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35298         "unistring-notinline.h", so that the function gets defined always.
35299         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35300         * lib/unistr/u8-uctomb.c: Likewise.
35301         * lib/unistr/u16-mbtouc.c: Likewise.
35302         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35303         * lib/unistr/u16-uctomb.c: Likewise.
35304         * lib/unistr/u32-mbtouc.c: Likewise.
35305         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35306         * lib/unistr/u32-uctomb.c: Likewise.
35307
35308 2009-04-10  Bruno Haible  <bruno@clisp.org>
35309
35310         Mark 'utime' obsolete.
35311         * modules/utime (Status, Notice): New sections.
35312         Suggested by Jim Meyering.
35313
35314         Fix cross-compile guess for utime test.
35315         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35316         autoconf.
35317         * doc/posix-functions/utime.texi: Give more precisions.
35318         Reported by Jan <ipif@ymail.com>.
35319
35320 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35321
35322         filevercmp: correct today's change
35323         * lib/filevercmp.c: Also handle coreutils' test inputs.
35324         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35325
35326         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35327         for reporting it.
35328         * lib/filevercmp.c: Special handle for "", "." and "..".
35329         * tests/test-filevercmp.c: Enlarge the set suite.
35330
35331 2009-04-07  Jim Meyering  <meyering@redhat.com>
35332
35333         useless-if-before-free: show how to remove braced useless free, too
35334         * build-aux/useless-if-before-free: still only in a comment, though.
35335
35336 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35337
35338         maint.mk: import changes to syntax-check macros from coreutils
35339         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35340         Use them in the relevant macros.
35341
35342 2009-04-06  Bruno Haible  <bruno@clisp.org>
35343
35344         Fix unportable use of bit-fields.
35345         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35346         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35347         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35348
35349 2009-04-06  Bruno Haible  <bruno@clisp.org>
35350
35351         Avoid test failures on AIX and OSF/1.
35352         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35353         that malloc(0) = NULL.
35354         * tests/unicase/test-u8-tolower.c (check): Likewise.
35355         * tests/unicase/test-u8-totitle.c (check): Likewise.
35356         * tests/unicase/test-u8-toupper.c (check): Likewise.
35357         * tests/unicase/test-u16-casefold.c (check): Likewise.
35358         * tests/unicase/test-u16-tolower.c (check): Likewise.
35359         * tests/unicase/test-u16-totitle.c (check): Likewise.
35360         * tests/unicase/test-u16-toupper.c (check): Likewise.
35361         * tests/unicase/test-u32-casefold.c (check): Likewise.
35362         * tests/unicase/test-u32-tolower.c (check): Likewise.
35363         * tests/unicase/test-u32-totitle.c (check): Likewise.
35364         * tests/unicase/test-u32-toupper.c (check): Likewise.
35365         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35366         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35367         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35368         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35369         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35370         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35371         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35372         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35373         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35374         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35375         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35376         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35377
35378 2009-04-05  Bruno Haible  <bruno@clisp.org>
35379
35380         Work around an autoconf limitation.
35381         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35382         comment line if it would be longer than 3 KB.
35383
35384 2009-04-05  Bruno Haible  <bruno@clisp.org>
35385
35386         Avoid test failure with libiconv-1.13.
35387         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35388         of the expected test results.
35389
35390 2009-04-05  Bruno Haible  <bruno@clisp.org>
35391
35392         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35393         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35394         that it should be installed.
35395
35396 2009-04-05  Bruno Haible  <bruno@clisp.org>
35397
35398         * gnulib-tool: New option --copy-file.
35399         (func_usage): Document it.
35400         (func_dest_tmpfilename): Moved out of func_import.
35401         (func_add_file, func_update_file): New functions, extracted from
35402         func_import.
35403         (func_import): Update.
35404
35405 2009-04-05  Karl Berry  <karl@gnu.org>
35406
35407         * README: prominently mention gnulib-tool.
35408         Rearrange sections so getting the code is near the top.
35409
35410 2009-04-05  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/unicase.h: Mention u*_cmp2.
35413         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35414         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35415         * lib/unicase/ulc-casecmp.c: Likewise.
35416         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35417         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35418         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35419         unistr/u8-cmp.
35420         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35421         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35422         unistr/u16-cmp.
35423         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35424         unistr/u32-cmp.
35425
35426         * lib/uninorm.h: Mention u*_cmp2.
35427         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35428         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35429         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35430         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35431         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35432         unistr/u8-cmp.
35433         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35434         unistr/u16-cmp.
35435         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35436         unistr/u32-cmp.
35437
35438         New module 'unistr/u32-cmp2'.
35439         * lib/unistr/u32-cmp2.c: New file.
35440         * modules/unistr/u32-cmp2: New file.
35441
35442         New module 'unistr/u16-cmp2'.
35443         * lib/unistr/u16-cmp2.c: New file.
35444         * modules/unistr/u16-cmp2: New file.
35445
35446         New module 'unistr/u8-cmp2'.
35447         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35448         * lib/unistr/u8-cmp2.c: New file.
35449         * lib/unistr/u-cmp2.h: New file.
35450         * modules/unistr/u8-cmp2: New file.
35451
35452 2009-04-05  Bruno Haible  <bruno@clisp.org>
35453
35454         * lib/unictype.h (uc_property_is_valid): New macro.
35455         * tests/unictype/test-pr_byname.c (main): Use it.
35456
35457         * lib/unistr.h: Doc fixes.
35458         * lib/uniconv.h: Doc fixes.
35459         * lib/unictype.h: Doc fixes.
35460
35461 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35462
35463         Port coreutils 7.2 to Solaris 8.
35464
35465         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35466         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35467         for Solaris 8.  This is a bit of a hack, as it means it's the
35468         caller's responsibility to add -lnsl if needed, but most likely it
35469         won't be needed since only getaddrinfo uses this and getaddrinfo
35470         isn't needed on Solaris 8.
35471
35472         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35473         problem to Solaris 8 encountered with coreutils 7.2, which
35474         resulted in a message "fnmatch.c:292: warning: passing argument 4
35475         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35476         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35477
35478 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35479
35480         * m4/ld-version-script.m4: Add FIXME comment.
35481
35482 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35483
35484         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35485         SOVERSION variable.
35486
35487 2009-04-02  Bruno Haible  <bruno@clisp.org>
35488
35489         * Makefile (info, html, dvi, pdf): Combine the rules.
35490         Suggested by Jim Meyering.
35491
35492 2009-04-01  Bruno Haible  <bruno@clisp.org>
35493
35494         * Makefile (info, html, dvi, pdf): New targets.
35495         Reported by Reuben Thomas <rrt@sc3d.org>.
35496
35497 2009-04-01  Bruno Haible  <bruno@clisp.org>
35498
35499         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35500         can be put into PATH.
35501         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35502
35503 2009-04-01  Bruno Haible  <bruno@clisp.org>
35504
35505         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35506
35507 2009-04-01  Bruno Haible  <bruno@clisp.org>
35508
35509         Rename module 'visibility'.
35510         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35511         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35512         * doc/gnulib.texi: Update.
35513         * MODULES.html.sh (Misc): Update.
35514         * NEWS: Mention the change.
35515
35516 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35517
35518         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35519         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35520         Eric Blake <ebb9@byu.net> for review.
35521         * MODULES.html.sh: Add lib-msvc-compat.
35522         * doc/gnulib.texi: Link to new section.
35523         * m4/ld-output-def.m4: New file.
35524         * doc/ld-output-def.texi: New file.
35525
35526 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35527
35528         Rename ld-version-script to lib-symbol-versions.  Suggested by
35529         Bruno Haible <bruno@clisp.org>.
35530         * modules/ld-version-script: Renamed to lib-symbol-versions.
35531         * doc/ld-version-script.texi: Fix module name.
35532         * MODULES.html.sh: Add lib-symbol-versions.
35533
35534 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35535
35536         * modules/u64-tests: New file.
35537         * tests/test-u64.c: New file.
35538
35539 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35540
35541         * MODULES.html.sh: Mention u64.
35542         * modules/u64: New module.
35543         * modules/crypto/sha512: Depend on u64 module instead of providing
35544         u64.h.
35545
35546 2009-03-27  Eric Blake  <ebb9@byu.net>
35547
35548         test-strerror: make debugging EAI_SYSTEM easier
35549         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35550         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35551         failure was EAI_SYSTEM.
35552
35553 2009-03-25  Bruno Haible  <bruno@clisp.org>
35554
35555         Fix a problem with --enable-relocatable on Solaris 7.
35556         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35557         since 2008-02-24.
35558
35559 2009-03-25  Eric Blake  <ebb9@byu.net>
35560
35561         test-sockets: avoid gcc warning
35562         * tests/test-sockets.c (main): Silence compiler warning.
35563
35564 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35565
35566         New modules nproc, pthread, contributed by Glen Lenker.
35567
35568         * MODULES.html.sh: Add pthread, nproc.
35569         * lib/nproc.c: New file.
35570         * lib/nproc.h: New file.
35571         * lib/pthread.in.h: New file.
35572         * m4/pthread.m4: New file.
35573         * modules/nproc: New file.
35574         * modules/pthread: New file.
35575
35576 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35577
35578         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35579         New variable.
35580
35581 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35582
35583         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35584         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35585         * tests/test-filevercmp.c: Add tests for backup suffixes.
35586
35587 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35588
35589         * modules/stdlib (Depends-on): Add stdint, needed when defining
35590         struct random_data on, for example, HP-UX 10.20.  Reported by
35591         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35592
35593 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35594
35595         * lib/readline.c (readline): Call fflush on stdout after printing
35596         prompt.
35597
35598 2009-03-20  Bruno Haible  <bruno@clisp.org>
35599
35600         Remove dependency from 'close' module to -lws2_32 on native Windows.
35601         * lib/close-hook.h: New file.
35602         * lib/close-hook.c: New file.
35603         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35604         w32sock.h.
35605         (_gl_close_fd_maybe_socket): Remove function.
35606         (rpl_close): Invoke execute_all_close_hooks instead of
35607         _gl_close_fd_maybe_socket.
35608         * lib/sockets.c: Include close-hook.h, w32sock.h.
35609         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35610         (close_sockets_hook): New variable.
35611         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35612         (gl_sockets_cleanup): Unregister it.
35613         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35614         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35615         * modules/close-hook: New file.
35616         * modules/close (Files): Remove lib/w32sock.h.
35617         (Depends-on): Add close-hook.
35618         (Link): Remove section.
35619         * modules/sockets (Files): Add lib/w32sock.h.
35620         (Depends-on): Add close-hook.
35621         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35622         invocation.
35623         * NEWS: Mention that LIB_CLOSE is gone.
35624
35625 2009-03-23  Eric Blake  <ebb9@byu.net>
35626
35627         signal-tests: test previous patch
35628         * tests/test-signal.c: New file.
35629         * modules/signal-tests: Likewise.
35630
35631         signal.h: always support 'volatile sig_atomic_t'
35632         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35633         (gl_SIGNAL_H_DEFAULTS): Add a default.
35634         * modules/signal (Makefile.am): Substitute if needed.
35635         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35636         users can blindly add volatile.
35637         * doc/posix-headers/signal.texi (signal.h): Document it.
35638         Reported by Matthew Woehlke.
35639
35640 2009-03-23  Jim Meyering  <meyering@redhat.com>
35641
35642         pathmax: PATH_MAX: use pathconf only when available
35643         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35644         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35645         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35646         This avoids a link failure in a PSP cross-compilation environment
35647         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35648
35649         * lib/vasnprintf.c (divide): Fix typo in comment.
35650
35651 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35652
35653         * gnulib-tool (func_filter_filelist): Fix comment.
35654
35655 2009-03-20  Bruno Haible  <bruno@clisp.org>
35656
35657         Make sockets.h self-contained.
35658         * lib/sockets.c: Include sockets.h first.
35659         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35660
35661 2009-03-19  Eric Blake  <ebb9@byu.net>
35662
35663         doc: mention more functions added in cygwin 1.7.0
35664         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35665         addition.
35666         * doc/posix-functions/log2f.texi: Likewise.
35667
35668 2009-03-19  Jim Meyering  <meyering@redhat.com>
35669
35670         fsusage: avoid syntax error due to statement-before-declaration
35671         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35672         after all declarations.  Reported by Matthew Woehlke in
35673         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35674
35675 2009-03-18  Eric Blake  <ebb9@byu.net>
35676
35677         build-aux/compile: sync from automake
35678         * build-aux/compile: New file, from automake.
35679         * config/srclist.txt: Mention build-aux/compile.
35680
35681 2009-03-17  Bruno Haible  <bruno@clisp.org>
35682
35683         * lib/git-merge-changelog.c: Fix typo in comment.
35684         Reported by Reuben Thomas <rrt@sc3d.org>.
35685
35686 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35687
35688         * m4/regex.m4: update and improve help for
35689         --without-included-regex.
35690
35691 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35692
35693         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35694         failure on missing include files.
35695
35696 2009-03-17  Eric Blake  <ebb9@byu.net>
35697
35698         doc: mention more functions added in cygwin 1.7.0
35699         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35700         addition.
35701         * doc/posix-functions/fwscanf.texi: Likewise.
35702         * doc/posix-functions/swprintf.texi: Likewise.
35703         * doc/posix-functions/swscanf.texi: Likewise.
35704         * doc/posix-functions/vfwprintf.texi: Likewise.
35705         * doc/posix-functions/vfwscanf.texi: Likewise.
35706         * doc/posix-functions/vswprintf.texi: Likewise.
35707         * doc/posix-functions/vswscanf.texi: Likewise.
35708         * doc/posix-functions/vwprintf.texi: Likewise.
35709         * doc/posix-functions/vwscanf.texi: Likewise.
35710         * doc/posix-functions/wcscasecmp.texi: Likewise.
35711         * doc/posix-functions/wcsdup.texi: Likewise.
35712         * doc/posix-functions/wcsftime.texi: Likewise.
35713         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35714         * doc/posix-functions/wprintf.texi: Likewise.
35715         * doc/posix-functions/wscanf.texi: Likewise.
35716         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35717
35718 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35719
35720         maint.mk: really add $(AM_MAKEFLAGS)
35721         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35722         was inadvertently omitted in the last commit.
35723         Spotted by Bruno Haible.
35724
35725         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35726         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35727         $(AM_MAKEFLAGS)' rather than plain `make'.
35728
35729         gnulib-tool: execute $MAKE not make
35730         * gnulib-tool: Default $MAKE to 'make'.
35731         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35732         than make.  Initialize $MAKE in the do-autobuild script.
35733
35734         gnulib-tool: use $MAKE not make in generated files
35735         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35736         make, in generated files.  Initialize $MAKE in the do-autobuild
35737         script.
35738
35739         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35740
35741         GNUmakefile: disable parallelism only for multiple, recursive targets
35742         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35743         additions in the Makefile.
35744         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35745         by Automake.
35746         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35747         are listed on the command line and at least one of them is
35748         listed in $(ALL_RECURSIVE_TARGETS).
35749
35750 2009-03-14  Bruno Haible  <bruno@clisp.org>
35751
35752         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35753         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35754         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35755         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35756         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35757         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35758         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35759         unistr/u8-uctomb.
35760         * modules/unistr/u8-strchr (Depends-on): Likewise.
35761         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35762         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35763         unistr/u16-uctomb.
35764         * modules/unistr/u16-strchr (Depends-on): Likewise.
35765         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35766
35767 2009-03-12  Bruno Haible  <bruno@clisp.org>
35768
35769         Work around select() bug on Interix 3.5.
35770         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35771         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35772         * m4/select.m4: New file.
35773         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35774         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35775         * modules/select (Files): Add m4/select.m4.
35776         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35777         * modules/nanosleep (Depends-on): Add select.
35778         * modules/poll (Depends-on): Likewise.
35779         * doc/posix-functions/select.texi: Mention the Interix bug.
35780         Reported by Markus Duft <mduft@gentoo.org>.
35781
35782         * lib/select.c: Renamed from lib/winsock-select.c.
35783         * modules/select (Files): Add lib/select.c, remove
35784         lib/winsock-select.c.
35785         (configure.ac): Update.
35786
35787 2009-03-12  Jim Meyering  <meyering@redhat.com>
35788
35789         avoid gcc warnings about unused macro definitions
35790         * lib/readtokens.c (STREQ): Remove unused definition.
35791         * lib/xmalloc.c (SIZE_MAX): Likewise.
35792         * lib/openat-die.c (N_): Likewise.
35793         * lib/mountlist.c (SIZE_MAX): Remove definition.
35794         Instead, include <stdint.h>.
35795         * lib/readutmp.c: Likewise.
35796         * modules/readutmp (Depends-on): Add stdint.
35797         * modules/mountlist (Depends-on): Add stdint.
35798         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35799
35800 2009-03-10  Bruno Haible  <bruno@clisp.org>
35801
35802         Tests for module 'mbmemcasecoll'.
35803         * modules/mbmemcasecoll-tests: New file.
35804         * tests/test-mbmemcasecoll1.sh: New file.
35805         * tests/test-mbmemcasecoll2.sh: New file.
35806         * tests/test-mbmemcasecoll3.sh: New file.
35807         * tests/test-mbmemcasecoll.c: New file.
35808
35809         New module 'mbmemcasecoll'.
35810         * lib/mbmemcasecoll.h: New file.
35811         * lib/mbmemcasecoll.c: New file.
35812         * modules/mbmemcasecoll: New file.
35813
35814         * tests/test-mbmemcasecmp.h: New file, extracted from
35815         tests/test-mbmemcasecmp.c.
35816         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35817         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35818         (main): Update.
35819         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35820
35821 2009-03-09  Bruno Haible  <bruno@clisp.org>
35822
35823         Tests for module 'mbmemcasecmp'.
35824         * modules/mbmemcasecmp-tests: New file.
35825         * tests/test-mbmemcasecmp1.sh: New file.
35826         * tests/test-mbmemcasecmp2.sh: New file.
35827         * tests/test-mbmemcasecmp3.sh: New file.
35828         * tests/test-mbmemcasecmp.c: New file.
35829
35830         New module 'mbmemcasecmp'.
35831         * lib/mbmemcasecmp.h: New file.
35832         * lib/mbmemcasecmp.c: New file.
35833         * modules/mbmemcasecmp: New file.
35834
35835 2009-03-09  Bruno Haible  <bruno@clisp.org>
35836
35837         Tests for module 'unicase/ulc-casecoll'.
35838         * modules/unicase/ulc-casecoll-tests: New file.
35839         * tests/unicase/test-ulc-casecoll1.sh: New file.
35840         * tests/unicase/test-ulc-casecoll2.sh: New file.
35841         * tests/unicase/test-ulc-casecoll.c: New file.
35842
35843         New module 'unicase/ulc-casecoll'.
35844         * lib/unicase.h (ulc_casecoll): New declaration.
35845         * lib/unicase/ulc-casecoll.c: New file.
35846         * modules/unicase/ulc-casecoll: New file.
35847
35848         New module 'unicase/ulc-casexfrm'.
35849         * lib/unicase.h (ulc_casexfrm): New declaration.
35850         * lib/unicase/ulc-casexfrm.c: New file.
35851         * modules/unicase/ulc-casexfrm: New file.
35852
35853 2009-03-09  Bruno Haible  <bruno@clisp.org>
35854
35855         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35856         invocations.
35857
35858         * m4/mbscasecmp.m4: Remove file.
35859         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35860         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35861
35862         * m4/mbscasestr.m4: Remove file.
35863         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35864         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35865
35866         * m4/mbschr.m4: Remove file.
35867         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35868         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35869
35870         * m4/mbscspn.m4: Remove file.
35871         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35872         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35873
35874         * m4/mbslen.m4: Remove file.
35875         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35876         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35877
35878         * m4/mbsncasecmp.m4: Remove file.
35879         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35880         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35881
35882         * m4/mbsnlen.m4: Remove file.
35883         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35884         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35885
35886         * m4/mbspbrk.m4: Remove file.
35887         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35888         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35889
35890         * m4/mbspcasecmp.m4: Remove file.
35891         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35892         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35893
35894         * m4/mbsrchr.m4: Remove file.
35895         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35896         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35897
35898         * m4/mbssep.m4: Remove file.
35899         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35900         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35901
35902         * m4/mbsspn.m4: Remove file.
35903         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35904         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35905
35906         * m4/mbsstr.m4: Remove file.
35907         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35908         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35909
35910         * m4/mbstok_r.m4: Remove file.
35911         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35912         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35913
35914         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35915
35916         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35917         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35918
35919         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35920
35921 2009-03-08  Bruno Haible  <bruno@clisp.org>
35922
35923         Tests for module 'unicase/ulc-casecmp'.
35924         * modules/unicase/ulc-casecmp-tests: New file.
35925         * tests/unicase/test-ulc-casecmp1.sh: New file.
35926         * tests/unicase/test-ulc-casecmp2.sh: New file.
35927         * tests/unicase/test-ulc-casecmp.c: New file.
35928
35929         New module 'unicase/ulc-casecmp'.
35930         * lib/unicase.h (ulc_casecmp): New declaration.
35931         * lib/unicase/ulc-casecmp.c: New file.
35932         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35933         'const SRC_UNIT *'.
35934         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35935         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35936         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35937         * modules/unicase/ulc-casecmp: New file.
35938
35939         Tests for module 'unicase/u32-is-cased'.
35940         * modules/unicase/u32-is-cased-tests: New file.
35941         * tests/unicase/test-u32-is-cased.c: New file.
35942
35943         Tests for module 'unicase/u16-is-cased'.
35944         * modules/unicase/u16-is-cased-tests: New file.
35945         * tests/unicase/test-u16-is-cased.c: New file.
35946
35947         Tests for module 'unicase/u8-is-cased'.
35948         * modules/unicase/u8-is-cased-tests: New file.
35949         * tests/unicase/test-u8-is-cased.c: New file.
35950         * tests/unicase/test-is-cased.h: New file.
35951
35952         New module 'unicase/u32-is-cased'.
35953         * lib/unicase/u32-is-cased.c: New file.
35954         * modules/unicase/u32-is-cased: New file.
35955
35956         New module 'unicase/u16-is-cased'.
35957         * lib/unicase/u16-is-cased.c: New file.
35958         * modules/unicase/u16-is-cased: New file.
35959
35960         New module 'unicase/u8-is-cased'.
35961         * lib/unicase/u8-is-cased.c: New file.
35962         * lib/unicase/u-is-cased.h: New file.
35963         * modules/unicase/u8-is-cased: New file.
35964
35965         Tests for module 'unicase/u32-is-casefolded'.
35966         * modules/unicase/u32-is-casefolded-tests: New file.
35967         * tests/unicase/test-u32-is-casefolded.c: New file.
35968
35969         Tests for module 'unicase/u16-is-casefolded'.
35970         * modules/unicase/u16-is-casefolded-tests: New file.
35971         * tests/unicase/test-u16-is-casefolded.c: New file.
35972
35973         Tests for module 'unicase/u8-is-casefolded'.
35974         * modules/unicase/u8-is-casefolded-tests: New file.
35975         * tests/unicase/test-u8-is-casefolded.c: New file.
35976         * tests/unicase/test-is-casefolded.h: New file.
35977
35978         New module 'unicase/u32-is-casefolded'.
35979         * lib/unicase/u32-is-casefolded.c: New file.
35980         * modules/unicase/u32-is-casefolded: New file.
35981
35982         New module 'unicase/u16-is-casefolded'.
35983         * lib/unicase/u16-is-casefolded.c: New file.
35984         * modules/unicase/u16-is-casefolded: New file.
35985
35986         New module 'unicase/u8-is-casefolded'.
35987         * lib/unicase/u8-is-casefolded.c: New file.
35988         * modules/unicase/u8-is-casefolded: New file.
35989
35990         Tests for module 'unicase/u32-is-titlecase'.
35991         * modules/unicase/u32-is-titlecase-tests: New file.
35992         * tests/unicase/test-u32-is-titlecase.c: New file.
35993
35994         Tests for module 'unicase/u16-is-titlecase'.
35995         * modules/unicase/u16-is-titlecase-tests: New file.
35996         * tests/unicase/test-u16-is-titlecase.c: New file.
35997
35998         Tests for module 'unicase/u8-is-titlecase'.
35999         * modules/unicase/u8-is-titlecase-tests: New file.
36000         * tests/unicase/test-u8-is-titlecase.c: New file.
36001         * tests/unicase/test-is-titlecase.h: New file.
36002
36003         New module 'unicase/u32-is-titlecase'.
36004         * lib/unicase/u32-is-titlecase.c: New file.
36005         * modules/unicase/u32-is-titlecase: New file.
36006
36007         New module 'unicase/u16-is-titlecase'.
36008         * lib/unicase/u16-is-titlecase.c: New file.
36009         * modules/unicase/u16-is-titlecase: New file.
36010
36011         New module 'unicase/u8-is-titlecase'.
36012         * lib/unicase/u8-is-titlecase.c: New file.
36013         * modules/unicase/u8-is-titlecase: New file.
36014
36015         Tests for module 'unicase/u32-is-lowercase'.
36016         * modules/unicase/u32-is-lowercase-tests: New file.
36017         * tests/unicase/test-u32-is-lowercase.c: New file.
36018
36019         Tests for module 'unicase/u16-is-lowercase'.
36020         * modules/unicase/u16-is-lowercase-tests: New file.
36021         * tests/unicase/test-u16-is-lowercase.c: New file.
36022
36023         Tests for module 'unicase/u8-is-lowercase'.
36024         * modules/unicase/u8-is-lowercase-tests: New file.
36025         * tests/unicase/test-u8-is-lowercase.c: New file.
36026         * tests/unicase/test-is-lowercase.h: New file.
36027
36028         New module 'unicase/u32-is-lowercase'.
36029         * lib/unicase/u32-is-lowercase.c: New file.
36030         * modules/unicase/u32-is-lowercase: New file.
36031
36032         New module 'unicase/u16-is-lowercase'.
36033         * lib/unicase/u16-is-lowercase.c: New file.
36034         * modules/unicase/u16-is-lowercase: New file.
36035
36036         New module 'unicase/u8-is-lowercase'.
36037         * lib/unicase/u8-is-lowercase.c: New file.
36038         * modules/unicase/u8-is-lowercase: New file.
36039
36040         Tests for module 'unicase/u32-is-uppercase'.
36041         * modules/unicase/u32-is-uppercase-tests: New file.
36042         * tests/unicase/test-u32-is-uppercase.c: New file.
36043
36044         Tests for module 'unicase/u16-is-uppercase'.
36045         * modules/unicase/u16-is-uppercase-tests: New file.
36046         * tests/unicase/test-u16-is-uppercase.c: New file.
36047
36048         Tests for module 'unicase/u8-is-uppercase'.
36049         * modules/unicase/u8-is-uppercase-tests: New file.
36050         * tests/unicase/test-u8-is-uppercase.c: New file.
36051         * tests/unicase/test-is-uppercase.h: New file.
36052
36053         New module 'unicase/u32-is-uppercase'.
36054         * lib/unicase/u32-is-uppercase.c: New file.
36055         * modules/unicase/u32-is-uppercase: New file.
36056
36057         New module 'unicase/u16-is-uppercase'.
36058         * lib/unicase/u16-is-uppercase.c: New file.
36059         * modules/unicase/u16-is-uppercase: New file.
36060
36061         New module 'unicase/u8-is-uppercase'.
36062         * lib/unicase/u8-is-uppercase.c: New file.
36063         * modules/unicase/u8-is-uppercase: New file.
36064
36065         New module 'unicase/u32-is-invariant'.
36066         * lib/unicase/u32-is-invariant.c: New file.
36067         * modules/unicase/u32-is-invariant: New file.
36068
36069         New module 'unicase/u16-is-invariant'.
36070         * lib/unicase/u16-is-invariant.c: New file.
36071         * modules/unicase/u16-is-invariant: New file.
36072
36073         New module 'unicase/u8-is-invariant'.
36074         * lib/unicase/u8-is-invariant.c: New file.
36075         * lib/unicase/invariant.h: New file.
36076         * lib/unicase/u-is-invariant.h: New file.
36077         * modules/unicase/u8-is-invariant: New file.
36078
36079         Tests for module 'unicase/u32-casecoll'.
36080         * modules/unicase/u32-casecoll-tests: New file.
36081         * tests/unicase/test-u32-casecoll.c: New file.
36082
36083         Tests for module 'unicase/u16-casecoll'.
36084         * modules/unicase/u16-casecoll-tests: New file.
36085         * tests/unicase/test-u16-casecoll.c: New file.
36086
36087         Tests for module 'unicase/u8-casecoll'.
36088         * modules/unicase/u8-casecoll-tests: New file.
36089         * tests/unicase/test-u8-casecoll.c: New file.
36090
36091         New module 'unicase/u32-casecoll'.
36092         * lib/unicase/u32-casecoll.c: New file.
36093         * modules/unicase/u32-casecoll: New file.
36094
36095         New module 'unicase/u16-casecoll'.
36096         * lib/unicase/u16-casecoll.c: New file.
36097         * modules/unicase/u16-casecoll: New file.
36098
36099         New module 'unicase/u8-casecoll'.
36100         * lib/unicase/u8-casecoll.c: New file.
36101         * lib/unicase/u-casecoll.h: New file.
36102         * modules/unicase/u8-casecoll: New file.
36103
36104         New module 'unicase/u32-casexfrm'.
36105         * lib/unicase/u32-casexfrm.c: New file.
36106         * modules/unicase/u32-casexfrm: New file.
36107
36108         New module 'unicase/u16-casexfrm'.
36109         * lib/unicase/u16-casexfrm.c: New file.
36110         * modules/unicase/u16-casexfrm: New file.
36111
36112         New module 'unicase/u8-casexfrm'.
36113         * lib/unicase/u8-casexfrm.c: New file.
36114         * lib/unicase/u-casexfrm.h: New file.
36115         * modules/unicase/u8-casexfrm: New file.
36116
36117         Tests for module 'unicase/u32-casecmp'.
36118         * modules/unicase/u32-casecmp-tests: New file.
36119         * tests/unicase/test-u32-casecmp.c: New file.
36120
36121         Tests for module 'unicase/u16-casecmp'.
36122         * modules/unicase/u16-casecmp-tests: New file.
36123         * tests/unicase/test-u16-casecmp.c: New file.
36124
36125         Tests for module 'unicase/u8-casecmp'.
36126         * modules/unicase/u8-casecmp-tests: New file.
36127         * tests/unicase/test-u8-casecmp.c: New file.
36128         * tests/unicase/test-casecmp.h: New file.
36129
36130         New module 'unicase/u32-casecmp'.
36131         * lib/unicase/u32-casecmp.c: New file.
36132         * modules/unicase/u32-casecmp: New file.
36133
36134         New module 'unicase/u16-casecmp'.
36135         * lib/unicase/u16-casecmp.c: New file.
36136         * modules/unicase/u16-casecmp: New file.
36137
36138         New module 'unicase/u8-casecmp'.
36139         * lib/unicase/u8-casecmp.c: New file.
36140         * lib/unicase/u-casecmp.h: New file.
36141         * modules/unicase/u8-casecmp: New file.
36142
36143         Tests for module 'unicase/u32-casefold'.
36144         * modules/unicase/u32-casefold-tests: New file.
36145         * tests/unicase/test-u32-casefold.c: New file.
36146
36147         Tests for module 'unicase/u16-casefold'.
36148         * modules/unicase/u16-casefold-tests: New file.
36149         * tests/unicase/test-u16-casefold.c: New file.
36150
36151         Tests for module 'unicase/u8-casefold'.
36152         * modules/unicase/u8-casefold-tests: New file.
36153         * tests/unicase/test-u8-casefold.c: New file.
36154
36155         New module 'unicase/u32-casefold'.
36156         * lib/unicase/u32-casefold.c: New file.
36157         * modules/unicase/u32-casefold: New file.
36158
36159         New module 'unicase/u16-casefold'.
36160         * lib/unicase/u16-casefold.c: New file.
36161         * modules/unicase/u16-casefold: New file.
36162
36163         New module 'unicase/u8-casefold'.
36164         * lib/unicase/u8-casefold.c: New file.
36165         * lib/unicase/u-casefold.h: New file.
36166         * modules/unicase/u8-casefold: New file.
36167
36168         New module 'unicase/tocasefold'.
36169         * lib/unicase/casefold.h: New file.
36170         * lib/unicase/tocasefold.c: New file.
36171         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36172         * modules/unicase/tocasefold: New file.
36173
36174         Tests for module 'unicase/u32-totitle'.
36175         * modules/unicase/u32-totitle-tests: New file.
36176         * tests/unicase/test-u32-totitle.c: New file.
36177
36178         Tests for module 'unicase/u16-totitle'.
36179         * modules/unicase/u16-totitle-tests: New file.
36180         * tests/unicase/test-u16-totitle.c: New file.
36181
36182         Tests for module 'unicase/u8-totitle'.
36183         * modules/unicase/u8-totitle-tests: New file.
36184         * tests/unicase/test-u8-totitle.c: New file.
36185
36186         New module 'unicase/u32-totitle'.
36187         * lib/unicase/u32-totitle.c: New file.
36188         * modules/unicase/u32-totitle: New file.
36189
36190         New module 'unicase/u16-totitle'.
36191         * lib/unicase/u16-totitle.c: New file.
36192         * modules/unicase/u16-totitle: New file.
36193
36194         New module 'unicase/u8-totitle'.
36195         * lib/unicase/u8-totitle.c: New file.
36196         * lib/unicase/u-totitle.h: New file.
36197         * modules/unicase/u8-totitle: New file.
36198
36199         Tests for module 'unicase/u32-tolower'.
36200         * modules/unicase/u32-tolower-tests: New file.
36201         * tests/unicase/test-u32-tolower.c: New file.
36202
36203         Tests for module 'unicase/u16-tolower'.
36204         * modules/unicase/u16-tolower-tests: New file.
36205         * tests/unicase/test-u16-tolower.c: New file.
36206
36207         Tests for module 'unicase/u8-tolower'.
36208         * modules/unicase/u8-tolower-tests: New file.
36209         * tests/unicase/test-u8-tolower.c: New file.
36210
36211         New module 'unicase/u32-tolower'.
36212         * lib/unicase/u32-tolower.c: New file.
36213         * modules/unicase/u32-tolower: New file.
36214
36215         New module 'unicase/u16-tolower'.
36216         * lib/unicase/u16-tolower.c: New file.
36217         * modules/unicase/u16-tolower: New file.
36218
36219         New module 'unicase/u8-tolower'.
36220         * lib/unicase/u8-tolower.c: New file.
36221         * modules/unicase/u8-tolower: New file.
36222
36223         Tests for module 'unicase/u32-toupper'.
36224         * modules/unicase/u32-toupper-tests: New file.
36225         * tests/unicase/test-u32-toupper.c: New file.
36226
36227         Tests for module 'unicase/u16-toupper'.
36228         * modules/unicase/u16-toupper-tests: New file.
36229         * tests/unicase/test-u16-toupper.c: New file.
36230
36231         Tests for module 'unicase/u8-toupper'.
36232         * modules/unicase/u8-toupper-tests: New file.
36233         * tests/unicase/test-u8-toupper.c: New file.
36234
36235         New module 'unicase/u32-toupper'.
36236         * lib/unicase/u32-toupper.c: New file.
36237         * modules/unicase/u32-toupper: New file.
36238
36239         New module 'unicase/u16-toupper'.
36240         * lib/unicase/u16-toupper.c: New file.
36241         * modules/unicase/u16-toupper: New file.
36242
36243         New module 'unicase/u8-toupper'.
36244         * lib/unicase/u8-toupper.c: New file.
36245         * modules/unicase/u8-toupper: New file.
36246
36247         New module 'unicase/u32-casemap'.
36248         * lib/unicase/u32-casemap.c: New file.
36249         * modules/unicase/u32-casemap: New file.
36250
36251         New module 'unicase/u16-casemap'.
36252         * lib/unicase/u16-casemap.c: New file.
36253         * modules/unicase/u16-casemap: New file.
36254
36255         New module 'unicase/u8-casemap'.
36256         * lib/unicase/unicasemap.h: New file.
36257         * lib/unicase/u8-casemap.c: New file.
36258         * lib/unicase/u-casemap.h: New file.
36259         * modules/unicase/u8-casemap: New file.
36260
36261         New module 'unicase/special-casing'.
36262         * lib/unicase/special-casing.h: New file.
36263         * lib/unicase/special-casing.c: New file.
36264         * lib/unicase/special-casing-table.gperf: New file, generated by
36265         gen-uni-tables.c.
36266         * modules/unicase/special-casing: New file.
36267
36268         Tests for module 'unicase/locale-language'.
36269         * modules/unicase/locale-language-tests: New file.
36270         * tests/unicase/test-locale-language.sh: New file.
36271         * tests/unicase/test-locale-language.c: New file.
36272
36273         New module 'unicase/locale-language'.
36274         * lib/unicase/locale-language.c: New file.
36275         * lib/unicase/locale-languages.gperf: New file.
36276         * modules/unicase/locale-language: New file.
36277
36278         Generate more tables for case conversion and case folding.
36279         * lib/gen-uni-tables.c (SCC_*): New enum items.
36280         (struct special_casing_rule): New type.
36281         (casing_rules, num_casing_rules, allocated_casing_rules): New
36282         variables.
36283         (add_casing_rule, fill_casing_rules): New functions.
36284         (struct casefold_rule): New type.
36285         (casefolding_rules, num_casefolding_rules,
36286         allocated_casefolding_rules): New variables.
36287         (fill_casefolding_rules): New function.
36288         (unicode_casefold): New variable.
36289         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36290         sort_casing_rules, output_casing_rules): New functions.
36291         (main): Accept to more arguments: SpecialCasing.txt and
36292         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36293         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36294         Output mapping for casefolding.
36295
36296         * lib/unicase.h: Include stdbool.h, uninorm.h.
36297         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36298         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36299         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36300         arguments.
36301         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36302         resultp arguments.
36303         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36304         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36305         resultp arguments.
36306         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36307         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36308         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36309         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36310         declarations.
36311         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36312
36313 2009-03-08  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36316         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36317         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36318         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36319
36320 2009-03-07  Bruno Haible  <bruno@clisp.org>
36321
36322         Adjust u*_normcmp, u*_normcoll API.
36323         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36324         u16_normcoll, u32_normcoll): Change failure conventions.
36325         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36326         errno and return -1.
36327         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36328
36329 2009-03-07  Bruno Haible  <bruno@clisp.org>
36330
36331         Tests for module 'uninorm/u32-normcoll'.
36332         * modules/uninorm/u32-normcoll-tests: New file.
36333         * tests/uninorm/test-u32-normcoll.c: New file.
36334
36335         Tests for module 'uninorm/u16-normcoll'.
36336         * modules/uninorm/u16-normcoll-tests: New file.
36337         * tests/uninorm/test-u16-normcoll.c: New file.
36338
36339         Tests for module 'uninorm/u8-normcoll'.
36340         * modules/uninorm/u8-normcoll-tests: New file.
36341         * tests/uninorm/test-u8-normcoll.c: New file.
36342
36343 2009-03-07  Bruno Haible  <bruno@clisp.org>
36344
36345         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36346         tests/uninorm/test-u32-normcmp.c.
36347         * tests/uninorm/test-u32-normcmp.c: Include it.
36348         (test_nonascii): New function, extracted from main. Add some more
36349         tests.
36350         (main): Invoke test_ascii and test_nonascii.
36351         * modules/uninorm/u32-normcmp-tests (Files): Add
36352         tests/uninorm/test-u32-normcmp.h.
36353         (Depends-on): Remove uninorm/u32-normcmp.
36354
36355         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36356         tests/uninorm/test-u16-normcmp.c.
36357         * tests/uninorm/test-u16-normcmp.c: Include it.
36358         (test_nonascii): New function, extracted from main. Add some more
36359         tests.
36360         (main): Invoke test_ascii and test_nonascii.
36361         * modules/uninorm/u16-normcmp-tests (Files): Add
36362         tests/uninorm/test-u16-normcmp.h.
36363         (Depends-on): Remove uninorm/u16-normcmp.
36364
36365         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36366         tests/uninorm/test-u8-normcmp.c.
36367         * tests/uninorm/test-u8-normcmp.c: Include it.
36368         (test_nonascii): New function, extracted from main. Add some more
36369         tests.
36370         (main): Invoke test_ascii and test_nonascii.
36371         * modules/uninorm/u8-normcmp-tests (Files): Add
36372         tests/uninorm/test-u8-normcmp.h.
36373         (Depends-on): Remove uninorm/u8-normcmp.
36374
36375 2009-03-07  Bruno Haible  <bruno@clisp.org>
36376
36377         New module 'uninorm/u32-normcoll'.
36378         * lib/uninorm/u32-normcoll.c: New file.
36379         * modules/uninorm/u32-normcoll: New file.
36380
36381         New module 'uninorm/u16-normcoll'.
36382         * lib/uninorm/u16-normcoll.c: New file.
36383         * modules/uninorm/u16-normcoll: New file.
36384
36385         New module 'uninorm/u8-normcoll'.
36386         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36387         declarations.
36388         * lib/uninorm/u8-normcoll.c: New file.
36389         * lib/uninorm/u-normcoll.h: New file.
36390         * modules/uninorm/u8-normcoll: New file.
36391
36392         New module 'uninorm/u32-normxfrm'.
36393         * lib/uninorm/u32-normxfrm.c: New file.
36394         * modules/uninorm/u32-normxfrm: New file.
36395
36396         New module 'uninorm/u16-normxfrm'.
36397         * lib/uninorm/u16-normxfrm.c: New file.
36398         * modules/uninorm/u16-normxfrm: New file.
36399
36400         New module 'uninorm/u8-normxfrm'.
36401         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36402         declarations.
36403         * lib/uninorm/u8-normxfrm.c: New file.
36404         * lib/uninorm/u-normxfrm.h: New file.
36405         * modules/uninorm/u8-normxfrm: New file.
36406
36407 2009-03-07  Bruno Haible  <bruno@clisp.org>
36408
36409         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36410         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36411         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36412
36413 2009-03-07  Bruno Haible  <bruno@clisp.org>
36414
36415         New module 'memxfrm'.
36416         * lib/memxfrm.h: New file.
36417         * lib/memxfrm.c: New file.
36418         * modules/memxfrm: New file.
36419
36420 2009-03-07  Bruno Haible  <bruno@clisp.org>
36421
36422         New module 'memcmp2'.
36423         * lib/memcmp2.h: New file.
36424         * lib/memcmp2.c: New file.
36425         * modules/memcmp2: New file.
36426
36427 2009-03-07  Bruno Haible  <bruno@clisp.org>
36428
36429         Tests for module 'uninorm/decomposing-form'.
36430         * modules/uninorm/decomposing-form-tests: New file.
36431         * tests/uninorm/test-decomposing-form.c: New file.
36432
36433         New module 'uninorm/decomposing-form'.
36434         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36435         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36436         Add 'decomposing_variant' field.
36437         * lib/uninorm/decomposing-form.c: New file.
36438         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36439         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36440         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36441         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36442         * modules/uninorm/decomposing-form: New file.
36443         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36444         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36445
36446 2009-03-07  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36449         strings.
36450
36451 2009-03-06  Bruno Haible  <bruno@clisp.org>
36452
36453         Tests for module 'uninorm/u32-normcmp'.
36454         * tests/uninorm/test-u32-normcmp.c: New file.
36455         * modules/uninorm/u32-normcmp-tests: New file.
36456
36457         Tests for module 'uninorm/u16-normcmp'.
36458         * tests/uninorm/test-u16-normcmp.c: New file.
36459         * modules/uninorm/u16-normcmp-tests: New file.
36460
36461         Tests for module 'uninorm/u8-normcmp'.
36462         * tests/uninorm/test-u8-normcmp.c: New file.
36463         * modules/uninorm/u8-normcmp-tests: New file.
36464
36465         New module 'uninorm/u32-normcmp'.
36466         * lib/uninorm/u32-normcmp.c: New file.
36467         * modules/uninorm/u32-normcmp: New file.
36468
36469         New module 'uninorm/u16-normcmp'.
36470         * lib/uninorm/u16-normcmp.c: New file.
36471         * modules/uninorm/u16-normcmp: New file.
36472
36473         New module 'uninorm/u8-normcmp'.
36474         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36475         declarations.
36476         * lib/uninorm/u8-normcmp.c: New file.
36477         * lib/uninorm/u-normcmp.h: New file.
36478         * modules/uninorm/u8-normcmp: New file.
36479
36480 2009-03-06  Bruno Haible  <bruno@clisp.org>
36481
36482         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36483         Reported by Eric Blake.
36484
36485 2009-03-06  Eric Blake  <ebb9@byu.net>
36486             Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36489         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36490         condition.
36491         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36492         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36493         condition.
36494         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36495
36496 2009-03-06  Eric Blake  <ebb9@byu.net>
36497
36498         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36499         to avoid compiler warnings.
36500         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36501
36502 2009-03-05  Bruno Haible  <bruno@clisp.org>
36503
36504         * tests/test-ftell.c (main): Disable test beyond end of file on
36505         FreeMiNT.
36506         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36507
36508 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36509
36510         * lib/filevercmp.c: Move hidden files up in ordering.
36511         * tests/test-filevercmp.c: Add tests for hidden files.
36512
36513 2009-03-04  Bruno Haible  <bruno@clisp.org>
36514
36515         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36516         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36517         AM_CFLAGS.
36518         Reported by Simon Josefsson.
36519
36520 2009-03-03  Bruno Haible  <bruno@clisp.org>
36521
36522         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36523         Reported by Simon Josefsson.
36524
36525         * doc/ld-version-script.texi: Update node reference.
36526
36527 2009-03-03  Bruno Haible  <bruno@clisp.org>
36528
36529         * modules/visibility (License): Change to 'unlimited'.
36530         Suggested by Simon Josefsson.
36531
36532 2009-03-03  Jim Meyering  <meyering@redhat.com>
36533
36534         unlinkdir: cannot_unlink_dir may modify process state
36535         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36536         it's neither thread-safe nor appropriate for use in a library.
36537
36538 2009-03-03  Eric Blake  <ebb9@byu.net>
36539
36540         test-closein: silence test under Darwin
36541         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36542         care if it dies from EPIPE or EBADF.
36543
36544 2009-03-03  Bruno Haible  <bruno@clisp.org>
36545
36546         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36547         earlier.
36548         * doc/visibility.texi: Fix @node and @section.
36549
36550 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36551
36552         * doc/gnulib.texi: Link to sections for ld version script and
36553         visibility.
36554         * doc/visibility.texi: Add @node and @section.
36555         * modules/ld-version-script: New module.
36556         * m4/ld-version-script.m4: New file.
36557         * doc/ld-version-script.texi: New file.
36558
36559 2009-03-02  David Lutterkort  <lutter@redhat.com>
36560
36561         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36563
36564 2009-03-02  Bruno Haible  <bruno@clisp.org>
36565
36566         * doc/visibility.texi: Mention libtool's -export-symbols option.
36567
36568 2009-03-02  Jim Meyering  <meyering@redhat.com>
36569
36570         announce-gen: new option: --no-print-checksums
36571         * build-aux/announce-gen (usage): Describe it.
36572         (print_checksums): Print a newline here, not in the [*] footnote.
36573         (main): Honor it.
36574
36575 2009-03-01  Bruno Haible  <bruno@clisp.org>
36576
36577         Use socklen_t in the native Windows replacements prototypes.
36578         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36579         instead of 'int'.
36580         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36581         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36582         * modules/getsockopt (Depends-on): Add socklen.
36583         * modules/setsockopt (Depends-on): Add socklen.
36584
36585 2009-03-01  Bruno Haible  <bruno@clisp.org>
36586
36587         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36588         least 4.2.
36589
36590 2009-03-01  Eric Blake  <ebb9@byu.net>
36591             Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36594         error messages.
36595         * lib/wait-process.c (wait_subprocess): Omit error message about
36596         deadly signal sent to the child of termsigp != NULL.
36597
36598 2009-03-01  Eric Blake  <ebb9@byu.net>
36599
36600         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36601
36602 2009-03-01  Bruno Haible  <bruno@clisp.org>
36603
36604         Avoid a gcc warning.
36605         * tests/test-sched.c (b): Make global.
36606         Reported by Eric Blake.
36607
36608 2009-01-19  Martin Lambers  <marlam@marlam.de>
36609
36610         Provide POSIX semantics for socket timeout options on W32.
36611         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36612         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36613         * modules/setsockopt: Depend on sys_time module for struct timeval.
36614         * modules/getsockopt: Depend on sys_time module for struct timeval.
36615
36616 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36617
36618         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36619         __USE_GNU, for consistency with netdb.in.h.
36620         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36621
36622 2009-03-01  Bruno Haible  <bruno@clisp.org>
36623
36624         More support for FreeMiNT.
36625         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36626         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36627
36628 2009-03-01  Bruno Haible  <bruno@clisp.org>
36629
36630         More support for FreeMiNT.
36631         * lib/fpurge.c (fpurge): Correct last commit.
36632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36633
36634 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36635
36636         Fix unportable awk script in vc-list-files.
36637         * build-aux/vc-list-files: In the replacement awk script, use
36638         substr with a second argument of 1, not zero.
36639         Report by Simon Josefsson.
36640
36641 2009-02-28  Bruno Haible  <bruno@clisp.org>
36642
36643         More support for FreeMiNT.
36644         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36645         to FreeMiNT today.
36646         * lib/fwriting.c (fwriting): Likewise.
36647         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36648
36649 2009-02-28  Bruno Haible  <bruno@clisp.org>
36650
36651         * tests/test-freadseek.c (main): Disable test beyond end of file on
36652         FreeMiNT.
36653         * tests/test-ftello.c (main): Likewise.
36654         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36655
36656 2009-02-28  Bruno Haible  <bruno@clisp.org>
36657
36658         Add tentative support for FreeMiNT.
36659         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36660         * lib/fpurge.c (fpurge): Likewise.
36661         * lib/freadable.c (freadable): Likewise.
36662         * lib/freading.c (freading): Likewise.
36663         * lib/freadptr.c (freadptr): Likewise.
36664         * lib/freadseek.c (freadptrinc): Likewise.
36665         * lib/fseeko.c (rpl_fseeko): Likewise.
36666         * lib/fseterr.c (fseterr): Likewise.
36667         * lib/fwritable.c (fwritable): Likewise.
36668         * lib/fwriting.c (fwriting): Likewise.
36669         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36670         Hourihane.
36671         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36672
36673 2009-02-28  Bruno Haible  <bruno@clisp.org>
36674
36675         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36676         SIGCHLD.
36677         Reported by Jim Meyering.
36678
36679 2009-02-28  Bruno Haible  <bruno@clisp.org>
36680
36681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36682         Mention the results of these tests on various platforms.
36683         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36684         order.
36685         * doc/posix-functions/printf.texi: Likewise.
36686         * doc/posix-functions/snprintf.texi: Likewise.
36687         * doc/posix-functions/sprintf.texi: Likewise.
36688         * doc/posix-functions/vfprintf.texi: Likewise.
36689         * doc/posix-functions/vprintf.texi: Likewise.
36690         * doc/posix-functions/vsnprintf.texi: Likewise.
36691         * doc/posix-functions/vsprintf.texi: Likewise.
36692         * doc/glibc-functions/obstack_printf.texi: Likewise.
36693         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36694
36695 2009-02-28  Bruno Haible  <bruno@clisp.org>
36696
36697         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36698         Reported by Loïc Minier <lool@dooz.org>.
36699
36700 2009-02-27  Bruno Haible  <bruno@clisp.org>
36701
36702         * gnulib-tool (func_import): Make the sed expression used to create the
36703         sed script for updating the .gitignore file POSIX compliant.
36704         Reported by Eric Blake.
36705
36706 2009-02-27  Bruno Haible  <bruno@clisp.org>
36707
36708         * gnulib-tool (sed): Don't alias as "sed --posix".
36709         Reported by Eric Blake.
36710
36711 2009-02-27  Bruno Haible  <bruno@clisp.org>
36712
36713         Avoid test link errors.
36714         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36715         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36716         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36717         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36719
36720 2009-02-27  Bruno Haible  <bruno@clisp.org>
36721
36722         Avoid spurious "(cached)" in configure output.
36723         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36724         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36725         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36726         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36727         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36728         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36729         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36730         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36731         Reported by Eric Blake.
36732
36733 2009-02-27  Eric Blake  <ebb9@byu.net>
36734
36735         printf: fix regression in previous patch
36736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36737
36738 2009-02-27  Bruno Haible  <bruno@clisp.org>
36739
36740         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36741         value.
36742         * lib/stdint.in.h: Likewise.
36743         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36744
36745 2009-02-27  Eric Blake  <ebb9@byu.net>
36746
36747         doc: mention more functions added in cygwin 1.7.0
36748         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36749         addition.
36750         * doc/posix-functions/open_wmemstream.texi: Likewise.
36751         * doc/posix-functions/wcsnlen.texi: Likewise.
36752         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36753         * doc/posix-functions/wcstod.texi: Likewise.
36754         * doc/posix-functions/wcstof.texi: Likewise.
36755         * doc/posix-functions/wcstoimax.texi: Likewise.
36756         * doc/posix-functions/wcstok.texi: Likewise.
36757         * doc/posix-functions/wcstoumax.texi: Likewise.
36758
36759         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36761         * doc/posix-functions/fprintf.texi: Update.
36762         * doc/posix-functions/printf.texi: Update.
36763         * doc/posix-functions/snprintf.texi: Update.
36764         * doc/posix-functions/sprintf.texi: Update.
36765         * doc/posix-functions/vfprintf.texi: Update.
36766         * doc/posix-functions/vprintf.texi: Update.
36767         * doc/posix-functions/vsnprintf.texi: Update.
36768         * doc/posix-functions/vsprintf.texi: Update.
36769         * doc/glibc-functions/obstack_printf.texi: Update.
36770         * doc/glibc-functions/obstack_vprintf.texi: Update.
36771
36772 2009-02-26  Eric Blake  <ebb9@byu.net>
36773
36774         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36775         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36776         compilation bug by using runtime conversion.
36777         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36778         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36779         * modules/ceill-tests (Files): Use nan.h.
36780         * modules/floorl-tests (Files): Likewise.
36781         * modules/frexpl-tests (Files): Likewise.
36782         * modules/isnanl-tests (Files): Likewise.
36783         * modules/ldexpl-tests (Files): Likewise.
36784         * modules/roundl-tests (Files): Likewise.
36785         * modules/truncl-tests (Files): Likewise.
36786         * tests/test-ceill.c (main): Use a working NaN.
36787         * tests/test-floorl.c (main): Likewise.
36788         * tests/test-frexpl.c (main): Likewise.
36789         * tests/test-isnan.c (test_long_double): Likewise.
36790         * tests/test-isnanl.h (main): Likewise.
36791         * tests/test-ldexpl.h (main): Likewise.
36792         * tests/test-roundl.h (main): Likewise.
36793         * tests/test-truncl.h (main): Likewise.
36794         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36795
36796 2009-02-26  Eric Blake  <ebb9@byu.net>
36797             Bruno Haible  <bruno@clisp.org>
36798
36799         Work around a *printf bug with %ls on Solaris.
36800         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36801         precision is specified, sprintf stops converting the wide string
36802         argument when the number of bytes that have been produced by this
36803         conversion equals or exceeds the precision.
36804         * doc/posix-functions/fprintf.texi: Update.
36805         * doc/posix-functions/printf.texi: Update.
36806         * doc/posix-functions/snprintf.texi: Update.
36807         * doc/posix-functions/sprintf.texi: Update.
36808         * doc/posix-functions/vfprintf.texi: Update.
36809         * doc/posix-functions/vprintf.texi: Update.
36810         * doc/posix-functions/vsnprintf.texi: Update.
36811         * doc/posix-functions/vsprintf.texi: Update.
36812         * doc/glibc-functions/obstack_printf.texi: Update.
36813         * doc/glibc-functions/obstack_vprintf.texi: Update.
36814
36815 2009-02-26  Eric Blake  <ebb9@byu.net>
36816
36817         stdlib: favor compiler check of random.h
36818         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36819         to avoid an ObjC random.h installed by Swarm.
36820
36821 2009-02-26  Bruno Haible  <bruno@clisp.org>
36822
36823         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36824         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36825         Reported by Gary V. Vaughan <gary@gnu.org>.
36826
36827 2009-02-26  Bruno Haible  <bruno@clisp.org>
36828
36829         Fix *printf behaviour regarding the %ls directive.
36830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36831         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36832         NEED_PRINTF_DIRECTIVE_LS.
36833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36834         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36836         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36837         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36838         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36839         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36844         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36848         * doc/posix-functions/fprintf.texi: Update.
36849         * doc/posix-functions/printf.texi: Update.
36850         * doc/posix-functions/snprintf.texi: Update.
36851         * doc/posix-functions/sprintf.texi: Update.
36852         * doc/posix-functions/vfprintf.texi: Update.
36853         * doc/posix-functions/vprintf.texi: Update.
36854         * doc/posix-functions/vsnprintf.texi: Update.
36855         * doc/posix-functions/vsprintf.texi: Update.
36856         * doc/glibc-functions/obstack_printf.texi: Update.
36857         * doc/glibc-functions/obstack_vprintf.texi: Update.
36858         Reported by Eric Blake.
36859
36860 2009-02-25  Bruno Haible  <bruno@clisp.org>
36861
36862         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36863         with known value.
36864         Reported by Gary V. Vaughan <gary@gnu.org>.
36865
36866 2009-02-25  Bruno Haible  <bruno@clisp.org>
36867
36868         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36869         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36870         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36871         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36872         Reported by Gary V. Vaughan <gary@gnu.org>.
36873
36874 2009-02-25  Bruno Haible  <bruno@clisp.org>
36875
36876         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36877         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36878         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36879         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36880         Reported by Gary V. Vaughan <gary@gnu.org>.
36881
36882 2009-02-25  Eric Blake  <ebb9@byu.net>
36883
36884         tests: skip fseek/ftell tests if ungetc is broken
36885         * m4/ungetc.m4: New file.
36886         * modules/fseek-tests: Split test, so ungetc dependency is
36887         separate from rest of test.
36888         * modules/fseeko-tests: Likewise.
36889         * modules/ftell-tests: Likewise.
36890         * modules/ftello-tests: Likewise.
36891         * tests/test-fseek.c (main): Isolate ungetc dependency.
36892         * tests/test-fseeko.c (main): Likewise.
36893         * tests/test-ftell.c (main): Likewise.
36894         * tests/test-ftello.c (main): Likewise.
36895         * tests/test-fseek2.sh: New file.
36896         * tests/test-fseeko2.sh: Likewise.
36897         * tests/test-ftell2.sh: Likewise.
36898         * tests/test-ftello2.sh: Likewise.
36899
36900 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36901
36902         test-getaddrinfo: fix usage of skip return code 77
36903         * tests/test-gettaddrinfo.c: Return skip code 77 only
36904         for first occurance of skip (4x77 is not 77)
36905
36906 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36907
36908         strtod: avoid C99 decl-after-statement
36909         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36910
36911 2009-02-24  Eric Blake  <ebb9@byu.net>
36912
36913         strtod: detect HP-UX 11.31 bug
36914         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36915         Reported by Gary V. Vaughan.
36916
36917 2009-02-23  Bruno Haible  <bruno@clisp.org>
36918
36919         Fix invalid read past end of memory block.
36920         * lib/vasnprintf.c (DCHAR_SET): Define.
36921         (local_wcslen): Define only when needed.
36922         (local_strnlen, local_wcsnlen): New functions.
36923         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36924         directives that involve a conversion ourselves.
36925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36926         wcsnlen, mbrtowc, wcrtomb.
36927         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36928         * tests/test-vasprintf-posix.c (test_function): Likewise.
36929         * tests/test-snprintf-posix.h (test_function): Likewise.
36930         * tests/test-sprintf-posix.h (test_function): Likewise.
36931         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36932
36933 2009-02-22  Bruno Haible  <bruno@clisp.org>
36934
36935         Implement new clarified decomposition of Hangul syllables.
36936         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36937         of type LTV, return only a pairwise decomposition.
36938         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36939         Likewise.
36940         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36941         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36942         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36943
36944 2009-02-22  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36947         zero-length results and shrink excess allocated memory.
36948         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36949         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36950         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36951         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36952         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36953         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36954         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36955         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36956         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36957         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36958         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36959         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36960
36961 2009-02-21  Bruno Haible  <bruno@clisp.org>
36962
36963         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36964         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36965         spaces after a period. Put a space between a macro name and its
36966         argument list. Trivial rewordings.
36967         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36968         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36969         (main): Return 0 explicitly.
36970
36971 2009-02-21  Bruno Haible  <bruno@clisp.org>
36972
36973         Tests for module 'uninorm/filter'.
36974         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36975         * modules/uninorm/filter-tests: New file.
36976
36977         New module 'uninorm/filter'.
36978         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36979         uninorm_filter_flush, uninorm_filter_free): New declarations.
36980         * lib/uninorm/uninorm-filter.c: New file.
36981         * modules/uninorm/filter: New file.
36982
36983 2009-02-21  Bruno Haible  <bruno@clisp.org>
36984
36985         Tests for module 'uninorm/nfkc'.
36986         * tests/uninorm/test-nfkc.c: New file.
36987         * tests/uninorm/test-u8-nfkc.c: New file.
36988         * tests/uninorm/test-u16-nfkc.c: New file.
36989         * tests/uninorm/test-u32-nfkc.c: New file.
36990         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36991         * tests/uninorm/test-u32-nfkc-big.c: New file.
36992         * modules/uninorm/nfkc-tests: New file.
36993
36994         New module 'uninorm/nfkc'.
36995         * lib/uninorm/nfkc.c: New file.
36996         * modules/uninorm/nfkc: New file.
36997
36998         Tests for module 'uninorm/nfkd'.
36999         * tests/uninorm/test-nfkd.c: New file.
37000         * tests/uninorm/test-u8-nfkd.c: New file.
37001         * tests/uninorm/test-u16-nfkd.c: New file.
37002         * tests/uninorm/test-u32-nfkd.c: New file.
37003         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37004         * tests/uninorm/test-u32-nfkd-big.c: New file.
37005         * modules/uninorm/nfkd-tests: New file.
37006
37007         New module 'uninorm/nfkd'.
37008         * lib/uninorm/nfkd.c: New file.
37009         * modules/uninorm/nfkd: New file.
37010
37011         Tests for module 'uninorm/nfc'.
37012         * tests/uninorm/test-nfc.c: New file.
37013         * tests/uninorm/test-u8-nfc.c: New file.
37014         * tests/uninorm/test-u16-nfc.c: New file.
37015         * tests/uninorm/test-u32-nfc.c: New file.
37016         * tests/uninorm/test-u32-nfc-big.sh: New file.
37017         * tests/uninorm/test-u32-nfc-big.c: New file.
37018         * modules/uninorm/nfc-tests: New file.
37019
37020         New module 'uninorm/nfc'.
37021         * lib/uninorm/nfc.c: New file.
37022         * modules/uninorm/nfc: New file.
37023
37024         Tests for module 'uninorm/nfd'.
37025         * tests/uninorm/test-nfd.c: New file.
37026         * tests/uninorm/test-u8-nfd.c: New file.
37027         * tests/uninorm/test-u16-nfd.c: New file.
37028         * tests/uninorm/test-u32-nfd.c: New file.
37029         * tests/uninorm/test-u32-nfd-big.sh: New file.
37030         * tests/uninorm/test-u32-nfd-big.c: New file.
37031         * tests/uninorm/test-u32-normalize-big.h: New file.
37032         * tests/uninorm/test-u32-normalize-big.c: New file.
37033         * tests/uninorm/NormalizationTest.txt: New file, created from
37034         Unicode 5.1.0 NormalizationTest.txt.
37035         * modules/uninorm/nfd-tests: New file.
37036
37037         New module 'uninorm/nfd'.
37038         * lib/uninorm/nfd.c: New file.
37039         * modules/uninorm/nfd: New file.
37040
37041         New module 'uninorm/u32-normalize'.
37042         * lib/uninorm/u32-normalize.c: New file.
37043         * modules/uninorm/u32-normalize: New file.
37044
37045         New module 'uninorm/u16-normalize'.
37046         * lib/uninorm/u16-normalize.c: New file.
37047         * modules/uninorm/u16-normalize: New file.
37048
37049         New module 'uninorm/u8-normalize'.
37050         * lib/uninorm/u8-normalize.c: New file.
37051         * lib/uninorm/normalize-internal.h: New file.
37052         * lib/uninorm/u-normalize-internal.h: New file.
37053         * modules/uninorm/u8-normalize: New file.
37054
37055         New module 'uninorm/decompose-internal'.
37056         * lib/uninorm/decompose-internal.c: New file.
37057         * modules/uninorm/decompose-internal: New file.
37058
37059         Tests for module 'uninorm/composition'.
37060         * tests/uninorm/test-composition.c: New file.
37061         * modules/uninorm/composition-tests: New file.
37062
37063         New module 'uninorm/composition'.
37064         * lib/uninorm/composition.c: New file.
37065         * lib/uninorm/composition-table.gperf: New file, generated by
37066         gen-uni-tables.
37067         * modules/uninorm/composition: New file.
37068
37069         Tests for module 'uninorm/compat-decomposition'.
37070         * tests/uninorm/test-compat-decomposition.c: New file.
37071         * modules/uninorm/compat-decomposition-tests: New file.
37072
37073         New module 'uninorm/compat-decomposition'.
37074         * lib/uninorm/decompose-internal.h: New file.
37075         * lib/uninorm/compat-decomposition.c: New file.
37076         * modules/uninorm/compat-decomposition: New file.
37077
37078         Tests for module 'uninorm/canonical-decomposition'.
37079         * tests/uninorm/test-canonical-decomposition.c: New file.
37080         * modules/uninorm/canonical-decomposition-tests: New file.
37081
37082         New module 'uninorm/canonical-decomposition'.
37083         * lib/uninorm/canonical-decomposition.c: New file.
37084         * modules/uninorm/canonical-decomposition: New file.
37085
37086         Tests for module 'uninorm/decomposition'.
37087         * tests/uninorm/test-decomposition.c: New file.
37088         * modules/uninorm/decomposition-tests: New file.
37089
37090         New module 'uninorm/decomposition'.
37091         * lib/uninorm/decomposition.c: New file.
37092         * modules/uninorm/decomposition: New file.
37093
37094         New module 'uninorm/decomposition-table'.
37095         * lib/uninorm/decomposition-table.h: New file.
37096         * lib/uninorm/decomposition-table.c: New file.
37097         * lib/uninorm/decomposition-table1.h: New file, generated by
37098         gen-uni-tables.
37099         * lib/uninorm/decomposition-table2.h: New file, generated by
37100         gen-uni-tables.
37101         * modules/uninorm/decomposition-table: New file.
37102
37103         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37104         (UC_DECOMP_*): New enumeration items.
37105         (get_decomposition): New function.
37106         (struct decomp_table): New type.
37107         (output_decomposition, output_decomposition_tables): New functions.
37108         (unicode_composition_exclusions): New variable.
37109         (fill_composition_exclusions, debug_output_composition_tables): New
37110         functions.
37111         (main): Accept one more argument. Invoke fill_composition_exclusions.
37112         Output decomposition and composition tables.
37113
37114         New module 'uninorm/base'.
37115         * lib/uninorm.h: New file.
37116         * lib/unictype.h: Update comment.
37117         * modules/uninorm/base: New file.
37118
37119 2009-02-21  David Lutterkort  <lutter@redhat.com>
37120
37121         Tests for module 'safe-alloc'.
37122         * tests/test-safe-alloc.c: New file.
37123         * modules/safe-alloc-tests: New file.
37124
37125         New module 'safe-alloc'.
37126         * lib/safe-alloc.h: New file.
37127         * lib/safe-alloc.c: New file.
37128         * m4/safe-alloc.m4: New file.
37129         * modules/safe-alloc: New file.
37130         * doc/safe-alloc.texi: New file.
37131         * doc/gnulib.texi: Include it.
37132         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37133         safe-alloc.
37134
37135 2009-02-18  Bruno Haible  <bruno@clisp.org>
37136
37137         Fix link error on non-glibc systems.
37138         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37139         variable.
37140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37141
37142 2009-02-18  Jim Meyering  <meyering@redhat.com>
37143
37144         fts: avoid used-uninitialized error due to recent change
37145         * lib/fts.c (fts_read): Guard uses of the new member,
37146         parent->fts_n_dirs_remaining, since it's not relevant for
37147         the parent of a directory specified on the command-line.
37148
37149 2009-02-17  James Youngman  <jay@gnu.org>
37150             Bruno Haible  <bruno@clisp.org>
37151
37152         * m4/include_next.m4: Reformulate comment.
37153
37154 2009-02-16  Jim Meyering  <meyering@redhat.com>
37155
37156         fts: add #if guards so that the fts_lgpl module still builds
37157         * lib/fts.c: Guard just-added hash-table-using parts with
37158         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37159         Reported by Simon Josefsson.
37160
37161 2009-02-15  Bruno Haible  <bruno@clisp.org>
37162
37163         * modules/array-mergesort-tests: New file.
37164         * tests/test-array-mergesort.c: New file.
37165
37166         New module 'array-mergesort'.
37167         * modules/array-mergesort: New file.
37168         * lib/array-mergesort.h: New file.
37169
37170 2009-02-15  Bruno Haible  <bruno@clisp.org>
37171
37172         Fix 2009-02-07 commit.
37173         * lib/gen-uni-tables.c (output_predicate, output_category,
37174         output_combclass, output_bidi_category, output_decimal_digit,
37175         output_digit, output_numeric, output_mirror, output_scripts,
37176         output_ident_category, output_simple_mapping): Fix format directives.
37177         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37178
37179 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37180
37181         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37182         fixes are available from IBM.
37183
37184 2009-02-13  Jim Meyering  <meyering@redhat.com>
37185
37186         fts: arrange not to stat non-directories in more cases
37187         This makes GNU find (when it doesn't need to stat each file)
37188         *much* more efficient at traversing reiserfs file systems.
37189         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37190         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37191         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37192         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37193         (leaf_optimization_applies): New function.
37194         (LCO_hash, LCO_compare): New helper functions.
37195         (link_count_optimize_ok): New function.
37196         (fts_stat): Initialize new member (if dir).
37197         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37198         we've just stat'ed a directory.  Skip the stat call when possible.
37199         ---
37200         Note this AFS-related exchange:
37201         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37202         and note find's pioctl call in find/fstype.c.
37203         But that is necessary only if you want to enable the
37204         optimization for AFS, and for now, I don't.
37205
37206         fts: move a function definition "up" (no semantic change)
37207         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37208         "up" to precede upcoming use of a related function.
37209
37210 2009-02-11  Jim Meyering  <meyering@redhat.com>
37211
37212         fts: correct internal computation of nlinks (optimization-related)
37213         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37214         whether the current entry is a directory, so don't test it.
37215
37216 2009-02-10  Bruno Haible  <bruno@clisp.org>
37217
37218         Tests for module 'uniwbrk/ulc-wordbreaks'.
37219         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37220         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37221         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37222
37223         Tests for module 'uniwbrk/u32-wordbreaks'.
37224         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37225         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37226
37227         Tests for module 'uniwbrk/u16-wordbreaks'.
37228         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37229         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37230
37231         Tests for module 'uniwbrk/u8-wordbreaks'.
37232         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37233         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37234
37235 2009-02-10  Bruno Haible  <bruno@clisp.org>
37236
37237         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37238         property.
37239         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37240         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37241         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37242
37243 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37244
37245         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37246         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37247
37248 2009-02-10  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37251         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37252         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37253         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37254         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37255         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37256
37257 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37258
37259         * lib/sockets.h (gl_fd_to_handle): New function.
37260
37261         * tests/test-sockets.c: Call gl_fd_to_handle.
37262
37263 2009-02-09  Bruno Haible  <bruno@clisp.org>
37264
37265         * doc/havelib.texi: Document the conventions on bi-arch systems.
37266
37267 2009-02-08  Bruno Haible  <bruno@clisp.org>
37268
37269         Document the AC_LIB_LINKFLAGS macro.
37270         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37271         * doc/gnulib.texi: Include it.
37272
37273 2009-02-08  Bruno Haible  <bruno@clisp.org>
37274
37275         Fix wrong order of sections, compared to TOC.
37276         * doc/gnulib.texi: Include relocatable-maint.texi after the
37277         "Regular expressions" node, not before.
37278
37279 2009-02-08  Bruno Haible  <bruno@clisp.org>
37280
37281         Tests for module 'unicase/totitle'.
37282         * modules/unicase/totitle-tests: New file.
37283
37284         Tests for module 'unicase/tolower'.
37285         * modules/unicase/tolower-tests: New file.
37286
37287         Tests for module 'unicase/toupper'.
37288         * modules/unicase/toupper-tests: New file.
37289         * tests/unicase/test-mapping-part1.h: New file.
37290         * tests/unicase/test-mapping-part2.h: New file.
37291
37292         New module 'unicase/totitle'.
37293         * modules/unicase/totitle: New file.
37294         * lib/unicase/totitle.c: New file.
37295
37296         New module 'unicase/tolower'.
37297         * modules/unicase/tolower: New file.
37298         * lib/unicase/tolower.c: New file.
37299
37300         New module 'unicase/toupper'.
37301         * modules/unicase/toupper: New file.
37302         * lib/unicase/toupper.c: New file.
37303         * lib/unicase/simple-mapping.h: New file.
37304
37305         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37306         (mapping_table): New structure.
37307         (output_simple_mapping): New function.
37308         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37309         * modules/gen-uni-tables (Description): Update.
37310         * lib/unicase/toupper.h: New file, automatically generated by
37311         gen-uni-tables.
37312         * lib/unicase/tolower.h: New file, automatically generated by
37313         gen-uni-tables.
37314         * lib/unicase/totitle.h: New file, automatically generated by
37315         gen-uni-tables.
37316         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37317         gen-uni-tables.
37318         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37319         gen-uni-tables.
37320         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37321         gen-uni-tables.
37322
37323         New module 'unicase/base'.
37324         * modules/unicase/base: New file.
37325         * lib/unicase.h: New file.
37326
37327 2009-02-08  Bruno Haible  <bruno@clisp.org>
37328
37329         New module 'uniwbrk/ulc-wordbreaks'.
37330         * modules/uniwbrk/ulc-wordbreaks: New file.
37331         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37332
37333         New module 'uniwbrk/u32-wordbreaks'.
37334         * modules/uniwbrk/u32-wordbreaks: New file.
37335         * lib/uniwbrk/u32-wordbreaks.c: New file.
37336
37337         New module 'uniwbrk/u16-wordbreaks'.
37338         * modules/uniwbrk/u16-wordbreaks: New file.
37339         * lib/uniwbrk/u16-wordbreaks.c: New file.
37340
37341         New module 'uniwbrk/u8-wordbreaks'.
37342         * modules/uniwbrk/u8-wordbreaks: New file.
37343         * lib/uniwbrk/u8-wordbreaks.c: New file.
37344         * lib/uniwbrk/u-wordbreaks.h: New file.
37345
37346         New module 'uniwbrk/table'.
37347         * modules/uniwbrk/table: New file.
37348         * lib/uniwbrk/wbrktable.h: New file.
37349         * lib/uniwbrk/wbrktable.c: New file.
37350
37351         New module 'uniwbrk/wordbreak-property'.
37352         * modules/uniwbrk/wordbreak-property: New file.
37353         * lib/uniwbrk/wordbreak-property.c: New file.
37354
37355         * lib/gen-uni-tables.c (WBP_*): New enum items.
37356         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37357         (unicode_org_wbp): New variable.
37358         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37359         New functions.
37360         (wbp_table): New structure.
37361         (output_wbp, output_wbrk_tables): New functions.
37362         (main): Accept additional argument. Invoke fill_org_wbp,
37363         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37364         output_wbrk_tables.
37365         * modules/gen-uni-tables (Description): Update.
37366         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37367         gen-uni-tables.
37368
37369         New module 'uniwbrk/base'.
37370         * modules/uniwbrk/base: New file.
37371         * lib/uniwbrk.h: New file.
37372
37373 2009-02-08  Bruno Haible  <bruno@clisp.org>
37374
37375         Update to Unicode 5.1.0.
37376         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37377         U+2185..U+2188.
37378         (is_property_default_ignorable_code_point): Don't include characters
37379         of category Cc or Cs and not-a-characters.
37380         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37381         U+0D79, U+109E, U+109F, U+A60C.
37382         * lib/unictype/bidi_of.h: Regenerated.
37383         * lib/unictype/blocks.h: Regenerated.
37384         * lib/unictype/categ_C.h: Regenerated.
37385         * lib/unictype/categ_Cf.h: Regenerated.
37386         * lib/unictype/categ_Cn.h: Regenerated.
37387         * lib/unictype/categ_L.h: Regenerated.
37388         * lib/unictype/categ_Ll.h: Regenerated.
37389         * lib/unictype/categ_Lm.h: Regenerated.
37390         * lib/unictype/categ_Lo.h: Regenerated.
37391         * lib/unictype/categ_Lu.h: Regenerated.
37392         * lib/unictype/categ_M.h: Regenerated.
37393         * lib/unictype/categ_Mc.h: Regenerated.
37394         * lib/unictype/categ_Me.h: Regenerated.
37395         * lib/unictype/categ_Mn.h: Regenerated.
37396         * lib/unictype/categ_N.h: Regenerated.
37397         * lib/unictype/categ_Nd.h: Regenerated.
37398         * lib/unictype/categ_Nl.h: Regenerated.
37399         * lib/unictype/categ_No.h: Regenerated.
37400         * lib/unictype/categ_P.h: Regenerated.
37401         * lib/unictype/categ_Pd.h: Regenerated.
37402         * lib/unictype/categ_Pe.h: Regenerated.
37403         * lib/unictype/categ_Pf.h: Regenerated.
37404         * lib/unictype/categ_Pi.h: Regenerated.
37405         * lib/unictype/categ_Po.h: Regenerated.
37406         * lib/unictype/categ_Ps.h: Regenerated.
37407         * lib/unictype/categ_S.h: Regenerated.
37408         * lib/unictype/categ_Sk.h: Regenerated.
37409         * lib/unictype/categ_Sm.h: Regenerated.
37410         * lib/unictype/categ_So.h: Regenerated.
37411         * lib/unictype/categ_of.h: Regenerated.
37412         * lib/unictype/combining.h: Regenerated.
37413         * lib/unictype/ctype_alnum.h: Regenerated.
37414         * lib/unictype/ctype_alpha.h: Regenerated.
37415         * lib/unictype/ctype_graph.h: Regenerated.
37416         * lib/unictype/ctype_lower.h: Regenerated.
37417         * lib/unictype/ctype_print.h: Regenerated.
37418         * lib/unictype/ctype_punct.h: Regenerated.
37419         * lib/unictype/ctype_upper.h: Regenerated.
37420         * lib/unictype/decdigit.h: Regenerated.
37421         * lib/unictype/digit.h: Regenerated.
37422         * lib/unictype/mirror.h: Regenerated.
37423         * lib/unictype/numeric.h: Regenerated.
37424         * lib/unictype/pr_alphabetic.h: Regenerated.
37425         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37426         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37427         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37428         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37429         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37430         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37431         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37432         * lib/unictype/pr_combining.h: Regenerated.
37433         * lib/unictype/pr_dash.h: Regenerated.
37434         * lib/unictype/pr_decimal_digit.h: Regenerated.
37435         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37436         * lib/unictype/pr_deprecated.h: Regenerated.
37437         * lib/unictype/pr_diacritic.h: Regenerated.
37438         * lib/unictype/pr_extender.h: Regenerated.
37439         * lib/unictype/pr_format_control.h: Regenerated.
37440         * lib/unictype/pr_grapheme_base.h: Regenerated.
37441         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37442         * lib/unictype/pr_grapheme_link.h: Regenerated.
37443         * lib/unictype/pr_id_continue.h: Regenerated.
37444         * lib/unictype/pr_id_start.h: Regenerated.
37445         * lib/unictype/pr_ideographic.h: Regenerated.
37446         * lib/unictype/pr_ignorable_control.h: Regenerated.
37447         * lib/unictype/pr_lowercase.h: Regenerated.
37448         * lib/unictype/pr_math.h: Regenerated.
37449         * lib/unictype/pr_numeric.h: Regenerated.
37450         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37451         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37452         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37453         * lib/unictype/pr_other_id_continue.h: Regenerated.
37454         * lib/unictype/pr_other_lowercase.h: Regenerated.
37455         * lib/unictype/pr_other_math.h: Regenerated.
37456         * lib/unictype/pr_punctuation.h: Regenerated.
37457         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37458         * lib/unictype/pr_soft_dotted.h: Regenerated.
37459         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37460         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37461         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37462         * lib/unictype/pr_uppercase.h: Regenerated.
37463         * lib/unictype/pr_xid_continue.h: Regenerated.
37464         * lib/unictype/pr_xid_start.h: Regenerated.
37465         * lib/unictype/pr_zero_width.h: Regenerated.
37466         * lib/unictype/scripts.h: Regenerated.
37467         * lib/unictype/scripts_byname.gperf: Regenerated.
37468         * lib/unictype/sy_java_ident.h: Regenerated.
37469         * lib/unilbrk/lbrkprop1.h: Regenerated.
37470         * lib/unilbrk/lbrkprop2.h: Regenerated.
37471         * tests/unictype/test-categ_C.c: Regenerated.
37472         * tests/unictype/test-categ_Cf.c: Regenerated.
37473         * tests/unictype/test-categ_Cn.c: Regenerated.
37474         * tests/unictype/test-categ_L.c: Regenerated.
37475         * tests/unictype/test-categ_Ll.c: Regenerated.
37476         * tests/unictype/test-categ_Lm.c: Regenerated.
37477         * tests/unictype/test-categ_Lo.c: Regenerated.
37478         * tests/unictype/test-categ_Lu.c: Regenerated.
37479         * tests/unictype/test-categ_M.c: Regenerated.
37480         * tests/unictype/test-categ_Mc.c: Regenerated.
37481         * tests/unictype/test-categ_Me.c: Regenerated.
37482         * tests/unictype/test-categ_Mn.c: Regenerated.
37483         * tests/unictype/test-categ_N.c: Regenerated.
37484         * tests/unictype/test-categ_Nd.c: Regenerated.
37485         * tests/unictype/test-categ_Nl.c: Regenerated.
37486         * tests/unictype/test-categ_No.c: Regenerated.
37487         * tests/unictype/test-categ_P.c: Regenerated.
37488         * tests/unictype/test-categ_Pd.c: Regenerated.
37489         * tests/unictype/test-categ_Pe.c: Regenerated.
37490         * tests/unictype/test-categ_Pf.c: Regenerated.
37491         * tests/unictype/test-categ_Pi.c: Regenerated.
37492         * tests/unictype/test-categ_Po.c: Regenerated.
37493         * tests/unictype/test-categ_Ps.c: Regenerated.
37494         * tests/unictype/test-categ_S.c: Regenerated.
37495         * tests/unictype/test-categ_Sk.c: Regenerated.
37496         * tests/unictype/test-categ_Sm.c: Regenerated.
37497         * tests/unictype/test-categ_So.c: Regenerated.
37498         * tests/unictype/test-ctype_alnum.c: Regenerated.
37499         * tests/unictype/test-ctype_alpha.c: Regenerated.
37500         * tests/unictype/test-ctype_graph.c: Regenerated.
37501         * tests/unictype/test-ctype_lower.c: Regenerated.
37502         * tests/unictype/test-ctype_print.c: Regenerated.
37503         * tests/unictype/test-ctype_punct.c: Regenerated.
37504         * tests/unictype/test-ctype_upper.c: Regenerated.
37505         * tests/unictype/test-decdigit.h: Regenerated.
37506         * tests/unictype/test-digit.h: Regenerated.
37507         * tests/unictype/test-numeric.h: Regenerated.
37508         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37509         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37510         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37511         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37512         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37513         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37514         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37515         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37516         * tests/unictype/test-pr_combining.c: Regenerated.
37517         * tests/unictype/test-pr_dash.c: Regenerated.
37518         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37519         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37520         * tests/unictype/test-pr_deprecated.c: Regenerated.
37521         * tests/unictype/test-pr_diacritic.c: Regenerated.
37522         * tests/unictype/test-pr_extender.c: Regenerated.
37523         * tests/unictype/test-pr_format_control.c: Regenerated.
37524         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37525         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37526         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37527         * tests/unictype/test-pr_id_continue.c: Regenerated.
37528         * tests/unictype/test-pr_id_start.c: Regenerated.
37529         * tests/unictype/test-pr_ideographic.c: Regenerated.
37530         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37531         * tests/unictype/test-pr_lowercase.c: Regenerated.
37532         * tests/unictype/test-pr_math.c: Regenerated.
37533         * tests/unictype/test-pr_numeric.c: Regenerated.
37534         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37535         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37536         Regenerated.
37537         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37538         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37539         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37540         * tests/unictype/test-pr_other_math.c: Regenerated.
37541         * tests/unictype/test-pr_punctuation.c: Regenerated.
37542         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37543         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37544         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37545         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37546         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37547         * tests/unictype/test-pr_uppercase.c: Regenerated.
37548         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37549         * tests/unictype/test-pr_xid_start.c: Regenerated.
37550         * tests/unictype/test-pr_zero_width.c: Regenerated.
37551
37552         Update to Unicode 5.1.0.
37553         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37554         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37555         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37556         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37557         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37558         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37559         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37560         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37561         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37562         (nonspacing_table_ind): Update.
37563         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37564
37565         Update to Unicode 5.1.0.
37566         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37567         code transform.
37568         * lib/uniname/uniname.c (unicode_character_name,
37569         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37570         * lib/uniname/uninames.h: Regenerated.
37571         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37572
37573 2009-02-07  Bruno Haible  <bruno@clisp.org>
37574
37575         Merge gen-ctype and gen-lbrk into a single program.
37576         * lib/gen-uni-tables.c: New file, incorporating
37577         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37578         Add directory prefixes to the names of the generated files.
37579         * lib/unictype/gen-ctype.c: Remove file.
37580         * lib/unilbrk/gen-lbrk.c: Remove file.
37581         * modules/gen-uni-tables: New file.
37582         * modules/unictype/gen-ctype: Remove file.
37583         * modules/unilbrk/gen-lbrk: Remove file.
37584
37585 2009-02-07  Bruno Haible  <bruno@clisp.org>
37586
37587         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37588
37589         New module 'unistr/u32-strcoll'.
37590         * modules/unistr/u32-strcoll: New file.
37591         * lib/unistr/u32-strcoll.c: New file.
37592
37593         New module 'unistr/u16-strcoll'.
37594         * modules/unistr/u16-strcoll: New file.
37595         * lib/unistr/u16-strcoll.c: New file.
37596
37597         New module 'unistr/u8-strcoll'.
37598         * modules/unistr/u8-strcoll: New file.
37599         * lib/unistr/u8-strcoll.c: New file.
37600         * lib/unistr/u-strcoll.h: New file.
37601
37602 2009-02-07  Bruno Haible  <bruno@clisp.org>
37603
37604         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37605         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37606         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37607         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37608         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37609         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37610
37611 2009-02-07  Bruno Haible  <bruno@clisp.org>
37612
37613         Make 64-bit clean.
37614         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37615         output_combclass, output_bidi_category, output_decimal_digit,
37616         output_digit, output_numeric, output_mirror, output_scripts,
37617         output_ident_category): Use proper width specifier in format strings.
37618
37619 2009-02-07  Bruno Haible  <bruno@clisp.org>
37620
37621         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37622         failure behaviour.
37623
37624 2009-02-07  Jim Meyering  <meyering@redhat.com>
37625
37626         regex: avoid compilation failure with upcoming gcc-4.4
37627         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37628         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37629         "... error: integer overflow in preprocessor expression".
37630
37631 2009-02-05  Ben Pfaff  <blp@gnu.org>
37632
37633         Fix link errors on Windows when close module is used.
37634         * modules/close: Add $(LIB_CLOSE) to Link section.
37635         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37636         $(LIB_CLOSE) on Windows.
37637
37638 2009-02-05  Jim Meyering  <meyering@redhat.com>
37639
37640         still avoid unused-parameter warnings, but do it cleanly
37641         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37642         (get_fs_usage): Cast to void instead.
37643         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37644         (dev_from_mount_options, read_file_system_list): Cast to void.
37645         Prompted by Bruno Haible.
37646
37647 2009-02-04  Jim Meyering  <meyering@redhat.com>
37648
37649         fsusage.c: correct copyright year
37650         * lib/fsusage.c: Reflect year in which the change is pushed into
37651
37652         avoid misc. warnings
37653         * lib/fsusage.c (UNUSED_PARAM): Define.
37654         (get_fs_usage): Mark parameter "disk" as unused.
37655         * lib/getugroups.c (getgrent): Use "void" in prototype.
37656         * lib/mountlist.c: Mark unused parameters.
37657         (read_file_system_list): Declare a local with "const".
37658         * lib/nanosleep.c (getnow): Declare static.
37659         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37660
37661         dirfd: set errno upon failure
37662         * lib/dirfd.c: Include <errno.h>.
37663         Set errno to ENOTSUP when returning -1.
37664         * modules/dirfd (Depends-on): Add errno.
37665         Suggested by John Kodis <kodis@comcast.net>.
37666
37667 2009-02-01  Bruno Haible  <bruno@clisp.org>
37668
37669         Don't assume sizeof (long) >= sizeof (void *).
37670         * lib/memcmp.c: Include stdint.h.
37671         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37672         srcp2 to 'const byte *'.
37673         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37674         types to uintptr_t.
37675         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37676         * modules/memcmp (Depends-on): Add stdint.
37677         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37678
37679 2009-01-30  Eric Blake  <ebb9@byu.net>
37680
37681         fix more require-before-expand issues
37682         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37683         expand, AC_PROG_AWK.
37684         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37685
37686 2009-01-28  Eric Blake  <ebb9@byu.net>
37687
37688         version-etc: use consistent URL formatting
37689         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37690         Improve formatting.  Use fputs for string without %.
37691
37692 2009-01-28  Jim Meyering  <meyering@redhat.com>
37693
37694         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37695         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37696         "underquoted definition of NAME" from autoconf-2.59.
37697
37698 2009-01-28  Bruno Haible  <bruno@clisp.org>
37699
37700         * doc/gnulib.texi: Add "Obsolete modules" to index.
37701
37702 2009-01-28  Jim Meyering  <meyering@redhat.com>
37703
37704         useless-if-before-free: recognize more variants
37705         * build-aux/useless-if-before-free: Also recognize e.g.,
37706         if (NULL != p) free (p);
37707
37708 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37709
37710         test-getaddrinfo: skip (don't fail) this test when there's no network
37711         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37712         on the presumption that it means you lack network access.
37713
37714 2009-01-26  Jim Meyering  <meyering@redhat.com>
37715
37716         fflush: avoid warnings on modern systems
37717         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37718         pos and result, into scopes where they're used.
37719
37720 2009-01-26  Eric Blake  <ebb9@byu.net>
37721
37722         Silence warning reintroduced by recent extensions patch.
37723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37724         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37725         autoconf.
37726
37727         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37728         * m4/00gnulib.m4: New file.
37729         * gnulib-tool (func_get_filelist): Always use it.
37730         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37731         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37732
37733 2009-01-25  Bruno Haible  <bruno@clisp.org>
37734
37735         Make test-quotearg work on MacOS X and AIX.
37736         * tests/test-quotearg.sh: New file.
37737         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37738         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37739         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37740         include <libintl.h>.
37741         (fake_locale): Remove variable.
37742         (gettext, dgettext, dcgettext): Remove functions.
37743         (main): Instead of setting a fake locale, set a real locale. Call
37744         textdomain and bindtextdomain.
37745         * modules/quotearg-tests (Files): Add the new files.
37746         (Depends-on): Add gettext, setenv, unsetenv.
37747         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37748         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37749         Augment TESTS_ENVIRONMENT.
37750
37751 2009-01-25  Bruno Haible  <bruno@clisp.org>
37752
37753         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37754         fr_FR.ISO8859-1 locale on MacOS X.
37755         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37756         ja_JP.eucJP locale on MacOS X.
37757         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37758         zh_CN.GB18030 locale on MacOS X.
37759
37760 2009-01-25  Bruno Haible  <bruno@clisp.org>
37761
37762         Avoid link errors on MacOS X 10.3.
37763         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37764         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37765
37766 2009-01-25  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37769         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37770         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37771         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37772         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37773         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37774         posix_spawnattr_init, posix_spawnattr_setsigmask,
37775         posix_spawnattr_setflags, posix_spawnattr_destroy.
37776
37777         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37778         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37779         * modules/execute (Files): Remove m4/posix_spawn.m4.
37780         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37781         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37782         posix_spawnattr_init, posix_spawnattr_setsigmask,
37783         posix_spawnattr_setflags, posix_spawnattr_destroy.
37784
37785 2009-01-25  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/glthread/threadlib.c: Include <stdlib.h>.
37788
37789 2009-01-25  Bruno Haible  <bruno@clisp.org>
37790
37791         * lib/glthread/threadlib.c (dummy): New declaration.
37792
37793 2009-01-25  Bruno Haible  <bruno@clisp.org>
37794
37795         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37796         multibyte characters also for the GB18030 encoding. Don't crash when
37797         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37798
37799 2009-01-25  Bruno Haible  <bruno@clisp.org>
37800
37801         Avoid redefining 'struct random_data' on OSF/1 5.1.
37802         * lib/stdlib.in.h: Include <random.h> if it exists.
37803         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37804         HAVE_RANDOM_H. Include <random.h> when testing whether
37805         'struct random_data' exists.
37806         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37807
37808 2009-01-25  Bruno Haible  <bruno@clisp.org>
37809
37810         Don't install charset.alias on MacOS X >= 10.3.
37811         * lib/localcharset.c (DARWIN7): New macro.
37812         (get_charset_aliases): Hardcode the result for Darwin7.
37813         * modules/localcharset (install-exec-local): Don't install
37814         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37815
37816 2009-01-25  Bruno Haible  <bruno@clisp.org>
37817
37818         Don't install charset.alias on mingw and Cygwin.
37819         * modules/localcharset (install-exec-local): Don't install
37820         charset.alias on mingw and Cygwin, if the file does not yet exist.
37821         The result for these platforms is hardcoded in localcharset.c.
37822
37823 2009-01-25  Bruno Haible  <bruno@clisp.org>
37824
37825         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37827         before requiring AC_USE_SYSTEM_EXTENSIONS.
37828
37829 2009-01-25  Jim Meyering  <meyering@redhat.com>
37830
37831         c-strtod: avoid warnings
37832         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37833         "assignment discards qualifiers from pointer target type" warnings.
37834
37835 2009-01-24  Bruno Haible  <bruno@clisp.org>
37836
37837         Add support for non-UTF-8 locales on MacOS X.
37838         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37839         canonical encodings. For Darwin 7 and newer, don't map traditional
37840         encodings to UTF-8.
37841         Reported by Vincent Lefevre <vincent@vinc17.org>
37842         at <http://savannah.gnu.org/bugs/?25235>.
37843
37844 2009-01-24  Bruno Haible  <bruno@clisp.org>
37845
37846         * doc/gnulib.texi (Obsolete modules): New section.
37847         Reported by Mike Frysinger <vapier@gentoo.org>.
37848
37849 2009-01-24  Bruno Haible  <bruno@clisp.org>
37850
37851         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37852         (%.dvi): New rule.
37853
37854 2009-01-24  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37857         Reported by Eric Blake.
37858
37859 2009-01-24  Bruno Haible  <bruno@clisp.org>
37860
37861         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37862         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37863         Reported by Gary V. Vaughan <gary@gnu.org>.
37864
37865 2009-01-24  Bruno Haible  <bruno@clisp.org>
37866
37867         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37868
37869 2009-01-23  Bruno Haible  <bruno@clisp.org>
37870
37871         Make c-strtod, c-strtold usable in libraries.
37872         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37873         (C_STRTOD): Call strdup instead of xstrdup.
37874         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37875         * modules/c-strtold (Depends-on): Likewise.
37876         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37877         * NEWS: Mention the change.
37878         Reported by Michael Gold <mgold@ncf.ca>.
37879
37880 2009-01-23  Jim Meyering  <meyering@redhat.com>
37881
37882         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37883         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37884         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37885
37886 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37887
37888         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37889         GNU CoreUtils.
37890         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37891         * modules/version-etc (Description): Update.
37892
37893 2009-01-22  Bruno Haible  <bruno@clisp.org>
37894
37895         Cache the C locale object.
37896         * lib/c-strtod.c (c_locale_cache): New variable.
37897         (c_locale): New function.
37898         (C_STRTOD): Use it, and don't call freelocale.
37899         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37900         Suggested by Paolo Bonzini.
37901
37902 2009-01-21  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37905         conditions other than overflow.
37906
37907 2009-01-21  Bruno Haible  <bruno@clisp.org>
37908
37909         * lib/c-strtod.c: Include errno.h.
37910         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37911         value from STRTOD_L and STRTOD.
37912
37913 2009-01-21  Bruno Haible  <bruno@clisp.org>
37914         and Jim Meyering  <meyering@redhat.com>
37915
37916         nanosleep: skip configure test (fail it) for apple universal builds
37917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37918         universal builds, assume that nanosleep does not work.
37919         * modules/nanosleep (Depends-on): Add multiarch.
37920
37921         mktime: skip configure test (fail it) for apple universal builds
37922         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37923         universal builds, assume that mktime does not work.
37924         * modules/mktime (Depends-on): Add multiarch.
37925
37926 2009-01-21  Eric Blake  <ebb9@byu.net>
37927
37928         multiarch: avoid expand-before-require warning
37929         * modules/multiarch (configure.ac): Require, rather than expand,
37930         gl_MULTIARCH.
37931         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37932         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37933         enforce that all clients require it.  Partial reversion of
37934         2008-12-29 patch.
37935
37936         error: avoid expand-before-require warning
37937         * modules/errno (configure.ac): Require, rather than expand,
37938         gl_HEADER_ERRNO_H.
37939         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37940         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37941         enforce that all clients require it.
37942
37943         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37944         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37945         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37946         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37947
37948 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37949
37950         Revert:
37951         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37952
37953         regex: do not depend on obsolete modules.
37954         * modules/regex: Remove memcmp and memmove.
37955
37956 2009-01-20  Bruno Haible  <bruno@clisp.org>
37957
37958         Make the 'link' module link on Windows NT 4.
37959         * lib/link.c (_WIN32_WINNT): Don't define.
37960         (CreateHardLinkFuncType): New type.
37961         (CreateHardLinkFunc, initialized): New variables.
37962         (initialize): New function.
37963         (link): Invoke CreateHardLink indirectly through the function pointer.
37964
37965 2009-01-20  Bruno Haible  <bruno@clisp.org>
37966
37967         Fix compilation failure on mingw.
37968         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37969
37970 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37971
37972         * doc/c-strtod.texi: Mention a couple of restrictions.
37973
37974 2009-01-20  Jim Meyering  <meyering@redhat.com>
37975
37976         gettimeofday: move more declarations out of functions
37977         * lib/gettimeofday.c: Move extern declarations of tzset and
37978         gmtime out of containing functions.  Prompted by Bruno Haible.
37979
37980 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37981
37982         regex: do not depend on obsolete modules.
37983         * modules/regex: Remove memcmp and memmove.
37984
37985 2009-01-19  Bruno Haible  <bruno@clisp.org>
37986
37987         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37988         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37989         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37990         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37991         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37992
37993 2009-01-19  Bruno Haible  <bruno@clisp.org>
37994
37995         * tests/test-link.c: Include <errno.h>.
37996         (main): Exit with code 77 when a hard link cannot be created due to
37997         the file system.
37998         * tests/test-link.sh: Skip test when a hard link cannot be created due
37999         to the file system.
38000         Suggested by Eric Blake.
38001
38002 2009-01-19  Martin Lambers  <marlam@marlam.de>
38003
38004         * modules/link-tests: New file.
38005         * tests/test-link.sh: New file.
38006         * tests/test-link.c: New file.
38007
38008 2009-01-19  Eric Blake  <ebb9@byu.net>
38009
38010         doc: mention another function added in cygwin 1.7.0
38011         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38012         Another new function in cygwin 1.7.
38013
38014 2009-01-19  Bruno Haible  <bruno@clisp.org>
38015
38016         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38017         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38018         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38019         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38020         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38021         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38022         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38023         * m4/md4.m4 (gl_MD4): Likewise.
38024         * m4/md5.m4 (gl_MD5): Likewise.
38025         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38026         * m4/sha1.m4 (gl_SHA1): Likewise.
38027         * m4/sha256.m4 (gl_SHA256): Likewise.
38028         * m4/sha512.m4 (gl_SHA512): Likewise.
38029
38030 2009-01-19  Bruno Haible  <bruno@clisp.org>
38031
38032         * modules/uniname/uniname-tests (Depends-on): Add progname.
38033         * tests/uniname/test-uninames.c: Include progname.h.
38034         (main): Call set_program_name.
38035
38036         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38037         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38038         (main): Call set_program_name.
38039
38040         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38041         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38042         (main): Call set_program_name.
38043
38044         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38045         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38046         (main): Call set_program_name.
38047
38048         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38049         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38050         (main): Call set_program_name.
38051
38052         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38053         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38054         (main): Call set_program_name.
38055
38056         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38057         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38058         (main): Call set_program_name.
38059
38060         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38061         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38062         (main): Call set_program_name.
38063
38064         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38065         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38066         (main): Call set_program_name.
38067
38068 2009-01-19  Eric Blake  <ebb9@byu.net>
38069
38070         test-unistd: test previous patch
38071         * tests/test-unistd.c: Test *_FILENO macros.
38072
38073         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38074         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38075         Guarantee a definition.
38076         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38077         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38078         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38079         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38080         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38081         Likewise.
38082         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38083         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38084         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38085         Likewise.
38086         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38087         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38088         (STDERR_FILENO): Likewise.
38089         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38090         (STDERR_FILENO): Likewise.
38091         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38092         (STDERR_FILENO): Likewise.
38093         Reported by Elbert Pol.
38094
38095 2009-01-19  Eric Blake  <ebb9@byu.net>
38096
38097         doc: mention more functions added in cygwin 1.7.0
38098         * doc/posix-functions/abort.texi (abort): Update wording related
38099         to cygwin.
38100         * doc/posix-functions/daylight.texi (daylight): Likewise.
38101         * doc/posix-functions/optarg.texi (optarg): Likewise.
38102         * doc/posix-functions/optarg.texi (opterr): Likewise.
38103         * doc/posix-functions/optarg.texi (optind): Likewise.
38104         * doc/posix-functions/optarg.texi (optopt): Likewise.
38105         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38106         worked in 1.5.x, and was withdrawn in 1.7.
38107         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38108         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38109         cygwin versions.
38110         * doc/posix-functions/perror.texi (perror): Likewise.
38111         * doc/posix-functions/printf.texi (printf): Likewise.
38112         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38113         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38114         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38115         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38116         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38117         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38118         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38119         Likewise.
38120         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38121         Likewise.
38122         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38123         this function.
38124         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38125         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38126         Likewise.
38127         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38128         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38129         * doc/posix-functions/confstr.texi (confstr): Likewise.
38130         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38131         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38132         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38133         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38134         * doc/posix-functions/fputws.texi (fputws): Likewise.
38135         * doc/posix-functions/fwide.texi (fwide): Likewise.
38136         * doc/posix-functions/getwc.texi (getwc): Likewise.
38137         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38138         * doc/posix-functions/putwc.texi (putwc): Likewise.
38139         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38140         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38141         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38142         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38143         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38144         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38145         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38146         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38147         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38148         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38149         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38150
38151 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38152
38153         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38154         * lib/ioctl.c: Include <sys/ioctl.h>.
38155
38156 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38157
38158         * modules/getdate-tests (Depends-on): Add progname.
38159         * tests/test-getdate.c: Use progname module, to avoid link errors
38160         on non-glibc systems.
38161
38162 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38163
38164         * modules/filenamecat-tests (Depends-on): Add progname.
38165         * modules/fstrcmp-tests (Depends-on): Likewise.
38166
38167         * tests/test-filenamecat.c: Use progname module, to avoid link
38168         errors on non-glibc systems.
38169         * tests/test-fstrcmp.c: Likewise.
38170
38171 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38172
38173         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38174         * lib/gettimeofday.c: Move extern declaration out of function.
38175
38176 2009-01-18  Bruno Haible  <bruno@clisp.org>
38177
38178         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38179         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38180         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38181
38182 2009-01-18  Bruno Haible  <bruno@clisp.org>
38183
38184         * lib/strftime.c (MEMPCPY): Remove unused macro.
38185         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38186
38187 2009-01-18  Martin Lambers  <marlam@marlam.de>
38188
38189         New module 'link'.
38190         * lib/unistd.in.h (link): New declaration.
38191         * lib/link.c: New file.
38192         * m4/link.m4: New file.
38193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38194         HAVE_LINK.
38195         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38196         * modules/link: New file.
38197         * doc/posix-functions/link.texi: Mention the new module.
38198
38199 2009-01-18  Bruno Haible  <bruno@clisp.org>
38200
38201         * tests/test-avltree_list.c (main): Call set_program_name.
38202         * tests/test-avltree_oset.c (main): Likewise.
38203         * tests/test-obstack-printf.c: Include progname.h.
38204         (main): Call set_program_name.
38205         * tests/test-quotearg.c: Include progname.h.
38206         (main): Call set_program_name.
38207         * tests/test-xmemdup0.c: Include progname.h.
38208         (main): Call set_program_name.
38209
38210 2009-01-18  Bruno Haible  <bruno@clisp.org>
38211
38212         New module 'alphasort'.
38213         * lib/dirent.in.h (alphasort): New declaration.
38214         * lib/alphasort.c: New file, from glibc with modifications.
38215         * m4/alphasort.m4: New file.
38216         * modules/alphasort: New file.
38217         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38218         HAVE_ALPHASORT.
38219         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38220         HAVE_ALPHASORT.
38221         * doc/posix-functions/alphasort.texi: Mention the new module and the
38222         portability problems.
38223
38224 2009-01-18  Bruno Haible  <bruno@clisp.org>
38225
38226         New module 'scandir'.
38227         * lib/dirent.in.h (scandir): New declaration.
38228         * lib/scandir.c: New file, from glibc with modifications.
38229         * m4/scandir.m4: New file.
38230         * modules/scandir: New file.
38231         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38232         HAVE_SCANDIR.
38233         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38234         HAVE_SCANDIR.
38235         * doc/posix-functions/scandir.texi: Mention the new module and the
38236         portability problems.
38237
38238 2009-01-17  Bruno Haible  <bruno@clisp.org>
38239
38240         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38241         Update documentation.
38242         (func_remove_suffix): Escape all dots in the suffix. Update
38243         documentation.
38244         (func_filter_filelist): Update documentation.
38245         Reported by Ralf Wildenhues.
38246
38247 2009-01-17  Bruno Haible  <bruno@clisp.org>
38248
38249         * modules/dprintf-posix-tests: New file.
38250         * tests/test-dprintf-posix.sh: New file.
38251         * tests/test-dprintf-posix.c: New file.
38252
38253         New modules 'dprintf', 'dprintf-posix'.
38254         * lib/stdio.in.h (dprintf): New declaration.
38255         * lib/dprintf.c: New file.
38256         * m4/dprintf.m4: New file.
38257         * m4/dprintf-posix.m4: New file.
38258         * modules/dprintf: New file.
38259         * modules/dprintf-posix: New file.
38260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38261         HAVE_DPRINTF, REPLACE_DPRINTF.
38262         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38263         HAVE_DPRINTF, REPLACE_DPRINTF.
38264         * doc/posix-functions/dprintf.texi: Mention the new modules.
38265
38266 2009-01-17  Bruno Haible  <bruno@clisp.org>
38267
38268         * modules/vdprintf-posix-tests: New file.
38269         * tests/test-vdprintf-posix.sh: New file.
38270         * tests/test-vdprintf-posix.c: New file.
38271
38272         New modules 'vdprintf', 'vdprintf-posix'.
38273         * lib/stdio.in.h (vdprintf): New declaration.
38274         * lib/vdprintf.c: New file.
38275         * m4/vdprintf.m4: New file.
38276         * m4/vdprintf-posix.m4: New file.
38277         * modules/vdprintf: New file.
38278         * modules/vdprintf-posix: New file.
38279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38280         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38281         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38282         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38283         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38284
38285 2009-01-17  Bruno Haible  <bruno@clisp.org>
38286
38287         Fix replacement of fopen on mingw.
38288         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38289         mingw.
38290
38291 2009-01-17  Bruno Haible  <bruno@clisp.org>
38292
38293         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38294         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38295
38296 2009-01-17  Bruno Haible  <bruno@clisp.org>
38297
38298         Avoid test-fflush2.sh failure on mingw.
38299         * tests/test-fflush2.c: Include binary-io.h.
38300         (main): Put standard input into binary mode.
38301         * modules/fflush-tests (Depends-on): Add binary-io.
38302
38303 2009-01-17  Bruno Haible  <bruno@clisp.org>
38304
38305         * lib/wchar.in.h: In another particular situation, include only the
38306         system's <wchar.h> file.
38307         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38308         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38309         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38310
38311 2009-01-17  Bruno Haible  <bruno@clisp.org>
38312
38313         Support for stripping executables in --enable-relocatable.
38314         * build-aux/install-reloc: Expect one more argument, or an environment
38315         variable RELOC_STRIP_PROG. If set, strip the destination program and
38316         its wrapper.
38317         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38318         RELOC_STRIP_PROG.
38319         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38320         to set RELOCATABLE_STRIP.
38321         * NEWS: Mention the new Makefile requirement.
38322
38323 2009-01-17  Bruno Haible  <bruno@clisp.org>
38324
38325         * build-aux/install-reloc: Remove debugging information left over by
38326         C compiler on MacOS X.
38327
38328 2009-01-17  Bruno Haible  <bruno@clisp.org>
38329
38330         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38331         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38332         _NSGetExecutablePath.
38333
38334 2009-01-16  Jim Meyering  <meyering@redhat.com>
38335
38336         strerror: avoid warnings about discarding "const"
38337         * lib/strerror.c (rpl_strerror): Instead of returning a const
38338         string from each and every "case", use a variable, and add a single
38339         cast after the switch.
38340
38341 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38342
38343         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38344
38345 2009-01-16  Bruno Haible  <bruno@clisp.org>
38346
38347         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38348         array initializer syntax that also works in C++ mode.
38349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38350
38351 2009-01-16  Jim Meyering  <meyering@redhat.com>
38352
38353         poll: suppress a warning
38354         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38355         to ignore "...unsigned expression < 0 is always false" warnings.
38356
38357 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38358
38359         poll: remove declarations of unused variables
38360         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38361         sockbuf and optlen.
38362
38363 2009-01-15  Bruno Haible  <bruno@clisp.org>
38364
38365         Make fflush-after-ungetc POSIX compliant on BSD systems.
38366         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38367         (clear_ungetc_buffer): Implement also for other systems.
38368         (rpl_fflush): On glibc systems, invoke
38369         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38370         clear_ungetc_buffer after fetching the stream's position, not before.
38371
38372 2009-01-15  Bruno Haible  <bruno@clisp.org>
38373
38374         Make fflush-after-ungetc POSIX compliant on glibc systems.
38375         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38376         after ungetc.
38377         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38378         (rpl_fflush): On glibc systems, simply call the system's fflush
38379         function after clearing the ungetc buffer.
38380         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38381         Instead, lseek only to the end of file, then use the system's fseeko
38382         for the rest. On glibc systems, reset the EOF indicator bit.
38383
38384 2009-01-15  Jim Meyering  <meyering@redhat.com>
38385
38386         openmp.m4: revert quote-adding change, for portability to older autoconf
38387         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38388         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38389         Simon Josefsson noticed the problem when using autoconf-2.61.
38390
38391 2009-01-15  Bruno Haible  <bruno@clisp.org>
38392
38393         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38394         * tests/test-fflush2.c (ASSERT): Always fail.
38395         (main): Add two tests for fflush() after ungetc(), taking into account
38396         the Austin Group's clarification.
38397         Suggested by Eric Blake.
38398
38399 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38400
38401         mktime.m4: remove K&R-style function prototypes
38402         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38403         for the Sun C++ compiler.
38404
38405 2009-01-14  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38408         while including <wchar.h>.
38409         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38410         the system's <wchar.h> file.
38411         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38412
38413 2009-01-14  Bruno Haible  <bruno@clisp.org>
38414
38415         * m4/csharp.m4: Don't mention gettext on the serial number line.
38416         * m4/csharpexec.m4: Likewise.
38417         * m4/eaccess.m4: Likewise.
38418         * m4/javaexec.m4: Likewise.
38419         * m4/sig_atomic_t.m4: Likewise.
38420         * m4/tmpdir.m4: Likewise.
38421         * m4/intldir.m4: Bump gettext version.
38422         * m4/lib-ld.m4: Likewise.
38423
38424 2009-01-14  Bruno Haible  <bruno@clisp.org>
38425
38426         * lib/progname.c (set_program_name): Add more comments.
38427         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38428
38429 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38430
38431         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38432         were sys/stat.h does not define it.
38433
38434 2009-01-14  Jim Meyering  <meyering@redhat.com>
38435
38436         many *.m4 files: improve m4 quoting
38437         99% of this change was performed by running the following commands:
38438         git ls-files | grep '\.m4$' | xargs perl -pi \
38439           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38440           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38441           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38442           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38443         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38444         The remainder were to add Copyright dates, increment serial numbers,
38445         undo some changes in comments, exclude m4/intl.m4, and add quotes
38446         around the "1" in ",1" where the unusual spacing prohibited the
38447         above regexps from doing the job.  For more details, see
38448         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38449         * m4/acl.m4: Modified.
38450         * m4/afs.m4: Likewise.
38451         * m4/alloca.m4: Likewise.
38452         * m4/argp.m4: Likewise.
38453         * m4/argz.m4: Likewise.
38454         * m4/atexit.m4: Likewise.
38455         * m4/bison-i18n.m4: Likewise.
38456         * m4/bison.m4: Likewise.
38457         * m4/byteswap.m4: Likewise.
38458         * m4/c-stack.m4: Likewise.
38459         * m4/c-strtod.m4: Likewise.
38460         * m4/calloc.m4: Likewise.
38461         * m4/canonicalize-lgpl.m4: Likewise.
38462         * m4/chown.m4: Likewise.
38463         * m4/clock_time.m4: Likewise.
38464         * m4/codeset.m4: Likewise.
38465         * m4/copy-file.m4: Likewise.
38466         * m4/csharp.m4: Likewise.
38467         * m4/csharpcomp.m4: Likewise.
38468         * m4/csharpexec.m4: Likewise.
38469         * m4/d-ino.m4: Likewise.
38470         * m4/d-type.m4: Likewise.
38471         * m4/dirfd.m4: Likewise.
38472         * m4/double-slash-root.m4: Likewise.
38473         * m4/eaccess.m4: Likewise.
38474         * m4/eealloc.m4: Likewise.
38475         * m4/environ.m4: Likewise.
38476         * m4/errno_h.m4: Likewise.
38477         * m4/euidaccess.m4: Likewise.
38478         * m4/execute.m4: Likewise.
38479         * m4/fatal-signal.m4: Likewise.
38480         * m4/fchdir.m4: Likewise.
38481         * m4/fcntl_h.m4: Likewise.
38482         * m4/fileblocks.m4: Likewise.
38483         * m4/filenamecat.m4: Likewise.
38484         * m4/findprog.m4: Likewise.
38485         * m4/flexmember.m4: Likewise.
38486         * m4/fnmatch.m4: Likewise.
38487         * m4/fopen.m4: Likewise.
38488         * m4/fpending.m4: Likewise.
38489         * m4/fprintf-posix.m4: Likewise.
38490         * m4/free.m4: Likewise.
38491         * m4/frexp.m4: Likewise.
38492         * m4/frexpl.m4: Likewise.
38493         * m4/fsusage.m4: Likewise.
38494         * m4/ftruncate.m4: Likewise.
38495         * m4/gc-camellia.m4: Likewise.
38496         * m4/gc-random.m4: Likewise.
38497         * m4/gc.m4: Likewise.
38498         * m4/getaddrinfo.m4: Likewise.
38499         * m4/getcwd-abort-bug.m4: Likewise.
38500         * m4/getcwd-path-max.m4: Likewise.
38501         * m4/getdate.m4: Likewise.
38502         * m4/getdomainname.m4: Likewise.
38503         * m4/getgroups.m4: Likewise.
38504         * m4/gethostname.m4: Likewise.
38505         * m4/gethrxtime.m4: Likewise.
38506         * m4/getline.m4: Likewise.
38507         * m4/getloadavg.m4: Likewise.
38508         * m4/getndelim2.m4: Likewise.
38509         * m4/getpass.m4: Likewise.
38510         * m4/gettext.m4: Likewise.
38511         * m4/gettime.m4: Likewise.
38512         * m4/gettimeofday.m4: Likewise.
38513         * m4/gnulib-common.m4: Likewise.
38514         * m4/group-member.m4: Likewise.
38515         * m4/host-os.m4: Likewise.
38516         * m4/iconv.m4: Likewise.
38517         * m4/iconv_open.m4: Likewise.
38518         * m4/inet_ntop.m4: Likewise.
38519         * m4/inet_pton.m4: Likewise.
38520         * m4/inline.m4: Likewise.
38521         * m4/intldir.m4: Likewise.
38522         * m4/intlmacosx.m4: Likewise.
38523         * m4/intmax.m4: Likewise.
38524         * m4/intmax_t.m4: Likewise.
38525         * m4/inttypes.m4: Likewise.
38526         * m4/inttypes_h.m4: Likewise.
38527         * m4/inttypes-pri.m4: Likewise.
38528         * m4/isapipe.m4: Likewise.
38529         * m4/isnand.m4: Likewise.
38530         * m4/isnanf.m4: Likewise.
38531         * m4/isnanl.m4: Likewise.
38532         * m4/javacomp.m4: Likewise.
38533         * m4/javaexec.m4: Likewise.
38534         * m4/jm-winsz1.m4: Likewise.
38535         * m4/jm-winsz2.m4: Likewise.
38536         * m4/lchown.m4: Likewise.
38537         * m4/lcmessage.m4: Likewise.
38538         * m4/ldexpl.m4: Likewise.
38539         * m4/lib-ld.m4: Likewise.
38540         * m4/lib-link.m4: Likewise.
38541         * m4/libsigsegv.m4: Likewise.
38542         * m4/link-follow.m4: Likewise.
38543         * m4/localcharset.m4: Likewise.
38544         * m4/locale-fr.m4: Likewise.
38545         * m4/locale-ja.m4: Likewise.
38546         * m4/locale-tr.m4: Likewise.
38547         * m4/locale-zh.m4: Likewise.
38548         * m4/lock.m4: Likewise.
38549         * m4/longlong.m4: Likewise.
38550         * m4/ls-mntd-fs.m4: Likewise.
38551         * m4/lstat.m4: Likewise.
38552         * m4/malloc.m4: Likewise.
38553         * m4/mathl.m4: Likewise.
38554         * m4/mbrtowc.m4: Likewise.
38555         * m4/mbstate_t.m4: Likewise.
38556         * m4/mbswidth.m4: Likewise.
38557         * m4/memchr.m4: Likewise.
38558         * m4/memcmp.m4: Likewise.
38559         * m4/memcpy.m4: Likewise.
38560         * m4/memmem.m4: Likewise.
38561         * m4/memmove.m4: Likewise.
38562         * m4/mempcpy.m4: Likewise.
38563         * m4/memrchr.m4: Likewise.
38564         * m4/memset.m4: Likewise.
38565         * m4/minmax.m4: Likewise.
38566         * m4/mkdir-slash.m4: Likewise.
38567         * m4/mkdtemp.m4: Likewise.
38568         * m4/mktime.m4: Likewise.
38569         * m4/mmap-anon.m4: Likewise.
38570         * m4/mountlist.m4: Likewise.
38571         * m4/nanosleep.m4: Likewise.
38572         * m4/nls.m4: Likewise.
38573         * m4/nocrash.m4: Likewise.
38574         * m4/open.m4: Likewise.
38575         * m4/openat.m4: Likewise.
38576         * m4/openmp.m4: Likewise.
38577         * m4/pathmax.m4: Likewise.
38578         * m4/perl.m4: Likewise.
38579         * m4/physmem.m4: Likewise.
38580         * m4/pipe.m4: Likewise.
38581         * m4/po.m4: Likewise.
38582         * m4/poll.m4: Likewise.
38583         * m4/posixtm.m4: Likewise.
38584         * m4/posixver.m4: Likewise.
38585         * m4/printf-frexp.m4: Likewise.
38586         * m4/printf-frexpl.m4: Likewise.
38587         * m4/printf-posix.m4: Likewise.
38588         * m4/printf-posix-rpl.m4: Likewise.
38589         * m4/printf.m4: Likewise.
38590         * m4/progtest.m4: Likewise.
38591         * m4/putenv.m4: Likewise.
38592         * m4/readline.m4: Likewise.
38593         * m4/readlink.m4: Likewise.
38594         * m4/readutmp.m4: Likewise.
38595         * m4/realloc.m4: Likewise.
38596         * m4/regex.m4: Likewise.
38597         * m4/relocatable.m4: Likewise.
38598         * m4/relocatable-lib.m4: Likewise.
38599         * m4/rename-dest-slash.m4: Likewise.
38600         * m4/rename.m4: Likewise.
38601         * m4/rmdir-errno.m4: Likewise.
38602         * m4/rmdir.m4: Likewise.
38603         * m4/roundf.m4: Likewise.
38604         * m4/roundl.m4: Likewise.
38605         * m4/rpmatch.m4: Likewise.
38606         * m4/save-cwd.m4: Likewise.
38607         * m4/selinux-selinux-h.m4: Likewise.
38608         * m4/setenv.m4: Likewise.
38609         * m4/settime.m4: Likewise.
38610         * m4/sig2str.m4: Likewise.
38611         * m4/sig_atomic_t.m4: Likewise.
38612         * m4/signalblocking.m4: Likewise.
38613         * m4/signbit.m4: Likewise.
38614         * m4/sigpipe.m4: Likewise.
38615         * m4/sockets.m4: Likewise.
38616         * m4/sockpfaf.m4: Likewise.
38617         * m4/st_dm_mode.m4: Likewise.
38618         * m4/stat-time.m4: Likewise.
38619         * m4/stdbool.m4: Likewise.
38620         * m4/stdint.m4: Likewise.
38621         * m4/stdint_h.m4: Likewise.
38622         * m4/stpcpy.m4: Likewise.
38623         * m4/stpncpy.m4: Likewise.
38624         * m4/strcase.m4: Likewise.
38625         * m4/strchrnul.m4: Likewise.
38626         * m4/strcspn.m4: Likewise.
38627         * m4/strdup.m4: Likewise.
38628         * m4/strftime.m4: Likewise.
38629         * m4/strndup.m4: Likewise.
38630         * m4/strnlen.m4: Likewise.
38631         * m4/strpbrk.m4: Likewise.
38632         * m4/strptime.m4: Likewise.
38633         * m4/strsep.m4: Likewise.
38634         * m4/strtod.m4: Likewise.
38635         * m4/strtoimax.m4: Likewise.
38636         * m4/strtok_r.m4: Likewise.
38637         * m4/strtol.m4: Likewise.
38638         * m4/strtoll.m4: Likewise.
38639         * m4/strtoul.m4: Likewise.
38640         * m4/strtoull.m4: Likewise.
38641         * m4/strtoumax.m4: Likewise.
38642         * m4/strverscmp.m4: Likewise.
38643         * m4/threadlib.m4: Likewise.
38644         * m4/timegm.m4: Likewise.
38645         * m4/tm_gmtoff.m4: Likewise.
38646         * m4/tmpdir.m4: Likewise.
38647         * m4/tmpfile.m4: Likewise.
38648         * m4/tzset.m4: Likewise.
38649         * m4/uintmax_t.m4: Likewise.
38650         * m4/unlinkdir.m4: Likewise.
38651         * m4/unlocked-io.m4: Likewise.
38652         * m4/uptime.m4: Likewise.
38653         * m4/userspec.m4: Likewise.
38654         * m4/utimbuf.m4: Likewise.
38655         * m4/utime.m4: Likewise.
38656         * m4/utimes-null.m4: Likewise.
38657         * m4/utimes.m4: Likewise.
38658         * m4/vararrays.m4: Likewise.
38659         * m4/vasnprintf.m4: Likewise.
38660         * m4/vfprintf-posix.m4: Likewise.
38661         * m4/vprintf-posix.m4: Likewise.
38662         * m4/wait-process.m4: Likewise.
38663         * m4/wchar_t.m4: Likewise.
38664         * m4/wint_t.m4: Likewise.
38665         * m4/write-any-file.m4: Likewise.
38666         * m4/yield.m4: Likewise.
38667
38668 2009-01-13  Bruno Haible  <bruno@clisp.org>
38669
38670         Avoid test-copy-file.sh failures when ACL support insufficient.
38671         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38672         TESTS_ENVIRONMENT.
38673         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38674         Reported by Jim Meyering.
38675
38676 2009-01-13  Bruno Haible  <bruno@clisp.org>
38677
38678         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38679         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38680         * modules/unistdio/u8-printf-parse (Files): Likewise.
38681         * modules/unistdio/u32-printf-parse (Files): Likewise.
38682         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38683
38684 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38685
38686         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38687         and m4/inttypes_h.m4 too.
38688
38689 2009-01-12  Eric Blake  <ebb9@byu.net>
38690
38691         tests: IRIX 6.2 cc can't compile -0.0 into .data
38692         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38693         rather than at compile-time.
38694         * tests/test-floorl.c (minus_zero): Likewise.
38695         * tests/test-frexpl.c (minus_zero): Likewise.
38696         * tests/test-isnan.c (minus_zerol): Likewise.
38697         * tests/test-isnanl.h (minus_zero): Likewise.
38698         * tests/test-ldexpl.c (minus_zero): Likewise.
38699         * tests/test-roundl.c (minus_zero): Likewise.
38700         * tests/test-signbit.c (minus_zerol): Likewise.
38701         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38702         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38703         * tests/test-truncl.c (minus_zero): Likewise.
38704         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38705         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38706         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38707
38708 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38709
38710         regex: fix glibc bug 9697
38711         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38712         handling.
38713
38714 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38715
38716         regex: fix glibc bug 697
38717         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38718         being NULL also if there are no backreferences.
38719
38720 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38721
38722         regex: merge glibc changes
38723         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38724         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38725         re_string_skip_chars, re_string_reconstruct): Likewise.
38726         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38727
38728 2009-01-07  Jim Meyering  <meyering@redhat.com>
38729
38730         poll: filter through cppi
38731         * lib/poll.c: Indent cpp directives to reflect nesting.
38732
38733 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38734
38735         poll: don't return uninitialized
38736         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38737
38738 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38739
38740         avoid compile failure on AIX 6.1
38741         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38742         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38743
38744 2009-01-04  Jim Meyering  <meyering@redhat.com>
38745
38746         remove duplicate inclusion of <stdio.h>
38747         * tests/test-fprintf-posix.c: Likewise.
38748         * tests/test-printf-posix.c: Likewise.
38749         * tests/test-snprintf-posix.c: Likewise.
38750         * tests/test-sprintf-posix.c: Likewise.
38751         * tests/test-vasprintf-posix.c: Likewise.
38752         * tests/test-vfprintf-posix.c: Likewise.
38753         * tests/test-vprintf-posix.c: Likewise.
38754         * tests/test-vsnprintf-posix.c: Likewise.
38755         * tests/test-vsprintf-posix.c: Likewise.
38756
38757 2009-01-03  Jim Meyering  <meyering@redhat.com>
38758
38759         gnulib-tool: fix sed-based filtering
38760         * gnulib-tool (func_filter_filelist): Remove extra backslash
38761         in sed_fff_filter definition.
38762
38763 2009-01-02  Jim Meyering  <meyering@redhat.com>
38764
38765         strftime: avoid compilation failure on Solaris 2.6
38766         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38767         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38768         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38769         be available.  Reported by Tom G. Christensen.  Details in
38770         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38771
38772 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38773             Bruno Haible  <bruno@clisp.org>
38774
38775         Speed up gnulib-tool by doing more string processing through shell
38776         built-ins.
38777         * gnulib-tool (fast_func_append): New variable.
38778         (func_remove_prefix, func_remove_suffix): New functions.
38779         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38780         (func_filter_filelist): New function.
38781         (func_get_dependencies): Use func_remove_suffix instead of sed.
38782         (func_get_automake_snippet): Use func_filter_filelist instead of a
38783         subshell and sed invocation.
38784
38785 2009-01-01  Bruno Haible  <bruno@clisp.org>
38786
38787         Fix a security bug.
38788         * gnulib-tool (func_import, import, update): Don't allow the characters
38789         '"', '$', '`', '\' in macro arguments that become part of commands that
38790         are evaluated.
38791
38792 2009-01-01  Bruno Haible  <bruno@clisp.org>
38793
38794         * gnulib-tool (func_reset_sigpipe): Add more comments.
38795
38796 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38797
38798         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38799         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38800         already know the answer.
38801
38802 2009-01-01  Jim Meyering  <meyering@redhat.com>
38803
38804         * lib/version-etc.c (version_etc_va): Update copyright year.
38805
38806 2008-12-30  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38809         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38810         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38811
38812 2008-12-29  Eric Blake  <ebb9@byu.net>
38813
38814         multiarch: avoid autoconf AC_REQUIRE bug
38815         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38816         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38817         2.63 and older.
38818         Reported by Bruno Haible, and analyzed in
38819         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38820
38821 2008-12-29  Bruno Haible  <bruno@clisp.org>
38822
38823         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38824         files in subdirectories correctly.
38825         Reported by Ralf Wildenhues.
38826
38827 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38828
38829         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38830         rather than 'join FILE -', for Solaris join.
38831
38832 2008-12-29  Bruno Haible  <bruno@clisp.org>
38833
38834         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38835         quoting.
38836         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38837         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38838         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38839         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38840         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38841         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38842         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38843         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38844         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38845         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38846         * m4/nls.m4 (AM_NLS): Likewise.
38847         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38848         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38849         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38850         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38851         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38852         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38853         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38854         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38855         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38856         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38857         * m4/xsize.m4 (gl_XSIZE): Likewise.
38858         Suggested by Jim Meyering.
38859
38860 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38861
38862         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38863         * lib/parse-duration.c: use a switch instead of cascading if's.
38864
38865 2008-12-29  Eric Blake  <ebb9@byu.net>
38866
38867         wchar.h: supply WEOF on Irix 5.3
38868         * lib/wchar.in.h (wint_t): Also supply WEOF.
38869         * lib/wctype.in.h (wint_t): Likewise.
38870         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38871         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38872         Reported by Tom G. Christensen.
38873
38874 2008-12-26  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38877         i486, i586, i686.
38878
38879 2008-12-26  Bruno Haible  <bruno@clisp.org>
38880
38881         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38882
38883 2008-12-26  Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38886         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38887         not __STDC_CONSTANT_MACROS.
38888         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38889
38890 2008-12-25  Bruno Haible  <bruno@clisp.org>
38891
38892         Add support for universal builds to vasnprintf.
38893         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38894         universal builds, guess no.
38895         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38896         * modules/vasprintf-posix (Depends-on): Likewise.
38897         * modules/fprintf-posix (Depends-on): Likewise.
38898         * modules/vfprintf-posix (Depends-on): Likewise.
38899         * modules/snprintf-posix (Depends-on): Likewise.
38900         * modules/vsnprintf-posix (Depends-on): Likewise.
38901         * modules/sprintf-posix (Depends-on): Likewise.
38902         * modules/vsprintf-posix (Depends-on): Likewise.
38903         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38904         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38905         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38906         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38907         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38908         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38909         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38910
38911         Add support for universal builds to <inttypes.h>.
38912         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38913         _SCNu64_PREFIX): In Apple
38914         universal builds, define directly, using _LP64.
38915         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38916         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38917         * modules/inttypes (Depends-on): Add multiarch.
38918         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38919
38920         Add support for universal builds to <stdint.h>.
38921         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38922         universal builds, define directly, using _LP64.
38923         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38924         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38925         and size_t.
38926         * modules/stdint (Depends-on): Add multiarch.
38927         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38928
38929         New module 'multiarch'.
38930         * modules/multiarch: New file.
38931         * m4/multiarch.m4: New file.
38932
38933 2008-12-25  Bruno Haible  <bruno@clisp.org>
38934
38935         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38936
38937 2008-12-25  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/btowc (License): Relicense under LGPLv2+.
38940         * modules/mbsinit (License): Likewise.
38941         * modules/mbrtowc (License): Likewise.
38942         * modules/wcrtomb (License): Likewise.
38943         * modules/streq (License): Likewise.
38944         Reported by David Lutterkort <lutter@redhat.com>.
38945
38946 2008-12-23  Bruno Haible  <bruno@clisp.org>
38947
38948         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38949
38950 2008-12-23  Bruno Haible  <bruno@clisp.org>
38951
38952         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38954         GETADDRINFO_LIB, not in LIBS.
38955         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38956         * modules/canon-host (Link): Likewise.
38957         * NEWS: Mention the change.
38958         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38959         GETADDRINFO_LIB.
38960
38961 2008-12-22  Bruno Haible  <bruno@clisp.org>
38962
38963         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38964         * doc/posix-functions/iswalpha_l.texi: Likewise.
38965         * doc/posix-functions/iswblank_l.texi: Likewise.
38966         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38967         * doc/posix-functions/iswctype_l.texi: Likewise.
38968         * doc/posix-functions/iswdigit_l.texi: Likewise.
38969         * doc/posix-functions/iswgraph_l.texi: Likewise.
38970         * doc/posix-functions/iswlower_l.texi: Likewise.
38971         * doc/posix-functions/iswprint_l.texi: Likewise.
38972         * doc/posix-functions/iswpunct_l.texi: Likewise.
38973         * doc/posix-functions/iswspace_l.texi: Likewise.
38974         * doc/posix-functions/iswupper_l.texi: Likewise.
38975         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38976         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38977         * doc/posix-functions/open_wmemstream.texi: Likewise.
38978         * doc/posix-functions/swscanf.texi: Likewise.
38979         * doc/posix-functions/towctrans_l.texi: Likewise.
38980         * doc/posix-functions/towlower.texi: Likewise.
38981         * doc/posix-functions/towlower_l.texi: Likewise.
38982         * doc/posix-functions/towupper.texi: Likewise.
38983         * doc/posix-functions/towupper_l.texi: Likewise.
38984         * doc/posix-functions/vfwprintf.texi: Likewise.
38985         * doc/posix-functions/vfwscanf.texi: Likewise.
38986         * doc/posix-functions/vswscanf.texi: Likewise.
38987         * doc/posix-functions/vwprintf.texi: Likewise.
38988         * doc/posix-functions/vwscanf.texi: Likewise.
38989         * doc/posix-functions/wcpcpy.texi: Likewise.
38990         * doc/posix-functions/wcpncpy.texi: Likewise.
38991         * doc/posix-functions/wcscasecmp.texi: Likewise.
38992         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38993         * doc/posix-functions/wcscoll_l.texi: Likewise.
38994         * doc/posix-functions/wcsdup.texi: Likewise.
38995         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38996         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38997         * doc/posix-functions/wcsnlen.texi: Likewise.
38998         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38999         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39000         * doc/posix-functions/wctrans_l.texi: Likewise.
39001         * doc/posix-functions/wctype_l.texi: Likewise.
39002         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39003         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39004         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39005         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39006         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39007         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39008         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39009         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39010         * doc/glibc-functions/wcschrnul.texi: Likewise.
39011         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39012         * doc/glibc-functions/wcstod_l.texi: Likewise.
39013         * doc/glibc-functions/wcstof_l.texi: Likewise.
39014         * doc/glibc-functions/wcstol_l.texi: Likewise.
39015         * doc/glibc-functions/wcstold_l.texi: Likewise.
39016         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39017         * doc/glibc-functions/wcstoq.texi: Likewise.
39018         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39019         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39020         * doc/glibc-functions/wcstouq.texi: Likewise.
39021         * doc/glibc-functions/wmempcpy.texi: Likewise.
39022
39023 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39024             Eric Blake  <ebb9@byu.net>
39025             Paolo Bonzini  <bonzini@gnu.org>
39026             Bruno Haible  <bruno@clisp.org>
39027
39028         Make c-stack work on Haiku.
39029         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39030         (c_stack_action): Use SA_ONSTACK flag.
39031
39032 2008-12-22  Bruno Haible  <bruno@clisp.org>
39033
39034         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39035
39036 2008-12-22  Bruno Haible  <bruno@clisp.org>
39037
39038         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39039         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39040         being overridden.
39041         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39042         New macros.
39043         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39044         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39045         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39046         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39047
39048 2008-12-22  Bruno Haible  <bruno@clisp.org>
39049
39050         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39051         from test code.
39052
39053 2008-12-22  Eric Blake  <ebb9@byu.net>
39054
39055         Avoid gcc warnings on cygwin.
39056         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39057         Avoid unused variable.
39058         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39059         Likewise.
39060
39061 2008-12-22  Bruno Haible  <bruno@clisp.org>
39062
39063         Remove HAVE_MBRTOWC conditionals.
39064         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39065         (mbscasecmp): Assume mbrtowc function.
39066         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39067         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39068         * lib/mbschr.c: Include mbuiter.h unconditionally.
39069         (mbschr): Assume mbrtowc function.
39070         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39071         (mbscspn): Assume mbrtowc function.
39072         * lib/mbslen.c: Include mbuiter.h unconditionally.
39073         (mbslen): Assume mbrtowc function.
39074         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39075         (mbsncasecmp): Assume mbrtowc function.
39076         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39077         (mbsnlen): Assume mbrtowc function.
39078         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39079         (mbspbrk): Assume mbrtowc function.
39080         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39081         (mbspcasecmp): Assume mbrtowc function.
39082         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39083         (mbsrchr): Assume mbrtowc function.
39084         * lib/mbssep.c: Include mbuiter.h unconditionally.
39085         (mbssep): Assume mbrtowc function.
39086         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39087         (mbsspn): Assume mbrtowc function.
39088         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39089         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39090         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39091         (mbstok_r): Assume mbrtowc function.
39092         * lib/propername.c: Include mbuiter.h unconditionally.
39093         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39094         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39095         (trim2): Assume mbrtowc function.
39096         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39097         (mbsnwidth): Assume mbrtowc function.
39098         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39099         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39100         fallback definitions.
39101         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39102
39103 2008-12-22  Bruno Haible  <bruno@clisp.org>
39104
39105         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39106
39107 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39108
39109         * modules/regex: Request emulations for the mb*/wc* functions we need.
39110         * m4/regex.m4: Don't look for those functions here.
39111         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39112
39113 2008-12-22  Bruno Haible  <bruno@clisp.org>
39114
39115         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39116
39117 2008-12-21  Bruno Haible  <bruno@clisp.org>
39118
39119         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39120         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39121         (Include): Remove conditionalization.
39122         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39123         (Include): Remove conditionalization.
39124         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39125         (Include): Remove conditionalization.
39126         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39127         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39128         * NEWS: Mention the change.
39129         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39130         via Sergey Poznyakoff <gray@gnu.org.ua>.
39131
39132 2008-12-21  Bruno Haible  <bruno@clisp.org>
39133
39134         * MODULES.html.sh (Extended multibyte and wide character utilities
39135         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39136         wcrtomb, wcsrtombs.
39137         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39138         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39139         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39140         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39141
39142 2008-12-21  Bruno Haible  <bruno@clisp.org>
39143
39144         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39145
39146 2008-12-21  Bruno Haible  <bruno@clisp.org>
39147
39148         * modules/wcsnrtombs-tests: New file.
39149         * tests/test-wcsnrtombs1.sh: New file.
39150         * tests/test-wcsnrtombs2.sh: New file.
39151         * tests/test-wcsnrtombs3.sh: New file.
39152         * tests/test-wcsnrtombs4.sh: New file.
39153         * tests/test-wcsnrtombs.c: New file.
39154
39155         New module 'wcsnrtombs'.
39156         * lib/wchar.in.h (wcsnrtombs): New declaration.
39157         * lib/wcsnrtombs.c: New file.
39158         * lib/wcsrtombs-state.c: New file.
39159         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39160         (internal_state): Remove variable.
39161         * m4/wcsnrtombs.m4: New file.
39162         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39163         compilation units.
39164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39165         HAVE_WCSNRTOMBS.
39166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39167         HAVE_WCSNRTOMBS.
39168         * modules/wcsnrtombs: New file.
39169         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39170         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39171
39172 2008-12-21  Bruno Haible  <bruno@clisp.org>
39173
39174         * modules/wcsrtombs-tests: New file.
39175         * tests/test-wcsrtombs1.sh: New file.
39176         * tests/test-wcsrtombs2.sh: New file.
39177         * tests/test-wcsrtombs3.sh: New file.
39178         * tests/test-wcsrtombs4.sh: New file.
39179         * tests/test-wcsrtombs.c: New file.
39180
39181         New module 'wcsrtombs'.
39182         * lib/wchar.in.h (wcsrtombs): New declaration.
39183         * lib/wcsrtombs.c: New file.
39184         * m4/wcsrtombs.m4: New file.
39185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39186         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39188         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39189         * modules/wcsrtombs: New file.
39190         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39191         bugs.
39192
39193 2008-12-21  Bruno Haible  <bruno@clisp.org>
39194
39195         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39196         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39198         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39199         if not correct.
39200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39201         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39202         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39203         m4/locale-zh.m4, m4/codeset.m4.
39204         * doc/posix-functions/wcrtomb.texi: Document the bug.
39205
39206 2008-12-21  Bruno Haible  <bruno@clisp.org>
39207
39208         Work around a btowc() bug on IRIX 6.5.
39209         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39210         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39211         REPLACE_WTOBC if not.
39212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39213         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39214         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39215
39216 2008-12-21  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/wcrtomb-tests: New file.
39219         * tests/test-wcrtomb.sh: New file.
39220         * tests/test-wcrtomb.c: New file.
39221
39222         New module 'wcrtomb'.
39223         * lib/wchar.in.h (wcrtomb): New declaration.
39224         * lib/wcrtomb.c: New file.
39225         * m4/wcrtomb.m4: New file.
39226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39227         HAVE_WCRTOMB.
39228         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39229         HAVE_WCRTOMB.
39230         * modules/wcrtomb: New file.
39231         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39232
39233 2008-12-21  Bruno Haible  <bruno@clisp.org>
39234
39235         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39236         * modules/mbsrtowcs (Files): Likewise.
39237         * modules/wctob (Files): Likewise.
39238         * modules/c-strcase-tests (Files): Likewise.
39239         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39240         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39241         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39242         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39243         * modules/vasnprintf-posix-tests (Files): Likewise.
39244
39245 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39246
39247         gitlog-to-changelog: pass all command-line arguments to git-log
39248         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39249         it is sometimes convenient to filter the commits in various ways.
39250         gitlog-to-changelog only allows --since to specify a start date,
39251         but git-log itself supports many other filtering mechanisms.
39252         At the moment, I want to filter by branch name.  Rather than
39253         adding a --branch option to gitlog-to-changelog, it seems more
39254         flexible to simply pass all options directly to git-log and let
39255         git do the work.  Notice that this effectively makes --since a
39256         redundant option for gitlog-to-changelog, but removing it would
39257         require current usage to change since calls would then require
39258         an additional '--'.
39259
39260 2008-12-21  Bruno Haible  <bruno@clisp.org>
39261
39262         * modules/mbsnrtowcs-tests: New file.
39263         * tests/test-mbsnrtowcs1.sh: New file.
39264         * tests/test-mbsnrtowcs2.sh: New file.
39265         * tests/test-mbsnrtowcs3.sh: New file.
39266         * tests/test-mbsnrtowcs4.sh: New file.
39267         * tests/test-mbsnrtowcs.c: New file.
39268
39269         New module 'mbsnrtowcs'.
39270         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39271         * lib/mbsnrtowcs.c: New file.
39272         * lib/mbsrtowcs-state.c: New file.
39273         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39274         (internal_state): Remove variable.
39275         * m4/mbsnrtowcs.m4: New file.
39276         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39277         compilation units.
39278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39279         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39280         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39281         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39282         * modules/mbsnrtowcs: New file.
39283         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39284         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39285         portability problem.
39286
39287 2008-12-21  Bruno Haible  <bruno@clisp.org>
39288
39289         Work around mbsrtowcs bug.
39290         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39291         (gl_FUNC_MBSRTOWCS): Invoke it.
39292         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39293         m4/locale-zh.m4.
39294         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39295
39296 2008-12-21  Bruno Haible  <bruno@clisp.org>
39297
39298         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39299
39300 2008-12-21  Bruno Haible  <bruno@clisp.org>
39301
39302         Update doc for AIX.
39303         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39304         16-bit wchar_t type.
39305         * doc/posix-functions/btowc.texi: Likewise.
39306         * doc/posix-functions/fgetwc.texi: Likewise.
39307         * doc/posix-functions/fgetws.texi: Likewise.
39308         * doc/posix-functions/fputwc.texi: Likewise.
39309         * doc/posix-functions/fputws.texi: Likewise.
39310         * doc/posix-functions/fwide.texi: Likewise.
39311         * doc/posix-functions/fwprintf.texi: Likewise.
39312         * doc/posix-functions/fwscanf.texi: Likewise.
39313         * doc/posix-functions/getwchar.texi: Likewise.
39314         * doc/posix-functions/getwc.texi: Likewise.
39315         * doc/posix-functions/iswalnum.texi: Likewise.
39316         * doc/posix-functions/iswalpha.texi: Likewise.
39317         * doc/posix-functions/iswblank.texi: Likewise.
39318         * doc/posix-functions/iswcntrl.texi: Likewise.
39319         * doc/posix-functions/iswctype.texi: Likewise.
39320         * doc/posix-functions/iswdigit.texi: Likewise.
39321         * doc/posix-functions/iswgraph.texi: Likewise.
39322         * doc/posix-functions/iswlower.texi: Likewise.
39323         * doc/posix-functions/iswprint.texi: Likewise.
39324         * doc/posix-functions/iswpunct.texi: Likewise.
39325         * doc/posix-functions/iswspace.texi: Likewise.
39326         * doc/posix-functions/iswupper.texi: Likewise.
39327         * doc/posix-functions/iswxdigit.texi: Likewise.
39328         * doc/posix-functions/mbrtowc.texi: Likewise.
39329         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39330         * doc/posix-functions/mbstowcs.texi: Likewise.
39331         * doc/posix-functions/mbtowc.texi: Likewise.
39332         * doc/posix-functions/putwchar.texi: Likewise.
39333         * doc/posix-functions/putwc.texi: Likewise.
39334         * doc/posix-functions/swprintf.texi: Likewise.
39335         * doc/posix-functions/tolower.texi: Likewise.
39336         * doc/posix-functions/toupper.texi: Likewise.
39337         * doc/posix-functions/towctrans.texi: Likewise.
39338         * doc/posix-functions/ungetwc.texi: Likewise.
39339         * doc/posix-functions/vswprintf.texi: Likewise.
39340         * doc/posix-functions/wcrtomb.texi: Likewise.
39341         * doc/posix-functions/wcscat.texi: Likewise.
39342         * doc/posix-functions/wcschr.texi: Likewise.
39343         * doc/posix-functions/wcscmp.texi: Likewise.
39344         * doc/posix-functions/wcscoll.texi: Likewise.
39345         * doc/posix-functions/wcscpy.texi: Likewise.
39346         * doc/posix-functions/wcscspn.texi: Likewise.
39347         * doc/posix-functions/wcsftime.texi: Likewise.
39348         * doc/posix-functions/wcslen.texi: Likewise.
39349         * doc/posix-functions/wcsncat.texi: Likewise.
39350         * doc/posix-functions/wcsncmp.texi: Likewise.
39351         * doc/posix-functions/wcsncpy.texi: Likewise.
39352         * doc/posix-functions/wcspbrk.texi: Likewise.
39353         * doc/posix-functions/wcsrchr.texi: Likewise.
39354         * doc/posix-functions/wcsrtombs.texi: Likewise.
39355         * doc/posix-functions/wcsspn.texi: Likewise.
39356         * doc/posix-functions/wcsstr.texi: Likewise.
39357         * doc/posix-functions/wcstod.texi: Likewise.
39358         * doc/posix-functions/wcstof.texi: Likewise.
39359         * doc/posix-functions/wcstoimax.texi: Likewise.
39360         * doc/posix-functions/wcstok.texi: Likewise.
39361         * doc/posix-functions/wcstold.texi: Likewise.
39362         * doc/posix-functions/wcstoll.texi: Likewise.
39363         * doc/posix-functions/wcstol.texi: Likewise.
39364         * doc/posix-functions/wcstombs.texi: Likewise.
39365         * doc/posix-functions/wcstoull.texi: Likewise.
39366         * doc/posix-functions/wcstoul.texi: Likewise.
39367         * doc/posix-functions/wcstoumax.texi: Likewise.
39368         * doc/posix-functions/wcswidth.texi: Likewise.
39369         * doc/posix-functions/wcsxfrm.texi: Likewise.
39370         * doc/posix-functions/wctob.texi: Likewise.
39371         * doc/posix-functions/wctomb.texi: Likewise.
39372         * doc/posix-functions/wctrans.texi: Likewise.
39373         * doc/posix-functions/wctype.texi: Likewise.
39374         * doc/posix-functions/wcwidth.texi: Likewise.
39375         * doc/posix-functions/wmemchr.texi: Likewise.
39376         * doc/posix-functions/wmemcmp.texi: Likewise.
39377         * doc/posix-functions/wmemcpy.texi: Likewise.
39378         * doc/posix-functions/wmemmove.texi: Likewise.
39379         * doc/posix-functions/wmemset.texi: Likewise.
39380         * doc/posix-functions/wprintf.texi: Likewise.
39381         * doc/posix-functions/wscanf.texi: Likewise.
39382
39383 2008-12-21  Bruno Haible  <bruno@clisp.org>
39384
39385         Update doc for HP-UX 11.11.
39386         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39387         in HP-UX version 11.00, not in all versions of HP-UX 11.
39388         * doc/posix-functions/fwide.texi: Likewise.
39389         * doc/posix-functions/fwprintf.texi: Likewise.
39390         * doc/posix-functions/fwscanf.texi: Likewise.
39391         * doc/posix-functions/inet_ntop.texi: Likewise.
39392         * doc/posix-functions/inet_pton.texi: Likewise.
39393         * doc/posix-functions/mbrlen.texi: Likewise.
39394         * doc/posix-functions/mbrtowc.texi: Likewise.
39395         * doc/posix-functions/mbsinit.texi: Likewise.
39396         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39397         * doc/posix-functions/swprintf.texi: Likewise.
39398         * doc/posix-functions/swscanf.texi: Likewise.
39399         * doc/posix-functions/towctrans.texi: Likewise.
39400         * doc/posix-functions/vfwprintf.texi: Likewise.
39401         * doc/posix-functions/vswprintf.texi: Likewise.
39402         * doc/posix-functions/vwprintf.texi: Likewise.
39403         * doc/posix-functions/wcrtomb.texi: Likewise.
39404         * doc/posix-functions/wcsrtombs.texi: Likewise.
39405         * doc/posix-functions/wcsstr.texi: Likewise.
39406         * doc/posix-functions/wctob.texi: Likewise.
39407         * doc/posix-functions/wctrans.texi: Likewise.
39408         * doc/posix-functions/wmemchr.texi: Likewise.
39409         * doc/posix-functions/wmemcmp.texi: Likewise.
39410         * doc/posix-functions/wmemcpy.texi: Likewise.
39411         * doc/posix-functions/wmemmove.texi: Likewise.
39412         * doc/posix-functions/wmemset.texi: Likewise.
39413         * doc/posix-functions/wprintf.texi: Likewise.
39414         * doc/posix-functions/wscanf.texi: Likewise.
39415
39416 2008-12-21  Bruno Haible  <bruno@clisp.org>
39417
39418         Work around a portability problem.
39419         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39420         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39421
39422 2008-12-20  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39425         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39426         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39428         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39429
39430         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39431         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39432         set.
39433         (GNULIB_defined_mbstate_t): New macro.
39434         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39435         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39436         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39437         reuses the system's mbrtowc function but works around the bugs.
39438         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39439         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39440         macros.
39441         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39442         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39443         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39444         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39445         REPLACE_MBSINIT if mbsinit needs to be overridden.
39446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39447         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39448         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39449         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39450         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39451         m4/locale-zh.m4.
39452         (Depends): Add mbsinit.
39453         * modules/mbsinit (Depends): Add mbrtowc.
39454         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39455
39456 2008-12-20  Bruno Haible  <bruno@clisp.org>
39457
39458         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39459         so that there are no conversion errors on AIX.
39460         * tests/test-mbsrtowcs.c (main): LIkewise.
39461
39462 2008-12-20  Bruno Haible  <bruno@clisp.org>
39463
39464         Work around wctob bug on Solaris <= 9.
39465         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39466         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39468         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39469         * modules/wctob (Files): Add m4/locale-fr.m4.
39470         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39471
39472 2008-12-20  Bruno Haible  <bruno@clisp.org>
39473
39474         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39475         /dev/null.
39476         * tests/test-select-in.sh: Likewise.
39477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39478
39479 2008-12-20  Bruno Haible  <bruno@clisp.org>
39480
39481         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39482         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39483         Cygwin 1.5.x.
39484
39485 2008-12-20  Bruno Haible  <bruno@clisp.org>
39486
39487         Ensure mbstate_t is defined on HP-UX 11.11.
39488         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39489         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39490         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39491         AC_USE_SYSTEM_EXTENSIONS.
39492         * modules/fnmatch (Depends-on): Add extensions.
39493         * modules/mbrlen (Depends-on): Likewise.
39494         * modules/mbrtowc (Depends-on): Likewise.
39495         * modules/mbsinit (Depends-on): Likewise.
39496         * modules/mbsrtowcs (Depends-on): Likewise.
39497         * modules/mbswidth (Depends-on): Likewise.
39498         * modules/quotearg (Depends-on): Likewise.
39499         * modules/strftime (Depends-on): Likewise.
39500
39501 2008-12-20  Bruno Haible  <bruno@clisp.org>
39502
39503         Ensure wctob is declared on IRIX 6.5.
39504         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39505         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39506         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39508         of HAVE_WCTOB.
39509         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39510         HAVE_WCTOB.
39511         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39512
39513 2008-12-19  Bruno Haible  <bruno@clisp.org>
39514
39515         * modules/mbsrtowcs-tests: New file.
39516         * tests/test-mbsrtowcs1.sh: New file.
39517         * tests/test-mbsrtowcs2.sh: New file.
39518         * tests/test-mbsrtowcs3.sh: New file.
39519         * tests/test-mbsrtowcs4.sh: New file.
39520         * tests/test-mbsrtowcs.c: New file.
39521
39522         New module 'mbsrtowcs'.
39523         * lib/wchar.in.h (mbsrtowcs): New declaration.
39524         * lib/mbsrtowcs.c: New file.
39525         * m4/mbsrtowcs.m4: New file.
39526         * modules/mbsrtowcs: New file.
39527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39528         HAVE_MBSRTOWCS.
39529         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39530         HAVE_MBSRTOWCS.
39531         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39532
39533 2008-12-19  Bruno Haible  <bruno@clisp.org>
39534
39535         New module 'mbrlen'.
39536         * lib/wchar.in.h (mbrlen): New declaration.
39537         * lib/mbrlen.c: New file.
39538         * m4/mbrlen.m4: New file.
39539         * modules/mbrlen: New file.
39540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39541         HAVE_MBRLEN.
39542         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39543         HAVE_MBRLEN.
39544         * doc/posix-functions/mbrlen.texi: Document the new module.
39545
39546 2008-12-19  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39549         * modules/mbrtowc (Depends-on): Add verify.
39550         Suggested by Paul Eggert.
39551
39552 2008-12-18  Bruno Haible  <bruno@clisp.org>
39553
39554         * modules/mbsinit-tests: New file.
39555         * tests/test-mbsinit.sh: New file.
39556         * tests/test-mbsinit.c: New file.
39557
39558 2008-12-18  Bruno Haible  <bruno@clisp.org>
39559
39560         * modules/mbrtowc-tests: New file.
39561         * tests/test-mbrtowc1.sh: New file.
39562         * tests/test-mbrtowc2.sh: New file.
39563         * tests/test-mbrtowc3.sh: New file.
39564         * tests/test-mbrtowc4.sh: New file.
39565         * tests/test-mbrtowc.c: New file.
39566
39567         New module 'mbrtowc'.
39568         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39569         mbsinit and mbrtowc.
39570         (mbrtowc): New declaration.
39571         * lib/mbrtowc.c: New file.
39572         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39573         * modules/mbrtowc: New file.
39574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39575         HAVE_MBRTOWC.
39576         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39577         HAVE_MBRTOWC.
39578         * doc/posix-functions/mbrtowc.texi: Document the new module.
39579
39580 2008-12-18  Bruno Haible  <bruno@clisp.org>
39581
39582         New module 'wctob'.
39583         * lib/wchar.in.h (wctob): New declaration.
39584         * lib/wctob.c: New file.
39585         * m4/wctob.m4: New file.
39586         * modules/wctob: New file.
39587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39588         HAVE_WCTOB.
39589         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39590         * doc/posix-functions/wctob.texi: Document the new module.
39591
39592 2008-12-18  Bruno Haible  <bruno@clisp.org>
39593
39594         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39595         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39596
39597 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39598
39599         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39600         G. Christensen" <tgc@jupiterrise.com>.
39601
39602         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39603         G. Christensen" <tgc@jupiterrise.com>.
39604
39605         * lib/flock.c: Need to include string.h.  Reported by "Tom
39606         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39607         <ebb9@byu.net>.
39608
39609 2008-12-18  Bruno Haible  <bruno@clisp.org>
39610
39611         * m4/locale-ja.m4: New file, from GNU gettext.
39612
39613 2008-12-17  Bruno Haible  <bruno@clisp.org>
39614
39615         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39616         Suggested by Eric Blake.
39617
39618 2008-12-17  Bruno Haible  <bruno@clisp.org>
39619
39620         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39621
39622 2008-12-17  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39625         * modules/mbsinit (Depends-on): Add verify.
39626         Suggested by Paul Eggert.
39627
39628 2008-12-17  Bruno Haible  <bruno@clisp.org>
39629
39630         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39631         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39632         gl_FUNC_MBRTOWC.
39633         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39634         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39635         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39636         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39637         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39638         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39639         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39640         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39641         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39642         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39643         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39644         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39645         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39646         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39647         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39648         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39649         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39650         * modules/trim (configure.ac): Likewise.
39651
39652 2008-12-17  Bruno Haible  <bruno@clisp.org>
39653
39654         * modules/btowc-tests: New file.
39655         * tests/test-btowc1.sh: New file.
39656         * tests/test-btowc2.sh: New file.
39657         * tests/test-btowc.c: New file.
39658
39659         New module 'btowc'.
39660         * lib/wchar.in.h (btowc): New declaration.
39661         * lib/btowc.c: New file.
39662         * m4/btowc.m4: New file.
39663         * modules/btowc: New file.
39664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39665         HAVE_BTOWC.
39666         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39667         * doc/posix-functions/btowc.texi: Document the new module.
39668
39669 2008-12-17  Bruno Haible  <bruno@clisp.org>
39670
39671         New module 'mbsinit'.
39672         * lib/wchar.in.h (mbsinit): New declaration.
39673         * lib/mbsinit.c: New file.
39674         * m4/mbsinit.m4: New file.
39675         * modules/mbsinit: New file.
39676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39677         HAVE_MBSINIT.
39678         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39679         HAVE_MBSINIT.
39680         * doc/posix-functions/mbsinit.texi: Document the new module.
39681
39682 2008-12-16  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/unistd.in.h: Add comment.
39685         * tests/test-environ.c: Don't include <stdlib.h>.
39686
39687 2008-12-16  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/parse-duration.h (parse_duration): Document return value
39690         convention.
39691         * lib/parse-duration.c: Include specification header first. Add
39692         comments.
39693         (_): Remove macro.
39694         (parse_year_month_day, parse_hour_minute_second): Move side effects
39695         outside of strchr call.
39696         (parse_non_iso8601): Move side effects outside of isspace call.
39697         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39698         call.
39699
39700 2008-12-16  Bruno Haible  <bruno@clisp.org>
39701
39702         * tests/test-parse-duration.sh: Produce no output when the test
39703         succeeds.
39704
39705 2008-12-16  Bruno Haible  <bruno@clisp.org>
39706
39707         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39708         expressions.
39709
39710 2008-12-15  Bruno Haible  <bruno@clisp.org>
39711
39712         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39713         * doc/glibc-functions/flistxattr.texi: Likewise.
39714         * doc/glibc-functions/fopencookie.texi: Likewise.
39715         * doc/glibc-functions/fremovexattr.texi: Likewise.
39716         * doc/glibc-functions/fsetxattr.texi: Likewise.
39717         * doc/glibc-functions/getxattr.texi: Likewise.
39718         * doc/glibc-functions/lgetxattr.texi: Likewise.
39719         * doc/glibc-functions/listxattr.texi: Likewise.
39720         * doc/glibc-functions/llistxattr.texi: Likewise.
39721         * doc/glibc-functions/lremovexattr.texi: Likewise.
39722         * doc/glibc-functions/lsetxattr.texi: Likewise.
39723         * doc/glibc-functions/removexattr.texi: Likewise.
39724         * doc/glibc-functions/setxattr.texi: Likewise.
39725         * doc/posix-functions/open_memstream.texi: Likewise.
39726
39727 2008-12-15  Eric Blake  <ebb9@byu.net>
39728
39729         Update doc for cygwin 1.7.
39730         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39731         functions.
39732         * doc/posix-functions/fchmodat.texi: Likewise.
39733         * doc/posix-functions/fchownat.texi: Likewise.
39734         * doc/posix-functions/fdopendir.texi: Likewise.
39735         * doc/posix-functions/fmemopen.texi: Likewise.
39736         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39737         * doc/posix-functions/fstatat.texi: Likewise.
39738         * doc/posix-functions/futimens.texi: Likewise.
39739         * doc/posix-functions/gai_strerror.texi: Likewise.
39740         * doc/posix-functions/getaddrinfo.texi: Likewise.
39741         * doc/posix-functions/getnameinfo.texi: Likewise.
39742         * doc/posix-functions/if_freenameindex.texi: Likewise.
39743         * doc/posix-functions/if_indextoname.texi: Likewise.
39744         * doc/posix-functions/if_nameindex.texi: Likewise.
39745         * doc/posix-functions/if_nametoindex.texi: Likewise.
39746         * doc/posix-functions/insque.texi: Likewise.
39747         * doc/posix-functions/linkat.texi: Likewise.
39748         * doc/posix-functions/llrint.texi: Likewise.
39749         * doc/posix-functions/llrintf.texi: Likewise.
39750         * doc/posix-functions/llrintl.texi: Likewise.
39751         * doc/posix-functions/lockf.texi: Likewise.
39752         * doc/posix-functions/lrintl.texi: Likewise.
39753         * doc/posix-functions/mkdirat.texi: Likewise.
39754         * doc/posix-functions/mkfifoat.texi: Likewise.
39755         * doc/posix-functions/mknodat.texi: Likewise.
39756         * doc/posix-functions/mq_close.texi: Likewise.
39757         * doc/posix-functions/mq_getattr.texi: Likewise.
39758         * doc/posix-functions/mq_notify.texi: Likewise.
39759         * doc/posix-functions/mq_open.texi: Likewise.
39760         * doc/posix-functions/mq_receive.texi: Likewise.
39761         * doc/posix-functions/mq_send.texi: Likewise.
39762         * doc/posix-functions/mq_setattr.texi: Likewise.
39763         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39764         * doc/posix-functions/mq_timedsend.texi: Likewise.
39765         * doc/posix-functions/mq_unlink.texi: Likewise.
39766         * doc/posix-functions/open_memstream.texi: Likewise.
39767         * doc/posix-functions/openat.texi: Likewise.
39768         * doc/posix-functions/posix_fadvise.texi: Likewise.
39769         * doc/posix-functions/posix_fallocate.texi: Likewise.
39770         * doc/posix-functions/posix_madvise.texi: Likewise.
39771         * doc/posix-functions/posix_memalign.texi: Likewise.
39772         * doc/posix-functions/posix_openpt.texi: Likewise.
39773         * doc/posix-functions/readlinkat.texi: Likewise.
39774         * doc/posix-functions/remque.texi: Likewise.
39775         * doc/posix-functions/renameat.texi: Likewise.
39776         * doc/posix-functions/rintl.texi: Likewise.
39777         * doc/posix-functions/sem_unlink.texi: Likewise.
39778         * doc/posix-functions/shm_open.texi: Likewise.
39779         * doc/posix-functions/shm_unlink.texi: Likewise.
39780         * doc/posix-functions/signgam.texi: Likewise.
39781         * doc/posix-functions/sigset.texi: Likewise.
39782         * doc/posix-functions/stpcpy.texi: Likewise.
39783         * doc/posix-functions/stpncpy.texi: Likewise.
39784         * doc/posix-functions/strerror.texi: Likewise.
39785         * doc/posix-functions/strtod.texi: Likewise.
39786         * doc/posix-functions/symlinkat.texi: Likewise.
39787         * doc/posix-functions/unlinkat.texi: Likewise.
39788         * doc/posix-functions/utimensat.texi: Likewise.
39789         * doc/glibc-functions/bindresvport.texi: Likewise.
39790         * doc/glibc-functions/dn_expand.texi: Likewise.
39791         * doc/glibc-functions/exp10.texi: Likewise.
39792         * doc/glibc-functions/exp10f.texi: Likewise.
39793         * doc/glibc-functions/fgetxattr.texi: Likewise.
39794         * doc/glibc-functions/flistxattr.texi: Likewise.
39795         * doc/glibc-functions/fopencookie.texi: Likewise.
39796         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39797         * doc/glibc-functions/fremovexattr.texi: Likewise.
39798         * doc/glibc-functions/fsetxattr.texi: Likewise.
39799         * doc/glibc-functions/getifaddrs.texi: Likewise.
39800         * doc/glibc-functions/getxattr.texi: Likewise.
39801         * doc/glibc-functions/lgetxattr.texi: Likewise.
39802         * doc/glibc-functions/listxattr.texi: Likewise.
39803         * doc/glibc-functions/llistxattr.texi: Likewise.
39804         * doc/glibc-functions/lremovexattr.texi: Likewise.
39805         * doc/glibc-functions/lsetxattr.texi: Likewise.
39806         * doc/glibc-functions/pow10.texi: Likewise.
39807         * doc/glibc-functions/pow10f.texi: Likewise.
39808         * doc/glibc-functions/rcmd_af.texi: Likewise.
39809         * doc/glibc-functions/removexattr.texi: Likewise.
39810         * doc/glibc-functions/res_init.texi: Likewise.
39811         * doc/glibc-functions/res_mkquery.texi: Likewise.
39812         * doc/glibc-functions/res_query.texi: Likewise.
39813         * doc/glibc-functions/res_querydomain.texi: Likewise.
39814         * doc/glibc-functions/res_send.texi: Likewise.
39815         * doc/glibc-functions/rresvport_af.texi: Likewise.
39816         * doc/glibc-functions/setxattr.texi: Likewise.
39817         * doc/glibc-functions/strcasestr.texi: Likewise.
39818
39819 2008-12-15  Bruno Haible  <bruno@clisp.org>
39820
39821         Fix compilation error on OSF/1 4.0.
39822         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39823         <sys/time.h>, simply delegate to the system header.
39824         Reported by Daniel Richard G. <oss@teragram.com>.
39825
39826 2008-12-15  Bruno Haible  <bruno@clisp.org>
39827
39828         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39829         * doc/posix-functions/fchmodat.texi: Likewise.
39830         * doc/posix-functions/fchownat.texi: Likewise.
39831         * doc/posix-functions/fdopendir.texi: Likewise.
39832         * doc/posix-functions/fstatat.texi: Likewise.
39833         * doc/posix-functions/mkdirat.texi: Likewise.
39834         * doc/posix-functions/unlinkat.texi: Likewise.
39835
39836 2008-12-14  Bruno Haible  <bruno@clisp.org>
39837
39838         Update doc for POSIX:2008.
39839         * doc/posix-functions/faccessat.texi: New file.
39840         * doc/posix-functions/fchmodat.texi: New file.
39841         * doc/posix-functions/fchownat.texi: New file.
39842         * doc/posix-functions/fdopendir.texi: New file.
39843         * doc/posix-functions/fstatat.texi: New file.
39844         * doc/posix-functions/futimens.texi: New file.
39845         * doc/posix-functions/linkat.texi: New file.
39846         * doc/posix-functions/mkdirat.texi: New file.
39847         * doc/posix-functions/mkfifoat.texi: New file.
39848         * doc/posix-functions/mknodat.texi: New file.
39849         * doc/posix-functions/open_wmemstream.texi: New file.
39850         * doc/posix-functions/openat.texi: New file.
39851         * doc/posix-functions/psiginfo.texi: New file.
39852         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39853         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39854         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39855         * doc/posix-functions/readlinkat.texi: New file.
39856         * doc/posix-functions/renameat.texi: New file.
39857         * doc/posix-functions/strerror_l.texi: New file.
39858         * doc/posix-functions/symlinkat.texi: New file.
39859         * doc/posix-functions/unlinkat.texi: New file.
39860         * doc/posix-functions/utimensat.texi: New file.
39861         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39862
39863 2008-12-14  Bruno Haible  <bruno@clisp.org>
39864
39865         Update doc for POSIX:2008.
39866         * doc/posix-functions/alphasort.texi: Renamed from
39867         doc/glibc-functions/alphasort.texi.
39868         * doc/posix-functions/dirfd.texi: Renamed from
39869         doc/glibc-functions/dirfd.texi.
39870         * doc/posix-functions/dprintf.texi: Renamed from
39871         doc/glibc-functions/dprintf.texi.
39872         * doc/posix-functions/duplocale.texi: Renamed from
39873         doc/glibc-functions/duplocale.texi.
39874         * doc/posix-functions/fexecve.texi: Renamed from
39875         doc/glibc-functions/fexecve.texi.
39876         * doc/posix-functions/fmemopen.texi: Renamed from
39877         doc/glibc-functions/fmemopen.texi.
39878         * doc/posix-functions/freelocale.texi: Renamed from
39879         doc/glibc-functions/freelocale.texi.
39880         * doc/posix-functions/getdate_err.texi: Renamed from
39881         doc/glibc-functions/getdate_err.texi.
39882         * doc/posix-functions/isalnum_l.texi: Renamed from
39883         doc/glibc-functions/isalnum_l.texi.
39884         * doc/posix-functions/isalpha_l.texi: Renamed from
39885         doc/glibc-functions/isalpha_l.texi.
39886         * doc/posix-functions/isblank_l.texi: Renamed from
39887         doc/glibc-functions/isblank_l.texi.
39888         * doc/posix-functions/iscntrl_l.texi: Renamed from
39889         doc/glibc-functions/iscntrl_l.texi.
39890         * doc/posix-functions/isdigit_l.texi: Renamed from
39891         doc/glibc-functions/isdigit_l.texi.
39892         * doc/posix-functions/isgraph_l.texi: Renamed from
39893         doc/glibc-functions/isgraph_l.texi.
39894         * doc/posix-functions/islower_l.texi: Renamed from
39895         doc/glibc-functions/islower_l.texi.
39896         * doc/posix-functions/isprint_l.texi: Renamed from
39897         doc/glibc-functions/isprint_l.texi.
39898         * doc/posix-functions/ispunct_l.texi: Renamed from
39899         doc/glibc-functions/ispunct_l.texi.
39900         * doc/posix-functions/isspace_l.texi: Renamed from
39901         doc/glibc-functions/isspace_l.texi.
39902         * doc/posix-functions/isupper_l.texi: Renamed from
39903         doc/glibc-functions/isupper_l.texi.
39904         * doc/posix-functions/iswalnum_l.texi: Renamed from
39905         doc/glibc-functions/iswalnum_l.texi.
39906         * doc/posix-functions/iswalpha_l.texi: Renamed from
39907         doc/glibc-functions/iswalpha_l.texi.
39908         * doc/posix-functions/iswblank_l.texi: Renamed from
39909         doc/glibc-functions/iswblank_l.texi.
39910         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39911         doc/glibc-functions/iswcntrl_l.texi.
39912         * doc/posix-functions/iswctype_l.texi: Renamed from
39913         doc/glibc-functions/iswctype_l.texi.
39914         * doc/posix-functions/iswdigit_l.texi: Renamed from
39915         doc/glibc-functions/iswdigit_l.texi.
39916         * doc/posix-functions/iswgraph_l.texi: Renamed from
39917         doc/glibc-functions/iswgraph_l.texi.
39918         * doc/posix-functions/iswlower_l.texi: Renamed from
39919         doc/glibc-functions/iswlower_l.texi.
39920         * doc/posix-functions/iswprint_l.texi: Renamed from
39921         doc/glibc-functions/iswprint_l.texi.
39922         * doc/posix-functions/iswpunct_l.texi: Renamed from
39923         doc/glibc-functions/iswpunct_l.texi.
39924         * doc/posix-functions/iswspace_l.texi: Renamed from
39925         doc/glibc-functions/iswspace_l.texi.
39926         * doc/posix-functions/iswupper_l.texi: Renamed from
39927         doc/glibc-functions/iswupper_l.texi.
39928         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39929         doc/glibc-functions/iswxdigit_l.texi.
39930         * doc/posix-functions/isxdigit_l.texi: Renamed from
39931         doc/glibc-functions/isxdigit_l.texi.
39932         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39933         doc/glibc-functions/mbsnrtowcs.texi.
39934         * doc/posix-functions/mkdtemp.texi: Renamed from
39935         doc/glibc-functions/mkdtemp.texi.
39936         * doc/posix-functions/newlocale.texi: Renamed from
39937         doc/glibc-functions/newlocale.texi.
39938         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39939         doc/glibc-functions/nl_langinfo_l.texi.
39940         * doc/posix-functions/open_memstream.texi: Renamed from
39941         doc/glibc-functions/open_memstream.texi.
39942         * doc/posix-functions/opterr.texi: Renamed from
39943         doc/glibc-functions/opterr.texi.
39944         * doc/posix-functions/optind.texi: Renamed from
39945         doc/glibc-functions/optind.texi.
39946         * doc/posix-functions/optopt.texi: Renamed from
39947         doc/glibc-functions/optopt.texi.
39948         * doc/posix-functions/psignal.texi: Renamed from
39949         doc/glibc-functions/psignal.texi.
39950         * doc/posix-functions/scandir.texi: Renamed from
39951         doc/glibc-functions/scandir.texi.
39952         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39953         doc/glibc-functions/sched_get_priority_min.texi.
39954         * doc/posix-functions/signgam.texi: Renamed from
39955         doc/glibc-functions/signgam.texi.
39956         * doc/posix-functions/stpcpy.texi: Renamed from
39957         doc/glibc-functions/stpcpy.texi.
39958         * doc/posix-functions/stpncpy.texi: Renamed from
39959         doc/glibc-functions/stpncpy.texi.
39960         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39961         doc/glibc-functions/strcasecmp_l.texi.
39962         * doc/posix-functions/strcoll_l.texi: Renamed from
39963         doc/glibc-functions/strcoll_l.texi.
39964         * doc/posix-functions/strfmon_l.texi: Renamed from
39965         doc/glibc-functions/strfmon_l.texi.
39966         * doc/posix-functions/strftime_l.texi: Renamed from
39967         doc/glibc-functions/strftime_l.texi.
39968         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39969         doc/glibc-functions/strncasecmp_l.texi.
39970         * doc/posix-functions/strndup.texi: Renamed from
39971         doc/glibc-functions/strndup.texi.
39972         * doc/posix-functions/strnlen.texi: Renamed from
39973         doc/glibc-functions/strnlen.texi.
39974         * doc/posix-functions/strsignal.texi: Renamed from
39975         doc/glibc-functions/strsignal.texi.
39976         * doc/posix-functions/strxfrm_l.texi: Renamed from
39977         doc/glibc-functions/strxfrm_l.texi.
39978         * doc/posix-functions/timer_gettime.texi: Renamed from
39979         doc/glibc-functions/timer_gettime.texi.
39980         * doc/posix-functions/tolower_l.texi: Renamed from
39981         doc/glibc-functions/tolower_l.texi.
39982         * doc/posix-functions/toupper_l.texi: Renamed from
39983         doc/glibc-functions/toupper_l.texi.
39984         * doc/posix-functions/towctrans_l.texi: Renamed from
39985         doc/glibc-functions/towctrans_l.texi.
39986         * doc/posix-functions/towlower_l.texi: Renamed from
39987         doc/glibc-functions/towlower_l.texi.
39988         * doc/posix-functions/towupper_l.texi: Renamed from
39989         doc/glibc-functions/towupper_l.texi.
39990         * doc/posix-functions/uselocale.texi: Renamed from
39991         doc/glibc-functions/uselocale.texi.
39992         * doc/posix-functions/vdprintf.texi: Renamed from
39993         doc/glibc-functions/vdprintf.texi.
39994         * doc/posix-functions/wcpcpy.texi:
39995         Renamed from doc/glibc-functions/wcpcpy.texi.
39996         * doc/posix-functions/wcpncpy.texi: Renamed from
39997         doc/glibc-functions/wcpncpy.texi.
39998         * doc/posix-functions/wcscasecmp.texi: Renamed from
39999         doc/glibc-functions/wcscasecmp.texi.
40000         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40001         doc/glibc-functions/wcscasecmp_l.texi.
40002         * doc/posix-functions/wcscoll_l.texi: Renamed from
40003         doc/glibc-functions/wcscoll_l.texi.
40004         * doc/posix-functions/wcsdup.texi: Renamed from
40005         doc/glibc-functions/wcsdup.texi.
40006         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40007         doc/glibc-functions/wcsncasecmp.texi.
40008         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40009         doc/glibc-functions/wcsncasecmp_l.texi.
40010         * doc/posix-functions/wcsnlen.texi: Renamed from
40011         doc/glibc-functions/wcsnlen.texi.
40012         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40013         doc/glibc-functions/wcsnrtombs.texi.
40014         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40015         doc/glibc-functions/wcsxfrm_l.texi.
40016         * doc/posix-functions/wctrans_l.texi: Renamed from
40017         doc/glibc-functions/wctrans_l.texi.
40018         * doc/posix-functions/wctype_l.texi: Renamed from
40019         doc/glibc-functions/wctype_l.texi.
40020         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40021         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40022         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40023         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40024         these subsections.
40025         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40026         Remove sections.
40027
40028 2008-12-14  Bruno Haible  <bruno@clisp.org>
40029
40030         Update doc for POSIX:2008.
40031         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40032
40033 2008-12-14  Bruno Haible  <bruno@clisp.org>
40034
40035         Update doc for POSIX:2008.
40036         * doc/pastposix-functions/bcmp.texi: Renamed from
40037         doc/posix-functions/bcmp.texi.
40038         * doc/pastposix-functions/bcopy.texi: Renamed from
40039         doc/posix-functions/bcopy.texi.
40040         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40041         doc/posix-functions/bsd_signal.texi.
40042         * doc/pastposix-functions/bzero.texi: Renamed from
40043         doc/posix-functions/bzero.texi.
40044         * doc/pastposix-functions/ecvt.texi: Renamed from
40045         doc/posix-functions/ecvt.texi.
40046         * doc/pastposix-functions/fcvt.texi: Renamed from
40047         doc/posix-functions/fcvt.texi.
40048         * doc/pastposix-functions/ftime.texi: Renamed from
40049         doc/posix-functions/ftime.texi.
40050         * doc/pastposix-functions/gcvt.texi: Renamed from
40051         doc/posix-functions/gcvt.texi.
40052         * doc/pastposix-functions/getcontext.texi: Renamed from
40053         doc/posix-functions/getcontext.texi.
40054         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40055         doc/posix-functions/gethostbyaddr.texi.
40056         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40057         doc/posix-functions/gethostbyname.texi.
40058         * doc/pastposix-functions/getwd.texi: Renamed from
40059         doc/posix-functions/getwd.texi.
40060         * doc/pastposix-functions/h_errno.texi: Renamed from
40061         doc/posix-functions/h_errno.texi.
40062         * doc/pastposix-functions/index.texi: Renamed from
40063         doc/posix-functions/index.texi.
40064         * doc/pastposix-functions/makecontext.texi: Renamed from
40065         doc/posix-functions/makecontext.texi.
40066         * doc/pastposix-functions/mktemp.texi: Renamed from
40067         doc/posix-functions/mktemp.texi.
40068         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40069         doc/posix-functions/pthread_attr_getstackaddr.texi.
40070         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40071         doc/posix-functions/pthread_attr_setstackaddr.texi.
40072         * doc/pastposix-functions/rindex.texi: Renamed from
40073         doc/posix-functions/rindex.texi.
40074         * doc/pastposix-functions/scalb.texi: Renamed from
40075         doc/posix-functions/scalb.texi.
40076         * doc/pastposix-functions/setcontext.texi: Renamed from
40077         doc/posix-functions/setcontext.texi.
40078         * doc/pastposix-functions/swapcontext.texi: Renamed from
40079         doc/posix-functions/swapcontext.texi.
40080         * doc/pastposix-functions/ualarm.texi: Renamed from
40081         doc/posix-functions/ualarm.texi.
40082         * doc/pastposix-functions/usleep.texi: Renamed from
40083         doc/posix-functions/usleep.texi.
40084         * doc/pastposix-functions/vfork.texi: Renamed from
40085         doc/posix-functions/vfork.texi.
40086         * doc/pastposix-functions/wcswcs.texi: Renamed from
40087         doc/posix-functions/wcswcs.texi.
40088         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40089         (Function Substitutes): Update.
40090
40091 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40092
40093         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40094         m4/strerror.m4.
40095
40096 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40097             Bruno Haible  <bruno@clisp.org>
40098
40099         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40100
40101 2008-12-13  Bruno Haible  <bruno@clisp.org>
40102
40103         * modules/strtoull (Depends-on): Remove unistd.
40104
40105 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40106
40107         * modules/strtoull (Depends-on): Add stdlib.
40108
40109 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40110
40111         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40112
40113 2008-12-10  Jim Meyering  <meyering@redhat.com>
40114
40115         gl_ASSERT: don't say assertions are disabled when they're not
40116         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40117         "checking whether to enable assertions... no", when they are in
40118         fact enabled.  This is solely a bug in the output of configure.
40119         In spite of saying "no", NDEBUG was not defined in that case.
40120         Also, as noted by Eric Blake, leave assertions enabled upon
40121         --enable-assert=INVALID.
40122
40123 2008-12-10  Bruno Haible  <bruno@clisp.org>
40124
40125         Change MODULES.html to refer to POSIX:2008 where possible.
40126         * MODULES.html.sh (POSIX2008_URL): New variable.
40127         (posix_headers): Remove sys/timeb, ucontext.
40128         (posix2001_headers): New variable.
40129         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40130         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40131         index, makecontext, mktemp, pthread_attr_getstackaddr,
40132         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40133         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40134         (posix2001_functions): New variable.
40135         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40136         otherwise.
40137
40138 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40139
40140         add missing include to parse-duration.c
40141         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40142         * modules/parse-duration (Depends-on): Add xalloc.
40143
40144         fix sed script reading maint.mk
40145         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40146         (syntax-check-rules): Use it.
40147
40148 2008-12-09  Bruno Haible  <bruno@clisp.org>
40149
40150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40151         MacOS X 10.4/PowerPC.
40152         Reported by Simon Josefsson.
40153
40154 2008-12-08  Jim Meyering  <meyering@redhat.com>
40155
40156         work around mingw's lack of some S_IF definitions
40157         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40158         Reported by Simon Josefsson.
40159
40160 2008-12-08  Bruno Haible  <bruno@clisp.org>
40161
40162         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40163         applied to variables. Needed on MacOS X 10.4/PowerPC.
40164         Reported by Simon Josefsson.
40165
40166 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40167         and Eric Blake  <ebb9@byu.net>
40168
40169         assert: honor --enable-assert
40170         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40171         order to honor --enable-assert, rather than treating it as a
40172         synonym for --disable-assert.
40173
40174 2008-12-08  Jim Meyering  <meyering@redhat.com>
40175
40176         * lib/posixtm.c: Remove now-useless declaration of mktime.
40177
40178         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40179
40180 2008-12-07  Bruno Haible  <bruno@clisp.org>
40181
40182         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40183         test_once): Mark functions as static.
40184         * tests/test-tls.c (test_tls): Likewise.
40185
40186 2008-12-07  Bruno Haible  <bruno@clisp.org>
40187
40188         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40189         iconv_register_autodetect.
40190
40191 2008-12-07  Jim Meyering  <meyering@redhat.com>
40192
40193         posixtm.c: avoid a warning
40194         * lib/posixtm.c (posixtime): Don't initialize tm0.
40195         It's no longer needed to placate gcc4's -Wuninitialized,
40196         and the attempt to placate would elicit a new warning.
40197
40198         unicodeio.c: mark unused parameters
40199         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40200         (fallback_failure_callback): Likewise.
40201
40202 2008-12-07  Bruno Haible  <bruno@clisp.org>
40203
40204         * gnulib-tool (func_create_testdir): When building the tests
40205         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40206         Reported by Simon Josefsson.
40207
40208 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40209
40210         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40211
40212 2008-12-06  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40215         Suggested by Eric Blake.
40216
40217 2008-12-06  Bruno Haible  <bruno@clisp.org>
40218
40219         Fix a c-stack test failure on MacOS X.
40220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40221         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40222         handler for SIGBUS as well.
40223         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40224         install a signal handler for SIGBUS as well.
40225         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40226
40227 2008-12-06  Bruno Haible  <bruno@clisp.org>
40228
40229         Advocacy documentation.
40230         * doc/gnulib-intro.texi (Benefits): New section.
40231         * doc/gnulib.texi: Update.
40232
40233 2008-12-06  Bruno Haible  <bruno@clisp.org>
40234
40235         Document the 'manywarnings' module.
40236         * doc/manywarnings.texi: New file.
40237         * doc/gnulib.texi: Include it.
40238
40239 2008-12-05  Eric Blake  <ebb9@byu.net>
40240
40241         tests: silence some gcc warnings
40242         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40243         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40244         type mismatches.
40245
40246 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40247             Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40250
40251 2008-11-29  Jim Meyering  <meyering@redhat.com>
40252
40253         unicodeio.c: mark unused parameters
40254         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40255         (fallback_failure_callback): Likewise.
40256
40257         fts: fix a thinko
40258         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40259         (set_stat_type): Return S_IF*-valued "type" directly.
40260         Prompted by James Youngman's spotting a related bug.
40261         Confirmed by further testing through find.
40262
40263         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40264         * lib/fts.c (D_TYPE): Define.
40265         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40266         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40267         (s_ifmt_shift_bits): New function.
40268         (set_stat_type): New function.
40269         (fts_build): When not calling fts_stat, call set_stat_type
40270         to propagate dirent.d_type info to fts_read caller.
40271         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40272         fts_statp->st_mode type information may be valid.
40273
40274 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40275
40276         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40277         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40278         <sds@gnu.org>.
40279
40280 2008-11-20  Bruno Haible  <bruno@clisp.org>
40281
40282         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40283         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40284         INCLUDE_NEXT.
40285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40286         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40287         * modules/math (Makefile.am): Substitute
40288         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40290
40291 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40292             Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/stdint.in.h: Define all type macros so that their expansion is
40295         a single typedef'ed token. Fixes a compilation failure in Boost which
40296         does "using ::int8_t;".
40297
40298 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40299
40300         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40301         gl_MANYWARN_ALL_GCC.
40302         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40303         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40304         * modules/manywarnings: New file.
40305         * MODULES.html.sh: Mention manywarnings module.
40306
40307 2008-11-18  Bruno Haible  <bruno@clisp.org>
40308
40309         * doc/gnulib-tool.texi (Unit tests): New section.
40310
40311 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40312
40313         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40314         paths like 'lib/po/foo.po'.
40315
40316 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40317
40318         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40319         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40320
40321 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40322
40323         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40324         parameter works.
40325
40326 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40327
40328         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40329
40330 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40331
40332         * modules/parse-duration-tests: New file.
40333         * tests/test-parse-duration.sh: New file.
40334         * tests/test-parse-duration.c: New file.
40335
40336         New module 'parse-duration'.
40337         * lib/parse-duration.h: New file.
40338         * lib/parse-duration.c: New file.
40339         * modules/parse-duration: New file.
40340
40341 2008-11-17  Bruno Haible  <bruno@clisp.org>
40342
40343         * tests/test-select-out.sh: Comment out the first pipe test.
40344         Reported by Simon Josefsson.
40345
40346 2008-11-17  Bruno Haible  <bruno@clisp.org>
40347
40348         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40350         gl_HOSTENT.
40351
40352 2008-11-17  Bruno Haible  <bruno@clisp.org>
40353
40354         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40355         -lnetwork and -lnet. Needed for Haiku and BeOS.
40356
40357 2008-11-16  Bruno Haible  <bruno@clisp.org>
40358
40359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40360
40361 2008-11-16  Bruno Haible  <bruno@clisp.org>
40362
40363         Avoid test failure on Haiku.
40364         * tests/test-fsync.c: Include <errno.h>.
40365         (main): Don't require that fsync (0) fails.
40366
40367 2008-11-15  Bruno Haible  <bruno@clisp.org>
40368
40369         New module 'hostent'.
40370         * modules/hostent: New file.
40371         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40372
40373 2008-11-15  Bruno Haible  <bruno@clisp.org>
40374
40375         New module 'servent'.
40376         * modules/servent: New file.
40377         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40378
40379 2008-11-15  Bruno Haible  <bruno@clisp.org>
40380
40381         Avoid generating same test program with two different rules.
40382         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40383         test-frexp to test-frexp-nolibm.
40384         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40385         test-frexpl to test-frexpl-nolibm.
40386
40387 2008-11-15  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40390         $(FREXPL_LIBM).
40391
40392 2008-11-15  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/netdb.in.h: Activate the definitions also when the system's
40395         <netdb.h> has 'struct addrinfo'.
40396         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40397         EAI_OVERFLOW or AI_NUMERICSERV.
40398         * doc/posix-headers/netdb.texi: Document the problem.
40399
40400 2008-11-15  Bruno Haible  <bruno@clisp.org>
40401
40402         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40403
40404         Make the 'sched' module work on platforms where <sched.h> exists but
40405         is incomplete (such as Haiku).
40406         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40407         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40408         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40409         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40410         HAVE_STRUCT_SCHED_PARAM.
40411         * modules/sched (Depends-on): Add include_next.
40412         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40413         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40414         * doc/posix-headers/sched.texi: Document the issue.
40415
40416 2008-11-13  Jim Meyering  <meyering@redhat.com>
40417
40418         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40419         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40420         test would fail due to the difference in the Report bugs to ...
40421         line.  The expected address is empty, "<>", while the actual
40422         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40423
40424 2008-11-12  Bruno Haible  <bruno@clisp.org>
40425
40426         lstat: don't compile lstat.c on systems lacking lstat
40427         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40428         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40429         Reported by Daniel P. Berrange via Jim Meyering.
40430
40431 2008-11-12  Jim Meyering  <meyering@redhat.com>
40432
40433         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40434
40435 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40436
40437         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40438         instead.
40439
40440 2008-11-12  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/unicodeio.c: Include unistr.h.
40443         (utf8_wctomb): Remove function.
40444         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40445
40446 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40447
40448         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40449         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40450         <bruno@clisp.org>.
40451         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40452
40453 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40454
40455         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40456         * doc/gnulib.texi: Add section for warnings.
40457
40458 2008-11-11  Bruno Haible  <bruno@clisp.org>
40459
40460         * lib/sockets.h: Add a comment.
40461
40462 2008-11-11  Karl Berry  <karl@gnu.org>
40463
40464         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40465
40466 2008-11-11  Eric Blake  <ebb9@byu.net>
40467
40468         fdl.texi: avoid git symlinks
40469         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40470
40471 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40472
40473         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40474
40475 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40476
40477         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40478         (gl_WARN_ADD): Substitute $2 if literal.
40479
40480 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40481
40482         * m4/warning.m4: Remove.
40483
40484 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40485
40486         * m4/warnings.m4: Almost complete rewrite. :-)
40487
40488 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40489
40490         * modules/warnings: New module.
40491         * m4/warnings.m4: New file.
40492         * MODULES.html.sh: Mention warnings module.
40493         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40494         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40495
40496 2008-11-10  Eric Blake  <ebb9@byu.net>
40497
40498         fdl.texi: make a symlink to the latest version
40499         * doc/standards.texi: Revert today's earlier change.
40500         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40501         * doc/fdl.texi: ...and replace this with a symlink to the newer
40502         fdl-1.3.texi.
40503
40504 2008-11-10  Bruno Haible  <bruno@clisp.org>
40505
40506         * tests/test-select-fd.c (main): Accept the result file name as fourth
40507         argument.
40508         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40509         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40510
40511 2008-11-10  Bruno Haible  <bruno@clisp.org>
40512
40513         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40514         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40515         as autoconf-substituted macros.
40516         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40518         gl_NETDB_H_DEFAULTS. Set these variables.
40519         * modules/netdb (Makefile.am): Substitute these variables.
40520
40521 2008-11-10  Eric Blake  <ebb9@byu.net>
40522
40523         standards.texi: include correct file for FDL 1.3
40524         * doc/standards.texi (GNU Free Documentation License): Change
40525         include file to pull in FDL 1.3, not 1.2.
40526
40527         fdl.texi: revert accidental change to license
40528         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40529
40530 2008-11-10  Bruno Haible  <bruno@clisp.org>
40531
40532         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40533         cross-compiling guesses also when the native compile gives no result.
40534
40535 2008-11-10  Bruno Haible  <bruno@clisp.org>
40536
40537         * lib/spawni.c (__spawni): Force variable into the stack.
40538
40539 2008-11-10  Bruno Haible  <bruno@clisp.org>
40540
40541         Add support for Haiku.
40542         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40543         glibc and BeOS, but also on Haiku.
40544         * lib/fpurge.c (fpurge): Likewise.
40545         * lib/freadable.c (freadable): Likewise.
40546         * lib/freadahead.c (freadahead): Likewise.
40547         * lib/freading.c (freading): Likewise.
40548         * lib/freadptr.c (freadptr): Likewise.
40549         * lib/freadseek.c (freadptrinc): Likewise.
40550         * lib/fseeko.c (rpl_fseeko): Likewise.
40551         * lib/fseterr.c (fseterr): Likewise.
40552         * lib/fwritable.c (fwritable): Likewise.
40553         * lib/fwriting.c (fwriting): Likewise.
40554         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40555
40556 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40557
40558         * lib/config.charset: Treat Haiku like BeOS.
40559
40560 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40561
40562         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40563         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40564
40565 2008-11-08  Bruno Haible  <bruno@clisp.org>
40566
40567         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40568         AC_CACHE_CHECK.
40569
40570 2008-11-08  Bruno Haible  <bruno@clisp.org>
40571
40572         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40573
40574 2008-11-08  Bruno Haible  <bruno@clisp.org>
40575
40576         * tests/test-select-fd.c: New file.
40577         * tests/test-select-in.sh: New file.
40578         * tests/test-select-out.sh: New file.
40579         * tests/test-select-stdin.c: New file.
40580         * modules/select-tests (Files): Add the new files.
40581         (Depends-on): Add gettimeofday.
40582         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40583         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40584         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40585
40586 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40587             Bruno Haible  <bruno@clisp.org>
40588
40589         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40590
40591 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40592
40593         * build-aux/pmccabe2html: Added support for C++ source files.
40594
40595 2008-11-05  Ben Pfaff  <blp@gnu.org>
40596
40597         Fix lib/close.c build on Windows.
40598         * modules/close (Files): Add lib/w32sock.h.
40599
40600 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40601
40602         Accept Bison's NEWS format.
40603         * build-aux/announce-gen (print_news_deltas): Tweak
40604         $re_prefix.
40605
40606 2008-11-04  Bruno Haible  <bruno@clisp.org>
40607
40608         * modules/random_r (Maintainer): Add glibc.
40609
40610 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40611
40612         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40613         by karl@freefriends.org (Karl Berry).
40614         * doc/alloca.texi: Likewise.
40615         * doc/c-ctype.texi: Likewise.
40616         * doc/c-strcase.texi: Likewise.
40617         * doc/c-strcaseeq.texi: Likewise.
40618         * doc/c-strcasestr.texi: Likewise.
40619         * doc/c-strstr.texi: Likewise.
40620         * doc/c-strtod.texi: Likewise.
40621         * doc/c-strtold.texi: Likewise.
40622         * doc/ctime.texi: Likewise.
40623         * doc/error.texi: Likewise.
40624         * doc/fdl.texi: Likewise.
40625         * doc/gcd.texi: Likewise.
40626         * doc/getdate.texi: Likewise.
40627         * doc/gnulib-intro.texi: Likewise.
40628         * doc/gnulib-tool.texi: Likewise.
40629         * doc/gnulib.texi: Likewise.
40630         * doc/inet_ntoa.texi: Likewise.
40631         * doc/maintain.texi: Likewise.
40632         * doc/make-stds.texi: Likewise.
40633         * doc/quote.texi: Likewise.
40634         * doc/regexprops-generic.texi: Likewise.
40635         * doc/standards.texi: Likewise.
40636         * doc/verify.texi: Likewise.
40637         * doc/visibility.texi: Likewise.
40638         * doc/gnulib.texi (GNU Free Documentation License): Include
40639         fdl-1.3.texi instead of fdl.texi.
40640
40641 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40642
40643         * doc/fdl-1.3.texi: New file, from
40644         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40645         * modules/fdl-1.3: Add.
40646         * MODULES.html.sh: Add fdl-1.3.
40647
40648 2008-11-03  Bruno Haible  <bruno@clisp.org>
40649
40650         Make determination of absolute name of header file work with AIX xlc.
40651         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40652         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40653         preprocessing.
40654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40655         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40656
40657 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40658
40659         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40660         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40661         <ludo@gnu.org>.
40662
40663 2008-11-02  Bruno Haible  <bruno@clisp.org>
40664
40665         Mark 'strpbrk' obsolete.
40666         * modules/strpbrk (Status, Notice): New sections.
40667         * modules/strtok_r (Depends-on): Add strpbrk.
40668
40669 2008-11-02  Bruno Haible  <bruno@clisp.org>
40670
40671         Mark 'strdup' obsolete.
40672         * modules/strdup (Status, Notice): New sections.
40673         * modules/findprog (Depends-on): Add strdup.
40674         * modules/getaddrinfo (Depends-on): Likewise.
40675         * modules/localename (Depends-on): Likewise.
40676         * modules/relocatable-lib (Depends-on): Likewise.
40677         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40678         * modules/relocatable-prog (Depends-on): Likewise.
40679         * modules/trim (Depends-on): Likewise.
40680         * modules/unictype/gen-ctype (Depends-on): Likewise.
40681         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40682
40683 2008-11-02  Bruno Haible  <bruno@clisp.org>
40684
40685         Mark 'strcspn' obsolete.
40686         * modules/strcspn (Status, Notice): New sections.
40687
40688 2008-11-02  Bruno Haible  <bruno@clisp.org>
40689
40690         Mark 'rmdir' obsolete.
40691         * modules/rmdir (Status, Notice): New sections.
40692         * modules/clean-temp (Depends-on): Add rmdir.
40693         * modules/openat (Depends-on): Likewise.
40694
40695 2008-11-02  Bruno Haible  <bruno@clisp.org>
40696
40697         Mark 'raise' obsolete.
40698         * modules/raise (Status, Notice): New sections.
40699         (Include): Specify <signal.h>.
40700         * modules/stdio (Depends-on): Add raise.
40701         * modules/write (Depends-on): Likewise.
40702
40703 2008-11-02  Bruno Haible  <bruno@clisp.org>
40704
40705         Mark 'memset' obsolete.
40706         * modules/memset (Status, Notice): New sections.
40707
40708 2008-11-02  Bruno Haible  <bruno@clisp.org>
40709
40710         Mark 'memmove' obsolete.
40711         * modules/memmove (Status, Notice): New sections.
40712         * modules/argp (Depends-on): Add memmove.
40713         * modules/argz (Depends-on): Likewise.
40714         * modules/canonicalize (Depends-on): Likewise.
40715         * modules/canonicalize-lgpl (Depends-on): Likewise.
40716         * modules/fts (Depends-on): Likewise.
40717         * modules/getcwd (Depends-on): Likewise.
40718         * modules/human (Depends-on): Likewise.
40719         * modules/regex (Depends-on): Likewise.
40720         * modules/striconveh (Depends-on): Likewise.
40721         * modules/trim (Depends-on): Likewise.
40722         * modules/unistr/u8-move (Depends-on): Likewise.
40723         * modules/unistr/u16-move (Depends-on): Likewise.
40724         * modules/unistr/u32-move (Depends-on): Likewise.
40725
40726 2008-11-02  Bruno Haible  <bruno@clisp.org>
40727
40728         Mark 'memcpy' obsolete.
40729         * modules/memcpy (Status, Notice): New sections.
40730
40731 2008-11-02  Bruno Haible  <bruno@clisp.org>
40732
40733         Mark 'memcmp' obsolete.
40734         * modules/memcmp (Status, Notice): New sections.
40735         * modules/argmatch (Depends-on): Add memchr.
40736         * modules/backupfile (Depends-on): Likewise.
40737         * modules/c-strcasestr (Depends-on): Likewise.
40738         * modules/crypto/des (Depends-on): Likewise.
40739         * modules/csharpcomp (Depends-on): Likewise.
40740         * modules/fnmatch (Depends-on): Likewise.
40741         * modules/git-merge-changelog (Depends-on): Likewise.
40742         * modules/isnand (Depends-on): Likewise.
40743         * modules/isnand-nolibm (Depends-on): Likewise.
40744         * modules/isnanf (Depends-on): Likewise.
40745         * modules/isnanf-nolibm (Depends-on): Likewise.
40746         * modules/isnanl (Depends-on): Likewise.
40747         * modules/isnanl-nolibm (Depends-on): Likewise.
40748         * modules/mbchar (Depends-on): Likewise.
40749         * modules/memcoll (Depends-on): Likewise.
40750         * modules/quotearg (Depends-on): Likewise.
40751         * modules/regex (Depends-on): Likewise.
40752         * modules/relocatable-prog (Depends-on): Likewise.
40753         * modules/same (Depends-on): Likewise.
40754         * modules/signbit (Depends-on): Likewise.
40755         * modules/strcasestr-simple (Depends-on): Likewise.
40756         * modules/unictype/gen-ctype (Depends-on): Likewise.
40757         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40758         * modules/uniname/uniname (Depends-on): Likewise.
40759         * modules/unistr/u8-cmp (Depends-on): Likewise.
40760
40761 2008-11-02  Bruno Haible  <bruno@clisp.org>
40762
40763         Mark 'memchr' obsolete.
40764         * modules/memchr (Status, Notice): New sections.
40765         * modules/argp (Depends-on): Add memchr.
40766         * modules/base64 (Depends-on): Likewise.
40767         * modules/c-strcasestr (Depends-on): Likewise.
40768         * modules/chdir-long (Depends-on): Likewise.
40769         * modules/fnmatch (Depends-on): Likewise.
40770         * modules/getsubopt (Depends-on): Likewise.
40771         * modules/git-merge-changelog (Depends-on): Likewise.
40772         * modules/glob (Depends-on): Likewise.
40773         * modules/strcasestr-simple (Depends-on): Likewise.
40774         * modules/strnlen (Depends-on): Likewise.
40775
40776 2008-11-02  Bruno Haible  <bruno@clisp.org>
40777
40778         Mark 'atexit' obsolete.
40779         * modules/atexit (Status, Notice): New sections.
40780         * modules/chdir-long (Depends-on): Add atexit.
40781         * modules/wait-process (Depends-on): Likewise.
40782
40783 2008-11-02  Bruno Haible  <bruno@clisp.org>
40784
40785         * gnulib-tool: New option --with-obsolete.
40786         (func_usage): Document it.
40787         (func_modules_transitive_closure): Drop obsolete dependencies if
40788         incobsolete is not true.
40789         (func_import): Read and save the incobsolete variable to the cache.
40790
40791 2008-11-02  Bruno Haible  <bruno@clisp.org>
40792
40793         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40794         * gnulib-tool: New option --extract-status.
40795         (func_usage): Document it.
40796         (sed_extract_prog): Recognize it.
40797         (func_get_status): New function.
40798
40799 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40800
40801         * modules/sockets (License): Change from LGPL to LGPLv2+.
40802
40803 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40804
40805         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40806
40807 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40808
40809         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40810         Mention times and sys_times.
40811         * modules/sys_times, modules/sys_times-tests: New modules.
40812         * modules/times, modules/times-tests: Likewise
40813         * m4/sys_times_h.m4: New file.
40814         * lib/sys_times.in.h: Likewise
40815         * lib/times.c: Likewise.
40816         * tests/test-sys_times.c: Likewise.
40817         * tests/test-times.c: Likewise.
40818         * doc/posix-headers/sys_times.texi: Update.
40819         * doc/posix-functions/times.texi: Update.
40820
40821 2008-10-28  Jim Meyering  <meyering@redhat.com>
40822
40823         * modules/tempname (Depends-on): Add lstat.
40824
40825         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40826
40827 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40828
40829         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40830         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40831         using idiom used elsewhere in gnulib.
40832
40833 2008-10-27  Jim Meyering  <meyering@redhat.com>
40834
40835         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40836
40837 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40838
40839         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40840         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40841         programs.
40842         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40843
40844 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40845
40846         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40847
40848 2008-10-27  Bruno Haible  <bruno@clisp.org>
40849
40850         * tests/test-lstat.c: Include <stdio.h>.
40851
40852 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40853
40854         * modules/lstat-tests: New module.
40855         * tests/test-lstat.c: New file.
40856
40857 2008-10-26  Jim Meyering  <meyering@redhat.com>
40858
40859         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40860
40861 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40862             Bruno Haible  <bruno@clisp.org>
40863
40864         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40865         * modules/configmake (Include): Add a note that the include must come
40866         after all system headers.
40867         * lib/javaversion.c: Include configmake.h after all other includes.
40868
40869 2008-10-26  Bruno Haible  <bruno@clisp.org>
40870
40871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40872         HAVE_STRUCT_RANDOM_DATA to 1.
40873         (gl_STDLIB_H): Simplify.
40874
40875 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40876
40877         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40878         substitute HAVE_STRUCT_RANDOM_DATA.
40879         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40880         random_data.
40881         * modules/stdlib (Makefile.am): Substitute
40882         HAVE_STRUCT_RANDOM_DATA.
40883
40884 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40885
40886         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40887         * doc/gnulib-intro.texi (Copyright): Likewise.
40888
40889 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40890
40891         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40892         findings.
40893
40894 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40895             Bruno Haible  <bruno@clisp.org>
40896
40897         * lib/unistd.in.h: Include <winsock2.h>.
40898         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40899         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40900         Provide dummy declarations.
40901         (gethostname): Override.
40902         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40903         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40904         gl_PREREQ_SYS_H_WINSOCK2.
40905         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40906         * doc/posix-functions/gethostname.texi: More details.
40907
40908 2008-10-25  Bruno Haible  <bruno@clisp.org>
40909
40910         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40911         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40912         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40913
40914         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40915         here ...
40916         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40917         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40918         gl_UNISTD_H_DEFAULTS.
40919
40920 2008-10-25  Eric Blake  <ebb9@byu.net>
40921
40922         signbit: avoid spurious compiler failure
40923         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40924         declarations inside function.
40925
40926 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40927             Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40930         * modules/random_r (Depends-on): Add stdint.
40931
40932 2008-10-24  Bruno Haible  <bruno@clisp.org>
40933
40934         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40935         Eggert.
40936         * modules/strerror (License): Likewise.
40937
40938 2008-10-24  Jim Meyering  <meyering@redhat.com>
40939
40940         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40941         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40942
40943 2008-10-24  Eric Blake  <ebb9@byu.net>
40944
40945         getgroups: fix compilation when getgroups is available
40946         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40947         but with <config.h> override of getgroups disabled.
40948
40949 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40950
40951         * doc/gnulib.texi (Header files): Add note about C++ problems.
40952         Explained by Bruno Haible <bruno@clisp.org>.
40953
40954 2008-10-23  Bruno Haible  <bruno@clisp.org>
40955
40956         Define a dummy SA_NODEFER macro on Interix.
40957         * lib/signal.in.h (SA_NODEFER): Define fallback.
40958         Reported by Aleksey Cheusov <cheusov@tut.by> via
40959         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40960
40961 2008-10-23  Bruno Haible  <bruno@clisp.org>
40962
40963         * modules/freadahead (License): Change to LGPLv2+.
40964         Suggested by Simon Josefsson.
40965
40966 2008-10-23  Jim Meyering  <meyering@redhat.com>
40967
40968         random_r: new module
40969         * modules/random_r: New file.
40970         * m4/random_r.m4: New file.
40971         * lib/random_r.c: New file, from glibc.
40972         * modules/random_r-tests: New file.
40973         * tests/test-random_r.c: New file.
40974         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40975          Declare.
40976         (RAND_MAX): Define.
40977         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40978         * modules/stdlib: Substitute them, too.
40979         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40980         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40981         * doc/glibc-functions/random_r.texi: Likewise.
40982         * doc/glibc-functions/setstate_r.texi: Likewise.
40983         * doc/glibc-functions/srandom_r.texi: Likewise.
40984         * config/srclist.txt: Mention it.
40985
40986 2008-10-23  David Lutterkort  <lutter@redhat.com>
40987
40988         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40989         link requirement
40990
40991 2008-10-23  Jim Meyering  <meyering@redhat.com>
40992
40993         selinux-h: mark parameters of stub functions as intentionally unused
40994         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40995         * lib/se-context.in.h: Likewise.
40996
40997 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40998
40999         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41000
41001 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41002
41003         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41004
41005 2008-10-22  Eric Blake  <ebb9@byu.net>
41006
41007         glthread/thread: avoid compiler warning
41008         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41009         Add unreachable abort to silence compiler.
41010
41011 2008-10-22  Eric Blake  <ebb9@byu.net>
41012
41013         netdb: also supply struct addrinfo for cygwin 1.5.x
41014         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41015         older cygwin.
41016         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41017         cygwin.
41018         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41019
41020 2008-10-22  Bruno Haible  <bruno@clisp.org>
41021
41022         * users.txt: Update entry about pspp.
41023
41024 2008-10-21  Bruno Haible  <bruno@clisp.org>
41025
41026         Simplification.
41027         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41028         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41029
41030         Simplification.
41031         * lib/ioctl.c (ioctl): Don't undefine.
41032         * lib/socket.c (socket): Don't undefine.
41033
41034         Remove unused module indicator macros.
41035         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41036         GNULIB_$1 as a C macro.
41037
41038         * doc/posix-functions/close.texi: Undo last change.
41039         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41040         Windows platforms.
41041
41042 2008-10-21  Bruno Haible  <bruno@clisp.org>
41043
41044         Add gethostname() declaration to <unistd.h>.
41045         * lib/unistd.in.h (gethostname): New declaration.
41046         * lib/gethostname.c: Include <unistd.h>.
41047         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41048         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41050         and HAVE_GETHOSTNAME.
41051         * modules/gethostname (Depends-on): Add unistd.
41052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41053         (Include): Specify <unistd.h>.
41054         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41055         HAVE_GETHOSTNAME.
41056         * tests/test-gethostname.c: Include <unistd.h> first.
41057
41058 2008-10-21  Bruno Haible  <bruno@clisp.org>
41059
41060         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41061         * modules/select-tests (Depends-on): Likewise.
41062         Reported by Simon Josefsson.
41063
41064 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41065
41066         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41067         * lib/accept.c: New file, based on winsock.c.
41068         * lib/bind.c: New file, based on winsock.c.
41069         * lib/connect.c: New file, based on winsock.c.
41070         * lib/getpeername.c: New file, based on winsock.c.
41071         * lib/getsockname.c: New file, based on winsock.c.
41072         * lib/getsockopt.c: New file, based on winsock.c.
41073         * lib/ioctl.c: New file, based on winsock.c.
41074         * lib/listen.c: New file, based on winsock.c.
41075         * lib/recv.c: New file, based on winsock.c.
41076         * lib/recvfrom.c: New file, based on winsock.c.
41077         * lib/send.c: New file, based on winsock.c.
41078         * lib/sendto.c: New file, based on winsock.c.
41079         * lib/setsockopt.c: New file, based on winsock.c.
41080         * lib/shutdown.c: New file, based on winsock.c.
41081         * lib/socket.c: New file, based on winsock.c.
41082         * lib/w32sock.h: New file, based on winsock.c.
41083         * lib/winsock.c: Remove file.
41084         * modules/accept: Likewise.
41085         * modules/bind: Likewise.
41086         * modules/connect: Likewise.
41087         * modules/getpeername: Likewise.
41088         * modules/getsockname: Likewise.
41089         * modules/getsockopt: Likewise.
41090         * modules/ioctl: Likewise.
41091         * modules/listen: Likewise.
41092         * modules/recv: Likewise.
41093         * modules/recvfrom: Likewise.
41094         * modules/send: Likewise.
41095         * modules/sendto: Likewise.
41096         * modules/setsockopt: Likewise.
41097         * modules/shutdown: Likewise.
41098         * modules/socket: Use socket.c instead of winsock.c.
41099         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41100         * doc/posix-functions/accept.texi: Doc fix.
41101         * doc/posix-functions/bind.texi: Doc fix.
41102         * doc/posix-functions/close.texi: Doc fix.
41103         * doc/posix-functions/connect.texi: Doc fix.
41104         * doc/posix-functions/getpeername.texi: Doc fix.
41105         * doc/posix-functions/getsockname.texi: Doc fix.
41106         * doc/posix-functions/getsockopt.texi: Doc fix.
41107         * doc/posix-functions/ioctl.texi: Doc fix.
41108         * doc/posix-functions/listen.texi: Doc fix.
41109         * doc/posix-functions/recv.texi: Doc fix.
41110         * doc/posix-functions/recvfrom.texi: Doc fix.
41111         * doc/posix-functions/send.texi: Doc fix.
41112         * doc/posix-functions/sendto.texi: Doc fix.
41113         * doc/posix-functions/setsockopt.texi: Doc fix.
41114         * doc/posix-functions/shutdown.texi: Doc fix.
41115         * doc/posix-functions/socket.texi: Doc fix.
41116
41117 2008-10-20  Bruno Haible  <bruno@clisp.org>
41118
41119         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41120         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41121         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41122         as an alias for SIGABRT.
41123         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41124         (sigaction): Map it to SIGABRT.
41125         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41126
41127 2008-10-20  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/fts.c: Don't include lstat.h.
41130         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41131
41132         Move the lstat() declaration to <sys/stat.h>.
41133         * lib/lstat.h: Remove file.
41134         * lib/sys_stat.in.h: Add special invocation convention.
41135         (lstat): New declaration.
41136         * lib/lstat.c (orig_lstat): New function.
41137         (rpl_lstat): Use orig_lstat instead of lstat.
41138         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41139         AC_C_INLINE. Set REPLACE_LSTAT.
41140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41141         and REPLACE_LSTAT.
41142         * modules/lstat (Files): Remove lib/lstat.h.
41143         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41144         (Include): Specify <sys/stat.h> instead of lstat.h.
41145         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41146         REPLACE_LSTAT.
41147         * NEWS: Mention the change.
41148
41149 2008-10-20  Bruno Haible  <bruno@clisp.org>
41150
41151         * modules/posix_spawn-tests: New file.
41152         * tests/test-posix_spawn3.c: New file.
41153
41154 2008-10-20  Bruno Haible  <bruno@clisp.org>
41155
41156         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41157         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41158         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41159         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41160         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41161
41162 2008-10-20  Bruno Haible  <bruno@clisp.org>
41163
41164         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41165         of posix_spawn on AIX 5.3.
41166
41167 2008-10-20  Bruno Haible  <bruno@clisp.org>
41168
41169         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41170
41171 2008-10-20  Bruno Haible  <bruno@clisp.org>
41172
41173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41174         of AC_LANG_PROGRAM.
41175
41176 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41177
41178         * lib/netdb.in.h: Don't define GNU specific constants until they
41179         are supported or needed.  Reported by Bruno Haible
41180         <bruno@clisp.org>.
41181
41182 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41183
41184         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41185
41186 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41187
41188         * lib/getaddrinfo.h: Remove file.
41189         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41190         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41191         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41192         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41193         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41194         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41195         * tests/test-getaddrinfo.c: Likewise.
41196         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41197         * NEWS: Mention change.
41198
41199 2008-10-19  Bruno Haible  <bruno@clisp.org>
41200
41201         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41202
41203 2008-10-19  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/wait-process.c: Include simply <sys/wait.h>.
41206         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41207         WIFSTOPPED): Remove fallback definitions.
41208         * modules/wait-process (Depends-on): Add sys_wait.
41209
41210         New module 'sys_wait'.
41211         * modules/sys_wait: New file.
41212         * lib/sys_wait.in.h: New file, partially copied from
41213         lib/wait-process.c.
41214         * m4/sys_wait_h.m4: New file.
41215         * doc/posix-headers/sys_wait.texi: Mention the new module.
41216
41217 2008-10-19  Bruno Haible  <bruno@clisp.org>
41218
41219         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41220
41221 2008-10-19  Bruno Haible  <bruno@clisp.org>
41222
41223         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41224         * lib/wait-process.c (WAIT_T): Remove type.
41225         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41226         (wait_subprocess): Update.
41227
41228 2008-10-19  Bruno Haible  <bruno@clisp.org>
41229
41230         New module 'atoll'.
41231         * modules/atoll: New file.
41232         * lib/stdlib.in.h (atoll): New declaration.
41233         * lib/atoll.c: New file, from glibc with modifications.
41234         * m4/atoll.m4: New file.
41235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41236         HAVE_ATOLL.
41237         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41238         * doc/posix-functions/atoll.texi: Mention the new module.
41239
41240 2008-10-19  Bruno Haible  <bruno@clisp.org>
41241
41242         Add strtoull() declaration to <stdlib.h>.
41243         * lib/stdlib.in.h (strtoull): New declaration.
41244         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41245         Set HAVE_STRTOULL.
41246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41247         HAVE_STRTOULL.
41248         * modules/strtoull (Depends-on): Add stdlib.
41249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41250         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41251         HAVE_STRTOULL.
41252
41253 2008-10-19  Bruno Haible  <bruno@clisp.org>
41254
41255         Add strtoll() declaration to <stdlib.h>.
41256         * lib/stdlib.in.h (strtoll): New declaration.
41257         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41258         Set HAVE_STRTOLL.
41259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41260         HAVE_STRTOLL.
41261         * modules/strtoll (Depends-on): Add stdlib.
41262         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41263         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41264
41265 2008-10-19  Bruno Haible  <bruno@clisp.org>
41266
41267         * modules/bcopy (Depends-on): Add strings.
41268         (Include): Specify <strings.h>.
41269
41270 2008-10-19  Bruno Haible  <bruno@clisp.org>
41271
41272         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41273
41274 2008-10-19  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41277         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41278         mingw.
41279
41280 2008-10-19  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/atanl.c: Don't include isnanl.h.
41283         * lib/cosl.c: Likewise.
41284         * lib/ldexpl.c: Likewise.
41285         * lib/logl.c: Likewise.
41286         * lib/sinl.c: Likewise.
41287         * lib/sqrtl.c: Likewise.
41288         * lib/tanl.c: Likewise.
41289
41290         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41291         * lib/isnanf.h: Remove file.
41292         * lib/isnand.h: Remove file.
41293         * lib/isnanl.h: Remove file.
41294         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41295         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41296         macros.
41297         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41298         HAVE_ISNANF, don't define it as a C macro.
41299         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41300         HAVE_ISNAND, don't define it as a C macro.
41301         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41302         HAVE_ISNANL, don't define it as a C macro.
41303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41304         HAVE_ISNAN[FDL].
41305         * modules/isnanf (Files): Remove lib/isnanf.h.
41306         (Depends-on): Add math.
41307         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41308         (Include): Specify <math.h> instead of isnanf.h.
41309         * modules/isnand (Files): Remove lib/isnand.h.
41310         (Depends-on): Add math.
41311         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41312         (Include): Specify <math.h> instead of isnand.h.
41313         * modules/isnanl (Files): Remove lib/isnanl.h.
41314         (Depends-on): Add math.
41315         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41316         (Include): Specify <math.h> instead of isnanl.h.
41317         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41318         HAVE_ISNAN[FDL].
41319         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41320         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41321         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41322         * NEWS: Mention the change.
41323
41324 2008-10-18  Bruno Haible  <bruno@clisp.org>
41325
41326         Add getusershell(), setusershell(), endusershell() declarations to
41327         <unistd.h>.
41328         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41329         declarations.
41330         * lib/getusershell.c: Include unistd.h.
41331         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41332         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41333         HAVE_GETUSERSHELL.
41334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41335         and HAVE_GETUSERSHELL.
41336         * modules/getusershell (Depends-on): Add unistd, extensions.
41337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41338         (Include): Specify <unistd.h>.
41339         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41340         HAVE_GETUSERSHELL.
41341
41342 2008-10-18  Bruno Haible  <bruno@clisp.org>
41343
41344         Add a getloadavg() declaration to <stdlib.h>.
41345         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41346         getloadavg declaration.
41347         (getloadavg): New declaration.
41348         * lib/getloadavg.c: Include <stdlib.h> first.
41349         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41350         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41351         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41353         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41354         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41355         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41356         (Include): Specify <stdlib.h>.
41357         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41358         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41359
41360 2008-10-18  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/dirchownmod.c: Don't include lchmod.h.
41363
41364         Move the lchmod() declaration to <sys/stat.h>.
41365         * lib/lchmod.h: Remove file.
41366         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41367         (lchmod): New declaration, moved here from lib/lchown.h.
41368         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41369         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41371         and HAVE_LCHMOD.
41372         * modules/lchmod (Files): Remove lib/lchmod.h.
41373         (Depends-on): Add sys_stat, extensions.
41374         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41375         (Include): Specify <sys/stat.h> instead of lchmod.h.
41376         * modules/sys_stat (Depends-on): Add link-warning.
41377         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41378         definition of GL_LINK_WARNING.
41379         * NEWS: Mention the change.
41380
41381 2008-10-18  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/fchdir.c: Don't include dirfd.h.
41384         * lib/fts.c: Likewise.
41385         * lib/getcwd.c: Likewise.
41386         * lib/glob.c: Likewise.
41387
41388         Move the dirfd() declaration to <dirent.h>.
41389         * lib/dirfd.h: Remove file.
41390         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41391         (dirfd): New declaration.
41392         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41394         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41395         HAVE_DECL_DIRFD.
41396         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41397         HAVE_DECL_DIRFD.
41398         * modules/dirfd (Files): Remove lib/dirfd.h.
41399         (Depends-on): Add dirent, extensions.
41400         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41401         (Include): Specify <dirent.h> instead of dirfd.h.
41402         * modules/dirent (Depends-on): Add link-warning.
41403         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41404         definition of GL_LINK_WARNING.
41405         * NEWS: Mention the change.
41406
41407 2008-10-18  Bruno Haible  <bruno@clisp.org>
41408
41409         Move the euidaccess() declaration to <unistd.h>.
41410         * lib/euidaccess.h: Remove file.
41411         * lib/unistd.in.h (euidaccess): New declaration.
41412         * lib/euidaccess.c: Don't include euidaccess.h.
41413         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41414         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41416         and HAVE_EUIDACCESS.
41417         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41418         (Depends-on): Add unistd.
41419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41420         (Include): Specify <unistd.h> instead of euidaccess.h.
41421         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41422         HAVE_EUIDACCESS.
41423         * NEWS: Mention the change.
41424
41425 2008-10-18  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41428
41429         Move the getdomainname() declaration to <unistd.h>.
41430         * lib/getdomainname.h: Remove file.
41431         * lib/unistd.in.h (getdomainname): New declaration.
41432         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41433         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41434         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41435         HAVE_GETDOMAINNAME.
41436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41437         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41438         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41439         (Depends-on): Add unistd, extensions.
41440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41441         (Includes): Specify <unistd.h> instead of getdomainname.h.
41442         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41443         HAVE_GETDOMAINNAME.
41444         * NEWS: Mention the change.
41445
41446 2008-10-18  Bruno Haible  <bruno@clisp.org>
41447
41448         * modules/dirent: New file.
41449         * m4/dirent_h.m4: New file.
41450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41451         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41452         * modules/fchdir (Files): Remove lib/dirent.in.h.
41453         (Depends-on): Add dirent.
41454         (Makefile.am): Move rules to modules/dirent.
41455         * doc/posix-headers/dirent.texi: Mention the new module.
41456
41457 2008-10-18  Bruno Haible  <bruno@clisp.org>
41458
41459         Avoid -Wunused-parameter warnings in public gnulib header files.
41460         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41461         macro.
41462         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41463
41464 2008-10-18  Bruno Haible  <bruno@clisp.org>
41465
41466         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41467         * doc/glibc-functions/error.texi: Mention the module 'error'.
41468         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41469         * doc/glibc-functions/getdomainname.texi: Mention the module
41470         'getdomainname'.
41471         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41472         * doc/glibc-functions/getpagesize.texi: Mention the module
41473         'getpagesize'.
41474         * doc/glibc-functions/getusershell.texi: Mention the module
41475         'getusershell'.
41476         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41477         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41478         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41479         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41480         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41481         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41482         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41483         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41484         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41485         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41486         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41487         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41488         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41489         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41490
41491 2008-10-17  Bruno Haible  <bruno@clisp.org>
41492
41493         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41494         HP-UX and IRIX, use -0.0L.
41495         * tests/test-ceill.c (minus_zero): Likewise.
41496         * tests/test-floorl.c (minus_zero): Likewise.
41497         * tests/test-frexpl.c (minus_zero): Likewise.
41498         * tests/test-isnan.c (minus_zerol): Likewise.
41499         * tests/test-isnanl.h (minus_zero): Likewise.
41500         * tests/test-ldexpl.c (minus_zero): Likewise.
41501         * tests/test-roundl.c (minus_zero): Likewise.
41502         * tests/test-signbit.c (minus_zerol): Likewise.
41503         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41504         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41505         * tests/test-truncl.c (minus_zero): Likewise.
41506         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41507         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41508         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41509         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41510
41511 2008-10-17  Bruno Haible  <bruno@clisp.org>
41512
41513         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41514         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41515         that it gets activated only for gcc >= 3.0.
41516         * lib/dirent.in.h: Likewise.
41517         * lib/errno.in.h: Likewise.
41518         * lib/fcntl.in.h: Likewise.
41519         * lib/float.in.h: Likewise.
41520         * lib/iconv.in.h: Likewise.
41521         * lib/inttypes.in.h: Likewise.
41522         * lib/locale.in.h: Likewise.
41523         * lib/math.in.h: Likewise.
41524         * lib/netdb.in.h: Likewise.
41525         * lib/netinet_in.in.h: Likewise.
41526         * lib/search.in.h: Likewise.
41527         * lib/signal.in.h: Likewise.
41528         * lib/spawn.in.h: Likewise.
41529         * lib/stdarg.in.h: Likewise.
41530         * lib/stdint.in.h: Likewise.
41531         * lib/stdio.in.h: Likewise.
41532         * lib/stdlib.in.h: Likewise.
41533         * lib/string.in.h: Likewise.
41534         * lib/strings.in.h: Likewise.
41535         * lib/sys_file.in.h: Likewise.
41536         * lib/sys_ioctl.in.h: Likewise.
41537         * lib/sys_select.in.h: Likewise.
41538         * lib/sys_socket.in.h: Likewise.
41539         * lib/sys_stat.in.h: Likewise.
41540         * lib/sys_time.in.h: Likewise.
41541         * lib/sysexits.in.h: Likewise.
41542         * lib/time.in.h: Likewise.
41543         * lib/unistd.in.h: Likewise.
41544         * lib/wchar.in.h: Likewise.
41545         * lib/wctype.in.h: Likewise.
41546         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41547
41548 2008-10-17  Jim Meyering  <meyering@redhat.com>
41549
41550         ignore-value: don't depend on inline module
41551         * modules/ignore-value (Depends-on): Remove 'inline'.
41552         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41553         Suggestion from Bruno Haible.
41554
41555 2008-10-17  Bruno Haible  <bruno@clisp.org>
41556
41557         New implementation of condition variables for Win32.
41558         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41559         (gl_linked_waitqueue_t): New type.
41560         (gl_cond_t): Use it.
41561         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41562         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41563         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41564         (glthread_cond_init_func, glthread_cond_wait_func,
41565         glthread_cond_timedwait_func, glthread_cond_signal_func,
41566         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41567         Reimplemented on the basis of gl_linked_waitqueue_t.
41568         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41569         gl_waitqueue_t.
41570         (gl_rwlock_t): Update.
41571         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41572
41573 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41574
41575         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41576         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41577
41578 2008-10-17  Jim Meyering  <meyering@redhat.com>
41579
41580         ignore-value: new module
41581         * modules/ignore-value: New file.
41582         * lib/ignore-value.h: New file.
41583         * MODULES.html.sh (Compiler warning management): New section,
41584         just for this module.  More to come.
41585
41586 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41587
41588         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41589         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41590         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41591
41592 2008-10-16  Jim Meyering  <meyering@redhat.com>
41593
41594         openat-die.c: avoid 'no previous prototype' warning
41595         * lib/openat-die.c: Include "openat.h".
41596         Reported by Reuben Thomas <rrt@sc3d.org>.
41597
41598 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41599
41600         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41601         * lib/netdb.in.h: Fix typo.
41602         Reported by Bruno Haible  <bruno@clisp.org>
41603
41604         * lib/netdb.in.h: Include sys/socket.h for platforms without
41605         netdb.h, to get structures like hostent on MinGW.
41606         * modules/netdb (Depends-on): Add sys_socket.
41607
41608 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41609
41610         * modules/netdb, modules/netdb-tests: New file.
41611         * m4/netdb_h.m4: New file.
41612         * lib/netdb.in.h: Add, currently just an empty file pending
41613         definitions.
41614         * tests/test-netdb.c: New file.
41615         * doc/posix-headers/netdb.texi: Mention that we replace it if
41616         needed.
41617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41618         netdb.
41619
41620 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41621
41622         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41623         with code.
41624
41625 2008-10-13  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/glthread/cond.c (glthread_cond_wait_func,
41628         glthread_cond_timedwait_func): Add a comment.
41629
41630 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41631
41632         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41633         * tests/test-select.c: Likewise,
41634
41635 2008-10-13  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/glthread/cond.c (glthread_cond_wait_func,
41638         glthread_cond_timedwait_func): Fix variable name.
41639         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41640
41641 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41642
41643         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41645         struct sockaddr.sa_len.
41646         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41647
41648 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41649
41650         * build-aux/pmccabe2html: Add css and css_url parameters.
41651
41652 2008-10-12  Bruno Haible  <bruno@clisp.org>
41653
41654         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41655         calling aclx_get.
41656         Reported by Rainer Tammer <tammer@tammer.net>.
41657
41658 2008-10-12  Bruno Haible  <bruno@clisp.org>
41659
41660         Use msvcrt aware primitives for creation/termination of Win32 threads.
41661         * lib/glthread/thread.c: Include <process.h>.
41662         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41663         (wrapper_func): Update signature.
41664         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41665
41666 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41667             Bruno Haible  <bruno@clisp.org>
41668
41669         Provide a Win32 implementation of the 'cond' module.
41670         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41671         * lib/glthread/cond.c (glthread_cond_init_func,
41672         glthread_cond_wait_func, glthread_cond_timedwait_func,
41673         glthread_cond_signal_func, glthread_cond_broadcast_func,
41674         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41675         * modules/cond (Dependencies): Add gettimeofday.
41676
41677 2008-10-11  Bruno Haible  <bruno@clisp.org>
41678
41679         Make sleep work on older versions of mingw.
41680         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41681         only whether it exists.
41682         * doc/posix-functions/sleep.texi: Mention the problem with older
41683         versions of mingw.
41684
41685 2008-10-11  Bruno Haible  <bruno@clisp.org>
41686
41687         New module 'shutdown'.
41688         * modules/shutdown: New file.
41689         * lib/sys_socket.in.h (shutdown): New declaration.
41690         * lib/winsock.c (shutdown): New function.
41691         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41692         GNULIB_SHUTDOWN.
41693         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41694         * doc/posix-functions/shutdown.texi: Document the new module.
41695
41696 2008-10-11  Jim Meyering  <meyering@redhat.com>
41697
41698         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41699
41700 2008-10-11  Bruno Haible  <bruno@clisp.org>
41701
41702         New module 'fclose'.
41703         * modules/fclose: New file.
41704         * lib/stdio.in.h (fclose): New declaration.
41705         * lib/fclose.c: New file.
41706         * m4/fclose.m4: New file.
41707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41708         REPLACE_FCLOSE.
41709         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41710         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41711         REPLACE_FCLOSE.
41712         * modules/close (Depends-on): fclose.
41713         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41714
41715 2008-10-11  Bruno Haible  <bruno@clisp.org>
41716
41717         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41718         set errno and don't call _close.
41719
41720 2008-10-10  Bruno Haible  <bruno@clisp.org>
41721
41722         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41723         ACL, not afterwards. Fixes test failure on Cygwin.
41724
41725 2008-10-09  Ben Pfaff  <blp@gnu.org>
41726
41727         * build-aux/announce-gen: Fix gnulib version related part of usage
41728         message.  Die with a useful error message if no tarballs are
41729         found.
41730
41731 2008-10-10  Jim Meyering  <meyering@redhat.com>
41732
41733         bootstrap: use git's --depth=N option only if it's supported
41734         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41735         recognize the --depth option.  Reported by Pádraig Brady.
41736
41737 2008-10-09  Bruno Haible  <bruno@clisp.org>
41738
41739         New module 'ioctl'.
41740         * modules/ioctl: New file.
41741         * lib/sys_socket.in.h (ioctl): Remove declaration.
41742         * lib/winsock.c: Include <sys/ioctl.h>.
41743         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41744         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41745         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41746         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41747         * doc/posix-functions/ioctl.texi: Mention the new module.
41748
41749 2008-10-09  Bruno Haible  <bruno@clisp.org>
41750
41751         New module 'sys_ioctl'.
41752         * lib/sys_ioctl.in.h: New file.
41753         * m4/sys_ioctl_h.m4: New file.
41754         * modules/sys_ioctl: New file.
41755         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41756
41757 2008-10-09  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41760         * lib/winsock.c: Include <stdarg.h>.
41761         (rpl_ioctl): Change to second argument 'int' and then varargs.
41762
41763 2008-10-09  Bruno Haible  <bruno@clisp.org>
41764
41765         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41766         when the sys_socket module is present and the system has <winsock2.h>.
41767
41768 2008-10-09  Bruno Haible  <bruno@clisp.org>
41769
41770         * doc/posix-functions/close.texi: Mention module 'close' instead of
41771         module 'sys_socket'.
41772
41773 2008-10-09  Bruno Haible  <bruno@clisp.org>
41774
41775         * doc/glibc-headers/sys_ioctl.texi: New file.
41776         * doc/gnulib.texi: Include it.
41777
41778 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41779             Bruno Haible  <bruno@clisp.org>
41780
41781         Combine the two replacements of 'close'.
41782         * lib/sys_socket.in.h (close): Define to a reminder to include
41783         <unistd.h>.
41784         (_gl_close_fd_maybe_socket): New declaration.
41785         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41786         * lib/winsock.c (close): Remove undefinition.
41787         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41788         needed for the gnulib module 'close'.
41789         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41790         define to an error symbol or to a warning, if suitable.
41791         * lib/close.c: Include <sys/socket.h>.
41792         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41793         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41794         UNISTD_H_HAVE_WINSOCK2_H.
41795         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41797         UNISTD_H_HAVE_WINSOCK2_H.
41798         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41799         (configure.ac): Set a module indicator.
41800         (Makefile.am): Substitute GNULIB_CLOSE.
41801         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41802         * modules/poll-tests (Depends-on): Add close.
41803         * modules/select-tests (Depends-on): Likewise.
41804
41805 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41806             Bruno Haible  <bruno@clisp.org>
41807
41808         New module 'close'.
41809         * modules/close: New file.
41810         * lib/unistd.in.h (close): Move declaration out of the
41811         FCHDIR_REPLACEMENT scope.
41812         (_gl_unregister_fd): New declaration.
41813         * lib/close.c: New file.
41814         * lib/fchdir.c (rpl_close): Remove function.
41815         * m4/close.m4: New file.
41816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41817         close.
41818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41819         REPLACE_CLOSE.
41820         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41821         REPLACE_CLOSE.
41822         * modules/fchdir (Depends-on): Add close.
41823
41824 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41825             Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/fcntl.in.h (open): Simplify conditionals.
41828         (_gl_register_fd): New declaration.
41829         * lib/fchdir.c (rpl_open): Remove function.
41830         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41831         also.
41832         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41834         open.
41835
41836 2008-10-09  Jim Meyering  <meyering@redhat.com>
41837
41838         GNUmakefile: use the more name-space-friendly "_version"
41839         * top/GNUmakefile (_dummy): Update.
41840         (_version): Rename from "version".
41841
41842 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41843             Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41846         rpl_close.
41847         (_gl_register_fd): New function, extracted from rpl_open.
41848         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41849         (rpl_open, rpl_opendir): Use _gl_register_fd.
41850
41851 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41852
41853         Fix organization of 'open' replacement.
41854         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41855         (gl_FUNC_OPEN): Use it.
41856         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41857
41858 2008-10-08  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41861
41862 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41863
41864         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41865         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41866         listen).
41867
41868 2008-10-08  Eric Blake  <ebb9@byu.net>
41869
41870         GNUmakefile: add 'make version' target
41871         * top/GNUmakefile (_curr-ver): Split version update rules...
41872         (version): ...into a target.
41873
41874 2008-10-07  Bruno Haible  <bruno@clisp.org>
41875
41876         Use a more portable replacement expression for -0.0L.
41877         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41878         instead of -0.0L. Fix m4 quotation.
41879
41880         * tests/test-signbit.c: Include <float.h>.
41881         (minus_zero): New variable.
41882         (test_signbitl): Use minus_zero instead of -zero.
41883         * modules/signbit-tests (Depends-on): Add float.
41884
41885         * tests/test-ceill.c: Include <float.h>.
41886         (zero): Remove variable.
41887         (minus_zero): New variable.
41888         (main): Use minus_zero instead of -zero.
41889         * modules/ceill-tests (Depends-on): Add float.
41890
41891         * tests/test-floorl.c: Include <float.h>.
41892         (zero): Remove variable.
41893         (minus_zero): New variable.
41894         (main): Use minus_zero instead of -zero.
41895         * modules/floorl-tests (Depends-on): Add float.
41896
41897         * tests/test-roundl.c: Include <float.h>.
41898         (zero): Remove variable.
41899         (minus_zero): New variable.
41900         (main): Use minus_zero instead of -zero.
41901         * modules/roundl-tests (Depends-on): Add float.
41902
41903         * tests/test-truncl.c: Include <float.h>.
41904         (zero): Remove variable.
41905         (minus_zero): New variable.
41906         (main): Use minus_zero instead of -zero.
41907         * modules/truncl-tests (Depends-on): Add float.
41908
41909         * tests/test-frexpl.c (zero): Remove variable.
41910         (minus_zero): New variable.
41911         (main): Use minus_zero instead of -zero.
41912         * modules/frexpl-tests (Depends-on): Add float.
41913
41914         * tests/test-isnan.c (zerol): Remove variable.
41915         (minus_zerol): New variable.
41916         (test_long_double): Use minus_zerol instead of -zerol.
41917         * modules/isnan-tests (Depends-on): Add float.
41918
41919         * tests/test-isnanl.h (zero): Remove variable.
41920         (minus_zero): New variable.
41921         (main): Use minus_zero instead of -zero.
41922         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41923         * modules/isnanl-tests (Depends-on): Add float.
41924
41925         * tests/test-ldexpl.c (zero): Remove variable.
41926         (minus_zero): New variable.
41927         (main): Use minus_zero instead of -zero.
41928         * modules/ldexpl-tests (Depends-on): Add float.
41929
41930         * tests/test-snprintf-posix.h (zerol): Remove variable.
41931         (minus_zerol): New variable.
41932         (test_function): Use minus_zerol instead of -zerol.
41933         * modules/snprintf-posix-tests (Depends-on): Add float.
41934         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41935
41936         * tests/test-sprintf-posix.h (zerol): Remove variable.
41937         (minus_zerol): New variable.
41938         (test_function): Use minus_zerol instead of -zerol.
41939         * modules/sprintf-posix-tests (Depends-on): Add float.
41940         * modules/vsprintf-posix-tests (Depends-on): Add float.
41941
41942         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41943         (minus_zerol): New variable.
41944         (test_function): Use minus_zerol instead of -zerol.
41945         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41946
41947         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41948         (minus_zerol): New variable.
41949         (test_function): Use minus_zerol instead of -zerol.
41950         * modules/vasprintf-posix-tests (Depends-on): Add float.
41951
41952 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41953
41954         * MODULES.html.sh (Support for building documentation): Mention
41955         pmccabe2html.  Sort entries.
41956
41957         Add pmccabe2html module, from gnupdf.
41958         * build-aux/pmccabe.css: New file.
41959         * build-aux/pmccabe2html: New file.
41960         * m4/pmccabe2html.m4: New file.
41961         * modules/pmccabe2html: New file.
41962
41963 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41964
41965         flock: new module
41966         * MODULES.html.sh: Add to list of modules.
41967         * lib/flock.c: flock implementation for Windows and Unix systems
41968         which have fcntl.
41969         * doc/glibc-functions/flock.texi: Update documentation.
41970         * lib/sys_file.in.h: <sys/file.h> header file.
41971         * m4/flock.m4: M4 macros.
41972         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41973         * modules/flock: flock module.
41974         * modules/flock-tests: flock tests module.
41975         * modules/sys_file: sys/file.h module.
41976         * tests/test-flock.c: test suite for flock.
41977
41978 2008-10-06  Jim Meyering  <meyering@redhat.com>
41979
41980         bootstrap: check for LT_INIT more portably still ;-)
41981         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41982         Spotted by Bruno Haible.
41983
41984 2008-10-06  Eric Blake  <ebb9@byu.net>
41985
41986         test-signbit: avoid tripping Irix cc bug on -0.0L
41987         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41988         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41989         entire testsuite consistent and avoids an Irix 6.2 bug.
41990
41991 2008-10-05  Bruno Haible  <bruno@clisp.org>
41992             Jim Meyering  <jim@meyering.net>
41993
41994         Add an option for ignoring EPIPE during close_stdout.
41995         * lib/closeout.h: Include <stdbool.h>.
41996         (close_stdout_set_ignore_EPIPE): New declaration.
41997         * lib/closeout.c: Include <stdbool.h>.
41998         (ignore_EPIPE): New variable.
41999         (close_stdout_set_ignore_EPIPE): New function.
42000         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42001         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42002         failure.
42003         * modules/closeout (Depends-on): Add stdbool.
42004
42005 2008-10-05  Bruno Haible  <bruno@clisp.org>
42006
42007         * modules/accept: New file.
42008         * modules/bind: New file.
42009         * modules/connect: New file.
42010         * modules/getpeername: New file.
42011         * modules/getsockname: New file.
42012         * modules/getsockopt: New file.
42013         * modules/listen: New file.
42014         * modules/recv: New file.
42015         * modules/recvfrom: New file.
42016         * modules/send: New file.
42017         * modules/sendto: New file.
42018         * modules/setsockopt: New file.
42019         * modules/socket: New file.
42020         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42021         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42022         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42023         the particular module is requested. Add a link warning when the
42024         particular module is not requested.
42025         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42026         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42027         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42028         the particular module is requested.
42029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42030         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42031         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42032         * modules/sys_socket (Depends-on): Add link-warning.
42033         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42034         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42035         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42036         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42037         GL_LINK_WARNING.
42038         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42039         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42040         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42041         * doc/posix-functions/getpeername.texi: Mention the new module
42042         'getpeername'.
42043         * doc/posix-functions/getsockname.texi: Mention the new module
42044         'getsockname'.
42045         * doc/posix-functions/getsockopt.texi: Mention the new module
42046         'getsockopt'.
42047         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42048         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42049         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42050         * doc/posix-functions/send.texi: Mention the new module 'send'.
42051         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42052         * doc/posix-functions/setsockopt.texi: Mention the new module
42053         'setsockopt'.
42054         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42055         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42056         listen, connect, accept.
42057         * modules/select-tests (Depends-on): Likewise.
42058
42059 2008-10-05  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/winsock.c (strerror): Remove unused #undef.
42062         (rpl_close): Remove unused local variable.
42063
42064         * modules/sys_socket (Depends-on); Add errno.
42065
42066 2008-10-05  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42069         (select): Add a link warning when the 'select' module is not used.
42070         * modules/sys_select (Depends-on): Add link-warning.
42071         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42072         Suggested by Paolo Bonzini.
42073
42074 2008-10-05  Jim Meyering  <meyering@redhat.com>
42075
42076         bootstrap: check for LT_INIT more portably
42077         * build-aux/bootstrap: Avoid using grep -E, since it's not
42078         portable enough.  Suggestion from Bruno Haible.
42079
42080 2008-10-05  Bruno Haible  <bruno@clisp.org>
42081
42082         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42083         as being fixed by gnulib.
42084
42085 2008-10-05  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/select-tests: New file, mostly copied from
42088         modules/sys_select-tests.
42089         * tests/test-select.c: New file, mostly copied from
42090         tests/test-sys_select.c.
42091         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42092         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42093         (Makefile.am): Remove test_sys_select_LDADD.
42094
42095         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42096         to an undefined symbol, for an error message.
42097         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42098         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42099         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42100         winsock-select.c here.
42101         * modules/sys_select (Files): Remove lib/winsock-select.c.
42102         (Depends-on): Remove alloca.
42103         (Makefile.am): Substitute GNULIB_SELECT.
42104         * modules/select: New file.
42105         * doc/posix-functions/select.texi: Update.
42106
42107 2008-10-05  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42110         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42111         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42112         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42113         getdtablesize.
42114         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42115         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42116
42117 2008-10-05  Bruno Haible  <bruno@clisp.org>
42118
42119         * modules/getdtablesize-tests: New file.
42120         * tests/test-getdtablesize.c: New file.
42121
42122         New module 'getdtablesize'.
42123         * lib/unistd.in.h (getdtablesize): New declaration.
42124         * lib/getdtablesize.c: New file.
42125         * m4/getdtablesize.m4: New file.
42126         * modules/getdtablesize: New file.
42127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42128         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42129         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42130         HAVE_GETDTABLESIZE.
42131         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42132
42133 2008-10-05  Bruno Haible  <bruno@clisp.org>
42134
42135         * modules/sched (Makefile.am): Fix typo.
42136         Reported by Simon Josefsson.
42137
42138 2008-10-05  Jim Meyering  <meyering@redhat.com>
42139
42140         bootstrap: check for LT_INIT, too
42141         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42142         are deprecated.  Suggestion from Ralf Wildenhues.
42143
42144 2008-10-05  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42147         overriding them by ours.
42148         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42149
42150 2008-10-05  Jim Meyering  <meyering@redhat.com>
42151
42152         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42153         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42154         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42155
42156 2008-10-04  Bruno Haible  <bruno@clisp.org>
42157
42158         * modules/dup2 (License): Change to LGPLv2+.
42159         * modules/sleep (License): Likewise.
42160         * modules/perror (License): Likewise.
42161         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42162         Blake.
42163         * modules/signal (License): Likewise.
42164         * modules/sigprocmask (License): Likewise.
42165         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42166         Meyering.
42167
42168 2008-10-04  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42171         Reported by Rainer Tammer <tammer@tammer.net>.
42172
42173 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42174             Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42177         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42178         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42179
42180 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42181
42182         filevercmp: new module
42183         * lib/filevercmp.h: New function filevercmp comparing version strings.
42184         * lib/filevercmp.c: Implementation of filevercmp function.
42185         * modules/filevercmp: Module metadata.
42186         * tests/test-filevercmp.c: Unit test for new module.
42187         * modules/filevercmp-tests: Unit test metadata.
42188         * MODULES.html.sh: Add filevercmp module.
42189
42190 2008-10-03  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/c-ctype.h: Add comment.
42193         Reported by Jim Meyering.
42194
42195 2008-10-02  Bruno Haible  <bruno@clisp.org>
42196
42197         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42198
42199 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42200
42201         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42202         name of bootstrap.conf accordingly.
42203
42204 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42205
42206         * build-aux/bootstrap: Install git-merge-changelog configuration
42207         items into .gitconfig if needed.
42208
42209 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42210
42211         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42212         git repository, and initialize/update it accordingly.
42213
42214 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42215
42216         * modules/fsync-tests: New file.
42217         * tests/test-fsync.c: New file.
42218
42219         New module 'fsync'.
42220         * lib/fsync.c: New file.
42221         * m4/fsync.m4: New file.
42222         * modules/fsync: New file.
42223         * lib/unistd.in.h (fsync): New declaration.
42224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42225         GNULIB_FSYNC and HAVE_FSYNC.
42226         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42227         * MODULES.html.sh (posix_functions): Add fsync.
42228         * doc/posix-functions/fsync.texi: Mention the new module.
42229
42230 2008-10-02  Jim Meyering  <meyering@redhat.com>
42231
42232         fts.c: sync with similar code from coreutils' remove.c
42233         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42234         Guard also with "#if defined __linux__", since for now at least,
42235         this code is Linux-kernel-specific.
42236
42237 2008-10-02  Jim Meyering  <meyering@redhat.com>
42238
42239         fts: bug fixes
42240         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42241         Include <sys/vfs.h>, not <sys/statfs.h>.
42242
42243         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42244         Include <sys/vfs.h>, not <sys/statfs.h>.
42245
42246 2008-10-01  Bruno Haible  <bruno@clisp.org>
42247
42248         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42250         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42251         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42252         * doc/posix-functions/posix_spawnp.texi: Likewise.
42253         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42254         whether posix_spawn actually works.
42255         * m4/pipe.m4 (gl_PIPE): Likewise.
42256         * modules/execute (Files): Add m4/posix_spawn.m4.
42257         * modules/pipe (Files): Add m4/posix_spawn.m4.
42258         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42259
42260 2008-10-01  Jim Meyering  <meyering@redhat.com>
42261
42262         remove trailing spaces
42263         * NEWS: Likewise.
42264         * lib/poll.c (poll): Likewise.
42265         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42266         * lib/winsock.c (rpl_close): Likewise.
42267         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42268         * modules/yield: Likewise.
42269         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42270         * tests/test-sys_select.c (connect_to_socket): Likewise.
42271
42272         fts.c: adjust a new interface to be more generally useful
42273         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42274         (fts_build): Adjust caller.
42275
42276 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42277
42278         * modules/cond-tests: New file.
42279         * tests/test-cond.c: New file.
42280
42281 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42282             Bruno Haible  <bruno@clisp.org>
42283
42284         * modules/cond (Dependencies): Add errno, time.
42285         * lib/glthread/cond.h: Include <time.h>.
42286         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42287         across platforms.
42288
42289 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42290             Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42293
42294 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42295             Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/tls-tests (Depends-on): Add thread, yield.
42298         (configure.ac): Remove all checks.
42299         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42300         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42301         gl_thread_self): Remove definitions. Include glthread/thread.h and
42302         glthread/yield.h instead.
42303         (test_tls): Pass an additional NULL argument to gl_thread_join.
42304
42305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42306             Bruno Haible  <bruno@clisp.org>
42307
42308         * modules/lock-tests (Depends-on): Add thread, yield.
42309         (configure.ac): Remove all checks.
42310         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42311         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42312         gl_thread_self): Remove definitions. Include glthread/thread.h and
42313         glthread/yield.h instead.
42314         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42315         additional NULL argument to gl_thread_join.
42316
42317 2008-09-30  Bruno Haible  <bruno@clisp.org>
42318
42319         Fix the Win32 implementation of the 'thread' module.
42320         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42321         pointer type.
42322         (gl_thread_self): Invoke gl_thread_self_func.
42323         (gl_thread_self_func): New declaration.
42324         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42325         (do_init_self_key, init_self_key): New functions.
42326         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42327         Remove some fields.
42328         (running_threads, running_lock): Remove variables.
42329         (get_current_thread_handle): New function.
42330         (gl_thread_self_func, wrapper_func, glthread_create_func,
42331         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42332         simplified.
42333
42334 2008-09-30  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42337         files.
42338
42339 2008-09-30  Jim Meyering  <meyering@redhat.com>
42340
42341         fts.m4: correct the test for statfs.f_type
42342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42343         when checking for statfs.f_type.
42344
42345 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42346
42347         tests: avoid some compiler warnings
42348         * tests/test-memchr.c (main): Pass NULL indirectly.
42349         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42350
42351 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42352
42353         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42354         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42355         exactly specified dayshifts.
42356         (dayshift): New rule.
42357         (rel): Add dayshift.
42358         (relative_time_table) [tomorrow, yesterday, today, now]:
42359         Use tDAY_SHIFT in place of tDAY_UNIT.
42360         * tests/test-getdate.c: Add tests for now-disallowed countable
42361         dayshifts, e.g., "4 yesterday ago".
42362
42363 2008-09-29  Bruno Haible  <bruno@clisp.org>
42364
42365         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42366         * tests/test-posix_spawn1.in.sh: Renamed from
42367         tests/test-posix_spawn.in.sh.
42368         * tests/test-posix_spawn2.c: New file.
42369         * tests/test-posix_spawn2.in.sh: New file.
42370         * modules/posix_spawnp-tests (Files): Update.
42371         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42372
42373 2008-09-29  Bruno Haible  <bruno@clisp.org>
42374
42375         Propagate effects of putenv/setenv/unsetenv to child processes.
42376         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42377         * lib/pipe.c (create_pipe): Likewise.
42378
42379 2008-09-29  Bruno Haible  <bruno@clisp.org>
42380
42381         Enable use of shell scripts as executables in mingw.
42382         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42383         run the program as a shell script.
42384         * lib/pipe.c (create_pipe): Likewise.
42385         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42386         resulting array.
42387
42388 2008-09-29  Eric Blake  <ebb9@byu.net>
42389
42390         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42391
42392 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42393
42394         * doc/posix-functions/accept.texi: Update mingw problems.
42395         * doc/posix-functions/bind.texi: Update mingw problems.
42396         * doc/posix-functions/close.texi: Update mingw problems.
42397         * doc/posix-functions/connect.texi: Update mingw problems.
42398         * doc/posix-functions/getpeername.texi: Update mingw problems.
42399         * doc/posix-functions/getsockname.texi: Update mingw problems.
42400         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42401         * doc/posix-functions/ioctl.texi: Update mingw problems.
42402         * doc/posix-functions/listen.texi: Update mingw problems.
42403         * doc/posix-functions/recv.texi: Update mingw problems.
42404         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42405         * doc/posix-functions/select.texi: Update mingw problems.
42406         * doc/posix-functions/send.texi: Update mingw problems.
42407         * doc/posix-functions/sendto.texi: Update mingw problems.
42408         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42409         * doc/posix-functions/socket.texi: Update mingw problems.
42410
42411 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42412             Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/sys_select.in.h: Include sys/time.h.
42415         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42416         * modules/sys_select: Depend on sys_time.
42417         * tests/test-sys_select.c: Test that sys/select.h defines struct
42418         timeval fully.
42419
42420 2008-09-29  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42423         * lib/sys_select.in.h: Likewise.
42424
42425 2008-09-29  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42428
42429 2008-09-29  Bruno Haible  <bruno@clisp.org>
42430
42431         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42432         Set LIBSOCKET instead of augmenting LIBS.
42433         * modules/sockets (Link): New section.
42434         * modules/sockets-tests (test_sockets_LDADD): New variable.
42435         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42436         * modules/poll-tests (test_poll_LDADD): New variable.
42437         * NEWS: Document the change.
42438
42439 2008-09-29  Bruno Haible  <bruno@clisp.org>
42440
42441         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42442         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42443         ARPA_INET_H directly.
42444         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42445
42446 2008-09-28  Bruno Haible  <bruno@clisp.org>
42447
42448         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42449         from gl_HEADER_SYS_SOCKET.
42450         (gl_HEADER_SYS_SOCKET): Invoke it.
42451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42452
42453 2008-09-28  Bruno Haible  <bruno@clisp.org>
42454
42455         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42456         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42457         Needed on OSF/1 4.0.
42458
42459 2008-09-28  Bruno Haible  <bruno@clisp.org>
42460
42461         Override open more carefully.
42462         * lib/open.c (orig_open): New function.
42463         (rpl_open): Use orig_open instead of open.
42464         * lib/fcntl.in.h: Add special invocation convention.
42465         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42466         (gl_FUNC_OPEN): Invoke it.
42467
42468         Override freopen more carefully.
42469         * lib/freopen.c (orig_freopen): New function.
42470         (rpl_freopen): Use orig_freopen instead of freopen.
42471         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42472         (gl_FUNC_FREOPEN): Invoke it.
42473
42474         Override fopen more carefully.
42475         * lib/fopen.c (orig_fopen): New function.
42476         (rpl_fopen): Use orig_fopen instead of fopen.
42477         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42478         (gl_FUNC_FOPEN): Invoke it.
42479         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42480
42481 2008-09-28  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42484         SIGPIPE.
42485
42486 2008-09-28  Bruno Haible  <bruno@clisp.org>
42487
42488         * tests/test-sigaction.c (handler, main): Disable the check whether
42489         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42490         glibc systems with LinuxThreads.
42491
42492 2008-09-28  Bruno Haible  <bruno@clisp.org>
42493
42494         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42495
42496         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42497         with AIX xlc.
42498         * lib/fcntl.in.h (open): Likewise.
42499         Reported by Rainer Tammer <tammer@tammer.net>.
42500
42501 2008-09-28  Bruno Haible  <bruno@clisp.org>
42502
42503         * modules/posix_spawnp-tests: New file.
42504         * tests/test-posix_spawn.c: New file.
42505         * tests/test-posix_spawn.in.sh: New file.
42506
42507         New module 'posix_spawnp'.
42508         * modules/posix_spawnp: New file.
42509         * lib/spawnp.c: New file, from GNU libc with modifications.
42510         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42511
42512         New module 'posix_spawn'.
42513         * modules/posix_spawn: New file.
42514         * lib/spawn.c: New file, from GNU libc with modifications.
42515         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42516
42517         New module 'posix_spawnattr_destroy'.
42518         * modules/posix_spawnattr_destroy: New file.
42519         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42520         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42521         module.
42522
42523         New module 'posix_spawnattr_setsigmask'.
42524         * modules/posix_spawnattr_setsigmask: New file.
42525         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42526         modifications.
42527         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42528         new module.
42529
42530         New module 'posix_spawnattr_getsigmask'.
42531         * modules/posix_spawnattr_getsigmask: New file.
42532         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42533         modifications.
42534         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42535         new module.
42536
42537         New module 'posix_spawnattr_setsigdefault'.
42538         * modules/posix_spawnattr_setsigdefault: New file.
42539         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42540         modifications.
42541         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42542         new module.
42543
42544         New module 'posix_spawnattr_getsigdefault'.
42545         * modules/posix_spawnattr_getsigdefault: New file.
42546         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42547         modifications.
42548         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42549         new module.
42550
42551         New module 'posix_spawnattr_setschedpolicy'.
42552         * modules/posix_spawnattr_setschedpolicy: New file.
42553         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42554         modifications.
42555         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42556         new module.
42557
42558         New module 'posix_spawnattr_getschedpolicy'.
42559         * modules/posix_spawnattr_getschedpolicy: New file.
42560         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42561         modifications.
42562         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42563         new module.
42564
42565         New module 'posix_spawnattr_setschedparam'.
42566         * modules/posix_spawnattr_setschedparam: New file.
42567         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42568         modifications.
42569         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42570         new module.
42571
42572         New module 'posix_spawnattr_getschedparam'.
42573         * modules/posix_spawnattr_getschedparam: New file.
42574         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42575         modifications.
42576         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42577         new module.
42578
42579         New module 'posix_spawnattr_setpgroup'.
42580         * modules/posix_spawnattr_setpgroup: New file.
42581         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42582         modifications.
42583         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42584         module.
42585
42586         New module 'posix_spawnattr_getpgroup'.
42587         * modules/posix_spawnattr_getpgroup: New file.
42588         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42589         modifications.
42590         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42591         module.
42592
42593         New module 'posix_spawnattr_setflags'.
42594         * modules/posix_spawnattr_setflags: New file.
42595         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42596         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42597         module.
42598
42599         New module 'posix_spawnattr_getflags'.
42600         * modules/posix_spawnattr_getflags: New file.
42601         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42602         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42603         module.
42604
42605         New module 'posix_spawnattr_init'.
42606         * modules/posix_spawnattr_init: New file.
42607         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42608         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42609         module.
42610
42611         New module 'posix_spawn_file_actions_destroy'.
42612         * modules/posix_spawn_file_actions_destroy: New file.
42613         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42614         modifications.
42615         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42616         the new module.
42617
42618         New module 'posix_spawn_file_actions_addopen'.
42619         * modules/posix_spawn_file_actions_addopen: New file.
42620         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42621         modifications.
42622         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42623         the new module.
42624
42625         New module 'posix_spawn_file_actions_adddup2'.
42626         * modules/posix_spawn_file_actions_adddup2: New file.
42627         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42628         modifications.
42629         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42630         the new module.
42631
42632         New module 'posix_spawn_file_actions_addclose'.
42633         * modules/posix_spawn_file_actions_addclose: New file.
42634         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42635         modifications.
42636         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42637         the new module.
42638
42639         New module 'posix_spawn_file_actions_init'.
42640         * modules/posix_spawn_file_actions_init: New file.
42641         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42642         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42643         new module.
42644
42645         New module 'posix_spawn-internal'.
42646         * modules/posix_spawn-internal: New file.
42647         * lib/spawn_int.h: New file, from GNU libc with modifications.
42648         * lib/spawni.c: New file, from GNU libc with modifications.
42649         * m4/posix_spawn.m4: New file.
42650
42651         New module 'spawn'.
42652         * modules/spawn: New file.
42653         * lib/spawn.in.h: New file, from GNU libc with modifications.
42654         * m4/spawn_h.m4: New file.
42655         * doc/posix-headers/spawn.texi: Mention the new module.
42656
42657 2008-09-28  Bruno Haible  <bruno@clisp.org>
42658
42659         * modules/sched-tests: New file.
42660         * tests/test-sched.c: New file.
42661
42662         New module 'sched'.
42663         * modules/sched: New file.
42664         * lib/sched.in.h: New file.
42665         * m4/sched_h.m4: New file.
42666         * doc/posix-headers/sched.texi: Mention the new module.
42667
42668 2008-09-27  Eric Blake  <ebb9@byu.net>
42669
42670         Fix previous patch, and tweak references to $0.
42671         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42672         (func_version, func_gnulib_dir): Don't call this program
42673         gnulib-tool.
42674         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42675         with using $0 in function.
42676         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42677         (func_fatal_error): Reuse the name the user invoked us with.
42678
42679 2008-09-27  Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42682         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42683         (gl_ICONV_H): Not here.
42684         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42685         instead of assigning ICONV_H directly.
42686
42687         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42689         WCHAR_H directly.
42690
42691 2008-09-27  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42694         * modules/arpa_inet (Depends-on): Add link-warning.
42695         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42696         * modules/unistd (Makefile.am): Likewise.
42697
42698 2008-09-26  Bruno Haible  <bruno@clisp.org>
42699
42700         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42701         variables.
42702         (func_version): Essentially copied from gnulib-tool.
42703         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42704         func_readlink): Copied from gnulib-tool.
42705
42706 2008-09-26  Bruno Haible  <bruno@clisp.org>
42707
42708         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42709         invoking git-version-gen.
42710
42711 2008-09-26  Bruno Haible  <bruno@clisp.org>
42712
42713         * posix-modules: Update to directory names changed on 2008-01-19.
42714         Remove commas in output before splitting into words. No more need to
42715         avoid 'ftruncate' since 2007-02-19.
42716
42717 2008-09-26  Bruno Haible  <bruno@clisp.org>
42718
42719         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42720
42721 2008-09-26  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42724         * modules/fwriteerror (Depends-on): Add errno.
42725
42726 2008-09-26  Bruno Haible  <bruno@clisp.org>
42727
42728         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42729         * tests/test-vc-list-files-cvs.sh: Likewise.
42730
42731 2008-09-26  Bruno Haible  <bruno@clisp.org>
42732
42733         * doc/posix-headers/sys_resource.texi: Reorder items.
42734
42735 2008-09-26  Jim Meyering  <meyering@redhat.com>
42736
42737         fts: tweak inode comparison function
42738         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42739         inode numbers, as documented.
42740
42741         fts: sort dirent entries on inode number before traversing
42742         This avoids a quadratic, seek-related performance penalty when
42743         operating on a directory containing many entries (measurable at 10k;
42744         3.5 hours at 2 million entries with a cold cache) on certain types
42745         of file systems, including ext3 and ext4, but not tmpfs.
42746         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42747         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42748         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42749         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42750         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42751         (fts_build): Set the stat.st_ino member from D_INO.
42752         If it is likely to be useful, sort dirent entries on inode number.
42753
42754         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42755         and the struct statfs.f_type member.
42756         * modules/fts (Depends-on): Add d-ino.
42757
42758 2008-09-26  Bruno Haible  <bruno@clisp.org>
42759
42760         * modules/sigpipe-die (Depends-on): Add sigpipe.
42761
42762         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42763         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42764         and GNULIB_STDIO_H_SIGPIPE are set.
42765         * lib/stdio-write.c: New file.
42766         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42767         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42768         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42769         REPLACE_STDIO_WRITE_FUNCS.
42770         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42771         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42772         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42773         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42774         * modules/stdio (Files): Add lib/stdio-write.c.
42775         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42776         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42777         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42778         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42779         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42780         REPLACE_FPRINTF_POSIX.
42781         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42782         REPLACE_PRINTF_POSIX.
42783         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42784         REPLACE_VFPRINTF_POSIX.
42785         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42786         REPLACE_VPRINTF_POSIX.
42787         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42788         SIGPIPE issue.
42789         * doc/posix-functions/fputc.texi: Likewise.
42790         * doc/posix-functions/fputs.texi: Likewise.
42791         * doc/posix-functions/fwrite.texi: Likewise.
42792         * doc/posix-functions/printf.texi: Likewise.
42793         * doc/posix-functions/putc.texi: Likewise.
42794         * doc/posix-functions/putchar.texi: Likewise.
42795         * doc/posix-functions/puts.texi: Likewise.
42796         * doc/posix-functions/vfprintf.texi: Likewise.
42797         * doc/posix-functions/vprintf.texi: Likewise.
42798
42799         * modules/safe-write (Depends-on): Add write.
42800
42801         * modules/sigpipe-tests: New file.
42802         * tests/test-sigpipe.c: New file.
42803         * tests/test-sigpipe.sh: New file.
42804
42805         * modules/write: New file.
42806         * lib/unistd.in.h: Include <sys/types.h>.
42807         (write): New declaration.
42808         * lib/write.c: New file.
42809         * m4/write.m4: New file.
42810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42811         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42812         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42813         GNULIB_WRITE, REPLACE_WRITE.
42814         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42815         and the SIGPIPE issue.
42816
42817         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42818         (raise): New declaration.
42819         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42820         (ext_signal): New function.
42821         (rpl_raise): New function.
42822         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42823         GNULIB_SIGNAL_H_SIGPIPE.
42824         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42825         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42826
42827         * modules/sigpipe: New file.
42828         * m4/sigpipe.m4: New file.
42829
42830 2008-09-25  Derek Price  <derek@ximbiot.com>
42831             Bruno Haible  <bruno@clisp.org>
42832
42833         * gnulib-tool (func_import): Report all license incompatibilities, not
42834         just the first one.
42835
42836 2008-09-25  Bruno Haible  <bruno@clisp.org>
42837
42838         * gnulib-tool (func_import): When computing the edits, consider not
42839         only the Makefile.ams that exist but also those that will be generated.
42840
42841 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42842
42843         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42844         fixes gnulib-tool --test warning about duplicate dependency.
42845
42846 2008-09-25  Bruno Haible  <bruno@clisp.org>
42847
42848         * gnulib-tool: Don't ask the user to perform edits in the generated
42849         Makefile.ams.
42850         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42851         apply to the Makefile.am being generated.
42852         (func_emit_tests_Makefile_am): Execute edits that apply to the
42853         Makefile.am being generated.
42854         (func_import): Setup list of Makefile.am edits before emitting the
42855         Makefile.ams, not at the end.
42856         (func_create_testdir): Update.
42857         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42858
42859 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42860
42861         * gnulib-tool (func_import): Store the --tests-base option in the
42862         comment in gnulib-cache.m4.
42863
42864 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42865
42866         * NEWS: Document increased portability that sys_select now provides.
42867
42868         * lib/sys_select.in.h: Install select wrapper.
42869         * lib/sys_socket.in.h: Use more descriptive name when there is no
42870         select wrapper.
42871         * lib/winsock-select.c: New.
42872         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42873         Require gl_HEADER_SYS_SOCKET.
42874         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42875         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42876         * tests/test-sys_select.c: Add functional tests.
42877
42878 2008-09-24  Eric Blake  <ebb9@byu.net>
42879
42880         open, fopen: close fd leak in last patch
42881         * lib/open.c (rpl_open): Close fd before returning error.
42882         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42883         * doc/posix-functions/open.texi (open): Document that Irix also
42884         has the bug.
42885         * doc/posix-functions/fopen.texi (fopen): Likewise.
42886         Reported by Paolo Bonzini.
42887
42888 2008-09-24  Bruno Haible  <bruno@clisp.org>
42889
42890         Ensure that a filename ending in a slash cannot be used to access a
42891         non-directory.
42892         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42893         to check whether it's really a directory.
42894         * lib/fopen.c: Include fcntl.h, unistd.h.
42895         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42896         and fdopen().
42897         * modules/fopen (Depends-on): Add unistd.
42898         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42899         * tests/test-fopen.c (main): Likewise.
42900         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42901         * doc/posix-functions/fopen.texi: Likewise.
42902         Reported by Eric Blake.
42903
42904 2008-09-23  Eric Blake  <ebb9@byu.net>
42905
42906         c-stack: avoid compiler optimizations when provoking overflow
42907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42908         recursion harder to optimize, to ensure a stack overflow occurs.
42909         * tests/test-c-stack.c (recurse): Likewise.
42910         Borrowed from libsigsegv.
42911
42912         c-stack: work around Irix sigaltstack bug
42913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42914         whether sigaltstack uses wrong end of stack_t (copied in part from
42915         libsigsegv).
42916         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42917         Irix bug, without requiring an over-allocation.
42918         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42919         bug.
42920
42921         fopen: document mingw bug on directories
42922         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42923         not allowing a stream visiting a directory, even though reading
42924         from such a stream is not portable.
42925
42926 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42927
42928         * lib/poll.c: Rewrite.
42929         * modules/poll: Depend on alloca.
42930
42931 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42932
42933         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42934         instead define prototypes for a full set of wrappers.  Ensure
42935         that Cygwin does not use the compatibility code, which is only
42936         for MinGW.
42937         * lib/winsock.c: New.
42938         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42939         * modules/sys_socket: Add lib/winsock.c.
42940
42941         * modules/poll-tests: Add errno and perror.
42942         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42943
42944 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42945
42946         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42947
42948 2008-09-23  Bruno Haible  <bruno@clisp.org>
42949
42950         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42951         * doc/glibc-functions/*: Likewise.
42952
42953 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42954
42955         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42956         success.
42957
42958 2008-09-22  Eric Blake  <ebb9@byu.net>
42959             Bruno Haible  <bruno@clisp.org>
42960
42961         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42962         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42963         supply %A but mishandle pseudo-NaN.
42964         Reported by Simon Josefsson.
42965
42966 2008-09-21  Bruno Haible  <bruno@clisp.org>
42967
42968         * tests/test-lock.c (main): Tweak skip message.
42969         * tests/test-tls.c (main): Likewise.
42970
42971 2008-09-21  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42974         whether 'struct sigaction' has sa_sigaction here...
42975         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42976         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42977
42978 2008-09-21  Bruno Haible  <bruno@clisp.org>
42979
42980         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42981         section.
42982         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42983         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42984         the new section.
42985         (Support for obsolete systems lacking POSIX:2001): New section.
42986         (String handling <string.h>): Move strdup to the new section.
42987         Suggested by Simon Josefsson and Paolo Bonzini.
42988
42989 2008-09-21  Bruno Haible  <bruno@clisp.org>
42990
42991         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42992         exponents in %e and %g results on 'long double'. Needed for mingw's
42993         improved *printf functions.
42994         * tests/test-vasprintf-posix.c (test_function): Likewise.
42995         * tests/test-snprintf-posix.h (test_function): Likewise.
42996         * tests/test-sprintf-posix.h (test_function): Likewise.
42997         Reported by Eric Blake.
42998
42999 2008-09-21  Bruno Haible  <bruno@clisp.org>
43000
43001         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43002         * tests/test-sprintf-posix.h (test_function): Likewise.
43003
43004 2008-09-21  Bruno Haible  <bruno@clisp.org>
43005
43006         * modules/getpass (Depends-on): Add strdup-posix.
43007
43008         New module 'strdup-posix'.
43009         * modules/strdup-posix: New file.
43010         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43011         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43013         REPLACE_STRDUP.
43014         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43015         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43017         strdup-posix.
43018
43019         * modules/strdup (Depends-on): Remove malloc-posix.
43020
43021 2008-09-20  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43024         Wildenhues.
43025
43026 2008-09-20  Bruno Haible  <bruno@clisp.org>
43027
43028         Ensure that wint_t gets defined on IRIX 5.3.
43029         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43030         * lib/wctype.in.h (wint_t): Likewise.
43031         (__wctype_wint_t): Remove type.
43032         (isw*): Use wint_t instead of __wctype_wint_t.
43033         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43034         * modules/wchar (Files): Add m4/wint_t.m4.
43035         (Makefile.am): Substitute HAVE_WINT_T.
43036         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43037         * tests/test-wctype.c: Check that wint_t is defined.
43038         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43039         * doc/posix-headers/wctype.texi: Likewise.
43040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43041
43042 2008-09-18  Bruno Haible  <bruno@clisp.org>
43043
43044         * gnulib-tool (func_exit): Update comment.
43045
43046 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43047
43048         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43049         assumes strdup exists and does not depend on strdup to return
43050         ENOMEM on out of memory conditions.
43051
43052 2008-09-18  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43055         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43056         digits for the exponent.
43057
43058 2008-09-18  Jim Meyering  <meyering@redhat.com>
43059             Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/vasnprintf.c (decimal_point_char): Define also if
43062         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43063
43064 2008-09-16  Bruno Haible  <bruno@clisp.org>
43065         and Eric Blake  <ebb9@byu.net>
43066
43067         vasnprintf: support Irix 5.3
43068         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43069         that mishandle long double infinity.
43070         Reported by Tom G. Christensen.
43071
43072 2008-09-16  Bruno Haible  <bruno@clisp.org>
43073
43074         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43075         Solaris 9.
43076         * doc/glibc-functions/alphasort.texi: Likewise.
43077         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43078
43079 2008-09-16  Jim Meyering  <meyering@redhat.com>
43080
43081         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43082         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43083         a umask modification leak out of a subshell.  Otherwise, the
43084         opensolaris /bin/sh would be accepted and thus cause unwarranted
43085         failures in the coreutils test suite.
43086
43087 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43088
43089         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43090         to succeed.
43091
43092 2008-09-16  Jim Meyering  <meyering@redhat.com>
43093
43094         avoid spurious test failure when library is built without ACL support
43095         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43096         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43097         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43098         * tests/test-copy-acl.sh: Likewise.
43099
43100 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43101
43102         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43103         based on character occurrence counts.
43104
43105 2008-09-15  Eric Blake  <ebb9@byu.net>
43106
43107         tests: avoid some compiler warnings
43108         * tests/test-memchr.c (main): Pass NULL indirectly.
43109         * tests/test-closein.c (main): Avoid unused variable.
43110
43111 2008-09-15  Bruno Haible  <bruno@clisp.org>
43112
43113         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43114         are missing on OpenBSD 4.0 individually.
43115         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43116
43117 2008-09-15  Bruno Haible  <bruno@clisp.org>
43118
43119         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43120         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43121         * doc/posix-functions/perror.texi: Likewise.
43122         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43123         is missing.
43124         Reported by Eric Blake.
43125
43126         * lib/errno.in.h: Use replacement values >= 2000.
43127         Reported by Eric Blake.
43128
43129 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43130
43131         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43132         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43133         limit.
43134         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43135         compareseq was aborted.
43136
43137 2008-09-14  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43140         yvec_edit_count.
43141         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43142         (fstrcmp_bounded): Simplify result computation accordingly.
43143
43144 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43145
43146         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43147         (fstrcmp): Define in terms of fstrcmp_bounded.
43148         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43149         lower_bound argument.
43150         Return quickly if the result is certainly < lower_bound.
43151         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43152
43153 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43154
43155         * lib/diffseq.h (EARLY_ABORT): New macro.
43156         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43157         evaluates to true.
43158
43159 2008-09-14  Bruno Haible  <bruno@clisp.org>
43160
43161         * modules/perror-tests: New file.
43162         * tests/test-perror.sh: New file.
43163         * tests/test-perror.c: New file.
43164
43165         New module 'perror'.
43166         * lib/stdio.in.h (perror): New declaration.
43167         * lib/perror.c: New file.
43168         * m4/perror.m4: New file.
43169         * modules/perror: New file.
43170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43171         * doc/posix-functions/perror.texi: Mention the perror module.
43172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43173         REPLACE_PERROR.
43174         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43175         REPLACE_PERROR.
43176
43177 2008-09-14  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/stdio (Makefile.am): Reorder to match the order in
43180         lib/stdio.in.h.
43181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43182
43183 2008-09-13  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43186
43187 2008-09-13  Bruno Haible  <bruno@clisp.org>
43188
43189         Extend strerror to cover the added errno values.
43190         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43191         (rpl_strerror): Provide error messages for the added errno values and
43192         for the WSA* values.
43193         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43194         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43195         strerror.
43196         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43197         * modules/strerror (Depends-on): Add errno.
43198         * doc/posix-functions/strerror.texi: Document the change.
43199         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43200         and EOVERFLOW.
43201
43202 2008-09-13  Bruno Haible  <bruno@clisp.org>
43203
43204         * modules/EOVERFLOW: Remove file.
43205         * m4/eoverflow.m4: Remove file.
43206         * modules/EOVERFLOW-tests: Remove file.
43207         * tests/test-EOVERFLOW.c: Remove file.
43208         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43209         * modules/ftell (Depends-on): Likewise.
43210         * modules/getdelim (Depends-on): Likewise.
43211         * modules/getugroups (Depends-on): Likewise.
43212         * modules/poll (Depends-on): Likewise.
43213         * modules/snprintf (Depends-on): Likewise.
43214         * modules/sprintf-posix (Depends-on): Likewise.
43215         * modules/vasnprintf (Depends-on): Likewise.
43216         * modules/vasprintf (Depends-on): Likewise.
43217         * modules/vfprintf-posix (Depends-on): Likewise.
43218         * modules/vsnprintf (Depends-on): Likewise.
43219         * modules/vsprintf-posix (Depends-on): Likewise.
43220         * modules/xvasprintf (Depends-on): Likewise.
43221         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43222         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43223         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43224         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43225         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43226         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43227         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43228         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43229         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43230         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43231         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43232         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43234         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43235         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43236         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43237         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43238         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43239         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43240         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43241         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43242         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43243         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43244         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43245         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43246         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43247         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43248         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43249         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43250         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43251         * MODULES.html.sh: Remove EOVERFLOW.
43252         * NEWS: Mention the change.
43253
43254 2008-09-13  Bruno Haible  <bruno@clisp.org>
43255
43256         * modules/errno-tests: New file.
43257         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43258
43259         * lib/errno.in.h: New file.
43260         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43261         * modules/errno: New file.
43262         * doc/posix-headers/errno.texi: Update documentation.
43263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43264
43265 2008-09-13  Bruno Haible  <bruno@clisp.org>
43266
43267         * tests/test-poll.c: Use #if for native Windows, rather than testing
43268         __MSVCRT__.
43269
43270 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43271             Bruno Haible  <bruno@clisp.org>
43272
43273         * lib/glob.c: Don't include <pwd.h> on native Windows.
43274         (WINDOWS32): New macro.
43275         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43276
43277 2008-09-13  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43280         (ETIMEDOUT): Remove macro.
43281         (glthread_cond_timedwait_multithreaded): New declaration.
43282         (glthread_cond_timedwait): Use it.
43283         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43284         (glthread_cond_timedwait_multithreaded): New function.
43285
43286 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43287
43288         * modules/poll-tests: Do not check for io.h.
43289         * tests/test-poll.c: Check for __MSVCRT__ instead.
43290
43291 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43292
43293         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43294         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43295         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43296
43297 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43298
43299         * modules/poll-tests: New.
43300         * tests/test-poll.c: New.
43301
43302 2008-09-12  Eric Blake  <ebb9@byu.net>
43303
43304         frexp: test for NetBSD failure on -0.0
43305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43306         not all, bugs from NetBSD 3.0 have been fixed.
43307         * doc/posix-functions/frexp.texi (frexp): Document bug.
43308         Reported by Thomas Klausner.
43309
43310         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43311         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43312         literal -0.0.
43313         Reported by Jonathan C. Patschke <jp@centtech.com>.
43314
43315 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43316
43317         * lib/glthread/cond.h: Use dummy implementation also if
43318         USE_WIN32_THREADS.
43319
43320 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43321
43322         * modules/fnmatch-posix (License): Change to LGPLv2+.
43323         * modules/fnmatch-gnu (License): Likewise.
43324
43325 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43326
43327         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43328
43329 2008-09-11  Jim Meyering  <meyering@redhat.com>
43330
43331         * users.txt: Add gtk-vnc.
43332
43333 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43334
43335         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43336         rotate amounts.
43337
43338         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43339         required for 16-bit and 8-bit rotates.
43340         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43341         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43342         UINT8_MAX instead of hard-coded constants.
43343         Suggested by Paul Eggert.
43344
43345 2008-09-07  Bruno Haible  <bruno@clisp.org>
43346
43347         * tests/test-striconveh.c (main): Check behaviour when converting from
43348         UTF-7.
43349
43350         Make striconveh work better with stateful encodings.
43351         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43352         that iconv does not increment the inptr when returning -1/EINVAL.
43353
43354 2008-09-07  Bruno Haible  <bruno@clisp.org>
43355
43356         * build-aux/config.rpath: Update according to libtool-2.2.6.
43357         * build-aux/config.libpath: Likewise.
43358
43359 2008-09-06  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43362         * lib/freadptr.c (freadptr): Likewise.
43363         * lib/freadseek.c (freadptrinc): Likewise.
43364         Reported by Simon Josefsson.
43365
43366 2008-09-06  Bruno Haible  <bruno@clisp.org>
43367
43368         * modules/freadptr (License): Change to LGPLv2+.
43369         * modules/freadseek (License): Likewise.
43370         Suggested by Eric Blake.
43371
43372         * modules/memchr2 (License): Change to LGPLv2+.
43373         Approved by Eric Blake.
43374
43375 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43376             Bruno Haible  <bruno@clisp.org>
43377
43378         Make gnulib-tool work with native 'sed' on AIX.
43379         * gnulib-tool (sed_noop): New variable.
43380         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43381         func_add_or_update, func_create_testdir): Use it to initialize sed
43382         script variables.
43383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43384
43385 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43386             Bruno Haible  <bruno@clisp.org>
43387
43388         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43389         also works after #include directives.
43390
43391 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43392
43393         getdate.y: reject an out-of-range timezone value
43394         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43395         the range [-24...+24].  When specified with only one or two digits,
43396         * tests/test-getdate.c: Tests for the fix.
43397         * doc/getdate.texi: Document this change.
43398
43399 2008-09-03  Bruno Haible  <bruno@clisp.org>
43400
43401         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43402
43403 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43404
43405         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43406         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43407         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43408         Blake <ebb9@byu.net>.
43409
43410         * tests/test-bitrotate.c: Add more test vectors.
43411
43412 2008-09-02  Eric Blake  <ebb9@byu.net>
43413
43414         vasnprintf-posix: handle large precision via %.*d
43415         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43416         when handling it ourselves.
43417         * tests/test-vasnprintf-posix.c (test_function): Add test.
43418         * tests/test-snprintf-posix.h (test_function): Likewise.
43419         * tests/test-sprintf-posix.h (test_function): Likewise.
43420         * tests/test-vasprintf-posix.c (test_function): Likewise.
43421         Reported by Alain Guibert.
43422
43423 2008-09-01  Eric Blake  <ebb9@byu.net>
43424
43425         c-stack: make configure-time check more robust
43426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43427         successful sigaction call.
43428         Reported by Tom G. Christensen.
43429
43430 2008-09-01  Bruno Haible  <bruno@clisp.org>
43431
43432         New module 'findprog-lgpl'.
43433         * modules/findprog-lgpl: New file.
43434         * lib/findprog-lgpl.c: New file.
43435         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43436         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43437         to decide whether to use strdup or xstrdup, concatenated_filename or
43438         xconcatenated_filename.
43439
43440 2008-09-01  Bruno Haible  <bruno@clisp.org>
43441
43442         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43443         'xconcat-filename' (GPL).
43444         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43445         (License): Change to LGPLv2+.
43446         * modules/xconcat-filename: New file.
43447         * lib/concat-filename.h (concatenated_filename): Change specification.
43448         (xconcatenated_filename): New declaration.
43449         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43450         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43451         memory situations.
43452         * lib/xconcat-filename.c: New file.
43453         * NEWS: Mention the change.
43454         * lib/findprog.c: Include concat-filename.h, not filename.h.
43455         (find_in_path): Use xconcatenated_filename instead of
43456         concatenated_filename.
43457         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43458         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43459         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43460         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43461         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43462         instead of concatenated_filename.
43463         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43464         (execute_java_class): Use xconcatenated_filename instead of
43465         concatenated_filename.
43466         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43467         * modules/javacomp (Depends-on): Likewise.
43468         * modules/javaexec (Depends-on): Likewise.
43469
43470 2008-09-01  Bruno Haible  <bruno@clisp.org>
43471
43472         Split module 'filename' into 'filename' and 'concat-filename'.
43473         * modules/filename: Keep only lib/filename.h.
43474         (License): Change to LGPLv2+.
43475         * modules/concat-filename: New file, extracted from modules/filename.
43476         * lib/filename.h (concatenated_filename): Remove declaration.
43477         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43478         * lib/concat-filename.c: Include concat-filename.h.
43479         * NEWS: Mention the change.
43480
43481 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43482
43483         * lib/bitrotate.h (rotl8, rotr8): Add.
43484
43485         * modules/bitrotate (configure.ac): Need
43486         AC_REQUIRE([AC_C_INLINE]).
43487         (Description): Mention stdint.h.  Reported by Bruno Haible
43488         <bruno@clisp.org>.
43489
43490         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43491         Paolo Bonzini <bonzini@gnu.org>.
43492
43493 2008-08-31  Bruno Haible  <bruno@clisp.org>
43494
43495         Assume Solaris specific bi-arch conventions on Solaris systems.
43496         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43497         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43499         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43500         like acl_libdirstem.
43501         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43502         acl_libdirstem.
43503         * NEWS: Mention the change.
43504         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43505
43506 2008-08-31  Jim Meyering  <meyering@redhat.com>
43507
43508         * lib/strftime.h: Add comments describing the two added arguments.
43509
43510         remove duplicate #include directives
43511         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43512         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43513
43514 2008-08-31  Bruno Haible  <bruno@clisp.org>
43515
43516         New module 'sigpipe-die'.
43517         * modules/sigpipe-die: New file.
43518         * lib/sigpipe-die.h: New file.
43519         * lib/sigpipe-die.c: New file.
43520         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43521
43522 2008-08-31  Bruno Haible  <bruno@clisp.org>
43523
43524         Don't override previously installed signal handlers.
43525         * lib/fatal-signal.c (saved_sigactions): New variable.
43526         (uninstall_handlers): Reset the signal to the saved handler, not
43527         to SIG_DFL (except when ignored).
43528         (install_handlers): Save the previous handlers.
43529
43530 2008-08-30  Bruno Haible  <bruno@clisp.org>
43531
43532         * gnulib-tool (func_reset_sigpipe): New function.
43533         (func_get_automake_snippet, func_modules_transitive_closure,
43534         func_import): Invoke it before a join command that reads from stdin,
43535         to avoid "echo: write error: Broken pipe" error messages on stderr.
43536         Reported by Sam Steingold <sds@gnu.org>.
43537
43538 2008-08-30  Bruno Haible  <bruno@clisp.org>
43539
43540         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43541         Code copied from m4/open.m4.
43542         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43543         access and the filename ends in a slash. Code copied from lib/open.c.
43544         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43545         * tests/test-fopen.c (main): Check against bug with trailing slash.
43546
43547 2008-08-29  Bruno Haible  <bruno@clisp.org>
43548
43549         Avoid some "gcc -pedantic" warnings.
43550         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43551         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43552         * lib/dirent.in.h: Likewise.
43553         * lib/fcntl.in.h: Likewise.
43554         * lib/float.in.h: Likewise.
43555         * lib/iconv.in.h: Likewise.
43556         * lib/inttypes.in.h: Likewise.
43557         * lib/locale.in.h: Likewise.
43558         * lib/math.in.h: Likewise.
43559         * lib/netinet_in.in.h: Likewise.
43560         * lib/search.in.h: Likewise.
43561         * lib/signal.in.h: Likewise.
43562         * lib/stdarg.in.h: Likewise.
43563         * lib/stdint.in.h: Likewise.
43564         * lib/stdio.in.h: Likewise.
43565         * lib/stdlib.in.h: Likewise.
43566         * lib/string.in.h: Likewise.
43567         * lib/strings.in.h: Likewise.
43568         * lib/sys_select.in.h: Likewise.
43569         * lib/sys_socket.in.h: Likewise.
43570         * lib/sys_stat.in.h: Likewise.
43571         * lib/sys_time.in.h: Likewise.
43572         * lib/sysexits.in.h: Likewise.
43573         * lib/time.in.h: Likewise.
43574         * lib/unistd.in.h: Likewise.
43575         * lib/wchar.in.h: Likewise.
43576         * lib/wctype.in.h: Likewise.
43577         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43578         * modules/fchdir (Makefile.am): Likewise.
43579         * modules/fcntl (Makefile.am): Likewise.
43580         * modules/float (Makefile.am): Likewise.
43581         * modules/iconv_open (Makefile.am): Likewise.
43582         * modules/inttypes (Makefile.am): Likewise.
43583         * modules/locale (Makefile.am): Likewise.
43584         * modules/math (Makefile.am): Likewise.
43585         * modules/netinet_in (Makefile.am): Likewise.
43586         * modules/search (Makefile.am): Likewise.
43587         * modules/signal (Makefile.am): Likewise.
43588         * modules/stdarg (Makefile.am): Likewise.
43589         * modules/stdint (Makefile.am): Likewise.
43590         * modules/stdio (Makefile.am): Likewise.
43591         * modules/stdlib (Makefile.am): Likewise.
43592         * modules/string (Makefile.am): Likewise.
43593         * modules/strings (Makefile.am): Likewise.
43594         * modules/sys_select (Makefile.am): Likewise.
43595         * modules/sys_socket (Makefile.am): Likewise.
43596         * modules/sys_stat (Makefile.am): Likewise.
43597         * modules/sys_time (Makefile.am): Likewise.
43598         * modules/sysexits (Makefile.am): Likewise.
43599         * modules/time (Makefile.am): Likewise.
43600         * modules/unistd (Makefile.am): Likewise.
43601         * modules/wchar (Makefile.am): Likewise.
43602         * modules/wctype (Makefile.am): Likewise.
43603         Reported by Reuben Thomas <rrt@sc3d.org>.
43604
43605 2008-08-29  Bruno Haible  <bruno@clisp.org>
43606
43607         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43608         any more.
43609
43610 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43611
43612         * MODULES.html.sh (Misc): Add bitrotate.
43613
43614         * modules/bitrotate: New file.
43615
43616         * lib/bitrotate.h: New file.
43617
43618         * modules/bitrotate-tests: New file.
43619
43620         * tests/test-bitrotate.c: New file.
43621
43622         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43623         on the bitrotate module.
43624
43625         * lib/arctwo.c: Use new bitrotate module.
43626
43627 2008-08-29  Jim Meyering  <meyering@redhat.com>
43628
43629         bootstrap: merge changes from coreutils
43630         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43631         of copied files.  Remove a kludge, now that this is fixed.
43632         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43633         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43634         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43635
43636 2008-08-29  Bruno Haible  <bruno@clisp.org>
43637
43638         * MODULES.html.sh: Remove --cvs-urls option.
43639
43640 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43641
43642         maint.mk: adjust to file name change
43643         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43644
43645 2008-08-28  Jim Meyering  <meyering@redhat.com>
43646
43647         * modules/getndelim2 (License): Relicense to LGPLv2+.
43648         Approved by Richard Stallman for the version of 1995, and by
43649         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43650
43651 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43652
43653         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43654         dummy if one is not available.  Do not touch them if
43655         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43656         (getc_maybe_unlocked): New.
43657         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43658
43659 2008-08-26  Eric Blake  <ebb9@byu.net>
43660
43661         doc/INSTALL: resync from autoconf
43662         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43663         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43664         moving...
43665         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43666         * INSTALL: Regenerate.
43667         * INSTALL.ISO: New file.
43668         * INSTALL.UTF-8: Likewise.
43669
43670 2008-08-26  Jim Meyering  <meyering@redhat.com>
43671
43672         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43673         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43674         these definitions conditional, so that they may be overridden, too.
43675
43676 2008-08-26  Bruno Haible  <bruno@clisp.org>
43677
43678         Generate INSTALL file variants with prettier quotes.
43679         * doc/Makefile (INSTALL_PRELUDE): New macro.
43680         (INSTALL): Use it.
43681         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43682
43683 2008-08-26  Bruno Haible  <bruno@clisp.org>
43684
43685         Run makeinfo in an English locale.
43686         * doc/Makefile (MAKEINFO): New variable.
43687
43688 2008-08-26  Bruno Haible  <bruno@clisp.org>
43689
43690         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43691         Suggested by Eric Blake.
43692
43693 2008-08-25  Bruno Haible  <bruno@clisp.org>
43694
43695         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43696
43697 2008-08-25  Eric Blake  <ebb9@byu.net>
43698
43699         c-stack: test that stack overflow can be caught
43700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43701         that platform allows handling stack overflow; at least OS/2 EMX
43702         has sigaltstack, but crashes before transferring control to
43703         handler on stack overflow.
43704         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43705         check for HAVE_STACK_OVERFLOW_HANDLING.
43706         Reported by Elbert Pol.
43707
43708 2008-08-25  Bruno Haible  <bruno@clisp.org>
43709
43710         * doc/posix-functions/strftime.texi: Fix description of strftime
43711         module.
43712
43713 2008-08-24  Bruno Haible  <bruno@clisp.org>
43714
43715         * tests/uniwidth/test-uc_width2.c: New file.
43716         * tests/uniwidth/test-uc_width2.sh: New file.
43717         * modules/uniwidth/width-tests (Files): Add the new files.
43718         (TESTS): Add uniwidth/test-uc_width2.sh.
43719         (TESTS_ENVIRONMENT): New variable.
43720         (check_PROGRAMS): Add test-uc_width2.
43721         (test_uc_width2_SOURCES): New variable.
43722
43723         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43724         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43725         not 0x00AB.
43726         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43727
43728 2008-08-22  Eric Blake  <ebb9@byu.net>
43729
43730         test-lock, test-tls: mention why a test is skipped
43731         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43732         skipped.
43733         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43734
43735         count-one-bits: relax license
43736         * modules/count-one-bits (License): Relicense to LGPLv2+.
43737         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43738
43739 2008-08-22  Andreas Schwab  <schwab@suse.de>
43740
43741         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43742         Remove spurious space in assignment.
43743
43744 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43745
43746         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43747         Paul Eggert <eggert@CS.UCLA.EDU>.
43748
43749 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43750
43751         * modules/gettext: Add m4/threadlib.m4.
43752
43753 2008-08-19  Eric Blake  <ebb9@byu.net>
43754
43755         test-c-stack: fix compilation failure on FreeBSD 5.0
43756         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43757         headers before <sys/resource.h>.
43758         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43759         the bug.
43760         Reported by Nelson H. F. Beebe.
43761
43762         strverscmp: migrate from "strverscmp.h" to <string.h>
43763         * modules/string (Makefile.am): Add new hooks.
43764         * modules/strverscmp (Files): Remove strverscmp.h.
43765         (Depends-on): Add string.
43766         (configure.ac): Add indicator.
43767         (Include): Mention new header.
43768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43769         defaults.
43770         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43771         results.
43772         * lib/strverscmp.h: Delete.
43773         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43774         * tests/test-strverscmp.c (includes): Adjust client.
43775         * lib/check-version.c (includes): Likewise.
43776         * NEWS: Document the change.
43777
43778         strverscmp: add unit test
43779         * modules/strverscmp-tests: New file.
43780         * tests/test-strverscmp.c: Likewise.
43781
43782 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43783
43784         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43785         regarding Windows crypto stuff, from Mono.
43786
43787 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43788
43789         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43790         if present, for intel RND.  Return error on failures.
43791
43792 2008-08-18  Ben Pfaff  <blp@gnu.org>
43793
43794         gitlog-to-changelog: give better diagnostic for failed pipe-open
43795         * build-aux/gitlog-to-changelog: Improve error message: suggest
43796         that the version of Git may be too old.
43797
43798 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43799
43800         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43801         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43802
43803 2008-08-18  Bruno Haible  <bruno@clisp.org>
43804
43805         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43806         pthread_in_use().
43807
43808 2008-08-18  Bruno Haible  <bruno@clisp.org>
43809
43810         * lib/glthread/threadlib.c: Include <pthread.h>.
43811
43812 2008-08-18  Bruno Haible  <bruno@clisp.org>
43813
43814         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43815         glthread_recursive_lock_* macros.
43816         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43817         Fix syntax error.
43818
43819 2008-08-18  Bruno Haible  <bruno@clisp.org>
43820
43821         * lib/glthread/thread.c: Avoid forcing a context switch right after
43822         thread creation.
43823
43824 2008-08-17  Bruno Haible  <bruno@clisp.org>
43825
43826         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43827         * lib/glthread/thread.h: Provide Win32 specific implementation.
43828         * modules/thread (Files): Add lib/glthread/thread.c.
43829         (Depends-on): Add lock.
43830         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43831
43832 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43833
43834         New module 'yield'.
43835         * modules/yield: New file.
43836         * lib/glthread/yield.h: New file.
43837         * m4/yield.m4: New file.
43838         * MODULES.html.sh (Multithreading): Add yield.
43839
43840 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43841
43842         New module 'thread'.
43843         * modules/thread: New file.
43844         * lib/glthread/thread.h: New file.
43845         * m4/thread.m4: New file.
43846         * MODULES.html.sh (Multithreading): Add thread.
43847
43848 2008-08-17  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/glthread/lock.h: Include <stdlib.h> always.
43851         * lib/glthread/tls.h: Likewise.
43852         * lib/glthread/cond.h: Likewise.
43853
43854 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43855
43856         New module 'cond'.
43857         * modules/cond: New file.
43858         * lib/glthread/cond.h: New file.
43859         * lib/glthread/cond.c: New file.
43860         * m4/cond.m4: New file.
43861         * MODULES.html.sh (Multithreading): Add cond.
43862
43863 2008-08-16  Eric Blake  <ebb9@byu.net>
43864
43865         c-stack: fix regression on Irix 5.3 from 2008-06-21
43866         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43867         sa_sigaction...
43868         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43869         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43870         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43871         * modules/signal (Makefile.am): Use the value.
43872         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43873         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43874         * doc/posix-headers/signal.texi (signal.h): Document this
43875         portability issue.
43876         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43877         Reported by Tom G. Christensen.
43878
43879 2008-08-17  Bruno Haible  <bruno@clisp.org>
43880
43881         New module 'threadlib'.
43882         * modules/threadlib: New file.
43883         * lib/glthread/threadlib.c: New file, extracted from
43884         lib/glthread/lock.c.
43885         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43886         functions.
43887         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43888         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43889         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43890         macros.
43891         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43892         (gl_DISABLE_THREADS): Remove macro.
43893         * modules/lock (Files): Remove build-aux/config.rpath.
43894         (Depends-on): Remove havelib. Add threadlib.
43895         (configure.ac-early): Remove section.
43896         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43897         * modules/tls (Depends-on): Remove lock. Add threadlib.
43898         (Link): New section, copied from threadlib.
43899         * MODULES.html.sh (Multithreading): Add threadlib.
43900
43901 2008-08-14  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43904         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43905         glthread_rwlock_unlock, glthread_rwlock_destroy,
43906         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43907         glthread_recursive_lock_destroy): Define as macros always.
43908         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43909         glthread_lock_lock.
43910         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43911         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43912         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43913         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43914         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43915         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43916         (glthread_recursive_lock_lock_func): Renamed from
43917         glthread_recursive_lock_lock.
43918         (glthread_recursive_lock_unlock_func): Renamed from
43919         glthread_recursive_lock_unlock.
43920         (glthread_recursive_lock_destroy_func): Renamed from
43921         glthread_recursive_lock_destroy.
43922
43923 2008-08-14  Bruno Haible  <bruno@clisp.org>
43924
43925         * lib/glthread/lock.h: Renamed from lib/lock.h.
43926         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43927         * lib/glthread/tls.h: Renamed from lib/tls.h.
43928         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43929         * lib/fstrcmp.c: Update includes.
43930         * lib/strsignal.c: Update includes.
43931         * modules/lock (Files, Makefile.am): Update.
43932         (Include): Change to "glthread/lock.h".
43933         * modules/tls (Files, Makefile.am): Update.
43934         (Include): Change to "glthread/tls.h".
43935         * tests/test-lock.c: Update includes.
43936         * tests/test-tls.c: Update includes.
43937         * NEWS: Mention the renamed header files.
43938
43939 2008-08-11  Jim Meyering  <meyering@redhat.com>
43940
43941         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43942
43943 2008-08-11  Eric Blake  <ebb9@byu.net>
43944
43945         test-c-stack: avoid C99-ism
43946         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43947         before statement.
43948         Reported by Alain Guibert.
43949
43950 2008-08-10  Jim Meyering  <meyering@redhat.com>
43951
43952         ensure that return value of uinttostr et al are not ignored
43953         * lib/inttostr.h (__GNUC_PREREQ): Define.
43954         (__attribute_warn_unused_result__): Define.
43955         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43956
43957 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43958
43959         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43960         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43961
43962 2008-08-07  Jim Meyering  <meyering@redhat.com>
43963
43964         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43965
43966         * modules/mkstemp (License): Relicense under LGPLv2+.
43967         * modules/tempname (License): Likewise.
43968
43969 2008-08-06  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/poll.c (poll): Further micro-optimization.
43972
43973 2008-08-06  Jim Meyering  <meyering@redhat.com>
43974
43975         inet_pton.c: use locale-independent tolower
43976         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43977         (inet_pton6): Use c_tolower rather than tolower.
43978         * modules/inet_pton (Depends-on): Add c-ctype.
43979
43980 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43981
43982         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43983         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43984
43985 2008-08-06  Jim Meyering  <meyering@redhat.com>
43986
43987         * modules/inet_pton (License): Relicense under LGPLv2+.
43988
43989 2008-08-03  Bruno Haible  <bruno@clisp.org>
43990
43991         Additional non-aborting API for lock and tls.
43992         * lib/lock.h: Include <errno.h>.
43993         (glthread_lock_init): New macro/function.
43994         (gl_lock_init): Define as wrapper around glthread_lock_init.
43995         (glthread_lock_lock): New macro/function.
43996         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43997         (glthread_lock_unlock): New macro/function.
43998         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43999         (glthread_lock_destroy): New macro/function.
44000         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44001         (glthread_rwlock_init): New macro/function.
44002         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44003         (glthread_rwlock_rdlock): New macro/function.
44004         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44005         (glthread_rwlock_wrlock): New macro/function.
44006         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44007         (glthread_rwlock_unlock): New macro/function.
44008         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44009         (glthread_rwlock_destroy): New macro/function.
44010         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44011         (glthread_recursive_lock_init): New macro/function.
44012         (gl_recursive_lock_init): Define as wrapper around
44013         glthread_recursive_lock_init.
44014         (glthread_recursive_lock_lock): New macro/function.
44015         (gl_recursive_lock_lock): Define as wrapper around
44016         glthread_recursive_lock_lock.
44017         (glthread_recursive_lock_unlock): New macro/function.
44018         (gl_recursive_lock_unlock): Define as wrapper around
44019         glthread_recursive_lock_unlock.
44020         (glthread_recursive_lock_destroy): New macro/function.
44021         (gl_recursive_lock_destroy): Define as wrapper around
44022         glthread_recursive_lock_destroy.
44023         (glthread_once): New macro/function.
44024         (gl_once): Define as wrapper around glthread_once.
44025         Update function declarations.
44026         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44027         glthread_rwlock_init. Return error code.
44028         (glthread_rwlock_rdlock_multithreaded): Renamed from
44029         glthread_rwlock_rdlock. Return error code.
44030         (glthread_rwlock_wrlock_multithreaded): Renamed from
44031         glthread_rwlock_wrlock. Return error code.
44032         (glthread_rwlock_unlock_multithreaded): Renamed from
44033         glthread_rwlock_unlock. Return error code.
44034         (glthread_rwlock_destroy_multithreaded): Renamed from
44035         glthread_rwlock_destroy. Return error code.
44036         (glthread_recursive_lock_init_multithreaded): Renamed from
44037         glthread_recursive_lock_init. Return error code.
44038         (glthread_recursive_lock_lock_multithreaded): Renamed from
44039         glthread_recursive_lock_lock. Return error code.
44040         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44041         glthread_recursive_lock_unlock. Return error code.
44042         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44043         glthread_recursive_lock_destroy. Return error code.
44044         (glthread_once_call): Make static.
44045         (glthread_once_multithreaded): Renamed from glthread_once.
44046         * lib/tls.h: Include <errno.h>.
44047         (glthread_tls_key_init): New macro/function.
44048         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44049         (glthread_tls_set): New macro/function.
44050         (gl_tls_set): Define as wrapper around glthread_tls_set.
44051         (glthread_tls_key_destroy): New macro/function.
44052         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44053         Update function declarations.
44054         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44055         glthread_tls_get.
44056         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44057
44058 2008-08-04  Eric Blake  <ebb9@byu.net>
44059
44060         gnumakefile: use space, not TAB, outside of targets
44061         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44062
44063 2008-08-02  Jim Meyering  <meyering@redhat.com>
44064
44065         getdate.y: avoid locale-dependent date parsing failure
44066         In Turkish locales, getdate would fail to recognize keywords
44067         containing a lowercase "i".  The solution is not to rely on
44068         locale-sensitive case-conversion.
44069         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44070         (lookup_word): Use c_toupper in place of toupper.
44071         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44072         Reported by Vefa Bicakci <bicave@superonline.com> in
44073         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44074         * modules/getdate (Depends-on): Add c-ctype.
44075
44076 2008-08-02  Bruno Haible  <bruno@clisp.org>
44077
44078         * gnulib-tool (func_import): When updating or creating a .gitignore
44079         file, prepend each added line with a slash, and ignore leading slashes
44080         from the existing lines.
44081         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44082
44083 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084
44085         Portability fix for GNU make 3.79.1.
44086         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44087         versions do not understand.
44088
44089 2008-08-01  Bruno Haible  <bruno@clisp.org>
44090
44091         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44092         * tests/test-isnanf.h (zero): New variable.
44093         (main): Avoid literal -0.0f.
44094         * tests/test-isnand.h (zero): New variable.
44095         (main): Avoid literal -0.0.
44096         * tests/test-isnanl.h (zero): New variable.
44097         (main): Avoid literal -0.0L.
44098         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44099         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44100         -0.0, -0.0L.
44101         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44102         (test_signbitd): Avoid literal -0.0.
44103         (test_signbitl): Avoid literal -0.0L.
44104         * tests/test-ceilf1.c (zero): New variable.
44105         (main): Avoid literal -0.0f.
44106         * tests/test-ceill.c (zero): New variable.
44107         (main): Avoid literal -0.0L.
44108         * tests/test-floorf1.c (zero): New variable.
44109         (main): Avoid literal -0.0f.
44110         * tests/test-floorl.c (zero): New variable.
44111         (main): Avoid literal -0.0L.
44112         * tests/test-roundf1.c (zero): New variable.
44113         (main): Avoid literal -0.0f.
44114         * tests/test-round1.c (zero): New variable.
44115         (main): Avoid literal -0.0.
44116         * tests/test-roundl.c (zero): New variable.
44117         (main): Avoid literal -0.0L.
44118         * tests/test-truncf1.c (zero): New variable.
44119         (main): Avoid literal -0.0f.
44120         * tests/test-trunc1.c (zero): New variable.
44121         (main): Avoid literal -0.0.
44122         * tests/test-truncl.c (zero): New variable.
44123         (main): Avoid literal -0.0L.
44124         * tests/test-frexp.c (zero): New variable.
44125         (main): Avoid literal -0.0.
44126         * tests/test-frexpl.c (zero): New variable.
44127         (main): Avoid literal -0.0L.
44128         * tests/test-ldexpl.c (zero): New variable.
44129         (main): Avoid literal -0.0L.
44130         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44131         (zerod, zerol): New variables.
44132         (test_function): Avoid literals -0.0, -0.0L.
44133         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44134         (zerod, zerol): New variables.
44135         (test_function): Avoid literals -0.0, -0.0L.
44136         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44137         (zerod, zerol): New variables.
44138         (test_function): Avoid literals -0.0, -0.0L.
44139         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44140         (zerod, zerol): New variables.
44141         (test_function): Avoid literals -0.0, -0.0L.
44142         * tests/test-strtod.c (zero): New variable.
44143         (main): Avoid literal -0.0.
44144         Reported by Jonathan C. Patschke <jp@centtech.com>.
44145
44146 2008-07-31  Jim Meyering  <meyering@redhat.com>
44147
44148         sha256.h: correct definition of SHA224_DIGEST_SIZE
44149         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44150         Reported by Paulie Pena IV <paulie4@gmail.com>.
44151         Define as 224 / 8, rather than as a literal.
44152         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44153         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44154         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44155
44156 2008-07-31  Bruno Haible  <bruno@clisp.org>
44157
44158         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44159         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44160         Reported by Jonathan Patschke <jp@centtech.com>.
44161
44162 2008-07-31  Bruno Haible  <bruno@clisp.org>
44163
44164         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44165         Reported by Paolo Bonzini <bonzini@gnu.org>.
44166
44167 2008-07-30  Eric Blake  <ebb9@byu.net>
44168
44169         test-strtod: allow compilation without -lm
44170         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44171         Reported by Dennis Clarke <blastwave@gmail.com>.
44172
44173 2008-07-28  Jim Meyering  <meyering@redhat.com>
44174
44175         bootstrap: work also when there are no .po files in po/
44176         * build-aux/bootstrap (update_po_files): Complete the change
44177         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44178
44179 2008-07-27  Jim Meyering  <meyering@redhat.com>
44180
44181         * users.txt: Add zile.
44182
44183 2008-07-26  Ben Pfaff  <blp@gnu.org>
44184
44185         Add missing dependencies on new m4/exponent[fdl].m4 files.
44186         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44187         * modules/isnand-nolibm: Add m4/exponentd.m4.
44188         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44189         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44190         m4/isnan[fdl].m4, because the macros actually used moved.
44191         Reported by Jim Meyering.
44192
44193 2008-07-14  Ben Pfaff  <blp@gnu.org>
44194
44195         Add isinf module.
44196         * lib/isinf.c: New file.
44197         * lib/math.in.h: Define isinf macro if we have decided to replace
44198         it.
44199         * m4/isinf.m4: New file.
44200         * m4/math_h.m4: Initialize and substitute variables for isinf
44201         module.
44202         * modules/isinf: New file.
44203         * modules/isinf-tests: New file.
44204         * modules/math: Add substitutions for new module.
44205         * tests/test-isinf.c: New file.
44206         * doc/posix-functions/isinf.texi: Mention new module.
44207         * MODULES.html.sh: Mention new module.
44208
44209 2008-07-14  Ben Pfaff  <blp@gnu.org>
44210
44211         Factor out some macros for use by additional modules.
44212         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44213         exponentf.m4.
44214         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44215         exponentd.m4.
44216         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44217         file exponentl.m4.
44218         * m4/exponentf.m4: New file.
44219         * m4/exponentd.m4: New file.
44220         * m4/exponentl.m4: New file.
44221         * modules/isnanf: Use new file m4/exponentf.m4.
44222         * modules/isnand: Use new file m4/exponentd.m4.
44223         * modules/isnanl: Use new file m4/exponentl.m4.
44224
44225 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44226
44227         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44228         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44229         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44230         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44231
44232         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44233         readlink on platforms without PATH_MAX.
44234
44235 2008-07-21  Eric Blake  <ebb9@byu.net>
44236
44237         Warn, not fail, on stale version.
44238         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44239
44240         Don't allow installation with stale devel version number.
44241         * top/GNUmakefile (_is-install-target): New macro.
44242         (_curr-ver): Forbid installation with stale version number.
44243
44244 2008-07-20  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44247         TESTS_ENVIRONMENT.
44248         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44249
44250 2008-07-20  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/c-stack.h (c_stack_action): Add documentation.
44253         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44254
44255 2008-07-20  Bruno Haible  <bruno@clisp.org>
44256
44257         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44258         * modules/readlink (License): Likewise.
44259
44260 2008-07-17  Eric Blake  <ebb9@byu.net>
44261
44262         * modules/c-stack (Link): Fix typo.
44263
44264         Make c-stack use libsigsegv, when available.
44265         * modules/c-stack (Depends-on): Add libsigsegv.
44266         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44267         needed.
44268         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44269         (segv_handler, overflow_handler, c_stack_action)
44270         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44271         implementation when libsigsegv is available, but only when using
44272         the library is necessary.
44273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44274         comment, explaining why XSI check fails on Linux.
44275         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44276         * tests/test-c-stack2.sh: Tweak skip message.
44277         * NEWS: Document new link-time requirements.
44278
44279 2008-07-16  Eric Blake  <ebb9@byu.net>
44280
44281         c-stack: Expose false positives when not using libsigsegv.
44282         * modules/c-stack-tests (Files): Expand test.
44283         * tests/test-c-stack.c (main): Add means to conditionally trigger
44284         non-overflow SIGSEGV.
44285         * tests/test-c-stack2.sh: New file.
44286
44287 2008-07-14  Bruno Haible  <bruno@clisp.org>
44288
44289         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44290         Reported by Eric Blake.
44291
44292 2008-07-14  Sam Steingold  <sds@gnu.org>
44293             Bruno Haible  <bruno@clisp.org>
44294
44295         New module libsigsegv.
44296         * modules/libsigsegv: New file.
44297         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44298         modifications.
44299         * MODULES.html.sh (Signal handling): New section.
44300
44301 2008-07-14  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/unictype/ctype-* (Description): Add the word "function".
44304         Improves the resulting doc in MODULES.html.
44305
44306 2008-07-12  Ben Pfaff  <blp@gnu.org>
44307
44308         Add longlong module.
44309         * modules/longlong: New file.
44310
44311 2008-07-12  Bruno Haible  <bruno@clisp.org>
44312
44313         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44314         to empty.
44315
44316 2008-07-10  Ben Pfaff  <blp@gnu.org>
44317
44318         Add isnan module.
44319         * doc/posix-functions/isnan.texi: Mention new module.
44320         * lib/math.in.h: Define isnan macro if we have decided to replace
44321         it.
44322         * m4/isnan.m4: New file.
44323         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44324         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44325         also.
44326         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44327         redundancy.
44328         * m4/math_h.m4: Initialize and substitute variables for isnan
44329         module.
44330         * modules/isnan: New file.
44331         * modules/isnan-tests: New file.
44332         * modules/math: Add substitutions for new module.
44333         * tests/test-isnan.c: New file.
44334         * MODULES.html.sh: Mention new module.
44335
44336 2008-07-10  Ben Pfaff  <blp@gnu.org>
44337
44338         Add isnanf module.
44339         * lib/isnanf.m4: New file.
44340         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44341         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44342         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44343         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44344         * modules/isnanf: New file.
44345         * modules/isnanf-tests: New file.
44346         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44347         files.
44348         * tests/test-isnanf-nolibm.c: factored most of its contents into
44349         new file tests/test-isnanf.h.
44350         * tests/test-isnanf.h: New file.
44351         * tests/test-isnanf.c: New file.
44352         * MODULES.html.sh: Mention new module.
44353         * doc/glibc-functions/isnanf.texi: Mention new module.
44354
44355 2008-07-10  Ben Pfaff  <blp@gnu.org>
44356
44357         Add isnand module.
44358         * lib/isnand.h: New file.
44359         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44360         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44361         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44362         functionality also.
44363         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44364         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44365         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44366         * modules/isnand: New file.
44367         * modules/isnand-tests: New file.
44368         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44369         files.
44370         * tests/test-isnand-nolibm.c: factored most of its contents into
44371         new file tests/test-isnand.h.
44372         * tests/test-isnand.h: New file.
44373         * tests/test-isnand.c: New file.
44374         * MODULES.html.sh: Mention new module.
44375
44376 2008-07-10  Ben Pfaff  <blp@gnu.org>
44377
44378         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44379         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44380         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44381         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44382         * modules/isnanf-nolibm: Update references to renamed files.
44383         * modules/isnand-nolibm: Likewise.
44384         * modules/isnanf-nolibm-tests: Likewise.
44385         * modules/isnand-nolibm-tests: Likewise.
44386         * lib/frexp.c: Likewise.
44387         * lib/isfinite.c: Likewise.
44388         * lib/signbitd.c: Likewise.
44389         * lib/signbitf.c: Likewise.
44390         * lib/vasnprintf.c: Likewise.
44391         * tests/test-ceilf1.c: Likewise.
44392         * tests/test-ceilf2.c: Likewise.
44393         * tests/test-floorf1.c: Likewise.
44394         * tests/test-floorf2.c: Likewise.
44395         * tests/test-frexp.c: Likewise.
44396         * tests/test-round1.c: Likewise.
44397         * tests/test-round2.c: Likewise.
44398         * tests/test-roundf1.c: Likewise.
44399         * tests/test-strtod.c: Likewise.
44400         * tests/test-trunc1.c: Likewise.
44401         * tests/test-trunc2.c: Likewise.
44402         * tests/test-truncf1.c: Likewise.
44403         * tests/test-truncf2.c: Likewise.
44404         * NEWS: Mention the renamed header files.
44405
44406 2008-07-11  Jim Meyering  <meyering@redhat.com>
44407
44408         vc-list-files: make the last-resort awk code more portable
44409         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44410         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44411         does not support it.
44412
44413 2008-07-10  Eric Blake  <ebb9@byu.net>
44414
44415         Work with tar's bootstrap.
44416         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44417         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44418         an m4 comment.
44419
44420 2008-07-09  Jim Meyering  <meyering@redhat.com>
44421
44422         posix-shell.m4: fix typo that made this test malfunction
44423         * m4/posix-shell.m4: Remove capitalization in variable name.
44424
44425 2008-07-08  Bruno Haible  <bruno@clisp.org>
44426
44427         * m4/onceonly.m4: Update comments.
44428         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44429
44430 2008-07-04  Jim Meyering  <meyering@redhat.com>
44431
44432         * users.txt: Add vc-dwim.
44433         (bison, coreutils): Use the gitweb URL.
44434
44435 2008-07-03  Jim Meyering  <meyering@redhat.com>
44436
44437         * users.txt: Add libffcall.  From Sam Steingold.
44438
44439 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44440
44441         getdate.y: do not ignore TZ with relative day, month or year offset
44442         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44443         relative-date-handling, since otherwise, the latter would clobber the
44444         sole output (an updated Start value) of the tz-handling block.
44445         * tests/test-getdate.c: Tests for the fix
44446
44447 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44448
44449         Recognize 'foo_LIBRARIES += libgnu.a'.
44450         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44451         makefile snippet has already specified an installation location,
44452         also using '+='.
44453
44454 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44455
44456         getdate.y: factor out common actions
44457         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44458         Use them in place of open-coded actions.
44459
44460 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44461
44462         Add self-test for getdate module.
44463         * modules/getdate-tests: New file.
44464         * tests/test-getdate.c: New file.
44465
44466 2008-06-29  Bruno Haible  <bruno@clisp.org>
44467
44468         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44469         .gitignore.
44470         Reported by Sylvain Beucler <beuc@beuc.net>.
44471
44472 2008-06-29  Bruno Haible  <bruno@clisp.org>
44473
44474         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44475         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44476
44477 2008-06-29  Bruno Haible  <bruno@clisp.org>
44478
44479         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44480         EXTRA_DIST.
44481         Reported by Sylvain Beucler <beuc@beuc.net>.
44482
44483 2008-06-26  Jim Meyering  <meyering@redhat.com>
44484
44485         make several modules depend on the "open" module
44486         This provides slightly increased consistency when opening-for-write
44487         the name of a non-directory spelled with a trailing slash.
44488         * modules/chdir-safer: Likewise.
44489         * modules/chown: Likewise.
44490         * modules/clean-temp: Likewise.
44491         * modules/copy-file: Likewise.
44492         * modules/fchdir: Likewise.
44493         * modules/fcntl-safer: Likewise.
44494         * modules/pipe: Likewise.
44495         * modules/utime: Likewise.
44496         Prompted by Eric Blake and Bruno Haible.
44497
44498 2008-06-24  Andreas Schwab  <schwab@suse.de>
44499
44500         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44501         literals can be used as initializers for global variables.
44502
44503 2008-06-23  Eric Blake  <ebb9@byu.net>
44504
44505         Make gnulib-cache.m4 easier to diff.
44506         * gnulib-tool (func_import): Allow newlines when reading cached
44507         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44508
44509 2008-06-23  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44512         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44513         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44514         m4/signalblocking.m4.
44515         (gl_PREREQ_SIGACTION): Don't invoke it.
44516         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44517         gl_PREREQ_SIG_HANDLER_H.
44518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44519         Don't check for sigaction here.
44520
44521 2008-06-23  Bruno Haible  <bruno@clisp.org>
44522
44523         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44524         (install_handlers): Don't set the SA_RESETHAND flag.
44525
44526 2008-06-23  Bruno Haible  <bruno@clisp.org>
44527
44528         * m4/sigaction.m4: Comment fixes.
44529         * lib/signal.in.h: Likewise.
44530
44531 2008-06-23  Eric Blake  <ebb9@byu.net>
44532
44533         Fix typo.
44534         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44535
44536         Avoid SA_ namespace.
44537         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44538         Reported by Ralf Wildenhues.
44539
44540         Avoid test failure due to SA_RESTORER.
44541         * tests/test-sigaction.c (SA_MASK): New macro.
44542         (main): Avoid failing due to extension flags being set.
44543         Reported by Jim Meyering.
44544
44545         Revert use of sig-handler.h in sigprocmask.c.
44546         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44547         it requires the existence of struct sigaction.
44548         * lib/sigprocmask.c (handler_t): Restore typedef.
44549         (rpl_signal, old_handlers): Use local type.
44550
44551 2008-06-22  Bruno Haible  <bruno@clisp.org>
44552
44553         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44554         conditionally.
44555         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44556
44557 2008-06-22  Bruno Haible  <bruno@clisp.org>
44558
44559         * doc/posix-functions/siginterrupt.texi: Move note.
44560
44561         * lib/signal.in.h (SA_RESTART): New macro.
44562         * lib/sigaction.c: Update comment.
44563
44564         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44565
44566         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44567         (gl_PREREQ_SIGPROCMASK): Invoke it.
44568         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44569
44570         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44571
44572         * lib/sigprocmask.c: Update a comment.
44573
44574 2008-06-21  Eric Blake  <ebb9@byu.net>
44575
44576         Use sigaction module rather than signal().
44577         * modules/c-stack (Depends-on): Add sigaction.
44578         * modules/fatal-signal (Depends-on): Likewise.
44579         * modules/nanosleep (Depends-on): Likewise.
44580         * modules/sigprocmask (Files): Add sig-handler.h.
44581         * modules/sigaction (Files): Likewise.
44582         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44583         Eggert.
44584         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44585         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44586         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44587         (init_fatal_signals): Likewise.
44588         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44589         (siginterrupt): Delete fallback.
44590         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44591         instead.
44592         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44593         siginterrupt.
44594
44595         New module sigaction, for mingw.
44596         * modules/sigaction: New module...
44597         * modules/sigaction-tests: ...and its test.
44598         * m4/sigaction.m4: New file.
44599         * lib/sigaction.c: Likewise.
44600         * tests/test-sigaction.c: Likewise.
44601         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44602         * modules/signal (Makefile.am): Likewise.
44603         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44604         needed.
44605         * doc/posix-headers/signal.texi (signal.h): Mention provided
44606         types.
44607         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44608         that sigaction is preferable.
44609         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44610         module.
44611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44612         sigaction.
44613
44614         Improve robustness of sigprocmask by overriding signal.
44615         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44616         is in use.
44617         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44618         (SIGKILL, SIGSTOP): Provide fallbacks.
44619         (rpl_signal): Implement.
44620         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44621         signal can be called inside handlers.
44622
44623         Fix nanosleep module on mingw.
44624         * modules/nanosleep (Depends-on): Add sys_select.
44625         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44626
44627         Fix licensing of sigprocmask.
44628         * modules/raise (License): Relicense as LGPL.
44629
44630 2008-06-21  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44633         result if it contains question marks.
44634         Reported by Michael Geng <linux@michaelgeng.de>.
44635
44636 2008-06-19  Bruno Haible  <bruno@clisp.org>
44637
44638         Fix CVS-ism.
44639         * doc/gnulib.texi: Include updated-stamp.texi.
44640         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44641         (updated-stamp.texi): New rule.
44642         (gnulib.info): Depend on it.
44643         * doc/.gitignore: Add updated-stamp.texi.
44644         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44645
44646 2008-06-19  Bruno Haible  <bruno@clisp.org>
44647
44648         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44649         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44650
44651 2008-06-19  Eric Blake  <ebb9@byu.net>
44652
44653         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44654         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44655         Reported by Stepan Kasal.
44656
44657 2008-06-18  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44660         Reported by Eric Blake.
44661
44662 2008-06-18  Eric Blake  <ebb9@byu.net>
44663
44664         Work around cygwin 1.5.25 strsignal bug.
44665         * tests/test-strsignal.c: Allow for const char *.
44666         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44667
44668 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44669
44670         * users.txt: Update URL to article and add author/date
44671         information.
44672
44673 2008-06-17  Bruno Haible  <bruno@clisp.org>
44674
44675         New macro gl_DISABLE_THREADS.
44676         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44677         if the user did not pass --enable-threads or --disable-threads option.
44678         (gl_DISABLE_THREADS): New macro.
44679         Reported by Eric Blake <ebb9@byu.net>.
44680
44681 2008-06-17  Bruno Haible  <bruno@clisp.org>
44682
44683         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44684         when the macro ignores it.
44685         Based on a patch by Eric Blake <ebb9@byu.net>.
44686
44687 2008-06-17  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/tls (License): Change to LGPLv2+.
44690         Reported by Eric Blake.
44691
44692 2008-06-17  Eric Blake  <ebb9@byu.net>
44693
44694         Simplify c-stack prerequisites.
44695         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44697         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44698         check.
44699         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44700         <sys/resource.h>.
44701
44702         Move c-stack test into testsuite.
44703         * modules/c-stack-tests: New file.
44704         * lib/c-stack.c [DEBUG]: Move test program...
44705         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44706         fail test if sigaltstack is lacking.
44707         * tests/test-c-stack.sh: New driver file.
44708
44709 2008-06-16  Eric Blake  <ebb9@byu.net>
44710
44711         Use raise module consistently.
44712         * modules/fatal-signal (Depends-on): Add raise.
44713         * modules/sigprocmask (Depends-on): Likewise.
44714         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44715         * lib/sigprocmask.c (sigprocmask): Likewise.
44716         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44717         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44718
44719         Fix compliance bug in sigpending.
44720         * lib/sigprocmask.c (sigpending): Return pending array via
44721         parameter, not return value.
44722
44723 2008-06-14  Eric Blake  <ebb9@byu.net>
44724
44725         Improve obstack-printf test code.
44726         * tests/test-obstack-printf.c (test_function): Fix comment, and
44727         simplify usage of obstack_* in macros.  Add a test for coverage.
44728         Reported by Bruno Haible.
44729
44730 2008-06-14  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44733         array size as a constant, not as a const variable.
44734         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44735         AC_USE_SYSTEM_EXTENSIONS.
44736         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44737         Test whether the obstack_printf function actually exists.
44738         * modules/obstack-printf (Depends-on): Add extensions.
44739         (Include): Remove obstack.h.
44740         * modules/obstack-printf-posix (Depends-on): Add extensions.
44741         (Include): Remove obstack.h.
44742
44743 2008-06-13  Eric Blake  <ebb9@byu.net>
44744
44745         Add obstack-printf and obstack-printf-posix modules.
44746         * modules/obstack-printf: New file.
44747         * modules/obstack-printf-posix: Likewise.
44748         * MODULES.html.sh (Misc): Mention them.
44749         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44750         Likewise.
44751         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44752         Likewise.
44753         * modules/stdio (Makefile.am): Accomodate new modules.
44754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44755         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44756         Declare.
44757         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44758         functions.
44759         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44760         (gl_REPLACE_OBSTACK_PRINTF): New macros
44761         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44762         * tests/test-obstack-printf.c: New file.
44763         * modules/obstack-printf-tests: Likewise.
44764         * modules/obstack-printf-posix-tests: Likewise.
44765
44766 2008-06-11  Bruno Haible  <bruno@clisp.org>
44767
44768         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44769         * lib/open.c: Include errno.h.
44770         (open): Fail when attempting to write to a file that has a trailing
44771         slash.
44772         * tests/test-open.c (main): Test against trailing slash bug.
44773         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44774
44775 2008-06-10  Bruno Haible  <bruno@clisp.org>
44776
44777         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44778         for $? to work inside the trap command, with various /bin/sh-s.
44779         * tests/test-vc-list-files-cvs.sh: Likewise.
44780
44781 2008-06-10  Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/acl-internal.h: Don't include gettext.h here.
44784         * lib/set-mode-acl.c: Include gettext.h here.
44785         * lib/copy-acl.c: Likewise.
44786
44787 2008-06-10  Bruno Haible  <bruno@clisp.org>
44788
44789         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44790         * lib/wait-process.c (wait_subprocess): Likewise.
44791         * lib/execute.h (execute): Add termsigp argument.
44792         * lib/execute.c (execute): Likewise.
44793         * lib/csharpcomp.c (compile_csharp_using_pnet,
44794         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44795         * lib/csharpexec.c (execute_csharp_using_pnet,
44796         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44797         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44798         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44799         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44800         is_jikes_present): Update.
44801         * lib/javaexec.c (execute_java_class): Update.
44802         * lib/javaversion.c (execute_and_read_line): Update.
44803         * NEWS: Document the changes.
44804         Reported by Eric Blake.
44805
44806 2008-06-10  Eric Blake  <ebb9@byu.net>
44807
44808         Add missing include.
44809         * tests/test-strstr.c (includes): Add <signal.h>.
44810         * tests/test-strcasestr.c (includes): Likewise.
44811         * tests/test-memmem.c (includes): Likewise.
44812
44813 2008-06-10  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/wait-process.c (wait_subprocess): Add an assertion.
44816
44817 2008-06-10  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44820
44821 2008-06-10  Bruno Haible  <bruno@clisp.org>
44822
44823         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44824         using alarm().
44825         * tests/test-strcasestr.c (main): Likewise.
44826         * tests/test-strstr.c (main): Likewise.
44827
44828 2008-06-09  Bruno Haible  <bruno@clisp.org>
44829
44830         Work around the Solaris 10 ACE ACLs ABI change.
44831         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44832         declare if ACL_NO_TRIVIAL is present.
44833         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44834         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44835         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44836         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44837         define if ACL_NO_TRIVIAL is present.
44838         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44839         and use the current ABI.
44840         (file_has_acl): Use same #if condition as elsewhere.
44841         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44842         in use, and use the current ABI.
44843         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44844         Reported by Jim Meyering.
44845
44846 2008-06-09  Eric Blake  <ebb9@byu.net>
44847
44848         Work around environments that (stupidly) ignore SIGALRM.
44849         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44850         before using alarm().
44851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44853         Reported by Ian Beckwith <ianb@erislabs.net>.
44854
44855         Produce autobuild blurb earlier in log.
44856         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44857
44858 2008-06-09  Jim Meyering  <meyering@redhat.com>
44859         and OndÅ™ej Vašík  <ovasik@redhat.com>
44860
44861         utimens.c: correct kernel bug work-around
44862         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44863         failure, not success, and the kernel bug we're trying to work
44864         around affects not just the utimensat call, but also the fallback
44865         futimens call.
44866         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44867         not success.
44868         [HAVE_FUTIMENS]: Use the same work-around, here.
44869
44870 2008-06-09  Jim Meyering  <meyering@redhat.com>
44871
44872         add more guards around definition of ACE_-related code
44873         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44874         ALLOW and ACE_OWNER are also defined.
44875
44876 2008-06-08  Bruno Haible  <bruno@clisp.org>
44877
44878         * lib/acl-internal.h: Add me as co-author.
44879         * lib/file-has-acl.c: Likewise.
44880         * lib/set-mode-acl.c: Likewise.
44881         * lib/copy-acl.c: Likewise.
44882
44883 2008-06-08  Bruno Haible  <bruno@clisp.org>
44884
44885         Add support for AIX ACLs.
44886         * lib/acl-internal.h (acl_nontrivial): New declaration.
44887         * lib/file-has-acl.c (acl_nontrivial): New function.
44888         (file_has_acl): Add implementation using AIX 4 ACL API.
44889         * lib/set-mode-acl.c (qset_acl): Likewise.
44890         * lib/copy-acl.c (qcopy_acl): Likewise.
44891
44892 2008-06-08  Bruno Haible  <bruno@clisp.org>
44893
44894         Add support for HP-UX ACLs.
44895         * lib/acl-internal.h (acl_nontrivial): New declaration.
44896         * lib/file-has-acl.c (acl_nontrivial): New function.
44897         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44898         * lib/set-mode-acl.c (qset_acl): Likewise.
44899         * lib/copy-acl.c (qcopy_acl): Likewise.
44900
44901 2008-06-08  Bruno Haible  <bruno@clisp.org>
44902
44903         Add support for Cygwin ACLs.
44904         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44905         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44906         the chmod_or_fchmod call.
44907         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44908
44909 2008-06-08  Bruno Haible  <bruno@clisp.org>
44910
44911         Fix bug with setuid modes in Solaris 10+ code.
44912         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44913         succeeded, when the mode contains some special bits.
44914
44915 2008-06-08  Bruno Haible  <bruno@clisp.org>
44916
44917         Add support for Solaris 7..10 ACLs.
44918         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44919         declarations.
44920         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44921         functions.
44922         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44923         * lib/set-mode-acl.c (qset_acl): Likewise.
44924         * lib/copy-acl.c (qcopy_acl): Likewise.
44925
44926 2008-06-08  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44929         declaration.
44930         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44931         (acl_access_nontrivial): Remove MacOS X case.
44932         (file_has_acl): Use acl_extended_nontrivial.
44933         * lib/copy-acl.c (qcopy_acl): Likewise.
44934
44935 2008-06-08  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44938
44939 2008-06-08  Jim Meyering  <meyering@redhat.com>
44940
44941         * modules/acl (Maintainer): Add Bruno Haible.
44942
44943 2008-06-07  Bruno Haible  <bruno@clisp.org>
44944
44945         Improve support for Tru64 ACLs.
44946         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44947         ACL on OSF/1.
44948
44949 2008-06-07  Bruno Haible  <bruno@clisp.org>
44950
44951         Add support for MacOS X ACLs.
44952         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44953         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44954         * lib/set-mode-acl.c (qset_acl): Likewise.
44955         * lib/copy-acl.c (qcopy_acl): Likewise.
44956
44957 2008-06-07  Bruno Haible  <bruno@clisp.org>
44958
44959         Fix memory leak introduced on 2008-05-22.
44960         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44961         use.
44962
44963 2008-06-07  Bruno Haible  <bruno@clisp.org>
44964
44965         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44966         to construct an empty ACL.
44967
44968 2008-06-07  Bruno Haible  <bruno@clisp.org>
44969
44970         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44971         precisely.
44972         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44973
44974 2008-06-07  Bruno Haible  <bruno@clisp.org>
44975
44976         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44977         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44978
44979 2008-06-07  Bruno Haible  <bruno@clisp.org>
44980
44981         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44982         regardless of POSIX.
44983         * doc/posix-functions/_longjmp.texi: Likewise.
44984         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44985         SystemV platform in this case.
44986
44987 2008-06-06  Eric Blake  <ebb9@byu.net>
44988
44989         Document abort() bugs.
44990         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44991
44992         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44993         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44994         sigsetjmp.
44995         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44996         siglongjmp, but only as a macro.
44997         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44998         is obsolete.
44999         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45000
45001         Tweak documentation to cover cygwin argz bugs.
45002         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45003         argz bug fix; no code change needed since no cygwin releases
45004         occurred between the last fix and the bug being tested.
45005         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45006         module and recently fixed cygwin bugs.
45007         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45008         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45009         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45010         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45011         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45012         Likewise.
45013         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45014         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45015         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45016         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45017         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45018         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45019         Likewise.
45020
45021         Avoid gcc warning on cygwin.
45022         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45023         !ACL_NO_TRIVIAL]: Avoid unused variable.
45024
45025 2008-06-05  Eric Blake  <ebb9@byu.net>
45026
45027         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45028         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45029         git-version-gen fails to come up with a version.
45030         Reported by Simon Josefsson.
45031
45032 2008-06-05  Jim Meyering  <meyering@redhat.com>
45033             Paul Eggert  <eggert@cs.ucla.edu>
45034
45035         utimens.c: work around a probable Linux kernel bug
45036         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45037         appears to be a kernel bug that causes utimensat to return 280
45038         instead of 0, indicating success.
45039
45040 2008-06-04  Bruno Haible  <bruno@clisp.org>
45041
45042         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45043         2008-06-01 commit.
45044
45045 2008-06-04  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45048         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45049         (file_has_acl): Use it. Save errno afterwards.
45050         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45051
45052 2008-06-03  Bruno Haible  <bruno@clisp.org>
45053
45054         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45055         draft code. Simplify #ifs.
45056         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45057         Put Solaris code after POSIX-draft code. Fix comments regarding
45058         Solaris 10, HP-UX. Mention Cygwin.
45059         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45060
45061 2008-06-03  Eric Blake  <ebb9@byu.net>
45062
45063         Provide fallback for older kernels.
45064         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45065         Provide runtime fallback if kernel lacks support.
45066         Reported by Mike Frysinger.
45067
45068 2008-06-02  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45071         it exists.
45072
45073 2008-06-02  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45076         * lib/copy-acl.c (qcopy_acl): Update comment.
45077
45078 2008-06-02  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45081         like ACL APIs.
45082
45083 2008-06-02  Bruno Haible  <bruno@clisp.org>
45084
45085         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45086         * tests/test-set-mode-acl.sh: Likewise.
45087         * tests/test-copy-acl.sh: Likewise.
45088         * tests/test-copy-file.sh: Likewise.
45089
45090 2008-06-02  Bruno Haible  <bruno@clisp.org>
45091
45092         * tests/test-file-has-acl.sh: Remove unused code.
45093
45094 2008-06-01  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45097         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45098         messages.
45099         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45100
45101 2008-06-01  Bruno Haible  <bruno@clisp.org>
45102
45103         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45104         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45105         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45106         APIs.
45107         * modules/acl-tests (configure.ac): Remove tests now contained in
45108         m4/acl.m4.
45109
45110 2008-06-02  Jim Meyering  <meyering@redhat.com>
45111
45112         announce-gen: use a better key-server host name
45113         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45114         it may be more consistently reliable.  Suggested by Werner Koch
45115         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45116
45117 2008-06-01  Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45120         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45121
45122 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45123
45124         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45125
45126 2008-06-01  Bruno Haible  <bruno@clisp.org>
45127
45128         New ACL tests.
45129         * tests/test-file-has-acl.sh: New file.
45130         * tests/test-file-has-acl.c: New file.
45131         * tests/test-set-mode-acl.sh: New file.
45132         * tests/test-set-mode-acl.c: New file.
45133         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45134         * tests/test-copy-acl.c: New file.
45135         * modules/acl-tests: New file, based on modules/copy-file-tests.
45136         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45137         (Depends-on): Add acl-tests.
45138         (configure.ac): Remove checks.
45139         (Makefile.am): Don't create test-sameacls program here any more.
45140
45141 2008-06-01  Bruno Haible  <bruno@clisp.org>
45142
45143         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45144         * tests/test-sameacls.c: Include progname.h.
45145         (main): Invoke set_program_name. Portability fixes for MacOS X,
45146         Solaris, HP-UX.
45147
45148 2008-06-01  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45151         function.
45152         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45153
45154 2008-06-01  Bruno Haible  <bruno@clisp.org>
45155
45156         * modules/rpmatch (Depends-on): Add strdup.
45157
45158 2008-06-01  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/pipe.c: Include unistd-safer.h.
45161         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45162         * modules/pipe (Depends-on): Add unistd-safer.
45163
45164 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45165
45166         * modules/autobuild (configure.ac): Call AB_INIT.
45167
45168 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45169
45170         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45171         Suggested by Bruno Haible <bruno@clisp.org>.
45172
45173 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45174
45175         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45176         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45177         <bruno@clisp.org>.
45178
45179 2008-05-29  Eric Blake  <ebb9@byu.net>
45180
45181         Prefer new POSIX 200x interfaces over futimesat.
45182         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45183         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45184         when available.
45185         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45186
45187 2008-05-28  Bruno Haible  <bruno@clisp.org>
45188
45189         * modules/stpcpy (License): Change to LGPLv2+.
45190         Requested by David Lutterkort <dlutter@redhat.com>.
45191
45192 2008-05-27  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45195         current mingw.
45196         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45197
45198 2008-05-27  Bruno Haible  <bruno@clisp.org>
45199
45200         * modules/iconv_open (Link): New section, from module 'iconv'.
45201         * modules/striconv (Link): Likewise.
45202         * modules/striconveh (Link): Likewise.
45203         * modules/xstriconv (Link): Likewise.
45204         * modules/unicodeio (Link): Likewise.
45205         * modules/propername (Link): Likewise.
45206         Reported by Jim Meyering.
45207
45208 2008-05-26  Jim Meyering  <meyering@redhat.com>
45209
45210         sha256: do not artificially restrict buffer length to be < 2^32
45211         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45212         uint32_t to size_t.
45213         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45214         to match.
45215
45216         avoid unaligned access errors, e.g., on sparc
45217         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45218         direct access through a possibly-unaligned uint64* pointer.
45219         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45220         direct access through a possibly-unaligned uint32* pointer.
45221         Prompted by this patch from Tom "spot" Callaway:
45222         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45223
45224         sha512.c: fix typo in comment
45225         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45226
45227 2008-05-25  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45230         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45231         (Makefile.am): Update lib_SOURCES.
45232
45233 2008-05-25  Bruno Haible  <bruno@clisp.org>
45234
45235         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45236
45237 2008-05-25  Jim Meyering  <meyering@redhat.com>
45238
45239         useless-if-before-free: freed expr may have white-space differences
45240         * build-aux/useless-if-before-free: Recognize cases in which the
45241         freed expression differs from the tested one in embedded white
45242         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45243         $1 was used, so we can't make any regexp shy.  Improved tests now
45244         detect this.
45245
45246         useless-if-before-free: accept white space in the expression.
45247         * build-aux/useless-if-before-free: For now, any white space
45248         in the expression must be identical in the free argument.
45249
45250         useless-if-before-free: efficiency tweak
45251         * build-aux/useless-if-before-free: Make the expression-matching
45252         regexp "shy".
45253         Make the *outer* regexp shy, not the expr-matching one.
45254
45255         update code-in-comment to accept cast of free arg
45256         * build-aux/useless-if-before-free: Update regexp.
45257
45258 2008-05-25  Bruno Haible  <bruno@clisp.org>
45259
45260         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45261         * modules/copy-file-tests (Files, Makefile.am): Update.
45262         * tests/test-copy-file.c (func_test_copy): Update.
45263
45264 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45265
45266         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45267
45268 2008-05-23  Bruno Haible  <bruno@clisp.org>
45269
45270         Improve support for ACLs on OSF/1.
45271         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45272         Remove fallback for unknown flavors of ACLs.
45273
45274 2008-05-22  Bruno Haible  <bruno@clisp.org>
45275
45276         Add support for ACLs on OSF/1.
45277         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45278         replacements.
45279         (acl_free_text): New macro fallback.
45280         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45281         acl_free.
45282         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45283         acl_free_text function. Require AC_C_INLINE.
45284
45285 2008-05-22  Bruno Haible  <bruno@clisp.org>
45286
45287         Make copy_acl work on MacOS X 10.5.
45288         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45289         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45290         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45291         If MODE_INSIDE_ACL, don't assume that every system has the same text
45292         representation for ACLs as FreeBSD.
45293         * lib/copy-acl.c (copy_acl): Add support for platforms with
45294         !MODE_INSIDE_ACL.
45295         * lib/file-has-acl.c (file_has_acl): Likewise.
45296         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45297         FreeBSD, MacOS X, or IRIX, respectively.
45298
45299 2008-05-22  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/acl.h: Don't include <sys/acl.h>.
45302         (GETACLCNT): Move fallback to lib/acl-internal.h.
45303         * lib/acl-internal.h: Include <sys/acl.h> here.
45304         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45305
45306 2008-05-22  Bruno Haible  <bruno@clisp.org>
45307
45308         Split off copy_acl function to separate file.
45309         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45310         * lib/acl.c (copy_acl): Moved function to separate file.
45311         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45312         * modules/acl (Files): Add lib/copy-acl.c.
45313         (Makefiles.am): Augment lib_SOURCES.
45314
45315 2008-05-22  Bruno Haible  <bruno@clisp.org>
45316
45317         * modules/copy-file-tests: New file.
45318         * tests/test-copy-file.sh: New file.
45319         * tests/test-copy-file.c: New file.
45320         * tests/test-copy-file-sameacls.c: New file.
45321
45322 2008-05-22  Eric Blake  <ebb9@byu.net>
45323
45324         Avoid gcc warning.
45325         * tests/test-memcmp.c (main): Pass NULL indirectly.
45326
45327 2008-05-21  Bruno Haible  <bruno@clisp.org>
45328
45329         Add reference doc about ACLs.
45330         * doc/acl-resources.txt: New file.
45331         * doc/acl-cygwin.txt: New file.
45332
45333 2008-05-21  Bruno Haible  <bruno@clisp.org>
45334
45335         Avoid one more warning from gcc.
45336         * lib/vasnprintf.c (IF_LINT): Update comments.
45337         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45338
45339 2008-05-21  Jim Meyering  <meyering@redhat.com>
45340
45341         avoid a warning from gcc
45342         * lib/vasnprintf.c (IF_LINT): Define.
45343         (scale10_round_decimal_long_double):
45344         Use it to avoid a "may be used uninitialized" warning.
45345         (scale10_round_decimal_double): Likewise.
45346
45347 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45348
45349         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45350         declared.
45351
45352 2008-05-20  Bruno Haible  <bruno@clisp.org>
45353
45354         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45355         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45356
45357 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45358
45359         * modules/memcmp-tests: New file.
45360         * tests/test-memcmp.c: New file.
45361
45362 2008-05-19  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/propername (Notice, configure.ac): Put quoted "..." into
45365         --keyword option.
45366         * lib/propername.h: Update comments accordingly.
45367         Reported by Eric Blake.
45368
45369 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45370
45371         * modules/getpass-gnu (Depends-on): Add fseeko.
45372
45373 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45374
45375         * modules/base64-tests: New file.
45376
45377 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45378
45379         * lib/base64.c (base64_decode_ctx): If a decode context structure
45380         was passed in use it to ignore newlines.  If a context structure
45381         was _not_ passed in, continue to treat newlines as garbage (this
45382         is the historical behavior).  Formerly base64_decode.
45383         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45384         takes a decode context structure.
45385         * lib/base64.h (base64_decode): Macro for four-argument calls.
45386         (base64_decode_alloc): Likewise.
45387         * lib/base64.c (base64_decode_ctx): If a decode context structure
45388         was passed in use it to ignore newlines.  If a context structure
45389         was _not_ passed in, continue to treat newlines as garbage (this
45390         is the historical behavior).  Formerly base64_decode.
45391         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45392         takes a decode context structure.
45393         * lib/base64.h (base64_decode): Macro for four-argument calls.
45394         (base64_decode_alloc): Likewise.
45395
45396 2008-05-19  Jim Meyering  <meyering@redhat.com>
45397
45398         avoid a warning from gcc
45399         * lib/trim.c (IF_LINT): Define.
45400         (trim2): Use it to avoid a "may be used uninitialized" warning.
45401
45402         Fix doc typo.
45403         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45404
45405 2008-05-19  Bruno Haible  <bruno@clisp.org>
45406
45407         * doc/glibc-functions/getpass.texi: Document limits of other
45408         implementations.
45409
45410 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45411             Bruno Haible <bruno@clisp.org>
45412
45413         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45414
45415 2008-05-18  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/propername: New file, from GNU gettext.
45418         * lib/propername.h: New file, from GNU gettext.
45419         * lib/propername.c: New file, from GNU gettext.
45420         * MODULES.html.sh (Internationalization functions): Add propername.
45421
45422 2008-05-16  Jim Meyering  <meyering@redhat.com>
45423             Bruno Haible  <bruno@clisp.org>
45424
45425         Avoid some warnings from "gcc -Wshadow".
45426         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45427
45428 2008-05-15  Eric Blake  <ebb9@byu.net>
45429
45430         Extend previous patch to cygwin 1.7.0.
45431         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45432         fast implementation in cygwin >= 1.7.0.
45433         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45435
45436 2008-05-15  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45439         implementation in glibc >= 2.9.
45440         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45442
45443 2008-05-15  Bruno Haible  <bruno@clisp.org>
45444
45445         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45446         (Unicode string functions): Add unilbrk/*.
45447         Reported by Karl Berry.
45448
45449 2008-05-15  Eric Blake  <ebb9@byu.net>
45450
45451         Fix violation of <stdbool.h> replacement in regex.
45452         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45453         * lib/regexec.c (re_search_internal): Likewise.
45454         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45455
45456 2008-05-15  Jim Meyering  <meyering@redhat.com>
45457
45458         avoid distracting test output when git or cvs is not found
45459         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45460         * tests/test-vc-list-files-git.sh: Likewise.
45461
45462 2008-05-15  Eric Blake  <ebb9@byu.net>
45463
45464         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45465         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45466         glibc version.
45467         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45468         * doc/posix-functions/strstr.texi (strstr): Likewise.
45469         * lib/str-two-way.h (MAX): Sychronize with glibc.
45470
45471 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45472
45473         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45474         opr.ctx_type.
45475         (calc_first): Initialize constraint field.
45476         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45477         Fix grammar.
45478         (duplicate_node): Merge constraint field for all node types.
45479         (calc_eclosure_iter): Look at constraint field for all node types.
45480         * lib/regex_internal.c (create_cd_newstate): Don't look at
45481         opr.ctx_type.
45482
45483 2008-05-14  Bruno Haible  <bruno@clisp.org>
45484
45485         Help GCC to do better code generation.
45486         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45487         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45488         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45489         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45490         Declare with attribute 'malloc' if supported.
45491
45492 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45493
45494         use "echo STR|wc -c" rather than unportable "expr length STR"
45495         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45496         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45497
45498 2008-05-14  Jim Meyering  <meyering@redhat.com>
45499
45500         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45501         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45502         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45503         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45504         via Collin Lasse.
45505
45506 2008-05-14  Eric Blake  <ebb9@byu.net>
45507
45508         Avoid quadratic growth in gl_LIBSOURCES.
45509         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45510         Suggested by Bruno Haible.
45511
45512         Test xmemdup0.
45513         * modules/xmemdup0-tests: New file.
45514         * tests/test-xmemdup0.c: Likewise.
45515
45516 2008-05-13  Eric Blake  <ebb9@byu.net>
45517
45518         Split xmemdup0 into its own module.
45519         * modules/xmemdup0: New file.
45520         * lib/xmemdup0.h: Likewise.
45521         * lib/xmemdup0.c: Likewise.
45522         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45523         * lib/xalloc.h (xmemdup0): Remove.
45524         * lib/xmalloc.c (xmemdup0): Likewise.
45525
45526 2008-05-13  Eric Blake  <ebb9@byu.net>
45527             Bruno Haible  <bruno@clisp.org>
45528
45529         Reduce number of forks required during autoconf.
45530         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45531         and gl_LIBSOURCES_DIR.
45532         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45533         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45534         m4_syscmd per file.
45535         <m4_foreach_w>: Move...
45536         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45537
45538 2008-05-13  Eric Blake  <ebb9@byu.net>
45539
45540         * gnulib-tool: Fix various comment typos.
45541
45542 2008-05-12  Bruno Haible  <bruno@clisp.org>
45543
45544         Tailor the linebreaking algorithm.
45545         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45546
45547 2008-05-12  Bruno Haible  <bruno@clisp.org>
45548
45549         Update to Unicode 5.0.0.
45550         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45551         LBP_JV, LBP_JT. Redistribute values.
45552         (unilbrk_table): Change size.
45553         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45554         Unicode TR#14 rev. 22.
45555         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45556         LBP_JV, LBP_JT. Redistribute values.
45557         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45558         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45559         Update.
45560         * lib/unilbrk/lbrkprop1.h: Regenerated.
45561         * lib/unilbrk/lbrkprop2.h: Regenerated.
45562         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45563         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45564         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45565         Likewise.
45566         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45567         Likewise.
45568         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45569         result.
45570         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45571         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45572         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45573         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45574         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45575         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45576
45577 2008-05-11  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45580
45581 2008-05-11  Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45584         * modules/unilbrk/gen-lbrk: New file.
45585
45586 2008-05-11  Bruno Haible  <bruno@clisp.org>
45587
45588         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45589         * m4/sha512.m4 (gl_SHA512): Likewise.
45590
45591 2008-05-11  Jim Meyering  <meyering@redhat.com>
45592
45593         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45594         * modules/crypto/sha256: New file.
45595         * modules/crypto/sha512: Likewise.
45596         * lib/sha256.c: Likewise.
45597         * lib/sha256.h: Likewise.
45598         * lib/sha512.c: Likewise.
45599         * lib/sha512.h: Likewise.
45600         * lib/u64.h: Likewise.
45601         * m4/sha256.m4: Likewise.
45602         * m4/sha512.m4: Likewise.
45603         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45604
45605 2008-05-10  Bruno Haible  <bruno@clisp.org>
45606
45607         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45608         (Input/Output <stdio.h>): Add xprintf.
45609         (Signal handling <signal.h>): Add strsignal.
45610         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45611         (Core language properties): Add func.
45612         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45613         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45614         strings.
45615         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45616         (Input/output): New section.
45617         (File system functions): Add openat-die, stat-macros.
45618         (Networking functions): Add sockets.
45619         (Unicode string functions): Add unictype/*.
45620         (Support for building libraries and executables): Add gperf.
45621         (Support for building documentation): Add agpl-3.0.
45622         (Misc): Add nocrash.
45623
45624 2008-05-10  Bruno Haible  <bruno@clisp.org>
45625
45626         * modules/unictype/gen-ctype: New file.
45627
45628 2008-05-10  Jim Meyering  <meyering@redhat.com>
45629
45630         Make chdir-safer.c more efficient on a system with no symlinks.
45631         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45632         also if ELOOP is zero.  Suggested by Bruno Haible.
45633
45634         Make chdir-safer.c slightly safer.
45635         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45636         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45637
45638         Avoid compile failure on systems without ELOOP (like mingw).
45639         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45640         Reported by Bruno Haible.
45641
45642 2008-05-10  Bruno Haible  <bruno@clisp.org>
45643
45644         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45645         (is_utf8_encoding): Use a case-insensitive comparison.
45646         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45647         streq.
45648
45649 2008-05-10  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45652         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45653         * lib/unilbrk/ulc-common.h (iconv_string_length,
45654         iconv_string_keeping_offsets): Remove declarations.
45655         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45656         Don't include <iconv.h>, streq.h, xsize.h.
45657         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45658         conversion.
45659         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45660         <iconv.h>, streq.h, xsize.h.
45661         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45662         conversion.
45663         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45664         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45665         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45666         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45667
45668 2008-05-10  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45671         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45672
45673         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45674         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45675
45676         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45677         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45678
45679         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45680         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45681
45682         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45683         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45684
45685         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45686         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45687
45688         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45689         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45690
45691         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45692         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45693
45694 2008-05-10  Bruno Haible  <bruno@clisp.org>
45695
45696         Split up 'linebreak' module.
45697         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45698         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45699         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45700         modifications.
45701         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45702         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45703         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45704         lib/linebreak.c.
45705         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45706         lib/linebreak.c.
45707         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45708         lib/linebreak.c.
45709         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45710         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45711         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45712         lib/linebreak.c.
45713         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45714         lib/linebreak.c.
45715         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45716         lib/linebreak.c.
45717         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45718         lib/linebreak.c.
45719         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45720         lib/linebreak.c.
45721         * modules/unilbrk/base: New file.
45722         * modules/unilbrk/tables: New file.
45723         * modules/unilbrk/u8-possible-linebreaks: New file.
45724         * modules/unilbrk/u16-possible-linebreaks: New file.
45725         * modules/unilbrk/u32-possible-linebreaks: New file.
45726         * modules/unilbrk/ulc-common: New file.
45727         * modules/unilbrk/ulc-possible-linebreaks: New file.
45728         * modules/unilbrk/u8-width-linebreaks: New file.
45729         * modules/unilbrk/u16-width-linebreaks: New file.
45730         * modules/unilbrk/u32-width-linebreaks: New file.
45731         * modules/unilbrk/ulc-width-linebreaks: New file.
45732         * lib/linebreak.h: Remove file.
45733         * lib/linebreak.c: Remove file.
45734         * m4/linebreak.m4: Remove file.
45735         * modules/linebreak: Remove file.
45736         * NEWS: Mention the changes.
45737
45738 2008-05-09  Eric Blake  <ebb9@byu.net>
45739
45740         Add xmemdup0.
45741         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45742         implementation.
45743         * lib/xmalloc.c (xmemdup0): New C implementation.
45744
45745 2008-05-08  Bruno Haible  <bruno@clisp.org>
45746
45747         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45748
45749 2008-05-07  Eric Blake  <ebb9@byu.net>
45750
45751         Support cross-compilation of <wctype.h>.
45752         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45753         AC_CACHE_CHECK.
45754
45755 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45756
45757         * build-aux/vc-list-files: Add support for bzr.
45758
45759 2008-05-03  Jim Meyering  <meyering@redhat.com>
45760
45761         avoid failed assertion with tight malloc
45762         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45763
45764 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45765
45766         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45767         are needed from arpa/inet.h.
45768         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45769         Reported by Bruno Haible.
45770
45771 2008-05-02  Jim Meyering  <meyering@redhat.com>
45772
45773         avoid compilation error on FreeBSD 6
45774         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45775
45776 2008-05-01  Jim Meyering  <meyering@redhat.com>
45777
45778         useless-if-before-free: correct --help's exit status description
45779         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45780         for one or more matches, etc.  Reported by Bruno Haible.
45781
45782         vc-list-files: make the stand-alone gnulib test work
45783         * modules/vc-list-files-tests (configure.ac):
45784         Define and AC_SUBST abs_aux_dir.
45785         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45786         $(abs_top_srcdir) to each script and having each of them
45787         duplicate the work of setting PATH, set PATH here, using
45788         the new variable, abs_aux_dir instead.
45789         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45790         * tests/test-vc-list-files-git.sh: Likewise.
45791         Reported by Bruno Haible.
45792
45793 2008-05-01  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45796         reallocation. Rename 'done' to 'found_delimiter'.
45797
45798 2008-05-01  Jim Meyering  <meyering@redhat.com>
45799
45800         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45801         * build-aux/vc-list-files: Use `...`, not $(...).
45802
45803 2008-04-30  Jim Meyering  <meyering@redhat.com>
45804
45805         add tests for vc-list-files
45806         * modules/vc-list-files-tests: New module.
45807         * tests/test-vc-list-files-cvs.sh: New file.
45808         * tests/test-vc-list-files-git.sh: New file.
45809
45810         avoid a warning from gcc
45811         * lib/getndelim2.c (IF_LINT): Define.
45812         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45813
45814         vc-list-files: work properly with build-aux/cvsu, too
45815         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45816         to all cvs-based clauses.
45817
45818         vc-list-files: work properly in the CVS+awk case, too
45819         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45820
45821         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45822         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45823         take more than one file argument, so .  Add quotes, just in case $dir
45824         ever contains a shell meta-character.  Prompted by Soren Hansen in
45825         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45826
45827 2008-04-29  Eric Blake  <ebb9@byu.net>
45828
45829         Optimize getndelim2 to use block operations when possible.
45830         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45831         freadseek, and memchr2.
45832         * lib/getndelim2.c (getndelim2): Use them for block reads.
45833
45834 2008-04-29  Bruno Haible  <bruno@clisp.org>
45835
45836         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45837         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45838         * modules/inet_ntop (Depends-on): Add extensions.
45839         * modules/inet_pton (Depends-on): Likewise.
45840         Reported by Simon Josefsson.
45841
45842 2008-04-29  Jim Meyering  <meyering@redhat.com>
45843
45844         When the is more than one match in a block, match all of them.
45845         * build-aux/useless-if-before-free: Iterate through each block
45846         until there are no more matches.
45847
45848         Fix broken useless-if-before-free script.
45849         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45850         the expression to match cast of argument to free-like function.
45851
45852 2008-04-29  Eric Blake  <ebb9@byu.net>
45853
45854         Use new header.
45855         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45856
45857 2008-04-29  Jim Meyering  <meyering@redhat.com>
45858
45859         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45860         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45861         by gnulib to exist and to declare e.g., inet_ntop.
45862         Don't include "inet_ntop.h", now removed.
45863
45864         * m4/arpa_inet_h.m4: Remove trailing blanks.
45865
45866 2008-04-29  Eric Blake  <ebb9@byu.net>
45867
45868         Silence valgrind on safe reads beyond potential array bounds.
45869         * lib/rawmemchr.valgrind: New file.
45870         * lib/strchrnul.valgrind: Likewise.
45871         * modules/rawmemchr (Files): Distribute new file.
45872         * modules/strchrnul (Files): Likewise.
45873         Suggested by Bruno Haible.
45874
45875 2008-04-29  Bruno Haible  <bruno@clisp.org>
45876
45877         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45878         (inet_ntop, inet_pton): Change portability warning's wording.
45879         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45880         Invoke gl_CHECK_NEXT_HEADERS.
45881         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45882         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45883         set ARPA_INET_H.
45884         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45885         * modules/arpa_inet (Description): No longer only for systems that
45886         lack it.
45887         (Depends-on): Add include_next.
45888         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45889         HAVE_ARPA_INET_H.
45890
45891 2008-04-29  Jim Meyering  <meyering@redhat.com>
45892
45893         * modules/mkdir (License): Re-license as LGPLv2+.
45894
45895 2008-04-29  Bruno Haible  <bruno@clisp.org>
45896
45897         * modules/rawmemchr (Maintainer): Set to Eric.
45898         * modules/strchrnul (Maintainer): Likewise.
45899
45900 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45901
45902         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45903         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45904
45905         * modules/arpa_inet (arpa/inet.h): Use them.
45906
45907 2008-04-28  Eric Blake  <ebb9@byu.net>
45908
45909         Test getndelim2.
45910         * modules/getndelim2-tests: New file.
45911         * tests/test-getndelim2.c: Likewise.
45912         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45913         stream.
45914         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45915
45916         * MODULES.html.sh: Document new module.
45917
45918 2008-04-20  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/c-stack.c (die): Use raise.
45921         * modules/c-stack (Depends-on): Add raise.
45922
45923 2008-04-28  Bruno Haible  <bruno@clisp.org>
45924
45925         Expect rpmatch to be declared.
45926         * lib/yesno.c (rpmatch): Remove declaration.
45927
45928         Declare rpmatch.
45929         * lib/stdlib.in.h (rpmatch): New declaration.
45930         * lib/rpmatch.c: Include <stdlib.h> first.
45931         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45932         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45934         HAVE_RPMATCH.
45935         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45937         (Include): Set to <stdlib.h>.
45938         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45939         HAVE_RPMATCH.
45940         * NEWS: Document the change.
45941
45942 2008-04-28  Bruno Haible  <bruno@clisp.org>
45943
45944         Change rpmatch to use nl_langinfo when appropriate.
45945         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45946         (N_): New macro.
45947         (localized_pattern): New function/macro.
45948         (try): Remove match, nomatch arguments. Copy the pattern into safe
45949         memory before caching it.
45950         (rpmatch): Use localized_pattern. Add translator comments.
45951         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45952         Suggested by Eric Blake.
45953         * modules/rpmatch (Depends-on): Add stdbool.
45954
45955 2008-04-28  Eric Blake  <ebb9@byu.net>
45956
45957         Add rawmemchr module, matching glibc.
45958         * modules/string (Makefile.am): New indicator.
45959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45960         * lib/string.in.h (rawmemchr): Declare when appropriate.
45961         * modules/rawmemchr: New file.
45962         * m4/rawmemchr.m4: Likewise.
45963         * lib/rawmemchr.c: Likewise.
45964         * modules/rawmemchr-tests: Likewise.
45965         * tests/test-rawmemchr.c: Likewise.
45966         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45967         module.
45968         * modules/strchrnul (Depends-on): Add rawmemchr.
45969         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45970
45971         Whitespace cleanup.
45972         * tests/test-strchrnul.c: Reindent.
45973         * lib/strchrnul.c: Likewise.
45974
45975         Optimize and test strchrnul.
45976         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45977         * modules/strchrnul-tests: New file.
45978         * tests/test-strchrnul.c: Likewise.
45979
45980         Remove intprops dependency.
45981         * modules/memchr (Depends-on): Remove intprops.
45982         * modules/memrchr (Depends-on): Likewise.
45983         * modules/memchr2 (Depends-on): Likewise.
45984         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45985         * lib/memrchr.c (__memrchr): Likewise.
45986         * lib/memrchr2.c (memchr2): Likewise.
45987         Reported by Simon Josefsson.
45988
45989 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45990
45991         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45992         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45993
45994 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45995
45996         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45997
45998         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45999
46000         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46001
46002         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46003         declarations.
46004         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46005
46006         * m4/inet_pton.m4: Don't check for header files.
46007
46008         * m4/inet_ntop.m4: Don't check for header files.
46009
46010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46011
46012         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46013         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46014         trigger for cygwin).
46015         Reported by Bruno Haible  <bruno@clisp.org>.
46016
46017 2008-04-28  Bruno Haible  <bruno@clisp.org>
46018
46019         * doc/posix-functions/strdup.texi: Mention mingw problem.
46020
46021 2008-04-27  Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/stat-time-tests (Depends-on): Add sleep.
46024         * tests/test-stat-time.c (force_unlink): New function.
46025         (cleanup): Use it.
46026         (test_mtime): Remove the ctime related tests.
46027         (test_ctime): New function, containing the ctime related tests.
46028         (main): Call test_ctime, except on native Windows platforms.
46029
46030 2008-04-27  Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/rpmatch.c (rpmatch): Add some comments.
46033         Reported by James Youngman <jay@gnu.org>.
46034
46035 2008-04-27  Bruno Haible  <bruno@clisp.org>
46036
46037         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46038         quiet NaNs.
46039
46040 2008-04-27  Bruno Haible  <bruno@clisp.org>
46041
46042         Make test-yesno.sh work on mingw.
46043         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46044         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46045         (main): Set stdin to binary mode.
46046         * modules/yesno-tests (Depends-on): Add binary-io.
46047
46048 2008-04-27  Bruno Haible  <bruno@clisp.org>
46049
46050         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46051         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46052         argument that lie outside the IEEE 854 domain.
46053         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46054         (gl_ISFINITE): Use it.
46055         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46056
46057 2008-04-27  Bruno Haible  <bruno@clisp.org>
46058
46059         Allow local renaming in config.h.
46060         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46061
46062 2008-04-27  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/memchr.c (__memchr): Change type of 'i'.
46065         * lib/memchr2.c (memchr2): Likewise.
46066
46067 2008-04-26  Eric Blake  <ebb9@byu.net>
46068         and Bruno Haible  <bruno@clisp.org>
46069
46070         Optimize and test memrchr.
46071         * modules/memrchr (Depends-on): Add intprops.
46072         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46073         * modules/memrchr-tests: New file.
46074         * tests/test-memrchr.c: New file.
46075
46076 2008-04-26  Bruno Haible  <bruno@clisp.org>
46077
46078         Add tentative support for DragonFly BSD.
46079         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46080         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46081         fp.
46082         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46083         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46084         * lib/fpurge.c (fpurge): Likewise.
46085         * lib/freadable.c (freaadable): Likewise.
46086         * lib/freadahead.c (freadahead): Likewise.
46087         * lib/freading.c (freading): Likewise.
46088         * lib/freadptr.c (freadptr): Likewise.
46089         * lib/freadseek.c (freadptrinc): Likewise.
46090         * lib/fseeko.c (fseeko): Likewise.
46091         * lib/fseterr.c (fseterr): Likewise.
46092         * lib/fwritable.c (fwritable): Likewise.
46093         * lib/fwriting.c (fwriting): Likewise.
46094
46095 2008-04-26  Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/stdio-impl.h: New file.
46098         * lib/fbufmode.c: Include stdio-impl.h.
46099         (fbufmode): Use fp_, remove redundant #defines.
46100         * lib/fflush.c: Include stdio-impl.h.
46101         (clear_ungetc_buffer): Remove redundant #defines.
46102         * lib/fpurge.c: Include stdio-impl.h.
46103         (fpurge): Remove redundant #defines.
46104         * lib/freadable.c: Include stdio-impl.h.
46105         (freadable): Remove redundant #defines.
46106         * lib/freadahead.c: Include stdio-impl.h.
46107         (freadahead): Remove redundant #defines.
46108         * lib/freading.c: Include stdio-impl.h.
46109         (freading): Remove redundant #defines.
46110         * lib/freadptr.c: Include stdio-impl.h.
46111         (freadptr): Remove redundant #defines.
46112         * lib/freadseek.c: Include stdio-impl.h.
46113         (freadptrinc): Remove redundant #defines.
46114         * lib/fseeko.c: Include stdio-impl.h.
46115         (rpl_fseeko): Remove redundant #defines.
46116         * lib/fseterr.c: Include stdio-impl.h.
46117         (fseterr): Remove redundant #defines.
46118         * lib/fwritable.c: Include stdio-impl.h.
46119         (fwritable: Remove redundant #defines.
46120         * lib/fwriting.c: Include stdio-impl.h.
46121         (fwriting): Remove redundant #defines.
46122         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46123         * modules/fflush (Files): Likewise.
46124         * modules/fpurge (Files): Likewise.
46125         * modules/freadable (Files): Likewise.
46126         * modules/freadahead (Files): Likewise.
46127         * modules/freading (Files): Likewise.
46128         * modules/freadptr (Files): Likewise.
46129         * modules/freadseek (Files): Likewise.
46130         * modules/fseeko (Files): Likewise.
46131         * modules/fseterr (Files): Likewise.
46132         * modules/fwritable (Files): Likewise.
46133         * modules/fwriting (Files): Likewise.
46134
46135 2008-04-26  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46138         restore_seek_optimization, update_fpos_cache): New functions, extracted
46139         from rpl_fflush.
46140         (rpl_fflush): Use them.
46141         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46142         (gl_REPLACE_FFLUSH): Use it.
46143
46144 2008-04-26  Bruno Haible  <bruno@clisp.org>
46145
46146         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46147         on Solaris.
46148         * tests/test-xstrtoimax.sh: Likewise.
46149         * tests/test-xstrtoumax.sh: Likewise.
46150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46151
46152 2008-04-26  Bruno Haible  <bruno@clisp.org>
46153
46154         * modules/memchr-tests: New file.
46155         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46156
46157 2008-04-26  Eric Blake  <ebb9@byu.net>
46158             Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/memchr.c: Include intprops.h.
46161         (__memchr): Optimize parallel detection of matching bytes. Rename local
46162         variables. Add explanatory comments.
46163
46164 2008-04-26  Bruno Haible  <bruno@clisp.org>
46165
46166         Fix module 'memchr', broken since 2000-10-28.
46167         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46168
46169 2008-04-26  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46172         comments.
46173
46174 2008-04-25  Eric Blake  <ebb9@byu.net>
46175
46176         Use native fstatat on cygwin 1.7.0.
46177         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46178         first.
46179
46180 2008-04-23  Eric Blake  <ebb9@byu.net>
46181
46182         Improve memchr2 performance.
46183         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46184         NUL bytes.
46185         * modules/memchr2 (Depends-on): Use intprops.h.
46186
46187 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46188
46189         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46190         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46191         <blp@cs.stanford.edu>.
46192
46193 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46194
46195         * lib/arpa_inet.in.h: New file.
46196
46197         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46198         (Makefile.am): Sed in substitute header file.
46199
46200         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46201         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46202
46203         * modules/inet_ntop (configure.ac): Use
46204         gl_ARPA_INET_MODULE_INDICATOR.
46205
46206         * modules/inet_pton (configure.ac): Use
46207         gl_ARPA_INET_MODULE_INDICATOR.
46208
46209 2008-04-22  Jim Meyering  <meyering@redhat.com>
46210
46211         * modules/verify (License): Re-license as LGPLv2+.
46212
46213 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46214
46215         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46216         parameter to void* as per POSIX standard (MinGW uses char*).
46217
46218 2008-04-21  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46221         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46222         Define to replacements if REPLACE_ISWCNTRL is 1.
46223         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46224         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46225         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46226         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46227         what it fixes.
46228         * doc/posix-functions/iswalpha.texi: Likewise.
46229         * doc/posix-functions/iswblank.texi: Likewise.
46230         * doc/posix-functions/iswcntrl.texi: Likewise.
46231         * doc/posix-functions/iswdigit.texi: Likewise.
46232         * doc/posix-functions/iswgraph.texi: Likewise.
46233         * doc/posix-functions/iswlower.texi: Likewise.
46234         * doc/posix-functions/iswprint.texi: Likewise.
46235         * doc/posix-functions/iswpunct.texi: Likewise.
46236         * doc/posix-functions/iswspace.texi: Likewise.
46237         * doc/posix-functions/iswupper.texi: Likewise.
46238         * doc/posix-functions/iswxdigit.texi: Likewise.
46239         Reported by Alain Guibert.
46240
46241 2008-04-21  Bruno Haible  <bruno@clisp.org>
46242
46243         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46244         Patch by Alain Guibert.
46245
46246 2008-04-21  Bruno Haible  <bruno@clisp.org>
46247
46248         Fix test failures on mingw.
46249         * tests/test-xstrtol.c (print_no_progname): New function.
46250         (main): Install it in error_print_progname hook.
46251         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46252         * tests/test-xstrtoimax.sh: Likewise.
46253         * tests/test-xstrtoumax.sh: Likewise.
46254
46255 2008-04-21  Bruno Haible  <bruno@clisp.org>
46256
46257         Fix test failure on mingw.
46258         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46259
46260 2008-04-21  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46263         Actually assign a value.
46264
46265 2008-04-20  Bruno Haible  <bruno@clisp.org>
46266
46267         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46268         take 2.
46269         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46270         'canonicalize-lgpl' module is also used.
46271         * lib/canonicalize-lgpl.c: Undo last change.
46272         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46273
46274 2008-04-20  Bruno Haible  <bruno@clisp.org>
46275
46276         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46277         config.h. Provide _mkdir based fallback for mingw.
46278         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46279         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46280         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46281         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46282         rather than defining mkdir in config.h.
46283         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46284         (gl_SYS_STAT_H_DEFAULTS): New macro.
46285         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46286         HAVE_IO_H any more.
46287         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46288         HAVE_DECL_MKDIR and HAVE_IO_H.
46289
46290 2008-04-20  Bruno Haible  <bruno@clisp.org>
46291
46292         * lib/isapipe.c: Port to native Windows platforms.
46293
46294 2008-04-20  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46297
46298 2008-04-21  Eric Blake  <ebb9@byu.net>
46299
46300         Work around preprocessors that don't handle UINTMAX_MAX.
46301         * lib/memchr2.c (memchr2): Avoid embedded #if.
46302         Reported by Alain Guibert, fix suggested by Bruno Haible.
46303
46304 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46305
46306         * doc/posix-functions/strftime.texi (strftime): Explain better
46307         Windows incompatibility.  Suggested by Micah Cowan
46308         <micah@cowan.name>.
46309
46310 2008-04-20  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46313         unistr/u8-mblen.
46314
46315 2008-04-20  Bruno Haible  <bruno@clisp.org>
46316
46317         Fix test failure on platforms with non-GNU iconv.
46318         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46319         (U_TO_U8): Use it, rather than u16_to_u8.
46320         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46321         units at the end of the input string.
46322         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46323
46324 2008-04-20  Bruno Haible  <bruno@clisp.org>
46325
46326         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46327         when the resulting length is 0.
46328         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46329
46330 2008-04-20  Bruno Haible  <bruno@clisp.org>
46331
46332         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46333         works.
46334         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46335
46336 2008-04-20  Bruno Haible  <bruno@clisp.org>
46337
46338         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46339         * modules/tsearch-tests (configure.ac): Test for initstate function.
46340
46341 2008-04-20  Bruno Haible  <bruno@clisp.org>
46342
46343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46344         for nlink_t if missing.
46345         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46346
46347 2008-04-19  Bruno Haible  <bruno@clisp.org>
46348
46349         Work around snprintf bug on Linux libc5.
46350         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46352         gl_SNPRINTF_SIZE1.
46353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46354         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46355         that test failed.
46356         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46357         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46358         * modules/snprintf (Files): Add m4/printf.m4.
46359         * modules/vsnprintf (Files): Likewise.
46360         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46361         * doc/posix-functions/vsnprintf.texi: Likewise.
46362
46363 2008-04-19  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46366         from 0.0058 to less than 10^-7.
46367
46368 2008-04-19  Bruno Haible  <bruno@clisp.org>
46369
46370         Fix rounding when a precision is given.
46371         * lib/vasnprintf.c (is_borderline): New function.
46372         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46373         9...9x.
46374         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46375         %e, %g.
46376         * tests/test-vasprintf-posix.c (test_function): Likewise.
46377         * tests/test-snprintf-posix.h (test_function): Likewise.
46378         * tests/test-sprintf-posix.h (test_function): Likewise.
46379         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46380         * tests/test-printf-posix.h (test_function): Likewise.
46381         * tests/test-printf-posix.output: Update.
46382         Reported by John Darrington <john@darrington.wattle.id.au> via
46383         Ben Pfaff <blp@cs.stanford.edu>.
46384
46385 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46386
46387         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46388         Suggested by Bruno Haible <bruno@clisp.org>.
46389
46390 2008-04-17  Bruno Haible  <bruno@clisp.org>
46391
46392         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46393         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46394         implementation.
46395         Patch by Bruce Merry <bmerry@gmail.com>.
46396
46397 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46398
46399         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46400         doesn't work under Windows.
46401
46402 2008-04-16  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46405         New macros.
46406         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46407         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46408         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46409         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46410         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46411         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46412         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46413         macros.
46414         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46415         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46416         Northern Sotho, Uighur.
46417
46418 2008-04-16  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46421         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46422         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46423         Reported by Daniel Bergström <daniel@octocode.com>.
46424
46425 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46426             Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46429         function.
46430         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46431         New functions, mostly extracted from gl_locale_name_default.
46432         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46433
46434 2008-04-16  Eric Blake  <ebb9@byu.net>
46435
46436         Adjust strtod detection to catch glibc 2.7 bug.
46437         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46438         Reported by John Gatewood Ham.
46439
46440 2008-04-16  Bruno Haible  <bruno@clisp.org>
46441
46442         Add tentative support for Linux libc5.
46443         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46444         * lib/fpurge.c (fpurge): Likewise.
46445         * lib/freadable.c (freadable): Likewise.
46446         * lib/freadahead.c (freadahead): Likewise.
46447         * lib/freading.c (freading): Likewise.
46448         * lib/freadptr.c (freadptr): Likewise.
46449         * lib/freadseek.c (freadptrinc): Likewise.
46450         * lib/fseeko.c (rpl_fseeko): Likewise.
46451         * lib/fseterr.c (fseterr): Likewise.
46452         * lib/fwritable.c (fwritable): Likewise.
46453         * lib/fwriting.c (fwriting): Likewise.
46454         Reported by Alain Guibert <alguibert+bts@free.fr>.
46455
46456 2008-04-15  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/mathl (configure.ac): Define module indicator.
46459
46460 2008-04-15  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/logl.c (logl): Remove unused variables.
46463
46464 2008-04-15  Bruno Haible  <bruno@clisp.org>
46465
46466         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46467         fails.
46468
46469 2008-04-15  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/trim.c (trim2): Fix argument of isspace() macro.
46472
46473 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46474
46475         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46476         to 0.
46477         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46478
46479 2008-04-14  Bruno Haible  <bruno@clisp.org>
46480
46481         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46482         AC_LANG_PROGRAM argument.
46483         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46484         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46486         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46487         * m4/math_h.m4 (gl_MATH_H): Likewise.
46488         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46489         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46490         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46491         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46492         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46493         * m4/regex.m4 (gl_REGEX): Likewise.
46494         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46495         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46497         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46498         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46499         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46501         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46502
46503 2008-04-14  Jim Meyering  <meyering@redhat.com>
46504
46505         test-strtod: fix typos: s/abs/fabs/
46506         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46507
46508 2008-04-13  Bruno Haible  <bruno@clisp.org>
46509
46510         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46511         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46512         module is also used and while not building the reloc-wrapper.
46513
46514 2008-04-13  Bruno Haible  <bruno@clisp.org>
46515
46516         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46517
46518 2008-04-13  Bruno Haible  <bruno@clisp.org>
46519
46520         Fix AIX compilation failure introduced on 2008-04-02.
46521         * tests/test-frexp.c (exp): Undefine before redefining.
46522         * tests/test-frexpl.c (exp): Likewise.
46523
46524 2008-04-13  Bruno Haible  <bruno@clisp.org>
46525
46526         Work around a HP-UX stdio bug.
46527         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46528         * tests/test-ftello.c (main): Likewise.
46529         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46530         * doc/posix-functions/ftello.texi: Likewise.
46531
46532 2008-04-13  Bruno Haible  <bruno@clisp.org>
46533
46534         Make test-signbit pass on HP-UX/hppa.
46535         * tests/test-signbit.c (minus_zerol): New variable.
46536         (test_signbitl): Use it.
46537
46538 2008-04-13  Bruno Haible  <bruno@clisp.org>
46539
46540         Make truncl work on OSF/1 4.0.
46541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46542         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46543         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46545         HAVE_DECL_TRUNCL.
46546         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46547         HAVE_DECL_TRUNCL.
46548         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46549
46550 2008-04-13  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46553
46554 2008-04-13  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46557         expression, so as to avoid HP-UX 11 cc compiler bug.
46558
46559 2008-04-13  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46562
46563 2008-04-13  Bruno Haible  <bruno@clisp.org>
46564
46565         * lib/git-merge-changelog.c: Remove empty declaration outside of
46566         functions.
46567
46568 2008-04-13  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46571
46572 2008-04-13  Bruno Haible  <bruno@clisp.org>
46573
46574         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46575         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46577         also if it exists but lacks definitions of the SHUT_* macros.
46578         * modules/sys_socket (Description): Update.
46579         Reported by Elbert Pol <e.pol@chello.nl>.
46580
46581 2008-04-13  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/localcharset.c (OS2): Don't redefine if already defined.
46584         Reported by Elbert Pol <e.pol@chello.nl>.
46585
46586 2008-04-13  Bruno Haible  <bruno@clisp.org>
46587
46588         * lib/binary-io.h [__EMX__]: Include <io.h>.
46589         Reported by Elbert Pol <e.pol@chello.nl>.
46590
46591 2008-04-12  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/fpucw.h: Enable the definitions also for x86_64.
46594         Needed for NetBSD/x86_64.
46595         Reported by Thomas Klausner <tk@giga.or.at>.
46596
46597 2008-04-12  Bruno Haible  <bruno@clisp.org>
46598
46599         * tests/test-strtod.c: Include isnand.h.
46600         (main): Use isnand instead of isnan.
46601         Reported by Jim Meyering.
46602
46603 2008-04-12  Bruno Haible  <bruno@clisp.org>
46604
46605         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46606         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46607
46608 2008-04-12  Jim Meyering  <meyering@redhat.com>
46609
46610         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46611
46612 2008-04-12  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46615         Reported by Elbert Pol <e.pol@chello.nl>.
46616
46617 2008-04-12  Eric Blake  <ebb9@byu.net>
46618
46619         Work around Solaris 10 math.h bug.
46620         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46621         (gl_MATH_H_DEFAULTS): Set up default.
46622         * modules/math (Makefile.am): Replace new indicators.
46623         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46624         * tests/test-math.c (main): Test this.
46625         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46626         * doc/posix-headers/math.texi (math.h): Mention bug.
46627         Reported by Nelson H. F. Beebe and Jim Meyering.
46628
46629 2008-04-11  Bruno Haible  <bruno@clisp.org>
46630
46631         Adapt to future versions of Apple GCC.
46632         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46633         Reported by Peter O'Gorman <peter@pogma.com>.
46634
46635 2008-04-11  Bruno Haible  <bruno@clisp.org>
46636
46637         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46638
46639 2008-04-11  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46642
46643         * modules/getaddrinfo-tests (Makefile.am): Define
46644         test_getaddrinfo_LDADD.
46645
46646 2008-04-11  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46649         (init): Fix syntax error.
46650         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46651         is declared.
46652
46653 2008-04-11  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46656         * modules/glob (Depends-on): Add stdbool.
46657
46658 2008-04-11  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/trim.c: Include <string.h>.
46661
46662 2008-04-11  Eric Blake  <ebb9@byu.net>
46663
46664         Avoid compile failure on OS/2.
46665         * lib/regex_internal.h (internal_function): Disable optimization
46666         on OS/2 (__EMX__), where it caused compiler error.
46667         Reported by Elbert Pol.
46668
46669 2008-04-11  Bruno Haible  <bruno@clisp.org>
46670
46671         Flush the standard error stream before aborting. Needed on mingw.
46672         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46673         * tests/test-array_list.c (ASSERT): Likewise.
46674         * tests/test-array_oset.c (ASSERT): Likewise.
46675         * tests/test-avltree_list.c (ASSERT): Likewise.
46676         * tests/test-avltree_oset.c (ASSERT): Likewise.
46677         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46678         * tests/test-binary-io.c (ASSERT): Likewise.
46679         * tests/test-byteswap.c (ASSERT): Likewise.
46680         * tests/test-c-ctype.c (ASSERT): Likewise.
46681         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46682         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46683         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46684         * tests/test-c-strstr.c (ASSERT): Likewise.
46685         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46686         * tests/test-canonicalize.c (ASSERT): Likewise.
46687         * tests/test-carray_list.c (ASSERT): Likewise.
46688         * tests/test-ceilf1.c (ASSERT): Likewise.
46689         * tests/test-ceilf2.c (ASSERT): Likewise.
46690         * tests/test-ceill.c (ASSERT): Likewise.
46691         * tests/test-count-one-bits.c (ASSERT): Likewise.
46692         * tests/test-fbufmode.c (ASSERT): Likewise.
46693         * tests/test-fflush2.c (ASSERT): Likewise.
46694         * tests/test-floorf1.c (ASSERT): Likewise.
46695         * tests/test-floorf2.c (ASSERT): Likewise.
46696         * tests/test-floorl.c (ASSERT): Likewise.
46697         * tests/test-fopen.c (ASSERT): Likewise.
46698         * tests/test-fpending.c (ASSERT): Likewise.
46699         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46700         * tests/test-fpurge.c (ASSERT): Likewise.
46701         * tests/test-freadable.c (ASSERT): Likewise.
46702         * tests/test-freadahead.c (ASSERT): Likewise.
46703         * tests/test-freading.c (ASSERT): Likewise.
46704         * tests/test-freadptr.c (ASSERT): Likewise.
46705         * tests/test-freadptr2.c (ASSERT): Likewise.
46706         * tests/test-freadseek.c (ASSERT): Likewise.
46707         * tests/test-freopen.c (ASSERT): Likewise.
46708         * tests/test-frexp.c (ASSERT): Likewise.
46709         * tests/test-frexpl.c (ASSERT): Likewise.
46710         * tests/test-fseek.c (ASSERT): Likewise.
46711         * tests/test-fseeko.c (ASSERT): Likewise.
46712         * tests/test-fstrcmp.c (ASSERT): Likewise.
46713         * tests/test-ftell.c (ASSERT): Likewise.
46714         * tests/test-ftello.c (ASSERT): Likewise.
46715         * tests/test-func.c (ASSERT): Likewise.
46716         * tests/test-fwritable.c (ASSERT): Likewise.
46717         * tests/test-fwriting.c (ASSERT): Likewise.
46718         * tests/test-getdelim.c (ASSERT): Likewise.
46719         * tests/test-getline.c (ASSERT): Likewise.
46720         * tests/test-i-ring.c (ASSERT): Likewise.
46721         * tests/test-iconv-utf.c (ASSERT): Likewise.
46722         * tests/test-iconv.c (ASSERT): Likewise.
46723         * tests/test-isfinite.c (ASSERT): Likewise.
46724         * tests/test-isnand.c (ASSERT): Likewise.
46725         * tests/test-isnanf.c (ASSERT): Likewise.
46726         * tests/test-isnanl.h (ASSERT): Likewise.
46727         * tests/test-ldexpl.c (ASSERT): Likewise.
46728         * tests/test-linked_list.c (ASSERT): Likewise.
46729         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46730         * tests/test-localename.c (ASSERT): Likewise.
46731         * tests/test-lseek.c (ASSERT): Likewise.
46732         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46733         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46734         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46735         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46736         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46737         * tests/test-mbschr.c (ASSERT): Likewise.
46738         * tests/test-mbscspn.c (ASSERT): Likewise.
46739         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46740         * tests/test-mbspbrk.c (ASSERT): Likewise.
46741         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46742         * tests/test-mbsrchr.c (ASSERT): Likewise.
46743         * tests/test-mbsspn.c (ASSERT): Likewise.
46744         * tests/test-mbsstr1.c (ASSERT): Likewise.
46745         * tests/test-mbsstr2.c (ASSERT): Likewise.
46746         * tests/test-mbsstr3.c (ASSERT): Likewise.
46747         * tests/test-memchr2.c (ASSERT): Likewise.
46748         * tests/test-memmem.c (ASSERT): Likewise.
46749         * tests/test-open.c (ASSERT): Likewise.
46750         * tests/test-printf-frexp.c (ASSERT): Likewise.
46751         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46752         * tests/test-printf-posix.c (ASSERT): Likewise.
46753         * tests/test-quotearg.c (ASSERT): Likewise.
46754         * tests/test-rbtree_list.c (ASSERT): Likewise.
46755         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46756         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46757         * tests/test-round1.c (ASSERT): Likewise.
46758         * tests/test-roundf1.c (ASSERT): Likewise.
46759         * tests/test-roundl.c (ASSERT): Likewise.
46760         * tests/test-signbit.c (ASSERT): Likewise.
46761         * tests/test-sleep.c (ASSERT): Likewise.
46762         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46763         * tests/test-snprintf.c (ASSERT): Likewise.
46764         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46765         * tests/test-stat-time.c (ASSERT): Likewise.
46766         * tests/test-strcasestr.c (ASSERT): Likewise.
46767         * tests/test-strerror.c (ASSERT): Likewise.
46768         * tests/test-striconv.c (ASSERT): Likewise.
46769         * tests/test-striconveh.c (ASSERT): Likewise.
46770         * tests/test-striconveha.c (ASSERT): Likewise.
46771         * tests/test-strsignal.c (ASSERT): Likewise.
46772         * tests/test-strstr.c (ASSERT): Likewise.
46773         * tests/test-strtod.c (ASSERT): Likewise.
46774         * tests/test-trunc1.c (ASSERT): Likewise.
46775         * tests/test-trunc2.c (ASSERT): Likewise.
46776         * tests/test-truncf1.c (ASSERT): Likewise.
46777         * tests/test-truncf2.c (ASSERT): Likewise.
46778         * tests/test-truncl.c (ASSERT): Likewise.
46779         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46780         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46781         * tests/test-vasnprintf.c (ASSERT): Likewise.
46782         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46783         * tests/test-vasprintf.c (ASSERT): Likewise.
46784         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46785         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46786         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46787         * tests/test-vsnprintf.c (ASSERT): Likewise.
46788         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46789         * tests/test-wcwidth.c (ASSERT): Likewise.
46790         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46791         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46792         * tests/test-xvasprintf.c (ASSERT): Likewise.
46793         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46794         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46795         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46796         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46797         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46798         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46799         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46800         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46801         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46802         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46803         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46804         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46805         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46806         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46807         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46808         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46809         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46810         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46811         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46812         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46813         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46814         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46815         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46816         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46817         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46818         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46819         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46820         * tests/unictype/test-combining.c (ASSERT): Likewise.
46821         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46822         * tests/unictype/test-digit.c (ASSERT): Likewise.
46823         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46824         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46825         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46826         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46827         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46828         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46829         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46830         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46831         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46832         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46833         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46834         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46835         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46836         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46837         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46838         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46839         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46840         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46841         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46842         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46843         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46844         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46845         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46846         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46847         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46848         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46849         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46850         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46851         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46852         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46853         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46854         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46855         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46856         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46857         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46858         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46859         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46860         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46861         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46862         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46863         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46864         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46865         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46866         Reported by Eric Blake.
46867
46868 2008-04-11  Bruno Haible  <bruno@clisp.org>
46869
46870         * lib/wchar.in.h: Tweak comment.
46871
46872 2008-04-11  Bruno Haible  <bruno@clisp.org>
46873
46874         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46875         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46876         gl_COMMON.
46877         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46878
46879 2008-04-11  Bruno Haible  <bruno@clisp.org>
46880
46881         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46882
46883 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46884
46885         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46886         of attempting to use non-existing /dev/*random.  Based on patch
46887         from Adam Strzelecki <ono@java.pl> in
46888         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46889
46890 2008-04-08  Bruno Haible  <bruno@clisp.org>
46891
46892         Add tentative support for emx+gcc.
46893         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46894         * lib/fpurge.c (fpurge): Likewise.
46895         * lib/freadable.c (freadable): Likewise.
46896         * lib/freadahead.c (freadahead): Likewise.
46897         * lib/freading.c (freading): Likewise.
46898         * lib/freadptr.c (freadptr): Likewise.
46899         * lib/freadseek.c (freadptrinc): Likewise.
46900         * lib/fseeko.c (rpl_fseeko): Likewise.
46901         * lib/fseterr.c (fseterr): Likewise.
46902         * lib/fwritable.c (fwritable): Likewise.
46903         * lib/fwriting.c (fwriting): Likewise.
46904         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46905
46906 2008-04-09  Eric Blake  <ebb9@byu.net>
46907
46908         Avoid some autoconf warnings.
46909         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46910         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46911         * m4/afs.m4 (gl_AFS): Likewise.
46912         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46913         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46915         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46916         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46917         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46918         (AC_CHECK_DECLS_ONCE): Likewise.
46919         Rename file...
46920         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46921         gnulib-tool requires autoconf 2.59 or better.
46922         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46923
46924 2008-04-08  Eric Blake  <ebb9@byu.net>
46925
46926         Use 'git describe --match' if present (added in git 1.5.5).
46927         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46928         if possible.
46929
46930 2008-04-08  Bruno Haible  <bruno@clisp.org>
46931
46932         Add tentative support for OpenServer.
46933         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46934         _ptr, _cnt.
46935         * lib/fpurge.c (fpurge): Likewise.
46936         * lib/freadable.c (freadable): Likewise.
46937         * lib/freadahead.c (freadahead): Likewise.
46938         * lib/freading.c (freading): Likewise.
46939         * lib/freadptr.c (freadptr): Likewise.
46940         * lib/freadseek.c (freadptrinc): Likewise.
46941         * lib/fseeko.c (rpl_fseeko): Likewise.
46942         * lib/fseterr.c (fseterr): Likewise.
46943         * lib/fwritable.c (fwritable): Likewise.
46944         * lib/fwriting.c (fwriting): Likewise.
46945         Reported by Roger Cornelius <rac@tenzing.org> and
46946         Brian K. White <brian@aljex.com>.
46947
46948 2008-04-06  Jim Meyering  <meyering@redhat.com>
46949
46950         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46951
46952 2008-04-06  Bruno Haible  <bruno@clisp.org>
46953
46954         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46955         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46956         * tests/test-printf-posix.sh: Likewise.
46957         * tests/test-vfprintf-posix.sh: Likewise.
46958         * tests/test-vprintf-posix.sh: Likewise.
46959         * tests/test-xprintf-posix.sh: Likewise.
46960
46961 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46962
46963         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46964         hide error from 'ls', needed on OS/2.
46965         Report by Elbert Pol <elbert.pol@gmail.com>.
46966
46967 2008-04-04  Eric Blake  <ebb9@byu.net>
46968
46969         Make test-fseeko.c failures meaningful.
46970         * tests/test-fseeko.c: Print line number on failure.
46971         * tests/test-fseek.c: Likewise.
46972         Reported by Nelson H. F. Beebe.
46973
46974         Improve strtod bug detection check.
46975         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46976         required for Solaris 10.
46977         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46978
46979 2008-04-04  Bruno Haible  <bruno@clisp.org>
46980
46981         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46982         by m4/setenv.m4.
46983
46984 2008-04-03  Eric Blake  <ebb9@byu.net>
46985
46986         Ensure sane .version contents.
46987         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46988         version string.
46989         * build-aux/git-version-gen: Improve documentation.
46990
46991         Make GNU make output nicer.
46992         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46993         MAKECMDGOALS to enforce message for all command line targets.  Set
46994         srcdir for use in maint.mk.
46995
46996         Another maintainer tweak.
46997         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46998         a target that regenerates version.
46999
47000 2008-04-03  Jim Meyering  <meyering@redhat.com>
47001
47002         vc-list-files: don't cause coreutils "make po-check" failure
47003         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47004
47005 2008-04-03  Eric Blake  <ebb9@byu.net>
47006
47007         Allow VPATH usage of vc-list-files.
47008         * build-aux/vc-list-files (scriptversion): Add timestamp.
47009         (options): Add --help, --version, -C.
47010         (CVS): Support installed cvsu.
47011
47012 2008-04-02  Bruno Haible  <bruno@clisp.org>
47013
47014         Avoid some "statement with no effect" warnings from gcc.
47015         * tests/test-wctype.c (main): Explicitly ignore unused values.
47016         Reported by Jim Meyering.
47017
47018 2008-04-02  Jim Meyering  <meyering@redhat.com>
47019
47020         Avoid some warnings from "gcc -Wshadow".
47021         * tests/test-frexp.c (exp): Define to a different identifier.
47022         * tests/test-frexpl.c (exp): Likewise.
47023
47024 2008-04-03  Jim Meyering  <meyering@redhat.com>
47025
47026         bootstrap: remove dangling *.[ch] symlinks from lib
47027         * build-aux/bootstrap [dangling symlink removal]: Move find's
47028         -depth option to precede all others, to avoid a warning.
47029         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47030
47031 2008-04-02  Bruno Haible  <bruno@clisp.org>
47032
47033         Avoid some warnings from "gcc -Wshadow".
47034         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47035         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47036         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47037         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47038         Reported by Jim Meyering.
47039
47040 2008-04-01  Bruno Haible  <bruno@clisp.org>
47041
47042         Fix test to work on IRIX 6.5 with cc.
47043         * tests/test-math.c (numeric_equal): New function.
47044         (main): Use it.
47045
47046 2008-04-01  Bruno Haible  <bruno@clisp.org>
47047
47048         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47049
47050 2008-04-01  Bruno Haible  <bruno@clisp.org>
47051
47052         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47053         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47054         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47055         (Depends-on): Remove math.
47056
47057         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47058         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47059         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47060         (Depends-on): Remove math.
47061
47062         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47063         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47064         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47065         (Depends-on): Remove math.
47066         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47067         (Depends-on): Remove math.
47068
47069         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47070         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47071         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47072         (Depends-on): Remove math.
47073         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47074         (Depends-on): Remove math.
47075
47076         * tests/test-round1.c: Include nan.h.
47077         (main): Use NaNd instead of NAN.
47078         * modules/round-tests (Files): Add tests/nan.h.
47079
47080         * tests/test-trunc1.c: Include nan.h.
47081         (main): Use NaNd instead of NAN.
47082         * modules/trunc-tests (Files): Add tests/nan.h.
47083
47084         * tests/test-roundf1.c: Include nan.h.
47085         (main): Use NaNf instead of NAN.
47086         * modules/roundf-tests (Files): Add tests/nan.h.
47087
47088         * tests/test-truncf1.c: Include nan.h.
47089         (main): Use NaNf instead of NAN.
47090         * modules/truncf-tests (Files): Add tests/nan.h.
47091
47092         * tests/test-ceilf1.c: Include nan.h.
47093         (main): Use NaNf instead of NAN.
47094         * modules/ceilf-tests (Files): Add tests/nan.h.
47095
47096         * tests/test-floorf1.c: Include nan.h.
47097         (main): Use NaNf instead of NAN.
47098         * modules/floorf-tests (Files): Add tests/nan.h.
47099
47100         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47101         (main): Use NaNf instead of NAN.
47102         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47103
47104         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47105         (main): Use NaNd instead of NAN.
47106         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47107
47108         * tests/test-frexp.c: Include nan.h.
47109         (main): Use NaNd instead of NAN.
47110         * modules/frexp-tests (Files): Add tests/nan.h.
47111
47112         * lib/isnan.c: Don't include <math.h>.
47113         (FUNC): Don't use NAN macro.
47114         * modules/isnand-nolibm (Depends-on): Remove math.
47115         * modules/isnanf-nolibm (Depends-on): Remove math.
47116         * modules/isnanl (Depends-on): Remove math.
47117         * modules/isnanl-nolibm (Depends-on): Remove math.
47118
47119         * tests/nan.h: New file.
47120
47121 2008-04-01  Eric Blake  <ebb9@byu.net>
47122
47123         Fix typos.
47124         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47125         values to be the right type.
47126
47127         For now, cater to gnulib strtod inaccuracies.
47128         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47129         fractional results.  While not as nice from a QoI perspective, it
47130         is a quicker patch than correctly implementing decimal to binary
47131         rounding.
47132
47133 2008-03-31  Eric Blake  <ebb9@byu.net>
47134
47135         Guarantee a definition of NAN.
47136         * lib/math.in.h (NAN): Define if missing.
47137         * tests/test-math.c (main): Test it.
47138         * doc/posix-headers/math.texi (math.h): Document this.
47139         * lib/isnan.c (rpl_isnand): Use it.
47140         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47141         * tests/test-floorf1.c (NaN): Likewise.
47142         * tests/test-frexp.c (NaN): Likewise.
47143         * tests/test-isnand.c (NaN): Likewise.
47144         * tests/test-isnanf.c (NaN): Likewise.
47145         * tests/test-round1.c (NaN): Likewise.
47146         * tests/test-roundf1.c (NaN): Likewise.
47147         * tests/test-snprintf-posix.h (NaN): Likewise.
47148         * tests/test-sprintf-posix.h (NaN): Likewise.
47149         * tests/test-trunc1.c (NaN): Likewise.
47150         * tests/test-truncf1.c (NaN): Likewise.
47151         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47152         * tests/test-vasprintf-posix.c (NaN): Likewise.
47153         * modules/isnand-nolibm (Depends-on): Add math.
47154         * modules/isnanf-nolibm (Depends-on): Likewise.
47155         * modules/isnanl (Depends-on): Likewise.
47156         * modules/isnanl-nolibm (Depends-on): Likewise.
47157         * modules/snprintf-posix-tests (Depends-on): Likewise.
47158         * modules/sprintf-posix-tests (Depends-on): Likewise.
47159         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47160         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47161         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47162         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47163
47164 2008-03-31  Bruno Haible  <bruno@clisp.org>
47165
47166         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47167         * doc/posix-functions/strtod.texi: Likewise.
47168
47169 2008-03-31  Bruno Haible  <bruno@clisp.org>
47170
47171         * tests/test-strtod.c (main): Don't use C99 syntax.
47172
47173 2008-03-31  Bruno Haible  <bruno@clisp.org>
47174
47175         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47176         Reported by Eric Blake.
47177
47178 2008-03-31  Jim Meyering  <meyering@redhat.com>
47179
47180         Don't compare actual signbit return values.
47181         * tests/test-strtod.c (main): Rather, compare only their
47182         zero/non-zero nature.
47183
47184 2008-03-31  Eric Blake  <ebb9@byu.net>
47185
47186         More strtod documentation.
47187         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47188         failures as distinct bugs.
47189
47190 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47193         Problem reported by Erik Benada in
47194         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47195
47196 2008-03-30  Bruno Haible  <bruno@clisp.org>
47197
47198         * tests/test-strtod.c: Add comments about which assertion fails on which
47199         platform.
47200         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47201
47202 2008-03-30  Eric Blake  <ebb9@byu.net>
47203
47204         Test signbit behavior on zeros.
47205         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47206         (test_signbitd, test_signbitl): Likewise.
47207
47208         More strtod touchups.
47209         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47210         sign of negative underflow, for now.  Use .5, not .1.
47211         * doc/posix-functions/strtod.texi (strtod): Mention these
47212         limitations.
47213         Reported by Jim Meyering.
47214
47215 2008-03-30  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47218         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47219
47220 2008-03-30  Bruno Haible  <bruno@clisp.org>
47221
47222         Avoid failure when attempting to return empty iconv results on some
47223         platforms.
47224         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47225         allocation, don't report ENOMEM when the resulting string is empty.
47226
47227 2008-03-30  Bruno Haible  <bruno@clisp.org>
47228
47229         Fix buffer overrun.
47230         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47231         Don't consider the width for tmp_length. Check count against tmp_length
47232         before doing the padding. Ensure enough allocation during padding.
47233
47234 2008-03-30  Eric Blake  <ebb9@byu.net>
47235
47236         strtod touchups.
47237         * lib/strtod.c (strtod): Avoid compiler warnings.
47238         Reported by Jim Meyering.
47239
47240 2008-03-30  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47243         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47244         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47245         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47246         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47247         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47248         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47249         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47250
47251         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47252         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47253         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47254         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47255         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47256         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47257         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47258         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47259
47260         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47261         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47262         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47263         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47264         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47265         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47266         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47267         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47268
47269         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47270         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47271
47272         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47273         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47274
47275         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47276         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47277
47278         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47280         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47281
47282         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47284         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47285
47286         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47288         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47289
47290         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47292         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47293
47294         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47295         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47297         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47298         (Depends-on): Add EOVERFLOW.
47299         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47300         (Depends-on): Add EOVERFLOW.
47301         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47302         (Depends-on): Add EOVERFLOW.
47303         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47304         (Depends-on): Add EOVERFLOW.
47305         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47306         (Depends-on): Add EOVERFLOW.
47307         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47308         (Depends-on): Add EOVERFLOW.
47309         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47310         (Depends-on): Add EOVERFLOW.
47311         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47312         (Depends-on): Add EOVERFLOW.
47313
47314         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47316         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47317
47318         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47320         * modules/snprintf (Depends-on): Add EOVERFLOW.
47321
47322         * lib/poll.c (EOVERFLOW): Remove fallback.
47323         * modules/poll (Depends-on): Add EOVERFLOW.
47324
47325         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47326         * modules/getugroups (Depends-on): Add EOVERFLOW.
47327
47328         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47329         * modules/getdelim (Depends-on): Add EOVERFLOW.
47330
47331         * lib/ftell.c (EOVERFLOW): Remove fallback.
47332         * modules/ftell (Depends-on): Add EOVERFLOW.
47333
47334         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47336         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47337
47338         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47339
47340         * modules/EOVERFLOW-tests: New file.
47341         * tests/test-EOVERFLOW.c: New file.
47342
47343         * modules/EOVERFLOW: New file.
47344         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47345
47346 2008-03-30  Bruno Haible  <bruno@clisp.org>
47347
47348         Fix bug introduced on 2007-06-10.
47349         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47350         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47351
47352 2008-03-30  Bruno Haible  <bruno@clisp.org>
47353
47354         Improve freadseek's efficiency after ungetc.
47355         * lib/freadseek.c: Include freadahead.h.
47356         (freadptrinc): New function, extracted from freadseek.
47357         (freadseek): Use it in a loop. Use freadahead to determine the number
47358         of loop iterations.
47359         * modules/freadseek (Depends-on): Add freadahead.
47360         (configure.ac): Require AC_C_INLINE.
47361
47362 2008-03-30  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/freadseek.c (freadseek): Don't ignore the return value of
47365         freadptr.
47366
47367 2008-03-29  Eric Blake  <ebb9@byu.net>
47368
47369         Add hex float support.
47370         * modules/strtod (Depends-on): Add c-ctype.
47371         (Link): Mention POW_LIB.
47372         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47373         whitespace between 'e' and exponent.
47374         * tests/test-strtod.c (main): Enable hex float tests.
47375         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47376         now provides.
47377
47378         Document various strtod bugs, with some fixes.
47379         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47380         "-0x", "inf", "nan", and hex constants.
47381         * doc/posix-functions/atof.texi (atof): Likewise.
47382         * modules/stdlib (Makefile.am): Support strtod.
47383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47384         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47385         detect additional strtod bugs.
47386         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47387         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47388         bool where appropriate.  Parse 'inf' and 'nan'.
47389         * tests/test-strtod.c: New file.
47390         * modules/strtod (Depends-on): Add stdbool, stdlib.
47391         (configure.ac): Turn on module indicator.
47392         * modules/strtod-tests: New module.
47393
47394 2008-03-29  Eric Blake  <ebb9@byu.net>
47395
47396         Fix ftell on mingw.
47397         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47398         * modules/ftell-tests (Depends-on): Add binary-io.
47399         * modules/ftello-tests (Depends-on): Likewise.
47400         * tests/test-ftell.c (main): Enhance test to cover behavior after
47401         ungetc.  Enforce binary mode.
47402         * tests/test-ftello.c (main): Likewise.
47403
47404         Pass test-freadseek on cygwin.
47405         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47406         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47407         ungetc buffer.
47408
47409         * tests/test-fflush2.c (main): Fix typo.
47410
47411 2008-03-29  Bruno Haible  <bruno@clisp.org>
47412
47413         * tests/test-fflush2.c (main): Temporarily disable the contents of
47414         this test.
47415         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47416         Reported by Eric Blake.
47417
47418 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47419
47420         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47421         (GC_SHA224_DIGEST_SIZE): Add.
47422
47423         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47424         (gc_hash_digest_length): Likewise.
47425         (gc_hash_buffer): Likewise.
47426
47427 2008-03-25  Bruno Haible  <bruno@clisp.org>
47428
47429         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47430         detail which gettext release to use.
47431         Reported by Simon Josefsson.
47432
47433 2008-03-26  Jim Meyering  <meyering@redhat.com>
47434
47435         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47436         * modules/gnumakefile (clean-GNUmakefile): Also, use
47437         test ... && ... || : syntax rather than if-then ... fi.
47438
47439         gnumakefile: Don't double-quote-expand $(VPATH) value.
47440         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47441
47442 2008-03-24  Eric Blake  <ebb9@byu.net>
47443
47444         Alter GNUmakefile to install into top directory.
47445         * modules/maintainer-makefile: Split, and add dependency...
47446         * modules/gnumakefile: to this new module.
47447         * build-aux/GNUmakefile: Move...
47448         * top/GNUmakefile: ...here.
47449         * build-aux/maint.mk: Move...
47450         * top/maint.mk: ...here.
47451         * MODULES.html.sh (Support for maintaining...): Document new
47452         module.
47453
47454 2008-03-23  Bruno Haible  <bruno@clisp.org>
47455
47456         * gnulib-tool: New options --vc-files, --no-vc-files.
47457         (func_usage): Document them.
47458         (vc_files): New variable.
47459         (func_import): Consider vc_files.
47460         (func_create_testdir): Set vc_files to empty.
47461         Suggested by Jim Meyering and Karl Berry.
47462
47463 2008-03-23  Bruno Haible  <bruno@clisp.org>
47464
47465         Fix regex compilation error on HP-UX 11.
47466         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47467         * modules/regex (Files): Add m4/mbstate_t.m4.
47468         Reported by Ton Voon <ton.voon@altinity.com>.
47469
47470 2008-03-23  Bruno Haible  <bruno@clisp.org>
47471
47472         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47473
47474 2008-03-23  Eric Blake  <ebb9@byu.net>
47475             Bruno Haible  <bruno@clisp.org>
47476
47477         Install files from top/ in the destination directory.
47478         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47479         augmentation also for the files from top/.
47480         (func_import, func_create_testdir): Rewrite file names:
47481         top/filename -> filename.
47482
47483 2008-03-23  Bruno Haible  <bruno@clisp.org>
47484
47485         Tweak "gnulib --version" output.
47486         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47487
47488 2008-03-23  Bruno Haible  <bruno@clisp.org>
47489
47490         Tweak "gnulib --version" output.
47491         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47492         rather than contents of ChangeLog, when possible.
47493
47494 2008-03-21  Eric Blake  <ebb9@byu.net>
47495
47496         More --version tweaks.
47497         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47498         date of last ChangeLog entry.
47499
47500 2008-03-21  Jim Meyering  <meyering@redhat.com>
47501
47502         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47503
47504 2008-03-20  Eric Blake  <ebb9@byu.net>
47505
47506         VPATH fix.
47507         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47508
47509 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47510
47511         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47512         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47513
47514 2008-03-20  Eric Blake  <ebb9@byu.net>
47515
47516         Sync GNUmakefile with coreutils.
47517         * build-aux/GNUmakefile (have-Makefile): Rename...
47518         (_have-Makefile): ...to this, for namespace consideration.
47519         (GNUmakefile.cfg): Include, if present.
47520         (_autoreconf): Define a default.
47521         (_is-dist-target): New rule for rebuilds to pick up intra-release
47522         version.
47523         (maint-cfg.mk): Rename...
47524         (cfg.mk): ...to this.
47525
47526 2008-03-18  Jim Meyering  <meyering@redhat.com>
47527
47528         New script and module: mktempd
47529         * MODULES.html.sh (maint+release support): Add mktempd.
47530         * build-aux/mktempd: New file.
47531         * modules/mktempd: New file.
47532
47533 2008-03-15  Jim Meyering  <meyering@redhat.com>
47534
47535         Undo last change.
47536         * lib/sha1.c, lib/md5.c: 63 != ~63.
47537         Reported by Andreas Schwab.
47538
47539         sha1.c, md5.c: Hoist a redundant expression.
47540         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47541         "ctx->buflen" only once, before calling *_process_block.
47542         * lib/md5.c (md5_process_bytes): Likewise.
47543
47544 2008-03-14  Eric Blake  <ebb9@byu.net>
47545
47546         Bump copyright year in files generated by gnulib-tool.
47547         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47548         gnulib-tool, rather than hard-coding it.
47549
47550         Fix 'gnulib-tool --version' output to work with git.
47551         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47552         (startup): ...here.
47553         (func_version): Use it to invoke git-version-gen, rather than
47554         relying on CVS keyword expansion.  Modernize wording.
47555         (cvsdatestamp, last_checkin_date, version): Kill unused
47556         variables.
47557
47558 2008-03-12  Jim Meyering  <meyering@redhat.com>
47559
47560         Recognize optional cast of the argument to free.
47561         * build-aux/useless-if-before-free: Update regexps.
47562
47563         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47564
47565 2008-03-11  Bruno Haible  <bruno@clisp.org>
47566
47567         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47568         by a single package.
47569         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47570         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47571         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47572         Reported by Sam Steingold <sds@gnu.org>.
47573
47574 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47575
47576         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47577         repositories.
47578
47579 2008-03-11  Bruno Haible  <bruno@clisp.org>
47580
47581         Avoid conflicts between local macro definitions.
47582         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47583         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47584
47585 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47586             Bruno Haible  <bruno@clisp.org>
47587
47588         Make va_copy work with some version of xlc on AIX 5.1.
47589         * lib/stdarg.in.h: New file.
47590         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47591         On AIX, use a <stdarg.h> file substitute.
47592         * modules/stdarg (Files): Add lib/stdarg.in.h.
47593         (Depends-on): Add include_next.
47594         (Makefile.am): Build a stdarg.h substitute if requested.
47595         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47596
47597 2008-03-10  Bruno Haible  <bruno@clisp.org>
47598
47599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47601         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47602
47603 2008-03-10  Bruno Haible  <bruno@clisp.org>
47604
47605         * modules/stdlib (Depends-on): Add include_next, remove
47606         absolute-header.
47607
47608 2008-03-09  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/freadahead.h (freadahead): Document more precisely.
47611         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47612         the sum of both buffer sizes.
47613         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47614         * NEWS: Document the change.
47615
47616 2008-03-09  Bruno Haible  <bruno@clisp.org>
47617
47618         Extend freadptr to return also the buffer size.
47619         * lib/freadptr.h (freadptr): Add sizep argument.
47620         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47621         (freadptr): Add sizep argument. Determine buffer size like freadahead
47622         does.
47623         * tests/test-freadptr.c: Don't include freadahead.h.
47624         (main): Adapt for new calling convention of freadptr.
47625         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47626         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47627         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47628         tests/test-freadptr2.sh.
47629         (Depends): Remove freadahead.
47630         (TESTS): Add test-freadptr2.sh.
47631         (check_PROGRAMS): Add test-freadptr2.
47632
47633 2008-03-09  Bruno Haible  <bruno@clisp.org>
47634
47635         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47636         Report and solution by Simon Josefsson.
47637
47638 2008-03-06  Bruno Haible  <bruno@clisp.org>
47639
47640         Make fflush after ungetc work on BSD platforms.
47641         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47642         * tests/test-fflush2.c: New file.
47643         * tests/test-fflush2.sh: New file.
47644         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47645         tests/test-fflush2.c.
47646         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47647         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47648
47649 2008-03-06  Eric Blake  <ebb9@byu.net>
47650
47651         Likewise for ftello.
47652         * modules/ftello (Dependencies): Add extensions.
47653         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47654
47655 2008-03-06  Bruno Haible  <bruno@clisp.org>
47656
47657         * modules/fseeko (Dependencies): Add extensions.
47658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47659         Needed on glibc systems.
47660
47661 2008-03-06  Bruno Haible  <bruno@clisp.org>
47662
47663         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47664         email address.
47665         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47666
47667 2008-03-06  Bruno Haible  <bruno@clisp.org>
47668
47669         * users.txt: Add libgnupdf.
47670
47671 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47672
47673         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47674         (Header File Substitutes, Function Substitutes,
47675         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47676         (Build robot for gnulib): Fix typo.
47677
47678 2008-03-06  Bruno Haible  <bruno@clisp.org>
47679
47680         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47681         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47682
47683 2008-03-06  Bruno Haible  <bruno@clisp.org>
47684
47685         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47686         * doc/gnulib.texi: Include it.
47687
47688 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47689
47690         * modules/func (License): Change license to unlimited; there was
47691         no LGPL parts in the module anyway.
47692
47693 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47694
47695         * modules/__func__: Renamed to modules/func.
47696         * modules/__func__-tests: Renamed to modules/func-tests.
47697         * tests/test-__func__.c: Renamed to tests/test-func.c.
47698         * m4/__func__.m4: Renamed to m4/func.m4.
47699         * doc/gnulib.texi (__func__): Section renamed to func.
47700         Suggested by Eric Blake <ebb9@byu.net>.
47701
47702 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47703
47704         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47705         about __func__.  Make example self-contained.  Suggested by Eric
47706         Blake <ebb9@byu.net>.
47707
47708         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47709         Suggested by Eric Blake <ebb9@byu.net>.
47710
47711 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47712
47713         * modules/__func__: New file.
47714         * modules/__func__-tests: New file.
47715         * tests/test-__func__.c: New file.
47716         * m4/__func__.m4: New file.
47717         * doc/gnulib.texi (__func__): Document __func__ module.
47718
47719 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47720
47721         * modules/byteswap (License): Re-license as LGPLv2+.
47722
47723 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47724
47725         * doc/Makefile: Add pdf target.
47726
47727 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47728
47729         * modules/inline (License): Use 'unlimited', since there are only
47730         *.m4 files in this module.
47731
47732 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47733             Bruno Haible  <bruno@clisp.org>
47734
47735         Add support for HP C 7.1 on OpenVMS 8.3.
47736         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47737
47738 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47739
47740         Update VMS specifics.
47741         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47742
47743 2008-03-02  Jim Meyering  <meyering@redhat.com>
47744
47745         Remove the last dependency on the "free" module.
47746         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47747         Reported by Bob Proulx.
47748
47749         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47750
47751         Remove useless "if" tests before free.  Deprecate "free" module.
47752         * doc/posix-functions/free.texi: Mention that this
47753         module is no longer useful.
47754         * modules/free (Notice): Say this module is obsolete.
47755         * modules/readutmp (Depends-on): Remove free.
47756         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47757         * lib/putenv.c (putenv): Likewise.
47758         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47759         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47760         * tests/test-c-strcasestr.c (main): Likewise.
47761         * tests/test-c-strstr.c (main): Likewise.
47762         * tests/test-mbscasestr1.c (main): Likewise.
47763         * tests/test-mbscasestr2.c (main): Likewise.
47764         * tests/test-mbsstr1.c (main): Likewise.
47765         * tests/test-mbsstr2.c (main): Likewise.
47766         * tests/test-memmem.c (main): Likewise.
47767         * tests/test-strcasestr.c (main): Likewise.
47768         * tests/test-striconv.c (main): Likewise.
47769         * tests/test-striconveh.c (main): Likewise.
47770         * tests/test-striconveha.c (main): Likewise.
47771         * tests/test-strstr.c (main): Likewise.
47772
47773         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47774
47775         bootstrap: sync from coreutils again
47776         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47777
47778 2008-03-01  Jim Meyering  <meyering@redhat.com>
47779
47780         bootstrap: sync from coreutils
47781         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47782         also when the target doesn't exist.
47783
47784 2008-03-01  Eric Blake  <ebb9@byu.net>
47785
47786         Fix bugs in last patch.
47787         * lib/memchr2.c (memchr2): Fix typo.
47788         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47789         extension.
47790         Reported by Bruce Korb.
47791
47792         New module 'memchr2'.
47793         * modules/memchr2: New file.
47794         * modules/memchr2-tests: Likewise.
47795         * lib/memchr2.h: Likewise.
47796         * lib/memchr2.c: Likewise, based on memchr.c.
47797         * tests/test-memchr2.c: New test.
47798         * MODULES.html.sh (String handling): Add memchr2.
47799
47800 2008-02-29  Bruno Haible  <bruno@clisp.org>
47801
47802         * modules/freadseek-tests: New file.
47803         * tests/test-freadseek.sh: New file.
47804         * tests/test-freadseek.c: New file.
47805
47806         New module 'freadseek'.
47807         * modules/freadseek: New file.
47808         * lib/freadseek.h: New file.
47809         * lib/freadseek.c: New file.
47810         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47811
47812 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47813
47814         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47815         wydawca.
47816
47817         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47818         program_invocation_name and program_invocation_short_name are
47819         present.
47820
47821 2008-02-28  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47824         * tests/test-freadptr.sh: Also test non-seekable stdin.
47825
47826 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47827
47828         * build-aux/bootstrap (source_base, m4_base)
47829         (doc_base, tests_base): New variables.
47830         (gnulib_tool_options): Do not hardcode base directories, use
47831         the above variables instead.
47832
47833 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47834
47835         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47836
47837 2008-02-28  Bruno Haible  <bruno@clisp.org>
47838
47839         * modules/freadptr-tests: New file.
47840         * tests/test-freadptr.sh: New file.
47841         * tests/test-freadptr.c: New file.
47842
47843         New module 'freadptr'.
47844         * modules/freadptr: New file.
47845         * lib/freadptr.h: New file.
47846         * lib/freadptr.c: New file.
47847         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47848
47849 2008-02-26  Karl Berry  <karl@freefriends.org>
47850
47851         Sync from Libtool:
47852         * libltdl/argz.c (argz_add, argz_count): New functions.
47853         * libltdl/argz.in.h: Declare them.
47854         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47855
47856 2008-02-22  Bruno Haible  <bruno@clisp.org>
47857
47858         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47859         is a pointer type.  Needed for HP-UX 10.
47860         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47861         * doc/posix-functions/gmtime_r.texi: Likewise.
47862         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47863
47864 2008-02-24  Bruno Haible  <bruno@clisp.org>
47865
47866         * modules/environ-tests: New file.
47867         * tests/test-environ.c: New file.
47868
47869         New module 'environ'.
47870         * modules/environ: New file.
47871         * lib/unistd.in.h (environ): New declaration.
47872         * m4/environ.m4: New file.
47873         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47874         after use.
47875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47876         HAVE_DECL_ENVIRON.
47877         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47878         HAVE_DECL_ENVIRON.
47879         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47880         wrong claim that 'environ' is missing on some systems.
47881         * modules/execute (Depends-on): Add environ.
47882         * lib/execute.c (environ): Remove fallback declaration.
47883         * modules/pipe (Depends-on): Add environ.
47884         * lib/pipe.c (environ): Remove fallback declaration.
47885         * modules/setenv (Depends-on): Add environ.
47886         * lib/setenv.c (environ): Remove fallback declaration.
47887         * modules/unsetenv (Depends-on): Add environ.
47888         * lib/unsetenv.c (environ): Remove fallback declaration.
47889         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47890         m4/environ.m4.
47891         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47892         (gl_PREREQ_UNSETENV): Likewise.
47893
47894 2008-02-24  Bruno Haible  <bruno@clisp.org>
47895
47896         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47897
47898 2008-02-20  Bob Proulx  <bob@proulx.com>
47899
47900         Enable use of older two part flavor 'git describe'.
47901         * build-aux/git-version-gen: If using the older two part flavor of
47902         git version then recreate the third part now present in the
47903         newer three part flavor of git describe.
47904
47905 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47906
47907         * lib/fts.c (fts_build): Typo correction to comment.
47908
47909 2008-02-17  Bruno Haible  <bruno@clisp.org>
47910
47911         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47912         generating no-op conflicts.
47913
47914 2008-02-17  Bruno Haible  <bruno@clisp.org>
47915
47916         Speed up by 10%.
47917         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47918         result_entries, rather than an index-based loop.
47919
47920 2008-02-17  Bruno Haible  <bruno@clisp.org>
47921
47922         Speed up by 25%.
47923         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47924         'hashcode_cached'.
47925         (entry_create): New function.
47926         (entry_hashcode): Use the cached hashcode if possible.
47927         (read_changelog_file, try_split_merged_entry): Use entry_create.
47928
47929 2008-02-17  Bruno Haible  <bruno@clisp.org>
47930
47931         Speed up from O(n^2) to O(n) for long ChangeLog files.
47932         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47933         (read_changelog_file): Change implementation of entries_reversed list
47934         to rbtreehash.
47935         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47936
47937 2008-02-17  Bruno Haible  <bruno@clisp.org>
47938
47939         New option --split-merged-entry.
47940         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47941         (find_paragraph_end, try_split_merged_entry): New functions.
47942         (long_options): Add option --split-merged-entry.
47943         (usage): Document option --split-merged-entry.
47944         (main): Implement option --split-merged-entry.
47945         Reported by Eric Blake.
47946
47947 2008-02-17  Bruno Haible  <bruno@clisp.org>
47948
47949         * lib/git-merge-changelog.c: Include c-strstr.h.
47950         (main): Support the "git pull --rebase" situation.
47951         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47952         Reported by Eric Blake.
47953
47954 2008-02-16  Eric Blake  <ebb9@byu.net>
47955
47956         Avoid doubling \ in common case of "c-maybe" quoting style.
47957         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47958         eliding outer quotes.
47959         * lib/quotearg.h: Document this.
47960         * tests/test-quotearg.c (result_strings, inputs, results_g)
47961         (flag_results, locale_results): Test it by adding a new string to
47962         each test group.
47963         (compare_strings): Test new string.
47964
47965 2008-02-13  Eric Blake  <ebb9@byu.net>
47966
47967         Avoid trigraph quoting in default output.
47968         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47969         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47970         unless explicitly requested.
47971         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47972
47973 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47974
47975         Don't rely on signed integer overflowing to negative value.
47976         * lib/getugroups.c (getugroups): Include <limits.h>.
47977         Instead, compare against INT_MAX, and increment only if the test passes.
47978
47979 2008-02-13  Jim Meyering  <meyering@redhat.com>
47980         and Eric Blake  <ebb9@byu.net>
47981
47982         Avoid shadowing warning and compile errors on Linux.
47983         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47984         forwarding macros on Linux.
47985         (dcgettext): Define a stub, for Linux.
47986         (results_g, main): Avoid warnings.
47987
47988 2008-02-12  Eric Blake  <ebb9@byu.net>
47989
47990         Silence warning in last patch.
47991         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47992
47993         Quotearg part 4: add tests, fix c-maybe colon quoting.
47994         * lib/quotearg.h: Improve documentation.
47995         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47996         escapes when adding outer quotes.  When quoting trigraphs, use
47997         valid C notation.  When quoting NUL, omit extra characters if next
47998         character is not digit.  Alter prototype.
47999         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48000         callers.
48001         * modules/quotearg-tests: New module.
48002         * tests/test-quotearg.c: New test.
48003
48004 2008-02-07  Eric Blake  <ebb9@byu.net>
48005
48006         Quotearg part 3: add flag to control outer quote elision.
48007         * lib/quotearg.h (c_maybe_quoting_style): New style.
48008         (enum quoting_flags): Better documentation of flags.
48009         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48010         c-maybe style.
48011         (quotearg_buffer_restyled): Handle new flag to elide outer
48012         quotes.
48013
48014         Quotearg part 2: add flag that can control NUL elision.
48015         * lib/quotearg.h (set_quoting_flags): New prototype.
48016         * lib/quotearg.c (struct quoting_options): Add flag field.
48017         (set_quoting_flags): New function.
48018         (quotearg_buffer_restyled): Add flags parameter.
48019         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48020         (quotearg_n_options): Set the flag, since length cannot be
48021         returned.
48022         (quoting_options_from_style): Default flags correctly.
48023
48024         Quotearg part 1: more wrappers, restore quotearg_char state.
48025         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48026         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48027         (quotearg_colon_mem): New wrappers.
48028         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48029         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48030         functions.
48031         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48032         (quotearg_colon_mem): New functions.
48033
48034 2008-02-11  Bruno Haible  <bruno@clisp.org>
48035
48036         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48037         library in the current directory: it does not work with parallel make.
48038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48039
48040 2008-02-11  Bruno Haible  <bruno@clisp.org>
48041
48042         * .gitattributes: New file.
48043
48044 2008-02-11  Jim Meyering  <meyering@redhat.com>
48045
48046         useless-if-before-free: Fix reversed exit values.
48047         * build-aux/useless-if-before-free: Use correct values
48048         for EXIT_MATCH and EXIT_NO_MATCH.
48049
48050         * build-aux/useless-if-before-free: Close stdout carefully.
48051
48052 2008-02-10  Bruno Haible  <bruno@clisp.org>
48053
48054         New module 'git-merge-changelog'.
48055         * modules/git-merge-changelog: New file.
48056         * lib/git-merge-changelog.c: New file.
48057
48058 2008-02-10  Jim Meyering  <meyering@redhat.com>
48059
48060         useless-if-before-free: New option: --list (-l).
48061
48062         useless-if-before-free: Don't exit immediately upon open failure.
48063         * build-aux/useless-if-before-free: Exit 2 for errors.
48064         Upon failure to open a file, don't exit immediately.
48065         Rather, just warn and continue with any remaining files.
48066
48067 2008-02-10  Bruno Haible  <bruno@clisp.org>
48068
48069         New abstract list operation 'node_set_value'.
48070         * lib/gl_list.h (gl_list_node_set_value): New function.
48071         (struct gl_list_implementation): New field node_set_value.
48072         * lib/gl_list.c (gl_list_node_set_value): New function.
48073         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48074         (gl_array_list_implementation): Update.
48075         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48076         (gl_carray_list_implementation): Update.
48077         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48078         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48079         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48080         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48081         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48082         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48083         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48084         Update.
48085         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48086         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48087         (gl_sublist_list_implementation): Update.
48088
48089 2008-02-10  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48092         Needed when ELEMENT is #defined to 'some_type *'.
48093
48094 2008-02-10  Jim Meyering  <meyering@redhat.com>
48095
48096         New script and module: useless-if-before-free
48097         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48098         * build-aux/useless-if-before-free: New file.
48099         * modules/useless-if-before-free: New file.
48100
48101         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48102
48103         xstrtol_error: Fix typo.
48104         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48105         s/exit_failure/exit_status/.
48106
48107 2008-02-09  Jim Meyering  <meyering@redhat.com>
48108
48109         New script and module: gitlog-to-changelog
48110         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48111         * modules/gitlog-to-changelog: New file.
48112         * build-aux/gitlog-to-changelog: New file.
48113
48114 2008-02-08  Jim Meyering  <meyering@redhat.com>
48115
48116         Avoid two "parameter unused" warnings.
48117         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48118         Mark "st" as used.
48119
48120         Use "git COMMAND", not "git-COMMAND".
48121         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48122         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48123         * build-aux/git-version-gen: Use "git status", not "git-status".
48124
48125 2008-02-07  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48128         Avoids a crash on Windows Vista.
48129         Reported by Adam Strzelecki <ono@java.pl> via
48130         Simon Josefsson <simon@josefsson.org>.
48131
48132 2008-02-06  Bruno Haible  <bruno@clisp.org>
48133
48134         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48135         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48136         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48138         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48140         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48141         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48149         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48150         left-adjust flag.
48151         * tests/test-snprintf-posix.h (test_function): Likewise.
48152         * tests/test-sprintf-posix.h (test_function): Likewise.
48153         * tests/test-vasprintf-posix.c (test_function): Likewise.
48154         * doc/posix-functions/fprintf.texi: Update.
48155         * doc/posix-functions/printf.texi: Update.
48156         * doc/posix-functions/snprintf.texi: Update.
48157         * doc/posix-functions/sprintf.texi: Update.
48158         * doc/posix-functions/vfprintf.texi: Update.
48159         * doc/posix-functions/vprintf.texi: Update.
48160         * doc/posix-functions/vsnprintf.texi: Update.
48161         * doc/posix-functions/vsprintf.texi: Update.
48162         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48163
48164 2008-02-06  Bruno Haible  <bruno@clisp.org>
48165
48166         Fix bug introduced on 2008-01-26.
48167         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48168
48169 2008-02-06  Bruno Haible  <bruno@clisp.org>
48170
48171         Fix bug introduced on 2007-06-10.
48172         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48173         !NEED_PRINTF_FLAG_ZERO.
48174
48175 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48176
48177         getloadavg: use libperfstat on AIX5
48178         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48179
48180 2008-02-03  Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/diffseq.h: Add comments about required #includes.
48183         Reported by Michael Biggs <gnulib@doubleplum.net>.
48184
48185 2008-02-01  Bruno Haible  <bruno@clisp.org>
48186
48187         * users.txt: Add gnuit.
48188
48189 2008-01-31  Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/md4.c (set_uint32): Mark as inline.
48192         * lib/md5.c (set_uint32): Likewise.
48193         * lib/sha1.c (set_uint32): Likewise.
48194         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48195         * m4/md5.m4 (gl_MD5): Likewise.
48196         * m4/sha1.m4 (gl_SHA1): Likewise.
48197
48198 2008-01-31  Jim Meyering  <meyering@redhat.com>
48199
48200         Use "sizeof VAR", rather than a literal "4".
48201         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48202         * lib/md4.c (md4_read_ctx): Likewise.
48203         * lib/sha1.c (sha1_read_ctx): Likewise.
48204
48205 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48206
48207         * tests/test-sha1.c: New file, based on test-md5.c.
48208
48209         * modules/crypto/sha1-tests: New file.
48210
48211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48212
48213         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48214
48215 2008-01-31  Jim Meyering  <meyering@redhat.com>
48216
48217         Prefer "sizeof v" over the equivalent "4".
48218         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48219         * lib/md5.c (set_uint32): Likewise.
48220         * lib/sha1.c (set_uint32): Likewise.
48221
48222 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48223
48224         * lib/sha1.c (set_uint32): Mark function as static.
48225
48226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48227
48228         md2: clarify comments to say that alignment is not required.
48229         * lib/md2.h: Remove warning about alignment in comment.
48230         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48231         never been required.
48232
48233 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48234
48235         md4: adapt alignment constraint fix from sha1.
48236         * lib/md4.c (set_uint32): New function, from sha1.c
48237         (md4_read_ctx): Use it.
48238         (md4_finish_ctx): Doc fix.
48239         * lib/md4.h: Doc fix.
48240
48241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48242
48243         md5: adapt alignment constraint fix from sha1.
48244         * lib/md5.c (set_uint32): New function, from sha1.c
48245         (md5_read_ctx): Use it.
48246         (md5_finish_ctx): Doc fix.
48247         * lib/md5.h: Doc fix.
48248
48249 2008-01-30  Peter Palfrader  <weasel@debian.org>
48250
48251         sha1: remove the result buffer alignment constraint
48252         * lib/sha1.c (set_uint32): New function.
48253         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48254         constraint.
48255         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48256         * lib/sha1.h: Likewise.
48257
48258 2008-01-30  Andreas Schwab  <schwab@suse.de>
48259             Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48262         correct definition of LDBL_MIN_EXP.
48263
48264 2008-01-30  Karl Berry  <karl@gnu.org>
48265
48266         * config/srclist-update: try to preserve x bit on updates.
48267         * config/srclistvars.sh: update for karl.
48268
48269 2008-01-29  Jim Meyering  <meyering@redhat.com>
48270
48271         vasnprintf.c: Avoid warning about unused label
48272         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48273         "overflow" label definition and associated code with the
48274         same cpp condition that guards the sole use of that label.
48275
48276 2008-01-26  Bruno Haible  <bruno@clisp.org>
48277
48278         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48279         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48280         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48281         * lib/isnanl-nolibm.h (isnanl): Likewise.
48282         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48283
48284 2008-01-26  Bruno Haible  <bruno@clisp.org>
48285
48286         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48287         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48288
48289 2008-01-26  Bruno Haible  <bruno@clisp.org>
48290
48291         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48292         GCC >= 4.0 built-in.
48293         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48294
48295 2008-01-26  Bruno Haible  <bruno@clisp.org>
48296
48297         Rename isnan, applicable to 'double' only, to isnand.
48298         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48299         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48300         (configure.ac): Update.
48301         (Include): Replace "isnan.h" with "isnand.h".
48302         * m4/isnand.m4: Renamed from m4/isnan.m4.
48303         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48304         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48305         instead of isnan.c.
48306         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48307         instead of HAVE_ISNAN_IN_LIBC.
48308         (isnand): Renamed from isnan.
48309         * lib/isnand.c: New file.
48310         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48311         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48312         (Makefile.am): Update.
48313         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48314         Include isnand.h instead of isnan.h.
48315         (main): Test isnand instead of isnan.
48316         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48317         isnan-nolibm.
48318         * modules/frexp (Depends-on): Likewise.
48319         * modules/frexp-tests (Depends-on): Likewise.
48320         * modules/frexp-nolibm (Depends-on): Likewise.
48321         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48322         * modules/isfinite (Depends-on): Likewise.
48323         * modules/round-tests (Depends-on): Likewise.
48324         * modules/signbit (Depends-on): Likewise.
48325         * modules/signbit-tests (Depends-on): Likewise.
48326         * modules/snprintf-posix (Depends-on): Likewise.
48327         * modules/sprintf-posix (Depends-on): Likewise.
48328         * modules/trunc-tests (Depends-on): Likewise.
48329         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48330         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48331         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48332         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48333         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48334         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48335         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48336         * modules/vasnprintf-posix (Depends-on): Likewise.
48337         * modules/vasprintf-posix (Depends-on): Likewise.
48338         * modules/vfprintf-posix (Depends-on): Likewise.
48339         * modules/vsnprintf-posix (Depends-on): Likewise.
48340         * modules/vsprintf-posix (Depends-on): Likewise.
48341         * lib/frexp.c: Include isnand.h instead of isnan.h.
48342         (ISNAN): Set to isnand instead of isnan.
48343         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48344         (gl_isfinited): Use isnand instead of isnan.
48345         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48346         (gl_signbitd): Use isnand instead of isnan.
48347         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48348         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48349         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48350         (main): Use isnand instead of isnan.
48351         * tests/test-round1.c: Include isnand.h.
48352         (main): Use isnand instead of isnan.
48353         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48354         (ISNAN): Set to isnand instead of isnan.
48355         * tests/test-trunc1.c: Include isnand.h.
48356         (main): Use isnand instead of isnan.
48357         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48358         (equal): Use isnand instead of isnan.
48359         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48360         isnand-nolibm.
48361         * NEWS: Mention the change.
48362
48363 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48364             Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48367         the GCC builtins for signbits are present and set
48368         REPLACE_SIGNBIT_USING_GCC if so.
48369         * lib/math.in.h (signbit): Define using GCC builtins if
48370         REPLACE_SIGNBIT_USING_GCC is set.
48371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48372         REPLACE_SIGNBIT_USING_GCC.
48373         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48374
48375 2008-01-25  Jim Meyering  <meyering@redhat.com>
48376
48377         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48378         * lib/poll.c: Include <config.h>, not "config.h".
48379         * tests/test-getaddrinfo.c: Likewise.
48380
48381 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48382
48383         * modules/sockets-tests: New file.
48384
48385 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48386
48387         * modules/sockets: New module, can be used to call WSA_Startup and
48388         WSA_Cleanup when needed.
48389
48390         * lib/sockets.h, lib/sockets.c: New files.
48391
48392         * m4/sockets.m4: New file.
48393
48394         * tests/test-sockets.c: New file.
48395
48396 2008-01-19  Bruno Haible  <bruno@clisp.org>
48397
48398         * doc/posix-headers: Renamed from doc/headers.
48399         * doc/posix-functions: Renamed from doc/functions.
48400         * doc/gnulib.texi: Update.
48401
48402 2008-01-19  Bruno Haible  <bruno@clisp.org>
48403
48404         * doc/glibc-functions/strcasestr.texi: Include contents of
48405         doc/functions/strcasestr.texi, fixing the list of platforms.
48406         * doc/functions/strcasestr.texi: Remove file.
48407
48408 2008-01-19  Bruno Haible  <bruno@clisp.org>
48409
48410         * doc/glibc-functions/memmem.texi: Include contents of
48411         doc/functions/memmem.texi.
48412         * doc/functions/memmem.texi: Remove file.
48413
48414 2008-01-18  Bruno Haible  <bruno@clisp.org>
48415
48416         * doc/glibc-functions/*.texi: New files.
48417         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48418         to use the new files.
48419
48420 2008-01-17  Bruno Haible  <bruno@clisp.org>
48421
48422         * tests/test-gethostname.c (main): Fix printf statement.
48423
48424 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48425
48426         * modules/gethostname-tests: New file.
48427
48428         * tests/test-gethostname.c: New file.
48429
48430 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48431
48432         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48433         used by the UNAME case.  Reported by Bruno Haible
48434         <bruno@clisp.org>.
48435
48436 2008-01-17  Eric Blake  <ebb9@byu.net>
48437
48438         Convert c-strcasestr to be more efficient.
48439         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48440         (Depends-on): Add c-strcase, remove malloca, strnlen.
48441         * tests/test-c-strcasestr.c (main): Enhance test.
48442         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48443
48444 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48445
48446         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48447         Use it in creating po/Makevars.
48448
48449 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48450
48451         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48452         Applications that requires it should initialize libgcrypt
48453         manually.
48454
48455 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48456
48457         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48458
48459 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48460
48461         Fix problem with getdate on mingw32 reported by Simon Josefsson
48462         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48463         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48464         tzname", when deciding whether to declare tzname.
48465         * lib/strftime.c (tzname): Likewise.
48466
48467 2008-01-15  Bruno Haible  <bruno@clisp.org>
48468
48469         Work around a MacOS X 10.5 bug in frexpl().
48470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48471         * doc/functions/frexpl.texi: Document the bug.
48472         Reported by Elias Pipping <pipping@gentoo.org>.
48473
48474 2008-01-14  Eric Blake  <ebb9@byu.net>
48475
48476         Touch up previous patch.
48477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48478         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48479
48480         Convert strcasestr module to use Two-Way algorithm.
48481         * modules/strcasestr-simple: New module, based on the old
48482         strcasestr, but with Two-Way rather than KMP.
48483         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48484         * lib/string.in.h (rpl_strcasestr): Declare.
48485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48486         performance.
48487         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48488         * modules/string (Makefile.am): Support strcasestr.
48489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48490         * modules/strcasestr-tests (Depends-on): Check for alarm.
48491         * tests/test-strcasestr.c: Augment test.
48492         * lib/str-two-way.h: Clean up stray macro.
48493         * NEWS: Document new module.
48494         * MODULES.html.sh (string handling): Likewise.
48495         * doc/functions/strcasestr.texi: New file.
48496         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48497         here, since it is not a POSIX function.
48498
48499 2008-01-14  Colin Watson  <cjwatson@debian.org>
48500             Bruno Haible  <bruno@clisp.org>
48501
48502         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48503         works fine; if not, set REPLACE_STRSIGNAL.
48504         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48506         REPLACE_STRSIGNAL.
48507         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48508         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48509         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48510
48511 2008-01-14  Bruno Haible  <bruno@clisp.org>
48512
48513         * modules/strsignal (Include): Change to <string.h>.
48514
48515 2008-01-14  Colin Watson  <cjwatson@debian.org>
48516
48517         * modules/argp (Notice): Add a notice recommending to change
48518         XGETTEXT_OPTIONS.
48519         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48520
48521 2008-01-13  Colin Watson  <cjwatson@debian.org>
48522
48523         * modules/strsignal-tests: New file.
48524         * tests/test-strsignal.c: New file.
48525
48526         * lib/strsignal.c: New file, from glibc with modifications.
48527         * lib/siglist.h: New file, from glibc with modifications.
48528         * lib/string.in.h (strsignal): New declaration.
48529         * m4/strsignal.m4: New file.
48530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48531         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48532         * modules/strsignal: New file.
48533         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48534         HAVE_DECL_STRSIGNAL.
48535
48536 2008-01-13  Bruno Haible  <bruno@clisp.org>
48537
48538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48539         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48542
48543 2008-01-13  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48546         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48547         * lib/argp.h (__attribute__): Likewise.
48548         * lib/c-stack.c (__attribute__): Likewise.
48549         * lib/error.h (__attribute__): Likewise.
48550         * lib/fts.c (__attribute__): Likewise.
48551         * lib/openat.h (__attribute__): Likewise.
48552         * lib/stdio.in.h (__attribute__): Likewise.
48553         * lib/string.in.h (__attribute__): Likewise.
48554         * lib/utimens.c (__attribute__): Likewise.
48555         * lib/vasnprintf.h (__attribute__): Likewise.
48556         * lib/xalloc.h (__attribute__): Likewise.
48557         * lib/xprintf.h (__attribute__): Likewise.
48558         * lib/xstrtol.h (__attribute__): Likewise.
48559         * lib/xvasprintf.h (__attribute__): Likewise.
48560
48561 2008-01-12  Bruno Haible  <bruno@clisp.org>
48562
48563         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48564         * doc/glibc-headers/a.out.texi: New file.
48565         * doc/glibc-headers/aliases.texi: New file.
48566         * doc/glibc-headers/alloca.texi: New file.
48567         * doc/glibc-headers/ar.texi: New file.
48568         * doc/glibc-headers/argp.texi: New file.
48569         * doc/glibc-headers/argz.texi: New file.
48570         * doc/glibc-headers/byteswap.texi: New file.
48571         * doc/glibc-headers/crypt.texi: New file.
48572         * doc/glibc-headers/endian.texi: New file.
48573         * doc/glibc-headers/envz.texi: New file.
48574         * doc/glibc-headers/err.texi: New file.
48575         * doc/glibc-headers/error.texi: New file.
48576         * doc/glibc-headers/execinfo.texi: New file.
48577         * doc/glibc-headers/fpu_control.texi: New file.
48578         * doc/glibc-headers/fstab.texi: New file.
48579         * doc/glibc-headers/fts.texi: New file.
48580         * doc/glibc-headers/getopt.texi: New file.
48581         * doc/glibc-headers/ieee754.texi: New file.
48582         * doc/glibc-headers/ifaddrs.texi: New file.
48583         * doc/glibc-headers/libintl.texi: New file.
48584         * doc/glibc-headers/mcheck.texi: New file.
48585         * doc/glibc-headers/mntent.texi: New file.
48586         * doc/glibc-headers/obstack.texi: New file.
48587         * doc/glibc-headers/paths.texi: New file.
48588         * doc/glibc-headers/printf.texi: New file.
48589         * doc/glibc-headers/pty.texi: New file.
48590         * doc/glibc-headers/resolv.texi: New file.
48591         * doc/glibc-headers/shadow.texi: New file.
48592         * doc/glibc-headers/sysexits.texi: New file.
48593         * doc/glibc-headers/ttyent.texi: New file.
48594
48595 2008-01-12  Jim Meyering  <meyering@redhat.com>
48596
48597         announce-gen: emit Gnulib's git-based version string.
48598         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48599         New option --gnulib-version=V, where V is expected to be
48600         the output of running git describe in the gnulib directory.
48601         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48602         not useful, and plan to stop publishing an xdelta file with each
48603         coreutils release.
48604
48605         * build-aux/announce-gen: Also check for lzma-compressed files.
48606
48607 2008-01-11  Bruno Haible  <bruno@clisp.org>
48608
48609         * tests/test-memmem.c (main): Increase maximum allowed time.
48610         * tests/test-strstr.c (main): Likewise.
48611
48612 2008-01-11  Bruno Haible  <bruno@clisp.org>
48613
48614         * doc/functions/memmem.texi: Add more precisions about platforms.
48615         * doc/functions/strstr.texi: Likewise.
48616
48617 2008-01-10  Eric Blake  <ebb9@byu.net>
48618
48619         * m4/strstr.m4: Delete cruft from copy-n-paste.
48620         Reported by Bruno Haible.
48621
48622 2008-01-10  Bruno Haible  <bruno@clisp.org>
48623
48624         Make c-strstr rely on strstr.
48625         * lib/c-strstr.c: Don't include str-kmp.h.
48626         (c_strstr): Define in terms of strstr.
48627         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48628         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48629
48630 2008-01-10  Bruno Haible  <bruno@clisp.org>
48631
48632         * doc/gnulib.texi (String Functions in C Locale): New section.
48633         * doc/c-ctype.texi: New file.
48634         * doc/c-strcase.texi: New file.
48635         * doc/c-strcaseeq.texi: New file.
48636         * doc/c-strcasestr.texi: New file.
48637         * doc/c-strstr.texi: New file.
48638         * doc/c-strtod.texi: New file.
48639         * doc/c-strtold.texi: New file.
48640
48641 2008-01-10  Eric Blake  <ebb9@byu.net>
48642
48643         * lib/relocatable.h: Fix a comment.
48644
48645 2008-01-10  Eric Blake  <ebb9@byu.net>
48646
48647         Share two-way algorithm.
48648         * lib/str-two-way.h: New file, merged from...
48649         * lib/memmem.c: ...here...
48650         * lib/strstr.c: ...and here.
48651         * modules/memmem (Files): Use it.
48652         * modules/strstr (Files): Likewise.
48653
48654         Avoid quadratic strstr implementations.
48655         * lib/strstr.c: New file.
48656         * m4/strstr.m4: Likewise.
48657         * modules/strstr: Likewise.
48658         * modules/strstr-tests: Likewise.
48659         * tests/test-strstr.c: Likewise.
48660         * lib/string.in.h (rpl_strstr): Declare.
48661         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48663         * modules/string (Makefile.am): Likewise.
48664         * MODULES.html.sh (string handling): Mention new module.
48665         * doc/functions/strstr.texi (strstr): Document the bug.
48666
48667 2008-01-10  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/relocatable.h (relocate): State whether result is freshly
48670         allocated or not.
48671         * lib/relocatable.c (relocate): Return a freshly allocated string
48672         instead of a pointer to a privately held string.
48673         Reported by Sylvain Beucler <beuc@gnu.org>.
48674
48675 2008-01-10  Colin Watson  <cjwatson@debian.org>
48676
48677         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48678         s/S_ISNLK/S_ISLNK/.
48679
48680 2008-01-09  Bruno Haible  <bruno@clisp.org>
48681
48682         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48683         and other files.
48684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48685         if it's only a guess.
48686         * modules/memmem: Simplify by depending on memmem-simple.
48687
48688 2008-01-09  Bruno Haible  <bruno@clisp.org>
48689
48690         Work around OpenBSD 4.0 tdelete() bug.
48691         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48692         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48693         macros and don't redefine the enum values.
48694         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48695         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48696         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48697
48698 2008-01-09  Bruno Haible  <bruno@clisp.org>
48699
48700         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48701         (main): Don't perform the tests if setlocale did not install a UTF-8
48702         locale. Needed on OpenBSD 4.0.
48703         * modules/wcwidth-tests (Depends-on): Add localcharset.
48704
48705 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48708         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48709         * NEWS: announce this.
48710         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48711
48712 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48713         and Eric Blake  <ebb9@byu.net>
48714
48715         Add memmem-simple module.
48716         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48717         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48718         * modules/memmem-simple: New file.
48719         * modules/memmem (Description): Tweak.
48720         * MODULES.html.sh (string handling): Mention new module.
48721         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48722         addressed by memmem-simple.
48723         * NEWS: Document the difference.
48724
48725 2008-01-09  Eric Blake  <ebb9@byu.net>
48726
48727         Give gcc some memmem optimization hints.
48728         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48729         (strcasestr): Declare as pure.
48730         * modules/memmem (Maintainer): Claim my implementation.
48731
48732 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48733
48734         Support AIX 6.1 and higher.
48735         * build-aux/config.libpath: Likewise.
48736         * build-aux/config.rpath: Likewise.
48737
48738 2008-01-08  Jim Meyering  <meyering@redhat.com>
48739             Bruno Haible  <bruno@clisp.org>
48740
48741         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48742         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48743         Reported by Peter Fales in
48744         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48745
48746 2008-01-08  Bruno Haible  <bruno@clisp.org>
48747
48748         * modules/unictype/category-of (Depends-on): Add
48749         unictype/category-none.
48750         * modules/unictype/category-and-tests (Depends-on): Add
48751         unictype/category-{L,N,Lu,Nd}.
48752         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48753         * modules/unictype/category-or-tests (Depends-on): Add
48754         unictype/category-{L,N}.
48755         * modules/unictype/category-name-tests (Depends-on): Add
48756         unictype/category-{Z,Nl}.
48757         Reported by Simon Josefsson.
48758
48759 2008-01-08  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48762         convention better.
48763         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48764         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48765         Reported by Peter Miller <millerp@canb.auug.org.au>.
48766
48767 2008-01-08  Eric Blake  <ebb9@byu.net>
48768
48769         Rewrite memmem to guarantee linear complexity without malloc.
48770         * lib/memmem.c (memmem): Use Two-Way rather than
48771         Knuth-Morris-Pratt, to allow O(1) space usage.
48772         (critical_factorization, two_way_short_needle)
48773         (two_way_long_needle): New functions.
48774         (knuth_morris_pratt): Delete.
48775         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48776         Add stdint.
48777         * tests/test-memmem.c (main): Add tests for periodic needle and
48778         sublinear performance.
48779         * doc/functions/memmem.texi (memmem): Document other deficiencies
48780         in cygwin and older glibc.
48781
48782 2008-01-08  Bruno Haible  <bruno@clisp.org>
48783
48784         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48785         augmentation.
48786
48787 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48788
48789         Add a configure time option: --disable-acl.
48790         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48791         AC_ARG_ENABLE(acl).
48792
48793 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48794
48795         * tests/test-localename.c: Don't include obsolete "setenv.h".
48796
48797         * modules/localename-tests (Depends-on): Need unsetenv.
48798
48799 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48800
48801         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48802
48803 2008-01-06  Colin Watson  <cjwatson@debian.org>
48804
48805         * users.txt: Add man-db.
48806
48807 2008-01-07  Bruno Haible  <bruno@clisp.org>
48808
48809         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48810         previous section name.
48811
48812 2008-01-07  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/progname.c (set_program_name): Don't strip off a leading
48815         "lt-" prefix outside a .libs directory.
48816         Suggested by Paul Eggert.
48817
48818 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48819             Bruno Haible  <bruno@clisp.org>
48820
48821         Improve memory cleanup in 'relocatable' module.
48822         * lib/relocatable.h (compute_curr_prefix): Change return type to
48823         'char *'.
48824         * lib/relocatable.c (compute_curr_prefix): Change return type to
48825         'char *'. Free curr_installdir after use.
48826         (relocate): Free curr_prefix_better after use.
48827         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48828
48829 2008-01-01  Bruno Haible  <bruno@clisp.org>
48830
48831         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48832         failure on older glibc systems.
48833         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48834
48835 2008-01-05  Eric Blake  <ebb9@byu.net>
48836
48837         Avoid quadratic system memmem.
48838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48839         Reported by Ralf Wildenhues.
48840
48841         Fix memmem test for mingw.
48842         * modules/memmem-tests (configure.ac): Check for alarm.
48843         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48844         it.
48845         * doc/functions/memmem.texi: New file.
48846         * doc/gnulib.texi (Function Substitutes): Add memmem.
48847         Reported by Bruno Haible.
48848
48849 2008-01-04  Bruno Haible  <bruno@clisp.org>
48850
48851         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48852         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48853         gl_HEADER_STRING_H_DEFAULTS.
48854
48855 2008-01-04  Eric Blake  <ebb9@byu.net>
48856
48857         Shorten duration of memmem test.
48858         * tests/test-memmem.c (main): Use alarm to declare failure if test
48859         is taking too long.
48860         Reported by Ralf Wildenhues.
48861
48862 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48863
48864         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48865         string, needed by strerror.
48866
48867 2008-01-03  Colin Watson  <cjwatson@debian.org>
48868             Bruno Haible  <bruno@clisp.org>
48869
48870         * doc/gnulib-tool.texi (Localization): New section.
48871
48872 2008-01-02  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48875         variables to 'unsigned char *' type.
48876         Reported by Paul Eggert.
48877
48878 2008-01-02  Jim Meyering  <jim@meyering.net>
48879
48880         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48881
48882 2007-12-31  Jim Meyering  <jim@meyering.net>
48883
48884         Avoid use of private FTS type name.
48885         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48886
48887 2007-12-30  Karl Berry  <karl@gnu.org>
48888
48889         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48890         work around defect in Texinfo and/or the standalone Info browser.
48891
48892 2007-12-30  Bruno Haible  <bruno@clisp.org>
48893
48894         Unify 5 copies of the KMP code.
48895         * lib/str-kmp.h: New file.
48896         * lib/c-strcasestr.c: Include str-kmp.h.
48897         (knuth_morris_pratt): Remove function.
48898         (c_strcasestr): Update.
48899         * lib/c-strstr.c: Include str-kmp.h.
48900         (knuth_morris_pratt): Remove function.
48901         (c_strcasestr): Update.
48902         * lib/mbscasestr.c: Include str-kmp.h.
48903         (knuth_morris_pratt_unibyte): Remove function.
48904         * lib/mbsstr.c: Include str-kmp.h.
48905         (knuth_morris_pratt_unibyte): Remove function.
48906         * lib/strcasestr.c: Include str-kmp.h.
48907         (knuth_morris_pratt): Remove function.
48908         (strcasestr): Update.
48909         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48910         * modules/c-strstr (Files): Likewise.
48911         * modules/mbscasestr (Files): Likewise.
48912         * modules/mbsstr (Files): Likewise.
48913         * modules/strcasestr (Files): Likewise.
48914         Suggested by Paul Eggert.
48915
48916 2007-12-30  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48919         defined.
48920
48921 2007-12-30  Bruno Haible  <bruno@clisp.org>
48922
48923         * lib/xmalloca.h: Include xalloc.h.
48924         (xnmalloca): New macro.
48925
48926 2007-12-30  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/malloca.h (nmalloca): New macro.
48929         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48930         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48931         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48932         knuth_morris_pratt_multibyte): Likewise.
48933         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48934         knuth_morris_pratt_multibyte): Likewise.
48935         * lib/memmem.c (knuth_morris_pratt): Likewise.
48936         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48937
48938 2007-12-25  Bruno Haible  <bruno@clisp.org>
48939
48940         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48941         * lib/glob.c: Don't include openat.h.
48942         (link_exists2_p): Add back the code that deals with the
48943         !GLOB_ALTDIRFUNC case.
48944         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48945         let it do the filename concatenation.
48946         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48947         * modules/glob (Depends-on): Remove openat.
48948
48949 2007-12-31  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/dirfd (License): Change to LGPLv2+.
48952         Approved by Jim Meyering.
48953
48954 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48955
48956         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48957         when multiplying M by sizeof (size_t).
48958
48959 2007-12-10  Martin Lambers  <marlam@marlam.de>
48960
48961         Override getpagesize on mingw.
48962         * lib/getpagesize.c: New file.
48963         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48964         * modules/getpagesize (Files): Add lib/getpagesize.c.
48965         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48967         REPLACE_GETPAGESIZE.
48968         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48969
48970 2007-12-25  Bruno Haible  <bruno@clisp.org>
48971
48972         * modules/localcharset (Notice): New field.
48973         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48974         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48975
48976 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48977             Bruno Haible  <bruno@clisp.org>
48978
48979         Avoid using the syntax symbol() in formatted documentation.
48980         * MODULES.html.sh (func_module): When replacing symbol() with a
48981         hyperlink, remove the parentheses. Show an error if some remain.
48982         Recognize and render the '...' syntax.
48983         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48984         Rework. Add paragraph about GCC's inlining.
48985         * doc/alloca.texi: Likewise.
48986         * doc/error.texi: Remove parentheses from symbol reference.
48987         * doc/gnulib-intro.texi: Likewise.
48988         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48989         * modules/fnmatch (Description): Reword to say "the ... function".
48990         * modules/full-read (Description): Likewise.
48991         * modules/full-write (Description): Likewise.
48992         * modules/safe-read (Description): Likewise.
48993         * modules/safe-write (Description): Likewise.
48994         * modules/strchrnul (Description): Likewise.
48995         * modules/trim (Description): Likewise.
48996         * modules/error (Description): Remove parentheses from symbol
48997         references.
48998         * modules/verror (Description): Likewise.
48999         Reported by Karl Berry.
49000
49001 2007-12-25  Bruno Haible  <bruno@clisp.org>
49002
49003         Fixup after 2007-10-16 commit.
49004         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49005
49006 2007-12-24  Bruno Haible  <bruno@clisp.org>
49007
49008         Make --enable-relocatable work with DESTDIR.
49009         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49010         to compute installdir from destprog.
49011         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49012         also set the RELOC_DESTDIR variable.
49013         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49014
49015 2007-12-24  Bruno Haible  <bruno@clisp.org>
49016
49017         Fix link error due to xalloc_die().
49018         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49019         of xreadlink.
49020         * lib/relocwrapper.c: Update comments.
49021         * build-aux/install-reloc: Remove xreadlink.c from file list.
49022         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49023         xreadlink.c.
49024         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49025
49026 2007-12-24  Bruno Haible  <bruno@clisp.org>
49027
49028         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49029         * lib/setenv.h: Remove file.
49030         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49031         lib/setenv.h.
49032         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49033         (Depends-on): Add stdlib.
49034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49035         gl_FUNC_UNSETENV.
49036         (Include): Replace setenv.h with <stdlib.h>.
49037         * modules/unsetenv: New file.
49038         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49039         * lib/unsetenv.c: Include <stdlib.h> first.
49040         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49041         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49042         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49043         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49044         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49045         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49047         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49048         * doc/functions/unsetenv.texi: Update.
49049         * modules/xsetenv (Depends-on): Add unsetenv.
49050         * modules/getdate (Depends-on): Likewise.
49051         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49052         * lib/xsetenv.c: Don't include setenv.h.
49053         * lib/getdate.y: Likewise.
49054         * lib/relocwrapper.c: Likewise.
49055         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49056         (Depends-on): Add stdlib.
49057         * NEWS: Mention the changes.
49058         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49059
49060 2007-12-23  Bruno Haible  <bruno@clisp.org>
49061
49062         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49063         indentation.
49064
49065 2007-12-23  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/c-strcasestr.c: Add more comments.
49068         * lib/c-strstr.c: Likewise.
49069         * lib/mbscasestr.c: Likewise.
49070         * lib/mbsstr.c: Likewise.
49071         * lib/strcasestr.c: Likewise.
49072         * lib/memmem.c: Likewise.
49073
49074 2007-12-23  Bruno Haible  <bruno@clisp.org>
49075
49076         * tests/test-memmem.c: Include <string.h> first.
49077
49078 2007-12-22  Bruno Haible  <bruno@clisp.org>
49079
49080         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49081         the contents of $testsbase.
49082         Reported by Ralf Wildenhues.
49083
49084 2007-12-22  Bruno Haible  <bruno@clisp.org>
49085
49086         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49087         two variables local_ldadd_before, local_ldadd_last.
49088
49089 2007-12-20  Eric Blake  <ebb9@byu.net>
49090
49091         Work around circular library issue when cross-compiling.
49092         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49093         that progname.o does not need to pull in rpl_memcmp.
49094
49095 2007-12-19  Eric Blake  <ebb9@byu.net>
49096
49097         Fix memmem to avoid O(n^2) worst-case complexity.
49098         * lib/memmem.c (knuth_morris_pratt): New function.
49099         (memmem): Use it if first few naive iterations fail.
49100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49101         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49102         * modules/memchr (License): Likewise.
49103         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49104         malloca.
49105         * tests/test-memmem.c: Rewrite, borrowing ideas from
49106         test-mbsstr1.c; the old version wouldn't even compile!
49107         * modules/memmem-tests: New file.
49108         * lib/string.in.h (rpl_memmem): Add declaration.
49109         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49111         REPLACE_MEMMEM.
49112
49113 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49114
49115         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49116         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49117         before any system include files, and undef after them all.  This
49118         should fix a problem on VMS reported by John E. Malmberg in
49119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49120
49121 2007-12-17  Eric Blake  <ebb9@byu.net>
49122
49123         Revert addition of verify, for BSD/OS.
49124         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49125         can't handle large files, for the sake of obsolete platforms.
49126         * modules/fseeko (Depends-on): Remove verify.
49127         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49128         * doc/functions/ftello.texi (ftello): Likewise.
49129         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49130         Reported by Larry Jones.
49131
49132 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49133
49134         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49135         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49136
49137 2007-12-17  Jim Meyering  <meyering@redhat.com>
49138
49139         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49140         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49141         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49142         * modules/getcwd (Depends-on): Add openat.
49143         Reported by Petr Salinger.
49144
49145 2007-12-17  Bruno Haible  <bruno@clisp.org>
49146
49147         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49148         avoid a segmentation fault of the configure test on x86_64 systems.
49149
49150 2007-12-15  Jim Meyering  <meyering@redhat.com>
49151
49152         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49153
49154 2007-12-13  Eric Blake  <ebb9@byu.net>
49155
49156         Another fseek test.
49157         * tests/test-fseek.c (main): Also test ungetc handling.
49158         * tests/test-fseeko.c (main): Likewise.
49159         * modules/fseeko (Depends-on): Add verify.
49160         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49161         large.
49162         Reported by Larry Jones.
49163
49164         Fix fseeko on mingw.
49165         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49166         seek.
49167
49168         Beef up fseek tests.
49169         * tests/test-fseek.c (main): Also test eof handling.
49170         * tests/test-fseeko.c (main): Likewise.
49171         Reported by Larry Jones.
49172
49173 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49174
49175         Fix fseeko on BSD-based platforms.
49176         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49177         successful seek.
49178
49179 2007-12-12  Eric Blake  <ebb9@byu.net>
49180
49181         Allow circular dependency of separate libtests.a
49182         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49183         when use_libtests.
49184
49185 2007-12-11  Eric Blake  <ebb9@byu.net>
49186
49187         Fix bug with -0.0L in previous patch.
49188         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49189         * tests/test-isnan.c (main): Also test on zeroes.
49190         * tests/test-isnanf.c (main): Likewise.
49191         * tests/test-isnanl.h (main): Likewise.
49192
49193         Detect pseudo-denormals on x86 even when cross-compiling.
49194         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49195         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49196         invalid bit patterns that happen to satisfy ==.
49197
49198         Avoid link failures with separate libtests.a.
49199         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49200         last, to satisfy circular dependencies.
49201
49202 2007-12-11  Eric Blake  <ebb9@byu.net>
49203         and Bruno Haible  <bruno@clisp.org>
49204
49205         Fix OpenBSD 4.0 <float.h> handling of long double.
49206         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49207         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49208         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49209
49210 2007-12-11  Jim Meyering  <meyering@redhat.com>
49211
49212         * users.txt: Add libvirt.
49213
49214         Support versions of autoconf prior to 2.59c.
49215         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49216         if it is not already defined.
49217
49218 2007-12-09  Bruno Haible  <bruno@clisp.org>
49219
49220         Let 'gnulib-tool --import' collect sources needed for the tests in
49221         tests/ rather than in lib/.
49222         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49223         argument. If true, add rules to generate libtests.a, and put libtests.a
49224         into $(LDADD). Consider source files in subdirectories and set
49225         uses_subdirs.
49226         (func_emit_initmacro_start, func_emit_initmacro_end,
49227         func_emit_initmacro_done): Pass all arguments explicitly.
49228         (func_import): Determine two module lists main_modules,
49229         testsrelated_modules. Determine use_libtests. Determine two variables
49230         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49231         instead of just sed_transform_lib_file. Determine two variables
49232         main_files and testsrelated_files. Compute 'files' as the union of
49233         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49234         func_add_or_update. In the generated gnulib-comp.m4, collect the
49235         object files for tests/ in different variables than those for lib/.
49236         Substitute LIBTESTS_LIBDEPS.
49237         (func_create_testdir): Combine the uses_subdirs results from
49238         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49239
49240 2007-12-09  Bruno Haible  <bruno@clisp.org>
49241
49242         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49243         the build-aux directory.
49244
49245 2007-12-09  Bruno Haible  <bruno@clisp.org>
49246
49247         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49248         introduced on 2006-09-09.
49249
49250 2007-12-07  Jim Meyering  <meyering@redhat.com>
49251
49252         Let these macros work also with autoconf-2.59.
49253         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49254         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49255         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49256
49257 2007-12-06  Jim Meyering  <meyering@redhat.com>
49258
49259         Avoid a configure-time syntax error in gl_FUNC_ACL.
49260         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49261         function in each branch, before testing the cache variable.
49262
49263 2007-12-04  Eric Blake  <ebb9@byu.net>
49264
49265         Make scripts executable.
49266         * build-aux/config.guess: Add execute permissions.
49267         * build-aux/config.sub: Likewise.
49268         * build-aux/gendocs.sh: Likewise.
49269
49270         Fix frexp on mingw.
49271         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49272         cross-compiling.
49273         * doc/functions/frexp.texi (frexp): Document the bug.
49274
49275         Make cygwin fseeko check more reliable.
49276         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49277         version numbers, rather than unrelated feature check.
49278         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49279         * doc/functions/ftello.texi (ftello): Likewise.
49280         Reported by Bruno Haible.
49281
49282         * m4/strerror.m4: Bump version number.
49283
49284 2007-12-03  Bruno Haible  <bruno@clisp.org>
49285
49286         * doc/functions/mprotect.texi: Mention the mingw problem.
49287
49288 2007-12-03  Eric Blake  <ebb9@byu.net>
49289
49290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49291         REPLACE_STRERROR is initialized before this macro.
49292
49293 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49294
49295         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49296         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49297         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49298         put -lsec in even for programs other than 'ls'.  This fixes a problem
49299         for gettext reported by Bruno Haible in
49300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49301         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49302         Add support for Solaris 10.  This isn't efficient, but should get the
49303         job done for now.
49304
49305 2007-12-03  James Youngman  <jay@gnu.org>
49306
49307         * doc/regexprops-generic.texi: change "an close-group" to "a
49308         close-group" and "illegal" to "not allowed".
49309
49310 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49311
49312         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49313         pr_byname.h. Needed for the rare case when the maintainer has done
49314         "make maintainer-clean" in the source directory and then attempts a
49315         build outside the source directory.
49316         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49317         scripts_byname.h.
49318
49319 2007-12-02  Martin Lambers <marlam@marlam.de>
49320             Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/getpagesize.h: Remove file.
49323         * lib/unistd.in.h: Include declaration of getpagesize here.
49324         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49325         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49326         HAVE_SYS_PARAM_H.
49327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49328         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49329         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49330         (Depends-on): Add unistd.
49331         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49332         (Include): Use <unistd.h> instead of getpagesize.h.
49333         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49334         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49335         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49336         gl_GETPAGESIZE invocation, already handled by module dependency.
49337         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49338
49339 2007-12-02  Bruno Haible  <bruno@clisp.org>
49340
49341         * modules/strings-tests: New file.
49342         * tests/test-strings.c: New file.
49343
49344         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49345         * lib/strings.in.h: New file.
49346         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49347         * m4/strings_h.m4: New file.
49348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49349         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49350         * modules/strings: New file.
49351         * modules/string (Makefile.am): Update.
49352         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49353         Reported by Karl Berry.
49354
49355 2007-12-01  Eric Blake  <ebb9@byu.net>
49356
49357         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49358         accomodate fix in cygwin 1.5.25.
49359
49360 2007-12-01  Jim Meyering  <meyering@redhat.com>
49361
49362         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49363         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49364         that would inhibit utf8-optimization of a regexp containing line-
49365         or buffer-anchors, e.g., `^', `$'.
49366
49367 2007-11-30  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49370         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49371         glthread_recursive_lock_init.
49372         * lib/lock.c (glthread_recursive_lock_init)
49373         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49374         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49375
49376 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49377
49378         New function qset_acl, like set_acl but with syscall semantics.
49379         * lib/acl.h (qset_acl): New decl.
49380         * lib/acl.c (qset_acl): New function.
49381         (set_acl): Use new function.  Use more-consistent diagnostics.
49382
49383 2007-11-28  Jim Meyering  <meyering@redhat.com>
49384
49385         * modules/physmem (License): Change from GPL to LGPLv2+.
49386
49387 2007-11-26  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49390         'long double' type has excess precision.
49391         Reported by Jim Meyering in
49392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49393
49394 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49395
49396         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49397         Sync from <http://gnu.org/licenses>.
49398         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49399         with license text from same location.
49400         * doc/maintain.texi, doc/standards.texi:  Sync from
49401         <http://savannah.gnu.org/projects/gnustandards>.
49402
49403 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49404         and Jim Meyering  <meyering@redhat.com>
49405
49406         Adjust getdate' grammar to accept a slightly more regular language.
49407         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49408         Before, the former was rejected.
49409         * lib/getdate.y (digits_to_date_time): New function, factored
49410         out of ...
49411         (number): ...here.  Just call digits_to_date_time.
49412         (hybrid): New non-terminal to handle an <unsigned number,
49413         signed relative offset> sequence consistently.
49414
49415 2007-11-18  Jim Meyering  <meyering@redhat.com>
49416
49417         Pull my changes from coreutils:
49418         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49419         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49420         use of $gnulib_tool_option_extras, so that it's separated from the
49421         preceding argument.
49422
49423         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49424         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49425         parent destination directories before copying a file into place.
49426
49427 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49428
49429         bootstrap: work also with 4-argument variant of AC_INIT
49430         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49431
49432 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49433
49434         Port test-getaddrinfo to Solaris.
49435         Problem reported by Bruno Haible in
49436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49437         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49438         explanation of setting 'hints'.
49439         Don't reject an implementation merely because it returns EAI_SERVICE.
49440         (EAI_SERVICE): Define to 0 if not defined.
49441
49442 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49443
49444         The license of gnu-make and posix-shell is now "GPLed build tool".
49445         * modules/gnu-make (License): Likewise.
49446         * modules/posix-shell (License): Likewise.
49447
49448         New module posix-shell, for determining a POSIX shell
49449         or perhaps something that is close enough to a POSIX shell.
49450         * m4/posix-shell.m4: New file.
49451         * modules/posix-shell: New file.
49452
49453         * MODULES.html.sh: Mention new module.
49454
49455         New module gnu-make, for determining whether we're using GNU Make.
49456         * m4/gnu-make.m4: New file.
49457         * modules/gnu-make: New file.
49458         * MODULES.html.sh: Mention new module.
49459
49460 2007-11-14  Jim Meyering  <meyering@redhat.com>
49461
49462         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49463         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49464         use this macro to create a function _definition_.
49465         Remove useless "#undef ARGMATCH_DIE".
49466
49467 2007-11-14  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/config.charset: Update for OpenBSD 4.1.
49470         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49471
49472 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         Document 64-bit #if problems in stdint.texi.
49475         * doc/headers/stdint.texi (stdint.h): Mention problems with
49476         64-bit-#if, and how to work around them.
49477
49478         Don't insist on 'long long int' support in the preprocessor.  It
49479         breaks too many things.  For example, PRIdMAX still uses a 'long
49480         long int' format with the latest Sun compiler, even though
49481         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49482         preprocessor problem.  This causes the latest coreutils to dump
49483         core on Solaris 10 sparc with the Sun C compiler.
49484         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49485         the troublesome expressions at configure-time, not at #if-time.
49486         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49487         preprocessor.
49488         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49489         compile-time C checks, done at 'configure'-time.
49490         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49491         * modules/inttypes (Makefile): Substitute the new symbols that
49492         gl_INTTYPES_H now generates.
49493         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49494
49495 2007-11-12  Bruno Haible  <bruno@clisp.org>
49496
49497         Tests for Unicode character classification functions.
49498
49499         * modules/unictype/bidicategory-byname-tests: New file.
49500         * modules/unictype/bidicategory-name-tests: New file.
49501         * modules/unictype/bidicategory-of-tests: New file.
49502         * modules/unictype/bidicategory-test-tests: New file.
49503         * modules/unictype/block-list-tests: New file.
49504         * modules/unictype/block-of-tests: New file.
49505         * modules/unictype/block-test-tests: New file.
49506         * modules/unictype/category-C-tests: New file.
49507         * modules/unictype/category-Cc-tests: New file.
49508         * modules/unictype/category-Cf-tests: New file.
49509         * modules/unictype/category-Cn-tests: New file.
49510         * modules/unictype/category-Co-tests: New file.
49511         * modules/unictype/category-Cs-tests: New file.
49512         * modules/unictype/category-L-tests: New file.
49513         * modules/unictype/category-Ll-tests: New file.
49514         * modules/unictype/category-Lm-tests: New file.
49515         * modules/unictype/category-Lo-tests: New file.
49516         * modules/unictype/category-Lt-tests: New file.
49517         * modules/unictype/category-Lu-tests: New file.
49518         * modules/unictype/category-M-tests: New file.
49519         * modules/unictype/category-Mc-tests: New file.
49520         * modules/unictype/category-Me-tests: New file.
49521         * modules/unictype/category-Mn-tests: New file.
49522         * modules/unictype/category-N-tests: New file.
49523         * modules/unictype/category-Nd-tests: New file.
49524         * modules/unictype/category-Nl-tests: New file.
49525         * modules/unictype/category-No-tests: New file.
49526         * modules/unictype/category-P-tests: New file.
49527         * modules/unictype/category-Pc-tests: New file.
49528         * modules/unictype/category-Pd-tests: New file.
49529         * modules/unictype/category-Pe-tests: New file.
49530         * modules/unictype/category-Pf-tests: New file.
49531         * modules/unictype/category-Pi-tests: New file.
49532         * modules/unictype/category-Po-tests: New file.
49533         * modules/unictype/category-Ps-tests: New file.
49534         * modules/unictype/category-S-tests: New file.
49535         * modules/unictype/category-Sc-tests: New file.
49536         * modules/unictype/category-Sk-tests: New file.
49537         * modules/unictype/category-Sm-tests: New file.
49538         * modules/unictype/category-So-tests: New file.
49539         * modules/unictype/category-Z-tests: New file.
49540         * modules/unictype/category-Zl-tests: New file.
49541         * modules/unictype/category-Zp-tests: New file.
49542         * modules/unictype/category-Zs-tests: New file.
49543         * modules/unictype/category-and-not-tests: New file.
49544         * modules/unictype/category-and-tests: New file.
49545         * modules/unictype/category-byname-tests: New file.
49546         * modules/unictype/category-name-tests: New file.
49547         * modules/unictype/category-none-tests: New file.
49548         * modules/unictype/category-of-tests: New file.
49549         * modules/unictype/category-or-tests: New file.
49550         * modules/unictype/category-test-withtable-tests: New file.
49551         * modules/unictype/combining-class-tests: New file.
49552         * modules/unictype/ctype-alnum-tests: New file.
49553         * modules/unictype/ctype-alpha-tests: New file.
49554         * modules/unictype/ctype-blank-tests: New file.
49555         * modules/unictype/ctype-cntrl-tests: New file.
49556         * modules/unictype/ctype-digit-tests: New file.
49557         * modules/unictype/ctype-graph-tests: New file.
49558         * modules/unictype/ctype-lower-tests: New file.
49559         * modules/unictype/ctype-print-tests: New file.
49560         * modules/unictype/ctype-punct-tests: New file.
49561         * modules/unictype/ctype-space-tests: New file.
49562         * modules/unictype/ctype-upper-tests: New file.
49563         * modules/unictype/ctype-xdigit-tests: New file.
49564         * modules/unictype/decimal-digit-tests: New file.
49565         * modules/unictype/digit-tests: New file.
49566         * modules/unictype/mirror-tests: New file.
49567         * modules/unictype/numeric-tests: New file.
49568         * modules/unictype/property-alphabetic-tests: New file.
49569         * modules/unictype/property-ascii-hex-digit-tests: New file.
49570         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49571         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49572         * modules/unictype/property-bidi-block-separator-tests: New file.
49573         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49574         * modules/unictype/property-bidi-common-separator-tests: New file.
49575         * modules/unictype/property-bidi-control-tests: New file.
49576         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49577         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49578         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49579         * modules/unictype/property-bidi-european-digit-tests: New file.
49580         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49581         * modules/unictype/property-bidi-left-to-right-tests: New file.
49582         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49583         * modules/unictype/property-bidi-other-neutral-tests: New file.
49584         * modules/unictype/property-bidi-pdf-tests: New file.
49585         * modules/unictype/property-bidi-segment-separator-tests: New file.
49586         * modules/unictype/property-bidi-whitespace-tests: New file.
49587         * modules/unictype/property-byname-tests: New file.
49588         * modules/unictype/property-combining-tests: New file.
49589         * modules/unictype/property-composite-tests: New file.
49590         * modules/unictype/property-currency-symbol-tests: New file.
49591         * modules/unictype/property-dash-tests: New file.
49592         * modules/unictype/property-decimal-digit-tests: New file.
49593         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49594         * modules/unictype/property-deprecated-tests: New file.
49595         * modules/unictype/property-diacritic-tests: New file.
49596         * modules/unictype/property-extender-tests: New file.
49597         * modules/unictype/property-format-control-tests: New file.
49598         * modules/unictype/property-grapheme-base-tests: New file.
49599         * modules/unictype/property-grapheme-extend-tests: New file.
49600         * modules/unictype/property-grapheme-link-tests: New file.
49601         * modules/unictype/property-hex-digit-tests: New file.
49602         * modules/unictype/property-hyphen-tests: New file.
49603         * modules/unictype/property-id-continue-tests: New file.
49604         * modules/unictype/property-id-start-tests: New file.
49605         * modules/unictype/property-ideographic-tests: New file.
49606         * modules/unictype/property-ids-binary-operator-tests: New file.
49607         * modules/unictype/property-ids-trinary-operator-tests: New file.
49608         * modules/unictype/property-ignorable-control-tests: New file.
49609         * modules/unictype/property-iso-control-tests: New file.
49610         * modules/unictype/property-join-control-tests: New file.
49611         * modules/unictype/property-left-of-pair-tests: New file.
49612         * modules/unictype/property-line-separator-tests: New file.
49613         * modules/unictype/property-logical-order-exception-tests: New file.
49614         * modules/unictype/property-lowercase-tests: New file.
49615         * modules/unictype/property-math-tests: New file.
49616         * modules/unictype/property-non-break-tests: New file.
49617         * modules/unictype/property-not-a-character-tests: New file.
49618         * modules/unictype/property-numeric-tests: New file.
49619         * modules/unictype/property-other-alphabetic-tests: New file.
49620         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49621         * modules/unictype/property-other-grapheme-extend-tests: New file.
49622         * modules/unictype/property-other-id-continue-tests: New file.
49623         * modules/unictype/property-other-id-start-tests: New file.
49624         * modules/unictype/property-other-lowercase-tests: New file.
49625         * modules/unictype/property-other-math-tests: New file.
49626         * modules/unictype/property-other-uppercase-tests: New file.
49627         * modules/unictype/property-paired-punctuation-tests: New file.
49628         * modules/unictype/property-paragraph-separator-tests: New file.
49629         * modules/unictype/property-pattern-syntax-tests: New file.
49630         * modules/unictype/property-pattern-white-space-tests: New file.
49631         * modules/unictype/property-private-use-tests: New file.
49632         * modules/unictype/property-punctuation-tests: New file.
49633         * modules/unictype/property-quotation-mark-tests: New file.
49634         * modules/unictype/property-radical-tests: New file.
49635         * modules/unictype/property-sentence-terminal-tests: New file.
49636         * modules/unictype/property-soft-dotted-tests: New file.
49637         * modules/unictype/property-space-tests: New file.
49638         * modules/unictype/property-terminal-punctuation-tests: New file.
49639         * modules/unictype/property-test-tests: New file.
49640         * modules/unictype/property-titlecase-tests: New file.
49641         * modules/unictype/property-unassigned-code-value-tests: New file.
49642         * modules/unictype/property-unified-ideograph-tests: New file.
49643         * modules/unictype/property-uppercase-tests: New file.
49644         * modules/unictype/property-variation-selector-tests: New file.
49645         * modules/unictype/property-white-space-tests: New file.
49646         * modules/unictype/property-xid-continue-tests: New file.
49647         * modules/unictype/property-xid-start-tests: New file.
49648         * modules/unictype/property-zero-width-tests: New file.
49649         * modules/unictype/scripts-tests: New file.
49650         * modules/unictype/syntax-c-ident-tests: New file.
49651         * modules/unictype/syntax-c-whitespace-tests: New file.
49652         * modules/unictype/syntax-java-ident-tests: New file.
49653         * modules/unictype/syntax-java-whitespace-tests: New file.
49654         * tests/unictype/test-bidi_byname.c: New file.
49655         * tests/unictype/test-bidi_name.c: New file.
49656         * tests/unictype/test-bidi_of.c: New file.
49657         * tests/unictype/test-bidi_test.c: New file.
49658         * tests/unictype/test-block_list.c: New file.
49659         * tests/unictype/test-block_of.c: New file.
49660         * tests/unictype/test-block_test.c: New file.
49661         * tests/unictype/test-categ_and.c: New file.
49662         * tests/unictype/test-categ_and_not.c: New file.
49663         * tests/unictype/test-categ_byname.c: New file.
49664         * tests/unictype/test-categ_name.c: New file.
49665         * tests/unictype/test-categ_none.c: New file.
49666         * tests/unictype/test-categ_of.c: New file.
49667         * tests/unictype/test-categ_or.c: New file.
49668         * tests/unictype/test-categ_test_withtable.c: New file.
49669         * tests/unictype/test-combining.c: New file.
49670         * tests/unictype/test-decdigit.c: New file.
49671         * tests/unictype/test-digit.c: New file.
49672         * tests/unictype/test-mirror.c: New file.
49673         * tests/unictype/test-numeric.c: New file.
49674         * tests/unictype/test-pr_byname.c: New file.
49675         * tests/unictype/test-pr_test.c: New file.
49676         * tests/unictype/test-predicate-part1.h: New file.
49677         * tests/unictype/test-predicate-part2.h: New file.
49678         * tests/unictype/test-scripts.c: New file.
49679         * tests/unictype/test-sy_c_ident.c: New file.
49680         * tests/unictype/test-sy_java_ident.c: New file.
49681
49682         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49683         for Unicode 5.0.0.
49684         * tests/unictype/test-categ_Cc.c: Likewise.
49685         * tests/unictype/test-categ_Cf.c: Likewise.
49686         * tests/unictype/test-categ_Cn.c: Likewise.
49687         * tests/unictype/test-categ_Co.c: Likewise.
49688         * tests/unictype/test-categ_Cs.c: Likewise.
49689         * tests/unictype/test-categ_L.c: Likewise.
49690         * tests/unictype/test-categ_Ll.c: Likewise.
49691         * tests/unictype/test-categ_Lm.c: Likewise.
49692         * tests/unictype/test-categ_Lo.c: Likewise.
49693         * tests/unictype/test-categ_Lt.c: Likewise.
49694         * tests/unictype/test-categ_Lu.c: Likewise.
49695         * tests/unictype/test-categ_M.c: Likewise.
49696         * tests/unictype/test-categ_Mc.c: Likewise.
49697         * tests/unictype/test-categ_Me.c: Likewise.
49698         * tests/unictype/test-categ_Mn.c: Likewise.
49699         * tests/unictype/test-categ_N.c: Likewise.
49700         * tests/unictype/test-categ_Nd.c: Likewise.
49701         * tests/unictype/test-categ_Nl.c: Likewise.
49702         * tests/unictype/test-categ_No.c: Likewise.
49703         * tests/unictype/test-categ_P.c: Likewise.
49704         * tests/unictype/test-categ_Pc.c: Likewise.
49705         * tests/unictype/test-categ_Pd.c: Likewise.
49706         * tests/unictype/test-categ_Pe.c: Likewise.
49707         * tests/unictype/test-categ_Pf.c: Likewise.
49708         * tests/unictype/test-categ_Pi.c: Likewise.
49709         * tests/unictype/test-categ_Po.c: Likewise.
49710         * tests/unictype/test-categ_Ps.c: Likewise.
49711         * tests/unictype/test-categ_S.c: Likewise.
49712         * tests/unictype/test-categ_Sc.c: Likewise.
49713         * tests/unictype/test-categ_Sk.c: Likewise.
49714         * tests/unictype/test-categ_Sm.c: Likewise.
49715         * tests/unictype/test-categ_So.c: Likewise.
49716         * tests/unictype/test-categ_Z.c: Likewise.
49717         * tests/unictype/test-categ_Zl.c: Likewise.
49718         * tests/unictype/test-categ_Zp.c: Likewise.
49719         * tests/unictype/test-categ_Zs.c: Likewise.
49720         * tests/unictype/test-ctype_alnum.c: Likewise.
49721         * tests/unictype/test-ctype_alpha.c: Likewise.
49722         * tests/unictype/test-ctype_blank.c: Likewise.
49723         * tests/unictype/test-ctype_cntrl.c: Likewise.
49724         * tests/unictype/test-ctype_digit.c: Likewise.
49725         * tests/unictype/test-ctype_graph.c: Likewise.
49726         * tests/unictype/test-ctype_lower.c: Likewise.
49727         * tests/unictype/test-ctype_print.c: Likewise.
49728         * tests/unictype/test-ctype_punct.c: Likewise.
49729         * tests/unictype/test-ctype_space.c: Likewise.
49730         * tests/unictype/test-ctype_upper.c: Likewise.
49731         * tests/unictype/test-ctype_xdigit.c: Likewise.
49732         * tests/unictype/test-decdigit.h: Likewise.
49733         * tests/unictype/test-digit.h: Likewise.
49734         * tests/unictype/test-numeric.h: Likewise.
49735         * tests/unictype/test-pr_alphabetic.c: Likewise.
49736         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49737         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49738         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49739         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49740         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49741         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49742         * tests/unictype/test-pr_bidi_control.c: Likewise.
49743         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49744         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49745         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49746         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49747         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49748         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49749         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49750         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49751         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49752         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49753         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49754         * tests/unictype/test-pr_combining.c: Likewise.
49755         * tests/unictype/test-pr_composite.c: Likewise.
49756         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49757         * tests/unictype/test-pr_dash.c: Likewise.
49758         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49759         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49760         * tests/unictype/test-pr_deprecated.c: Likewise.
49761         * tests/unictype/test-pr_diacritic.c: Likewise.
49762         * tests/unictype/test-pr_extender.c: Likewise.
49763         * tests/unictype/test-pr_format_control.c: Likewise.
49764         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49765         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49766         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49767         * tests/unictype/test-pr_hex_digit.c: Likewise.
49768         * tests/unictype/test-pr_hyphen.c: Likewise.
49769         * tests/unictype/test-pr_id_continue.c: Likewise.
49770         * tests/unictype/test-pr_id_start.c: Likewise.
49771         * tests/unictype/test-pr_ideographic.c: Likewise.
49772         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49773         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49774         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49775         * tests/unictype/test-pr_iso_control.c: Likewise.
49776         * tests/unictype/test-pr_join_control.c: Likewise.
49777         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49778         * tests/unictype/test-pr_line_separator.c: Likewise.
49779         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49780         * tests/unictype/test-pr_lowercase.c: Likewise.
49781         * tests/unictype/test-pr_math.c: Likewise.
49782         * tests/unictype/test-pr_non_break.c: Likewise.
49783         * tests/unictype/test-pr_not_a_character.c: Likewise.
49784         * tests/unictype/test-pr_numeric.c: Likewise.
49785         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49786         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49787         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49788         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49789         * tests/unictype/test-pr_other_id_start.c: Likewise.
49790         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49791         * tests/unictype/test-pr_other_math.c: Likewise.
49792         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49793         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49794         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49795         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49796         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49797         * tests/unictype/test-pr_private_use.c: Likewise.
49798         * tests/unictype/test-pr_punctuation.c: Likewise.
49799         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49800         * tests/unictype/test-pr_radical.c: Likewise.
49801         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49802         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49803         * tests/unictype/test-pr_space.c: Likewise.
49804         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49805         * tests/unictype/test-pr_titlecase.c: Likewise.
49806         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49807         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49808         * tests/unictype/test-pr_uppercase.c: Likewise.
49809         * tests/unictype/test-pr_variation_selector.c: Likewise.
49810         * tests/unictype/test-pr_white_space.c: Likewise.
49811         * tests/unictype/test-pr_xid_continue.c: Likewise.
49812         * tests/unictype/test-pr_xid_start.c: Likewise.
49813         * tests/unictype/test-pr_zero_width.c: Likewise.
49814         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49815         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49816
49817 2007-11-12  Bruno Haible  <bruno@clisp.org>
49818
49819         Unicode character classification functions.
49820         * lib/unictype.h: New file.
49821         * modules/unictype/base: New file.
49822         * modules/unictype/category-L: New file.
49823         * modules/unictype/category-Lu: New file.
49824         * modules/unictype/category-Ll: New file.
49825         * modules/unictype/category-Lt: New file.
49826         * modules/unictype/category-Lm: New file.
49827         * modules/unictype/category-Lo: New file.
49828         * modules/unictype/category-M: New file.
49829         * modules/unictype/category-Mn: New file.
49830         * modules/unictype/category-Mc: New file.
49831         * modules/unictype/category-Me: New file.
49832         * modules/unictype/category-N: New file.
49833         * modules/unictype/category-Nd: New file.
49834         * modules/unictype/category-Nl: New file.
49835         * modules/unictype/category-No: New file.
49836         * modules/unictype/category-P: New file.
49837         * modules/unictype/category-Pc: New file.
49838         * modules/unictype/category-Pd: New file.
49839         * modules/unictype/category-Ps: New file.
49840         * modules/unictype/category-Pe: New file.
49841         * modules/unictype/category-Pi: New file.
49842         * modules/unictype/category-Pf: New file.
49843         * modules/unictype/category-Po: New file.
49844         * modules/unictype/category-S: New file.
49845         * modules/unictype/category-Sm: New file.
49846         * modules/unictype/category-Sc: New file.
49847         * modules/unictype/category-Sk: New file.
49848         * modules/unictype/category-So: New file.
49849         * modules/unictype/category-Z: New file.
49850         * modules/unictype/category-Zs: New file.
49851         * modules/unictype/category-Zl: New file.
49852         * modules/unictype/category-Zp: New file.
49853         * modules/unictype/category-C: New file.
49854         * modules/unictype/category-Cc: New file.
49855         * modules/unictype/category-Cf: New file.
49856         * modules/unictype/category-Cs: New file.
49857         * modules/unictype/category-Co: New file.
49858         * modules/unictype/category-Cn: New file.
49859         * modules/unictype/category-or: New file.
49860         * modules/unictype/category-of: New file.
49861         * modules/unictype/category-test: New file.
49862         * modules/unictype/category-test-withtable: New file.
49863         * modules/unictype/category-byname: New file.
49864         * modules/unictype/category-none: New file.
49865         * modules/unictype/category-and: New file.
49866         * modules/unictype/category-and-not: New file.
49867         * modules/unictype/category-name: New file.
49868         * modules/unictype/combining-class: New file.
49869         * modules/unictype/category-all: New file.
49870         * modules/unictype/bidicategory-all: New file.
49871         * modules/unictype/bidicategory-byname: New file.
49872         * modules/unictype/bidicategory-name: New file.
49873         * modules/unictype/bidicategory-of: New file.
49874         * modules/unictype/bidicategory-test: New file.
49875         * modules/unictype/decimal-digit: New file.
49876         * modules/unictype/digit: New file.
49877         * modules/unictype/numeric: New file.
49878         * modules/unictype/mirror: New file.
49879         * modules/unictype/property-white-space: New file.
49880         * modules/unictype/property-alphabetic: New file.
49881         * modules/unictype/property-other-alphabetic: New file.
49882         * modules/unictype/property-not-a-character: New file.
49883         * modules/unictype/property-default-ignorable-code-point: New file.
49884         * modules/unictype/property-other-default-ignorable-code-point: New
49885         file.
49886         * modules/unictype/property-deprecated: New file.
49887         * modules/unictype/property-logical-order-exception: New file.
49888         * modules/unictype/property-variation-selector: New file.
49889         * modules/unictype/property-private-use: New file.
49890         * modules/unictype/property-unassigned-code-value: New file.
49891         * modules/unictype/property-uppercase: New file.
49892         * modules/unictype/property-other-uppercase: New file.
49893         * modules/unictype/property-lowercase: New file.
49894         * modules/unictype/property-other-lowercase: New file.
49895         * modules/unictype/property-titlecase: New file.
49896         * modules/unictype/property-soft-dotted: New file.
49897         * modules/unictype/property-id-start: New file.
49898         * modules/unictype/property-other-id-start: New file.
49899         * modules/unictype/property-id-continue: New file.
49900         * modules/unictype/property-other-id-continue: New file.
49901         * modules/unictype/property-xid-start: New file.
49902         * modules/unictype/property-xid-continue: New file.
49903         * modules/unictype/property-pattern-white-space: New file.
49904         * modules/unictype/property-pattern-syntax: New file.
49905         * modules/unictype/property-join-control: New file.
49906         * modules/unictype/property-grapheme-base: New file.
49907         * modules/unictype/property-grapheme-extend: New file.
49908         * modules/unictype/property-other-grapheme-extend: New file.
49909         * modules/unictype/property-grapheme-link: New file.
49910         * modules/unictype/property-bidi-control: New file.
49911         * modules/unictype/property-bidi-left-to-right: New file.
49912         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49913         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49914         * modules/unictype/property-bidi-european-digit: New file.
49915         * modules/unictype/property-bidi-eur-num-separator: New file.
49916         * modules/unictype/property-bidi-eur-num-terminator: New file.
49917         * modules/unictype/property-bidi-arabic-digit: New file.
49918         * modules/unictype/property-bidi-common-separator: New file.
49919         * modules/unictype/property-bidi-block-separator: New file.
49920         * modules/unictype/property-bidi-segment-separator: New file.
49921         * modules/unictype/property-bidi-whitespace: New file.
49922         * modules/unictype/property-bidi-non-spacing-mark: New file.
49923         * modules/unictype/property-bidi-boundary-neutral: New file.
49924         * modules/unictype/property-bidi-pdf: New file.
49925         * modules/unictype/property-bidi-embedding-or-override: New file.
49926         * modules/unictype/property-bidi-other-neutral: New file.
49927         * modules/unictype/property-hex-digit: New file.
49928         * modules/unictype/property-ascii-hex-digit: New file.
49929         * modules/unictype/property-ideographic: New file.
49930         * modules/unictype/property-unified-ideograph: New file.
49931         * modules/unictype/property-radical: New file.
49932         * modules/unictype/property-ids-binary-operator: New file.
49933         * modules/unictype/property-ids-trinary-operator: New file.
49934         * modules/unictype/property-zero-width: New file.
49935         * modules/unictype/property-space: New file.
49936         * modules/unictype/property-non-break: New file.
49937         * modules/unictype/property-iso-control: New file.
49938         * modules/unictype/property-format-control: New file.
49939         * modules/unictype/property-dash: New file.
49940         * modules/unictype/property-hyphen: New file.
49941         * modules/unictype/property-punctuation: New file.
49942         * modules/unictype/property-line-separator: New file.
49943         * modules/unictype/property-paragraph-separator: New file.
49944         * modules/unictype/property-quotation-mark: New file.
49945         * modules/unictype/property-sentence-terminal: New file.
49946         * modules/unictype/property-terminal-punctuation: New file.
49947         * modules/unictype/property-currency-symbol: New file.
49948         * modules/unictype/property-math: New file.
49949         * modules/unictype/property-other-math: New file.
49950         * modules/unictype/property-paired-punctuation: New file.
49951         * modules/unictype/property-left-of-pair: New file.
49952         * modules/unictype/property-combining: New file.
49953         * modules/unictype/property-composite: New file.
49954         * modules/unictype/property-decimal-digit: New file.
49955         * modules/unictype/property-numeric: New file.
49956         * modules/unictype/property-diacritic: New file.
49957         * modules/unictype/property-extender: New file.
49958         * modules/unictype/property-ignorable-control: New file.
49959         * modules/unictype/property-test: New file.
49960         * modules/unictype/property-byname: New file.
49961         * modules/unictype/property-all: New file.
49962         * modules/unictype/scripts: New file.
49963         * modules/unictype/scripts-all: New file.
49964         * modules/unictype/block-of: New file.
49965         * modules/unictype/block-test: New file.
49966         * modules/unictype/block-list: New file.
49967         * modules/unictype/block-all: New file.
49968         * modules/unictype/syntax-c-whitespace: New file.
49969         * modules/unictype/syntax-java-whitespace: New file.
49970         * modules/unictype/syntax-c-ident: New file.
49971         * modules/unictype/syntax-java-ident: New file.
49972         * modules/unictype/ctype-alnum: New file.
49973         * modules/unictype/ctype-alpha: New file.
49974         * modules/unictype/ctype-cntrl: New file.
49975         * modules/unictype/ctype-digit: New file.
49976         * modules/unictype/ctype-graph: New file.
49977         * modules/unictype/ctype-lower: New file.
49978         * modules/unictype/ctype-print: New file.
49979         * modules/unictype/ctype-punct: New file.
49980         * modules/unictype/ctype-space: New file.
49981         * modules/unictype/ctype-upper: New file.
49982         * modules/unictype/ctype-xdigit: New file.
49983         * modules/unictype/ctype-blank: New file.
49984         * lib/unictype/bidi_byname.c: New file.
49985         * lib/unictype/bidi_name.c: New file.
49986         * lib/unictype/bidi_of.c: New file.
49987         * lib/unictype/bidi_test.c: New file.
49988         * lib/unictype/bitmap.h: New file.
49989         * lib/unictype/block_test.c: New file.
49990         * lib/unictype/blocks.c: New file.
49991         * lib/unictype/categ_C.c: New file.
49992         * lib/unictype/categ_Cc.c: New file.
49993         * lib/unictype/categ_Cf.c: New file.
49994         * lib/unictype/categ_Cn.c: New file.
49995         * lib/unictype/categ_Co.c: New file.
49996         * lib/unictype/categ_Cs.c: New file.
49997         * lib/unictype/categ_L.c: New file.
49998         * lib/unictype/categ_Ll.c: New file.
49999         * lib/unictype/categ_Lm.c: New file.
50000         * lib/unictype/categ_Lo.c: New file.
50001         * lib/unictype/categ_Lt.c: New file.
50002         * lib/unictype/categ_Lu.c: New file.
50003         * lib/unictype/categ_M.c: New file.
50004         * lib/unictype/categ_Mc.c: New file.
50005         * lib/unictype/categ_Me.c: New file.
50006         * lib/unictype/categ_Mn.c: New file.
50007         * lib/unictype/categ_N.c: New file.
50008         * lib/unictype/categ_Nd.c: New file.
50009         * lib/unictype/categ_Nl.c: New file.
50010         * lib/unictype/categ_No.c: New file.
50011         * lib/unictype/categ_P.c: New file.
50012         * lib/unictype/categ_Pc.c: New file.
50013         * lib/unictype/categ_Pd.c: New file.
50014         * lib/unictype/categ_Pe.c: New file.
50015         * lib/unictype/categ_Pf.c: New file.
50016         * lib/unictype/categ_Pi.c: New file.
50017         * lib/unictype/categ_Po.c: New file.
50018         * lib/unictype/categ_Ps.c: New file.
50019         * lib/unictype/categ_S.c: New file.
50020         * lib/unictype/categ_Sc.c: New file.
50021         * lib/unictype/categ_Sk.c: New file.
50022         * lib/unictype/categ_Sm.c: New file.
50023         * lib/unictype/categ_So.c: New file.
50024         * lib/unictype/categ_Z.c: New file.
50025         * lib/unictype/categ_Zl.c: New file.
50026         * lib/unictype/categ_Zp.c: New file.
50027         * lib/unictype/categ_Zs.c: New file.
50028         * lib/unictype/categ_and.c: New file.
50029         * lib/unictype/categ_and_not.c: New file.
50030         * lib/unictype/categ_byname.c: New file.
50031         * lib/unictype/categ_name.c: New file.
50032         * lib/unictype/categ_none.c: New file.
50033         * lib/unictype/categ_of.c: New file.
50034         * lib/unictype/categ_or.c: New file.
50035         * lib/unictype/categ_test.c: New file.
50036         * lib/unictype/combining.c: New file.
50037         * lib/unictype/ctype_alnum.c: New file.
50038         * lib/unictype/ctype_alpha.c: New file.
50039         * lib/unictype/ctype_blank.c: New file.
50040         * lib/unictype/ctype_cntrl.c: New file.
50041         * lib/unictype/ctype_digit.c: New file.
50042         * lib/unictype/ctype_graph.c: New file.
50043         * lib/unictype/ctype_lower.c: New file.
50044         * lib/unictype/ctype_print.c: New file.
50045         * lib/unictype/ctype_punct.c: New file.
50046         * lib/unictype/ctype_space.c: New file.
50047         * lib/unictype/ctype_upper.c: New file.
50048         * lib/unictype/ctype_xdigit.c: New file.
50049         * lib/unictype/decdigit.c: New file.
50050         * lib/unictype/digit.c: New file.
50051         * lib/unictype/identsyntaxmap.h: New file.
50052         * lib/unictype/mirror.c: New file.
50053         * lib/unictype/numeric.c: New file.
50054         * lib/unictype/pr_alphabetic.c: New file.
50055         * lib/unictype/pr_ascii_hex_digit.c: New file.
50056         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50057         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50058         * lib/unictype/pr_bidi_block_separator.c: New file.
50059         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50060         * lib/unictype/pr_bidi_common_separator.c: New file.
50061         * lib/unictype/pr_bidi_control.c: New file.
50062         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50063         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50064         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50065         * lib/unictype/pr_bidi_european_digit.c: New file.
50066         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50067         * lib/unictype/pr_bidi_left_to_right.c: New file.
50068         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50069         * lib/unictype/pr_bidi_other_neutral.c: New file.
50070         * lib/unictype/pr_bidi_pdf.c: New file.
50071         * lib/unictype/pr_bidi_segment_separator.c: New file.
50072         * lib/unictype/pr_bidi_whitespace.c: New file.
50073         * lib/unictype/pr_byname.c: New file.
50074         * lib/unictype/pr_byname.gperf: New file.
50075         * lib/unictype/pr_combining.c: New file.
50076         * lib/unictype/pr_composite.c: New file.
50077         * lib/unictype/pr_currency_symbol.c: New file.
50078         * lib/unictype/pr_dash.c: New file.
50079         * lib/unictype/pr_decimal_digit.c: New file.
50080         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50081         * lib/unictype/pr_deprecated.c: New file.
50082         * lib/unictype/pr_diacritic.c: New file.
50083         * lib/unictype/pr_extender.c: New file.
50084         * lib/unictype/pr_format_control.c: New file.
50085         * lib/unictype/pr_grapheme_base.c: New file.
50086         * lib/unictype/pr_grapheme_extend.c: New file.
50087         * lib/unictype/pr_grapheme_link.c: New file.
50088         * lib/unictype/pr_hex_digit.c: New file.
50089         * lib/unictype/pr_hyphen.c: New file.
50090         * lib/unictype/pr_id_continue.c: New file.
50091         * lib/unictype/pr_id_start.c: New file.
50092         * lib/unictype/pr_ideographic.c: New file.
50093         * lib/unictype/pr_ids_binary_operator.c: New file.
50094         * lib/unictype/pr_ids_trinary_operator.c: New file.
50095         * lib/unictype/pr_ignorable_control.c: New file.
50096         * lib/unictype/pr_iso_control.c: New file.
50097         * lib/unictype/pr_join_control.c: New file.
50098         * lib/unictype/pr_left_of_pair.c: New file.
50099         * lib/unictype/pr_line_separator.c: New file.
50100         * lib/unictype/pr_logical_order_exception.c: New file.
50101         * lib/unictype/pr_lowercase.c: New file.
50102         * lib/unictype/pr_math.c: New file.
50103         * lib/unictype/pr_non_break.c: New file.
50104         * lib/unictype/pr_not_a_character.c: New file.
50105         * lib/unictype/pr_numeric.c: New file.
50106         * lib/unictype/pr_other_alphabetic.c: New file.
50107         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50108         * lib/unictype/pr_other_grapheme_extend.c: New file.
50109         * lib/unictype/pr_other_id_continue.c: New file.
50110         * lib/unictype/pr_other_id_start.c: New file.
50111         * lib/unictype/pr_other_lowercase.c: New file.
50112         * lib/unictype/pr_other_math.c: New file.
50113         * lib/unictype/pr_other_uppercase.c: New file.
50114         * lib/unictype/pr_paired_punctuation.c: New file.
50115         * lib/unictype/pr_paragraph_separator.c: New file.
50116         * lib/unictype/pr_pattern_syntax.c: New file.
50117         * lib/unictype/pr_pattern_white_space.c: New file.
50118         * lib/unictype/pr_private_use.c: New file.
50119         * lib/unictype/pr_punctuation.c: New file.
50120         * lib/unictype/pr_quotation_mark.c: New file.
50121         * lib/unictype/pr_radical.c: New file.
50122         * lib/unictype/pr_sentence_terminal.c: New file.
50123         * lib/unictype/pr_soft_dotted.c: New file.
50124         * lib/unictype/pr_space.c: New file.
50125         * lib/unictype/pr_terminal_punctuation.c: New file.
50126         * lib/unictype/pr_test.c: New file.
50127         * lib/unictype/pr_titlecase.c: New file.
50128         * lib/unictype/pr_unassigned_code_value.c: New file.
50129         * lib/unictype/pr_unified_ideograph.c: New file.
50130         * lib/unictype/pr_uppercase.c: New file.
50131         * lib/unictype/pr_variation_selector.c: New file.
50132         * lib/unictype/pr_white_space.c: New file.
50133         * lib/unictype/pr_xid_continue.c: New file.
50134         * lib/unictype/pr_xid_start.c: New file.
50135         * lib/unictype/pr_zero_width.c: New file.
50136         * lib/unictype/scripts.c: New file.
50137         * lib/unictype/sy_c_ident.c: New file.
50138         * lib/unictype/sy_c_whitespace.c: New file.
50139         * lib/unictype/sy_java_ident.c: New file.
50140         * lib/unictype/sy_java_whitespace.c: New file.
50141
50142         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50143         Unicode 5.0.0.
50144         * lib/unictype/blocks.h: Likewise.
50145         * lib/unictype/categ_C.h: Likewise.
50146         * lib/unictype/categ_Cc.h: Likewise.
50147         * lib/unictype/categ_Cf.h: Likewise.
50148         * lib/unictype/categ_Cn.h: Likewise.
50149         * lib/unictype/categ_Co.h: Likewise.
50150         * lib/unictype/categ_Cs.h: Likewise.
50151         * lib/unictype/categ_L.h: Likewise.
50152         * lib/unictype/categ_Ll.h: Likewise.
50153         * lib/unictype/categ_Lm.h: Likewise.
50154         * lib/unictype/categ_Lo.h: Likewise.
50155         * lib/unictype/categ_Lt.h: Likewise.
50156         * lib/unictype/categ_Lu.h: Likewise.
50157         * lib/unictype/categ_M.h: Likewise.
50158         * lib/unictype/categ_Mc.h: Likewise.
50159         * lib/unictype/categ_Me.h: Likewise.
50160         * lib/unictype/categ_Mn.h: Likewise.
50161         * lib/unictype/categ_N.h: Likewise.
50162         * lib/unictype/categ_Nd.h: Likewise.
50163         * lib/unictype/categ_Nl.h: Likewise.
50164         * lib/unictype/categ_No.h: Likewise.
50165         * lib/unictype/categ_P.h: Likewise.
50166         * lib/unictype/categ_Pc.h: Likewise.
50167         * lib/unictype/categ_Pd.h: Likewise.
50168         * lib/unictype/categ_Pe.h: Likewise.
50169         * lib/unictype/categ_Pf.h: Likewise.
50170         * lib/unictype/categ_Pi.h: Likewise.
50171         * lib/unictype/categ_Po.h: Likewise.
50172         * lib/unictype/categ_Ps.h: Likewise.
50173         * lib/unictype/categ_S.h: Likewise.
50174         * lib/unictype/categ_Sc.h: Likewise.
50175         * lib/unictype/categ_Sk.h: Likewise.
50176         * lib/unictype/categ_Sm.h: Likewise.
50177         * lib/unictype/categ_So.h: Likewise.
50178         * lib/unictype/categ_Z.h: Likewise.
50179         * lib/unictype/categ_Zl.h: Likewise.
50180         * lib/unictype/categ_Zp.h: Likewise.
50181         * lib/unictype/categ_Zs.h: Likewise.
50182         * lib/unictype/categ_of.h: Likewise.
50183         * lib/unictype/combining.h: Likewise.
50184         * lib/unictype/ctype_alnum.h: Likewise.
50185         * lib/unictype/ctype_alpha.h: Likewise.
50186         * lib/unictype/ctype_blank.h: Likewise.
50187         * lib/unictype/ctype_cntrl.h: Likewise.
50188         * lib/unictype/ctype_digit.h: Likewise.
50189         * lib/unictype/ctype_graph.h: Likewise.
50190         * lib/unictype/ctype_lower.h: Likewise.
50191         * lib/unictype/ctype_print.h: Likewise.
50192         * lib/unictype/ctype_punct.h: Likewise.
50193         * lib/unictype/ctype_space.h: Likewise.
50194         * lib/unictype/ctype_upper.h: Likewise.
50195         * lib/unictype/ctype_xdigit.h: Likewise.
50196         * lib/unictype/decdigit.h: Likewise.
50197         * lib/unictype/digit.h: Likewise.
50198         * lib/unictype/mirror.h: Likewise.
50199         * lib/unictype/numeric.h: Likewise.
50200         * lib/unictype/pr_alphabetic.h: Likewise.
50201         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50202         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50203         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50204         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50205         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50206         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50207         * lib/unictype/pr_bidi_control.h: Likewise.
50208         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50209         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50210         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50211         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50212         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50213         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50214         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50215         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50216         * lib/unictype/pr_bidi_pdf.h: Likewise.
50217         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50218         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50219         * lib/unictype/pr_combining.h: Likewise.
50220         * lib/unictype/pr_composite.h: Likewise.
50221         * lib/unictype/pr_currency_symbol.h: Likewise.
50222         * lib/unictype/pr_dash.h: Likewise.
50223         * lib/unictype/pr_decimal_digit.h: Likewise.
50224         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50225         * lib/unictype/pr_deprecated.h: Likewise.
50226         * lib/unictype/pr_diacritic.h: Likewise.
50227         * lib/unictype/pr_extender.h: Likewise.
50228         * lib/unictype/pr_format_control.h: Likewise.
50229         * lib/unictype/pr_grapheme_base.h: Likewise.
50230         * lib/unictype/pr_grapheme_extend.h: Likewise.
50231         * lib/unictype/pr_grapheme_link.h: Likewise.
50232         * lib/unictype/pr_hex_digit.h: Likewise.
50233         * lib/unictype/pr_hyphen.h: Likewise.
50234         * lib/unictype/pr_id_continue.h: Likewise.
50235         * lib/unictype/pr_id_start.h: Likewise.
50236         * lib/unictype/pr_ideographic.h: Likewise.
50237         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50238         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50239         * lib/unictype/pr_ignorable_control.h: Likewise.
50240         * lib/unictype/pr_iso_control.h: Likewise.
50241         * lib/unictype/pr_join_control.h: Likewise.
50242         * lib/unictype/pr_left_of_pair.h: Likewise.
50243         * lib/unictype/pr_line_separator.h: Likewise.
50244         * lib/unictype/pr_logical_order_exception.h: Likewise.
50245         * lib/unictype/pr_lowercase.h: Likewise.
50246         * lib/unictype/pr_math.h: Likewise.
50247         * lib/unictype/pr_non_break.h: Likewise.
50248         * lib/unictype/pr_not_a_character.h: Likewise.
50249         * lib/unictype/pr_numeric.h: Likewise.
50250         * lib/unictype/pr_other_alphabetic.h: Likewise.
50251         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50252         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50253         * lib/unictype/pr_other_id_continue.h: Likewise.
50254         * lib/unictype/pr_other_id_start.h: Likewise.
50255         * lib/unictype/pr_other_lowercase.h: Likewise.
50256         * lib/unictype/pr_other_math.h: Likewise.
50257         * lib/unictype/pr_other_uppercase.h: Likewise.
50258         * lib/unictype/pr_paired_punctuation.h: Likewise.
50259         * lib/unictype/pr_paragraph_separator.h: Likewise.
50260         * lib/unictype/pr_pattern_syntax.h: Likewise.
50261         * lib/unictype/pr_pattern_white_space.h: Likewise.
50262         * lib/unictype/pr_private_use.h: Likewise.
50263         * lib/unictype/pr_punctuation.h: Likewise.
50264         * lib/unictype/pr_quotation_mark.h: Likewise.
50265         * lib/unictype/pr_radical.h: Likewise.
50266         * lib/unictype/pr_sentence_terminal.h: Likewise.
50267         * lib/unictype/pr_soft_dotted.h: Likewise.
50268         * lib/unictype/pr_space.h: Likewise.
50269         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50270         * lib/unictype/pr_titlecase.h: Likewise.
50271         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50272         * lib/unictype/pr_unified_ideograph.h: Likewise.
50273         * lib/unictype/pr_uppercase.h: Likewise.
50274         * lib/unictype/pr_variation_selector.h: Likewise.
50275         * lib/unictype/pr_white_space.h: Likewise.
50276         * lib/unictype/pr_xid_continue.h: Likewise.
50277         * lib/unictype/pr_xid_start.h: Likewise.
50278         * lib/unictype/pr_zero_width.h: Likewise.
50279         * lib/unictype/scripts.h: Likewise.
50280         * lib/unictype/scripts_byname.gperf: Likewise.
50281         * lib/unictype/sy_c_ident.h: Likewise.
50282         * lib/unictype/sy_c_whitespace.h: Likewise.
50283         * lib/unictype/sy_java_ident.h: Likewise.
50284         * lib/unictype/sy_java_whitespace.h: Likewise.
50285
50286         * lib/unictype/Makefile: New file.
50287         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50288         glibc.
50289         * lib/unictype/3level.h: New file, copied from glibc.
50290         * lib/unictype/3levelbit.h: New file.
50291
50292 2007-11-11  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/gperf: New file.
50295         * modules/iconv_open (Depends-on): Add it.
50296         (Makefile.am): Remove the GPERF definition.
50297
50298 2007-11-11  Bruno Haible  <bruno@clisp.org>
50299
50300         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50301         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50302
50303 2007-11-11  Bruno Haible  <bruno@clisp.org>
50304
50305         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50306         (usage): Remove function.
50307
50308 2007-11-11  Bruno Haible  <bruno@clisp.org>
50309
50310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50311         gl_FUNC_CEILF_LIBS.
50312         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50313         gl_FUNC_CEIL_LIBS.
50314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50315         gl_FUNC_CEILL_LIBS.
50316         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50317         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50318         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50319
50320 2007-11-11  Bruno Haible  <bruno@clisp.org>
50321
50322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50323         roundf were declared but do not exist on functions.
50324         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50325         roundl were declared but do not exist on functions.
50326         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50327         HAVE_FLOORL_AND_CEILL, respectively.
50328         Needed for Sun C on Solaris 10.
50329
50330 2007-11-11  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50333         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50334         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50335         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50336         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50337         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50338         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50339         HAVE_DECL_ROUNDF.
50340         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50341         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50343         of HAVE_DECL_ROUND*.
50344         * modules/math (Makefile.am): Update.
50345
50346 2007-11-10  Bruno Haible  <bruno@clisp.org>
50347
50348         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50349         ptrdiff_t as m4/intl.m4.
50350
50351 2007-11-10  Jim Meyering  <meyering@redhat.com>
50352
50353         Avoid link failure for the argmatch test.
50354         * tests/test-argmatch.c (usage): Define function to avoid a link
50355         failure: argmatch_die requires a usage function.
50356
50357 2007-11-09  Bruno Haible  <bruno@clisp.org>
50358
50359         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50360         * doc/functions/vsnprintf.texi: Likewise.
50361         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50362         with a size argument < 2.
50363
50364 2007-11-09  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50367         buffer. Fixes an inefficiency introduced on 2007-11-03.
50368
50369 2007-11-09  Bruno Haible  <bruno@clisp.org>
50370
50371         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50372         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50373
50374 2007-11-08  Jim Meyering  <meyering@redhat.com>
50375
50376         Change cache variable name prefix "jm_" to "gl_" everywhere.
50377         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50378         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50379         * m4/uptime.m4: s/gl_/jm_/
50380
50381 2007-11-07  Bruno Haible  <bruno@clisp.org>
50382
50383         Update to GNU gettext 0.17.
50384         * m4/intl.m4: Update to GNU gettext 0.17.
50385         * m4/po.m4: Likewise.
50386         * modules/gettext (Files): Remove m4/ulonglong.m4.
50387         (configure.ac): Require gettext infrastructure from version 0.17.
50388
50389 2007-11-06  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50392         symbolic values are not defined in a public header.
50393         * lib/freadable.c (freadable) [QNX]: Likewise.
50394         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50395         * lib/freading.c (freading) [QNX]: Likewise.
50396         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50397         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50398         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50399         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50400         Reported by Alain Magloire.
50401
50402         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50403
50404 2007-11-05  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50407         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50408         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50409         Reported by Eric Blake.
50410
50411 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50412             Bruno Haible  <bruno@clisp.org>
50413
50414         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50415         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50416         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50417         (malloc): Undefine also before including <stdlib.h>.
50418         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50419         Needed on OSF/1 4.0.
50420
50421 2007-11-05  Jim Meyering  <meyering@redhat.com>
50422
50423         git-version-gen: sync from coreutils.
50424         * build-aux/git-version-gen: Add comments.
50425         Change the first '-' to '.' in the snapshot version string,
50426         e.g., 6.9-377-08144 -> 6.9.377-08144
50427         Remove first parameter.
50428         Don't declare a version "-dirty" merely because a time
50429         stamp has changed.
50430
50431 2007-11-04  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/lock.h: Protect all macro definitions containing an 'if'
50434         statement through a "do { ... } while (0)".
50435         * lib/tls.h: Likewise.
50436
50437 2007-11-04  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50440
50441 2007-11-04  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50444         * modules/fprintf-posix (Depends-on): Add nocrash.
50445         * modules/snprintf-posix (Depends-on): Likewise.
50446         * modules/sprintf-posix (Depends-on): Likewise.
50447         * modules/vasnprintf-posix (Depends-on): Likewise.
50448         * modules/vasprintf-posix (Depends-on): Likewise.
50449         * modules/vfprintf-posix (Depends-on): Likewise.
50450         * modules/vsnprintf-posix (Depends-on): Likewise.
50451         * modules/vsprintf-posix (Depends-on): Likewise.
50452         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50453         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50454         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50455         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50456         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50457         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50458         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50459
50460 2007-11-04  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/nocrash: New file.
50463         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50464         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50465
50466 2007-11-04  Bruno Haible  <bruno@clisp.org>
50467
50468         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50469         precision handling.
50470         * tests/test-vasprintf-posix.c (test_function): Likewise.
50471         * tests/test-snprintf-posix.h (test_function): Likewise.
50472         * tests/test-sprintf-posix.h (test_function): Likewise.
50473
50474         Fix *printf behaviour for large precisions on mingw and BeOS.
50475         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50476         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50478         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50480         gl_PRINTF_PRECISION and test its result. Invoke
50481         gl_PREREQ_VASNPRINTF_PRECISION.
50482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50483         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50487         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50489         * doc/functions/fprintf.texi: Update.
50490         * doc/functions/printf.texi: Update.
50491         * doc/functions/snprintf.texi: Update.
50492         * doc/functions/sprintf.texi: Update.
50493         * doc/functions/vfprintf.texi: Update.
50494         * doc/functions/vprintf.texi: Update.
50495         * doc/functions/vsnprintf.texi: Update.
50496         * doc/functions/vsprintf.texi: Update.
50497
50498 2007-11-04  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50501
50502 2007-11-04  Bruno Haible  <bruno@clisp.org>
50503
50504         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50505         Reported by Sylvain Beucler <beuc@gnu.org>.
50506
50507 2007-11-03  Bruno Haible  <bruno@clisp.org>
50508
50509         * tests/test-fprintf-posix2.sh: New file.
50510         * tests/test-fprintf-posix2.c: New file.
50511         * modules/fprintf-posix-tests (Files): Add them.
50512         (TESTS): Add test-fprintf-posix2.sh.
50513         (configure.ac): Check for getrlimit and setrlimit.
50514         (check_PROGRAMS): Add test-fprintf-posix2.
50515
50516         * tests/test-printf-posix2.sh: New file.
50517         * tests/test-printf-posix2.c: New file.
50518         * modules/printf-posix-tests (Files): Add them.
50519         (TESTS): Add test-printf-posix2.sh.
50520         (configure.ac): Check for getrlimit and setrlimit.
50521         (check_PROGRAMS): Add test-printf-posix2.
50522
50523         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50524         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50525         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50526         (decode_double): New function, copied from decode_long_double.
50527         (scale10_round_decimal_decoded): New function, extracted from
50528         scale10_round_decimal_long_double.
50529         (scale10_round_decimal_long_double): Use it.
50530         (scale10_round_decimal_double): New function.
50531         (floorlog10): New function.
50532         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50534         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50535         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50536         gl_PRINTF_ENOMEM and test its result. Invoke
50537         gl_PREREQ_VASNPRINTF_ENOMEM.
50538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50545         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50546         * modules/snprintf-posix (Depends-on): Likewise.
50547         * modules/sprintf-posix (Depends-on): Likewise.
50548         * modules/vasnprintf-posix (Depends-on): Likewise.
50549         * modules/vasprintf-posix (Depends-on): Likewise.
50550         * modules/vfprintf-posix (Depends-on): Likewise.
50551         * modules/vsnprintf-posix (Depends-on): Likewise.
50552         * modules/vsprintf-posix (Depends-on): Likewise.
50553         * doc/functions/fprintf.texi: Update.
50554         * doc/functions/printf.texi: Update.
50555         * doc/functions/snprintf.texi: Update.
50556         * doc/functions/sprintf.texi: Update.
50557         * doc/functions/vfprintf.texi: Update.
50558         * doc/functions/vprintf.texi: Update.
50559         * doc/functions/vsnprintf.texi: Update.
50560         * doc/functions/vsprintf.texi: Update.
50561
50562 2007-11-03  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/frexp-nolibm-tests: New file.
50565
50566         * modules/frexp-nolibm: New file.
50567         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50568
50569 2007-11-03  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50572         value is C99 compliant.
50573         Needed for OSF/1 5.1.
50574
50575 2007-11-03  Bruno Haible  <bruno@clisp.org>
50576
50577         Fix out-of-memory handling of vasnprintf.
50578         * lib/printf-parse.c: Include <errno.h>.
50579         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50580         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50581         is already set.
50582
50583 2007-11-02  Eric Blake  <ebb9@byu.net>
50584
50585         Fix tests on cygwin.
50586         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50587
50588 2007-11-01  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50591         warning.
50592         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50593         needed for POSIX compatibility.
50594
50595 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50598         for compatibility with GNU.
50599
50600 2007-11-01  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50603         (putenv): Renamed from rpl_putenv. Change argument type from
50604         'const char *' to 'char *'.
50605         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50606         of defining putenv in config.h, just set REPLACE_PUTENV.
50607         * modules/putenv (Depends-on): Add stdlib.
50608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50609         (Include): Use <stdlib.h>.
50610         * lib/stdlib.in.h (putenv): New declaration.
50611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50612         REPLACE_PUTENV.
50613         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50614         REPLACE_PUTENV.
50615         Needed for MacOS X 10.5.0.
50616         Reported by Peter O'Gorman <peter@pogma.com>.
50617
50618 2007-11-01  Jim Meyering  <meyering@redhat.com>
50619
50620         Treat an empty date string exactly like "0".
50621         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50622         if the remaining date string (to be parsed) is empty, use "0".
50623         Reported by Mischa Molhoek and discussed in this thread:
50624         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50625
50626 2007-10-31  Bruno Haible  <bruno@clisp.org>
50627
50628         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50629         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50630         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50631         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50632         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50633         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50634
50635 2007-10-31  Bruno Haible  <bruno@clisp.org>
50636
50637         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50638         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50639         (AC_TYPE_LONG_LONG_INT): Use it.
50640         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50641         it as well.
50642         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50643         to m4/longlong.m4.
50644         * modules/stdint (Files): Remove m4/ulonglong.m4.
50645         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50646         m4/ulonglong.m4.
50647         * modules/strtoumax (Files): Likewise.
50648
50649 2007-10-30  Bruno Haible  <bruno@clisp.org>
50650
50651         * modules/xvasprintf-posix: New file.
50652         Suggested by Eric Blake.
50653
50654 2007-10-30  Bruno Haible  <bruno@clisp.org>
50655
50656         * modules/xprintf-posix-tests: New file.
50657         * tests/test-xprintf-posix.sh: New file.
50658         * tests/test-xprintf-posix.c: New file.
50659         * tests/test-xfprintf-posix.c: New file.
50660
50661         * modules/xprintf-posix: New file.
50662
50663 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50664
50665         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50666         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50667         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50668
50669 2007-10-29  Bruno Haible  <bruno@clisp.org>
50670
50671         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50672         contain the special marker '_cv_'.
50673         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50675         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50676         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50677         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50678         Reported by Ralf Wildenhues.
50679
50680 2007-10-29  Bruno Haible  <bruno@clisp.org>
50681
50682         * gnulib-tool (func_import): When --lgpl is not specified, set
50683         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50684         GPLv3.
50685         Reported by Simon Josefsson.
50686
50687 2007-10-28  Bruno Haible  <bruno@clisp.org>
50688
50689         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50690         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50691         HAVE_DECL_ISFINITE.
50692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50693         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50694         HAVE_DECL_ISFINITE.
50695
50696 2007-10-28  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50699         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50700
50701 2007-10-28  Bruno Haible  <bruno@clisp.org>
50702
50703         Fix link errors with Sun C 5.0 on Solaris 10.
50704         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50705         function is declared but not present in the compiler's libm.
50706         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50707         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50708         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50709         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50710         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50711         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50712         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50714         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50715         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50716         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50717         HAVE_DECL_FLOORL.
50718
50719 2007-10-28  Bruno Haible  <bruno@clisp.org>
50720
50721         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50722         gl_FUNC_FLOORL. Cache the result.
50723         (gl_FUNC_FLOORL): Use it.
50724         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50725         gl_FUNC_CEILL. Cache the result.
50726         (gl_FUNC_CEILL): Use it.
50727
50728         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50729         gl_FUNC_FLOOR. Cache the result.
50730         (gl_FUNC_FLOOR): Use it.
50731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50732         gl_FUNC_CEIL. Cache the result.
50733         (gl_FUNC_CEIL): Use it.
50734
50735         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50736         gl_FUNC_FLOORF. Cache the result.
50737         (gl_FUNC_FLOORF): Use it.
50738         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50739         gl_FUNC_CEILF. Cache the result.
50740         (gl_FUNC_CEILF): Use it.
50741
50742 2007-10-28  Bruno Haible  <bruno@clisp.org>
50743
50744         * gnulib-tool: Allow specifying the LGPL version number through
50745         --lgpl=2 or --lgpl=3.
50746         (func_usage): Document --lgpl with argument.
50747         Handle --lgpl=... arguments.
50748         (func_import): Recognize also gl_LGPL calls with an argument. When
50749         --lgpl=2 is used and the module's license is just LGPL, report an
50750         error. Set sed_transform_lib_file according to the lgpl variable. In
50751         the generated files, use --lgpl or gl_LGPL invocations with argument,
50752         if necessary.
50753         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50754         an LGPv2+ license.
50755         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50756         gl_LGPL macro.
50757
50758 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50759             Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50762         (u16_uctomb_aux): Likewise.
50763         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50764         !HAVE_INLINE.
50765         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50766
50767 2007-10-28  Bruno Haible  <bruno@clisp.org>
50768
50769         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50770         Invoke AM_GETTEXT_OPTION if it exists.
50771         * modules/vasprintf: Likewise.
50772         * modules/verror: Likewise.
50773         * modules/xprintf: Likewise.
50774         * modules/xvasprintf: Likewise.
50775
50776 2007-10-27  Ben Pfaff  <blp@gnu.org>
50777
50778         * lib/math.in.h: Define isfinite macro and prototypes for
50779         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50780         implementations.
50781         * m4/math_h.m4: New substitutions for isfinite module.
50782         * lib/isfinite.c: New file.
50783         * m4/isfinite.m4: New file.
50784         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50785         * modules/isfinite: New file.
50786         * modules/isfinite-tests: New file.
50787         * tests/tests-isfinite.c: New file.
50788         * doc/functions/isfinite.texi: Mention isfinite module.
50789         * MODULES.html.sh: Mention new module.
50790
50791 2007-10-27  Ben Pfaff  <blp@gnu.org>
50792
50793         Ralf Wildenhues reported that Tru64 4.0D declares the round
50794         functions but does not have definitions.
50795         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50796         cannot be found in any library, set the output variable to
50797         "missing" instead of "".
50798         * m4/round.m4: Also use our substitute if we cannot find round in
50799         any library, even if it is declared.
50800         * m4/roundf.m4: Likewise for roundf.
50801         * m4/roundl.m4: Likewise for roundl.
50802         * lib/math.in.h: Undefine roundf, round, roundl before defining
50803         their replacements, to allow for hypothetical systems where these
50804         may be defined as macros but not available in libraries.
50805
50806 2007-10-27  Bruno Haible  <bruno@clisp.org>
50807
50808         * doc/gnulib.texi: Invoke @firstparagraphindent.
50809         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50810         changes in gnulib.
50811         (Source changes): New section.
50812
50813 2007-10-26  Bruno Haible  <bruno@clisp.org>
50814
50815         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50816         borrowed from autoconf.
50817
50818 2007-10-26  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50821         strerror returned the empty string. Needed on HP-UX 11.00.
50822
50823 2007-10-24  Micah Cowan  <micah@cowan.name>
50824
50825         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50826         * build-aux/bootstrap: Remove support for now-unnecessary option,
50827         --cvs-user, and envvars CVS_USER, CVS_RSH.
50828
50829 2007-10-24  Jim Meyering  <meyering@redhat.com>
50830
50831         Avoid diagnostics from sha1sum when there is no cached checksum.
50832         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50833         if the po.s1 file hasn't been created yet.
50834
50835         * build-aux/bootstrap: Sync from coreutils:
50836         2007-10-24  Jim Meyering  <meyering@redhat.com>
50837         Get gnulib from the git repository, not from an obsolete cvs one.
50838         * build-aux/bootstrap: Suggestion from Micah Cowan.
50839         2007-10-04  Jim Meyering  <jim@meyering.net>
50840         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50841         (update_po_files): Work also when there are no .po files in po/.
50842
50843 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50844
50845         * README: Append ".git" to git and cg examples.
50846         Problem reported by Benoit Sigoure.
50847
50848 2007-10-23  Micah Cowan  <micah@cowan.name>
50849
50850         * users.txt: Add wget.
50851
50852 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50853
50854         Fix linking of some unistdio tests on FreeBSD.
50855         * modules/unistdio/u16-vsnprintf-tests
50856         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50857         * modules/unistdio/u16-vsprintf-tests
50858         (test_u16_vsnprintf1_LDADD): Likewise.
50859         * modules/unistdio/u32-vsnprintf-tests
50860         (test_u32_vsnprintf1_LDADD): Likewise.
50861         * modules/unistdio/u32-vsprintf-tests
50862         (test_u32_vsprintf1_LDADD): Likewise.
50863         * modules/unistdio/u8-vsnprintf-tests
50864         (test_u8_vsnprintf1_LDADD): Likewise.
50865         * modules/unistdio/u8-vsprintf-tests
50866         (test_u8_vsprintf1_LDADD): Likewise.
50867         * modules/unistdio/ulc-vsnprintf-tests
50868         (test_ulc_vsnprintf1_LDADD): Likewise.
50869         * modules/unistdio/ulc-vsprintf-tests
50870         (test_ulc_vsprintf1_LDADD): Likewise.
50871
50872         Fix linking of some uniconv tests on FreeBSD.
50873         * modules/uniconv/u16-conv-from-enc-tests
50874         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50875         * modules/uniconv/u16-conv-to-enc-tests
50876         (test_u16_conv_to_enc_LDADD): Likewise.
50877         * modules/uniconv/u16-strconv-from-enc-tests
50878         (test_u16_strconv_from_enc_LDADD): Likewise.
50879         * modules/uniconv/u16-strconv-to-enc-tests
50880         (test_u16_strconv_to_enc_LDADD): Likewise.
50881         * modules/uniconv/u32-conv-from-enc-tests
50882         (test_u32_conv_from_enc_LDADD): Likewise.
50883         * modules/uniconv/u32-conv-to-enc-tests
50884         (test_u32_conv_to_enc_LDADD): Likewise.
50885         * modules/uniconv/u32-strconv-from-enc-tests
50886         (test_u32_strconv_from_enc_LDADD): Likewise.
50887         * modules/uniconv/u32-strconv-to-enc-tests
50888         (test_u32_strconv_to_enc_LDADD): Likewise.
50889         * modules/uniconv/u8-conv-from-enc-tests
50890         (test_u8_conv_from_enc_LDADD): Likewise.
50891         * modules/uniconv/u8-conv-to-enc-tests
50892         (test_u8_conv_to_enc_LDADD): Likewise.
50893         * modules/uniconv/u8-strconv-from-enc-tests
50894         (test_u8_strconv_from_enc_LDADD): Likewise.
50895         * modules/uniconv/u8-strconv-to-enc-tests
50896         (test_u8_strconv_to_enc_LDADD): Likewise.
50897
50898 2007-10-22  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50901         size.
50902
50903 2007-10-22  Eric Blake  <ebb9@byu.net>
50904
50905         Tweak x*printf documentation.
50906         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50907         variable name and comments.
50908         Suggested by Bruno Haible.
50909
50910 2007-10-22  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/acl.c (copy_acl): Fix file name in comment.
50913
50914 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         Fix Tru64 problem with stdbool.h.
50917         * lib/stdbool.in.h (false, true):
50918         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50919         Don't declare as an enum in this situation; it runs afoul of Tru64.
50920         Problem reported by Steven M. Schweda in
50921         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50922
50923 2007-10-22  Eric Blake  <ebb9@byu.net>
50924
50925         Also wrap vf?printf.
50926         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50927         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50928         (xvprintf, xvfprintf): New functions.
50929
50930 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50931
50932         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50933         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50934
50935         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50936         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50937
50938 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50939
50940         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50941         by Bruno Haible.
50942
50943 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50944
50945         * lib/getloadavg.c
50946         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50947         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50948
50949         * tests/test-i-ring.c: Work for C89.
50950
50951 2007-10-22  Bruno Haible  <bruno@clisp.org>
50952
50953         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50954         -1u, in preprocessor expression, so that we don't test for the bug
50955         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50957
50958 2007-10-22  Eric Blake  <ebb9@byu.net>
50959
50960         * tests/test-yesno.sh: Silence stderr during test.
50961
50962 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50963
50964         * modules/crypto/gc-camellia: New file.
50965
50966         * m4/gc-camellia.m4: New file.
50967
50968         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50969
50970         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50971
50972 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50973
50974         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50975         --help to stdout.  Reported by sms@antinode.org (Steven
50976         M. Schweda).
50977
50978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50979
50980         * users.txt: Fix link to libksba.
50981
50982 2007-10-21  Ben Pfaff  <blp@gnu.org>
50983
50984         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50985         round.c roundf implementation that depends on floorf and ceilf to
50986         be tested unconditionally.
50987
50988 2007-10-21  Ben Pfaff  <blp@gnu.org>
50989
50990         * m4/check-libm-func.m4: Removed.
50991         * m4/check-math-lib.m4: New file.
50992         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50993         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50994         definition and lack of AC_LIBOBJ([roundf]).
50995         * m4/roundl.m4: Ditto, and similarly for roundl.
50996         * modules/round: Reference new m4 file.
50997         * modules/roundf: Ditto.
50998         * modules/roundl: Ditto.
50999         * tests/test-round2.c (main): Use ROUND instead of round.
51000         Bug report from Bruno Haible.
51001
51002 2007-10-21  Bruno Haible  <bruno@clisp.org>
51003
51004         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51005         context.
51006
51007 2007-10-21  Bruno Haible  <bruno@clisp.org>
51008
51009         * tests/test-wcwidth.c (main): Allow negative result for some control
51010         characters.
51011
51012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51013         Needed on OSF/1 5.1.
51014
51015 2007-10-21  Bruno Haible  <bruno@clisp.org>
51016
51017         * tests/test-floorf1.c: Include isnanf.h.
51018         (main): Use isnanf() instead of isnan().
51019         * tests/test-ceilf1.c: Include isnanf.h.
51020         (main): Use isnanf() instead of isnan().
51021         * tests/test-truncf1.c: Include isnanf.h.
51022         (main): Use isnanf() instead of isnan().
51023         * tests/test-roundf1.c: Include isnanf.h.
51024         (main): Use isnanf() instead of isnan().
51025
51026 2007-10-21  Eric Blake  <ebb9@byu.net>
51027
51028         * users.txt: Update URL for m4.
51029
51030 2007-10-21  Bruno Haible  <bruno@clisp.org>
51031
51032         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51033
51034 2007-10-21  Bruno Haible  <bruno@clisp.org>
51035
51036         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51037         Git's management files if the CVS files are not present.
51038
51039 2007-10-20  Bruno Haible  <bruno@clisp.org>
51040
51041         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51042         gcc-3.4.x.
51043
51044 2007-10-20  Ben Pfaff  <blp@gnu.org>
51045
51046         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51047         implementations.
51048         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51049         * lib/round.c: New file.
51050         * lib/roundf.c: New file.
51051         * lib/roundl.c: New file.
51052         * m4/round.m4: New file.
51053         * m4/roundf.m4: New file.
51054         * m4/roundl.m4: New file.
51055         * m4/check-libm-func-m4: New file.
51056         * modules/math: Replace round, roundf, roundl related @VARS@ in
51057         math.in.h.
51058         * modules/round: New file.
51059         * modules/round-tests: New file.
51060         * modules/roundf: New file.
51061         * modules/roundf-tests: New file.
51062         * modules/roundl: New file.
51063         * modules/roundl-tests: New file.
51064         * tests/test-round1.c: New file.
51065         * tests/test-round2.c: New file.
51066         * tests/test-roundf1.c: New file.
51067         * tests/test-roundf2.c: New file.
51068         * tests/test-roundl.c: New file.
51069         * doc/functions/round.texi: Mention round module.
51070         * doc/functions/roundf.texi: Mention roundf module.
51071         * doc/functions/roundl.texi: Mention roundl module.
51072         * MODULES.html.sh: Mention new modules.
51073         Thanks to Bruno Haible for suggestions.
51074
51075 2007-10-20  Jim Meyering  <meyering@redhat.com>
51076
51077         * lib/xprintf.c: Include <config.h> unconditionally.
51078
51079         Change xprintf's license to GPL.
51080         * modules/xprintf (License): s/LGPL/GPL/, since this module
51081         depends on modules (exit and exitfail) which are GPL.
51082         Suggestion from Bruno Haible.
51083
51084         xprintf fixes.
51085         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51086         Use a clearer diagnostic.
51087         Patch from Bruno Haible.
51088
51089 2007-10-20  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51092         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51094
51095 2007-10-20  Bruno Haible  <bruno@clisp.org>
51096
51097         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51098         precision in the comparison result > x - 1 or similar.
51099         * tests/test-ceilf2.c (correct_result_p): Likewise.
51100         * tests/test-truncf2.c (correct_result_p): Likewise.
51101         * tests/test-trunc2.c (correct_result_p): Likewise.
51102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51103
51104 2007-10-20  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/ceil: New file.
51107         * m4/ceil.m4: New file.
51108         * doc/functions/ceil.texi: Mention the 'ceil' module.
51109
51110 2007-10-20  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/floor: New file.
51113         * m4/floor.m4: New file.
51114         * doc/functions/floor.texi: Mention the 'floor' module.
51115
51116 2007-10-20  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51119         of %a.
51120         * modules/floorf-tests (Depends-on): Likewise.
51121         * modules/truncf-tests (Depends-on): Likewise.
51122         * modules/trunc-tests (Depends-on): Likewise.
51123         Reported by Ben Pfaff.
51124
51125 2007-10-19  Jim Meyering  <meyering@redhat.com>
51126
51127         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51128         Don't bother testing specific errno values.  Just test ferror.
51129
51130         New module: xprintf
51131         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51132
51133 2007-10-19  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51136         syntax.
51137         * modules/javaexec (Makefile.am): Likewise.
51138         * modules/relocatable-prog (Makefile.am): Likewise.
51139         Suggested by Jim Meyering.
51140
51141 2007-10-18  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51144         Reported by Jim Meyering.
51145
51146 2007-10-18  Eric Blake  <ebb9@byu.net>
51147
51148         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51149
51150 2007-10-18  Bruno Haible  <bruno@clisp.org>
51151
51152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51153         the format string into writable memory. Needed in Fortify conditions.
51154
51155 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51156             Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51159         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51160         * modules/trim (Depends-on): Add mbchar.
51161         (configure.ac): Add gl_FUNC_MBRTOWC.
51162         (Makefile.am): Augment lib_SOURCES.
51163
51164 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         Modify glob.c to use fstatat and dirfd, to simplify it.
51167         Suggested by Eric Blake.
51168         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51169         Don't include <stdbool.h>; not used.
51170         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51171         (link_exists_p): Simplify implementation, since we can now assume
51172         dirfd and fstatat.
51173         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51174
51175 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51176
51177         * gnulib-tool (func_get_dependencies): Fix sed script to
51178         match only tests.
51179
51180 2007-10-17  Bruno Haible  <bruno@clisp.org>
51181
51182         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51183         allow locale names without encoding suffix.
51184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51186
51187 2007-10-16  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51190         * lib/getgroups.c (getgroups): Likewise.
51191         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51192
51193 2007-10-16  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51196         * modules/malloc-posix (License): Likewise.
51197         * modules/realloc-posix (License): Likewise.
51198         * modules/calloc-posix (License): Likewise.
51199         * modules/intprops (License): Change from GPL to LGPL, with
51200         Paul Eggert's approval.
51201
51202 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         Merge glibc changes into lib/glob.c.
51205
51206         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51207         2007-10-15 04:59:03 UTC.  Here are the changes:
51208
51209         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51210
51211         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51212
51213         * lib/glob.c: Add some branch prediction throughout.
51214
51215         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51216
51217         [BZ #5103]
51218         * lib/glob.c (glob): Recognize patterns starting \/.
51219
51220         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51221
51222         [BZ #3996]
51223         * lib/glob.c (attribute_hidden): Define if not defined.
51224         (glob): Unescape dirname, filename or username when needed and not
51225         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51226         is NULL.  Handle unescaped [ in pattern without closing ].
51227         Don't pass GLOB_CHECK down to recursive glob for directories.
51228         (__glob_pattern_type): New function.
51229         (__glob_pattern_p): Implement using __glob_pattern_type.
51230         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51231         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51232         Remove unreachable code.
51233
51234         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51235
51236         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51237         explain why there are no leaks.
51238
51239         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51240
51241         [BZ #3253]
51242         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51243         time, rather allocate increasingly bigger arrays of pointers, if
51244         possible with alloca, if too large with malloc.
51245
51246 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51247
51248         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51249         Problem reported by H.Merijn Brand in
51250         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51251         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51252         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51253
51254 2007-10-15  Bruno Haible  <bruno@clisp.org>
51255
51256         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51257         with explicit rpl_ prefix.
51258         * lib/fopen.c (fopen): Likewise.
51259         * lib/freopen.c (freopen): Likewise.
51260         * lib/iconv.c (iconv): Likewise.
51261         * lib/iconv_close.c (iconv_close): Likewise.
51262
51263 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51264
51265         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51266
51267 2007-10-15  Bruno Haible  <bruno@clisp.org>
51268
51269         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51270         <stddef.h> instead of <stdlib.h> since we only need NULL.
51271         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51272
51273 2007-10-15  Bruno Haible  <bruno@clisp.org>
51274
51275         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51276         Replace paragraph talking about LIBOBJS.
51277         Reported by Colin Watson <cjwatson@debian.org>.
51278
51279 2007-10-15  Bruno Haible  <bruno@clisp.org>
51280
51281         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51282         <stdlib.h> before using NULL.
51283
51284 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51285
51286         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51287         Reported by Albert Chin <china@thewrittenword.com>.
51288
51289 2007-10-14  Bruno Haible  <bruno@clisp.org>
51290
51291         * modules/iconv_open-utf-tests: New file.
51292         * tests/test-iconv-utf.c: New file.
51293
51294         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51295         * modules/iconv_open-utf: New file.
51296         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51297         (iconv, iconv_close): New declarations.
51298         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51299         be defined.
51300         (iconv_open): Add special handling of conversion between UTF-8 and
51301         UTF-{16,32}{BE,LE}.
51302         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51303         * lib/iconv_close.c: New file.
51304         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51305         gl_FUNC_ICONV_OPEN.
51306         (gl_FUNC_ICONV_OPEN): Use it.
51307         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51308         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51309         and REPLACE_ICONV_UTF.
51310         * modules/iconv_open (Depends-on): Add c-strcase.
51311         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51312         ICONV_CONST.
51313         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51314
51315 2007-10-13  Albert Chin  <china@thewrittenword.com>
51316             Bruno Haible  <bruno@clisp.org>
51317
51318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51319         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51320
51321 2007-10-13  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51324         defined, use the ISO C99 inline semantics.
51325         * lib/argp.h (ARGP_EI): Likewise.
51326
51327 2007-10-13  Bruno Haible  <bruno@clisp.org>
51328
51329         Handle 'inline' change in gcc 4.3.0.
51330         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51331         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51332         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51333         argp_fmtstream_point): Disable 'extern' declaration if the function
51334         definition is going to be provided inline.
51335         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51336         semantics, not the ISO C99 inline semantics.
51337         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51338         'extern' declaration if the function definition is going to be provided
51339         inline.
51340         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51341         the GNU C inline semantics, not the ISO C99 inline semantics. With
51342         GCC 4.2, avoid a warning.
51343
51344 2007-10-13  Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/freading.h (freading): Enable the use of __freading for
51347         glibc >= 2.7.
51348         * lib/freading.c (freading): Likewise.
51349
51350 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51351
51352         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51353         "warning: C99 inline functions are not supported; using GNU89".
51354
51355 2007-10-12  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51358         of 2.
51359         * tests/test-ceilf2.c: New file.
51360         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51361
51362         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51363         * modules/ceilf-tests: Update.
51364
51365 2007-10-12  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51368         of 2.
51369         * tests/test-floorf2.c: New file.
51370         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51371
51372         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51373         * modules/floorf-tests: Update.
51374
51375 2007-10-12  Bruno Haible  <bruno@clisp.org>
51376
51377         * tests/test-trunc2.c: New file.
51378         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51379
51380         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51381         * modules/trunc-tests: Update.
51382
51383 2007-10-12  Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51386         of 2.
51387         * tests/test-truncf2.c: New file.
51388         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51389
51390         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51391         * modules/truncf-tests: Update.
51392
51393 2007-10-11  Eric Blake  <ebb9@byu.net>
51394
51395         Don't claim strerror is broken on Interix.
51396         * doc/functions/strerror.texi (strerror): Known broken systems are
51397         now Solaris 8, and not Interix.
51398         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51399         Interix on cross-compile.
51400         Reported by Martin Koeppe in
51401         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51402
51403 2007-10-11  Bruno Haible  <bruno@clisp.org>
51404
51405         * modules/i-ring-tests: New file.
51406         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51407         instead of assert.
51408
51409 2007-10-11  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/filenamecat-tests: New file.
51412         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51413         * lib/filenamecat.c: Remove test code.
51414
51415 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51418
51419         * lib/strerror.c: Include <string.h> always, to test interface,
51420         and to remove the need for the dummy.
51421         Include intprops.h to compute width instead of doing it ourselves
51422         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51423         (strerror): Define it to return NULL if there's no system strerror.
51424         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51425         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51426         ancient pre-strerror Unix systems well any more.  Saying "unknown
51427         system error" is enough.
51428         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51429         simpler strerror.c implementation.
51430         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51431         Simplify the tests to reflect the simpler strerror implementation.
51432         * modules/strerror (Depends-on): Add intprops.
51433
51434 2007-10-09  Eric Blake  <ebb9@byu.net>
51435
51436         Silence test-fpending.
51437         * modules/fpending-tests (Files): Add wrapper script.
51438         * tests/test-fpending.sh: New file.
51439
51440 2007-10-09  Bruno Haible  <bruno@clisp.org>
51441
51442         * MODULES.html.sh (func_module): Don't create a hyperlink for
51443         function names like 'printf_frexp'.
51444         (Misc): Add crc, memxor.
51445         (Characteristics of floating types): New section.
51446         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51447         isnanf-nolibm, signbit, trunc, truncf, truncl.
51448         (Enhancements for ISO C 99 functions): New subsection Input/output.
51449         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51450         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51451         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51452         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51453         (Enhancements for POSIX:2001 functions): Add chdir-long.
51454         (File system functions): Add areadlink, chdir-safer, read-file.
51455         Remove cycle-check.
51456         (File system as inode set): New section.
51457         (Date and time): Add gethrxtime.
51458         (Multithreading): Add openmp.
51459         (Internationalization functions): Add localename.
51460         (Unicode string functions): Add unistr/u*-mbsnlen.
51461         (Support for maintaining and releasing projects): Add git-version-gen.
51462         (Lone files): Remove directories.
51463
51464 2007-10-08  Ben Pfaff  <blp@gnu.org>
51465
51466         * lib/xmalloca.h: Fix typo in comment.
51467
51468 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51469
51470         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51471         when avoiding problems with integer overflow.  Use a portable test
51472         instead.
51473
51474 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51475
51476         * modules/dummy (License): Change to LGPLv2+.
51477         * modules/float (License): Likewise
51478         * modules/realloc (License): Likewise
51479         * modules/stdlib (License): Likewise
51480
51481 2007-10-07  Bruno Haible  <bruno@clisp.org>
51482
51483         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51484         * floor.c (TWO_MANT_DIG): Likewise.
51485         * ceil.c (TWO_MANT_DIG): Likewise.
51486         Reported by Ben Pfaff.
51487
51488 2007-10-07  Bruno Haible  <bruno@clisp.org>
51489
51490         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51491         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51492         * lib/frexp.c (FUNC): Likewise.
51493         * lib/printf-frexp.h (printf_frexp): Likewise.
51494         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51495         * lib/printf-frexp.c (FUNC): Likewise.
51496         Suggested by Jim Meyering.
51497
51498 2007-10-07  Jim Meyering  <meyering@redhat.com>
51499
51500         Make xnanosleep's integer overflow test more robust.
51501         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51502         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51503
51504 2007-10-07  Bruno Haible  <bruno@clisp.org>
51505
51506         * NEWS: Mention the license change.
51507
51508         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51509         abbreviations in the modules files.
51510
51511         Change copyright notice from GPLv2+ to GPLv3+.
51512         * README: Change copyright notice.
51513         * MODULES.html.sh: Likewise.
51514         * build-aux/bootstrap.conf: Likewise.
51515         * build-aux/config.libpath: Likewise.
51516         * build-aux/csharpcomp.sh.in: Likewise.
51517         * build-aux/csharpexec.sh.in: Likewise.
51518         * build-aux/install-reloc: Likewise.
51519         * build-aux/javacomp.sh.in: Likewise.
51520         * build-aux/javaexec.sh.in: Likewise.
51521         * build-aux/ldd.sh.in: Likewise.
51522         * build-aux/reloc-ldflags: Likewise.
51523         * build-aux/relocatable.sh.in: Likewise.
51524         * build-aux/x-to-1.in: Likewise.
51525         * check-module: Likewise.
51526         * config/srclistvars.sh: Likewise.
51527         * gnulib-tool: Likewise.
51528         * lib/acl-internal.h: Likewise.
51529         * lib/acl.c: Likewise.
51530         * lib/acl.h: Likewise.
51531         * lib/acl_entries.c: Likewise.
51532         * lib/areadlink-with-size.c: Likewise.
51533         * lib/areadlink.c: Likewise.
51534         * lib/areadlink.h: Likewise.
51535         * lib/argmatch.c: Likewise.
51536         * lib/argmatch.h: Likewise.
51537         * lib/argp-ba.c: Likewise.
51538         * lib/argp-eexst.c: Likewise.
51539         * lib/argp-fmtstream.c: Likewise.
51540         * lib/argp-fmtstream.h: Likewise.
51541         * lib/argp-fs-xinl.c: Likewise.
51542         * lib/argp-help.c: Likewise.
51543         * lib/argp-namefrob.h: Likewise.
51544         * lib/argp-parse.c: Likewise.
51545         * lib/argp-pin.c: Likewise.
51546         * lib/argp-pv.c: Likewise.
51547         * lib/argp-pvh.c: Likewise.
51548         * lib/argp-xinl.c: Likewise.
51549         * lib/argp.h: Likewise.
51550         * lib/at-func.c: Likewise.
51551         * lib/atanl.c: Likewise.
51552         * lib/backupfile.c: Likewise.
51553         * lib/backupfile.h: Likewise.
51554         * lib/basename.c: Likewise.
51555         * lib/binary-io.h: Likewise.
51556         * lib/byteswap.in.h: Likewise.
51557         * lib/c-stack.c: Likewise.
51558         * lib/c-stack.h: Likewise.
51559         * lib/c-strcasestr.c: Likewise.
51560         * lib/c-strcasestr.h: Likewise.
51561         * lib/c-strstr.c: Likewise.
51562         * lib/c-strstr.h: Likewise.
51563         * lib/c-strtod.c: Likewise.
51564         * lib/calloc.c: Likewise.
51565         * lib/canon-host.c: Likewise.
51566         * lib/canon-host.h: Likewise.
51567         * lib/canonicalize-lgpl.c: Likewise.
51568         * lib/canonicalize.c: Likewise.
51569         * lib/canonicalize.h: Likewise.
51570         * lib/ceil.c: Likewise.
51571         * lib/ceilf.c: Likewise.
51572         * lib/ceill.c: Likewise.
51573         * lib/chdir-long.c: Likewise.
51574         * lib/chdir-long.h: Likewise.
51575         * lib/chdir-safer.c: Likewise.
51576         * lib/chdir-safer.h: Likewise.
51577         * lib/chown.c: Likewise.
51578         * lib/classpath.c: Likewise.
51579         * lib/classpath.h: Likewise.
51580         * lib/clean-temp.c: Likewise.
51581         * lib/clean-temp.h: Likewise.
51582         * lib/cloexec.c: Likewise.
51583         * lib/close-stream.c: Likewise.
51584         * lib/closein.c: Likewise.
51585         * lib/closein.h: Likewise.
51586         * lib/closeout.c: Likewise.
51587         * lib/closeout.h: Likewise.
51588         * lib/concat-filename.c: Likewise.
51589         * lib/copy-file.c: Likewise.
51590         * lib/copy-file.h: Likewise.
51591         * lib/count-one-bits.h: Likewise.
51592         * lib/crc.c: Likewise.
51593         * lib/crc.h: Likewise.
51594         * lib/creat-safer.c: Likewise.
51595         * lib/csharpcomp.c: Likewise.
51596         * lib/csharpcomp.h: Likewise.
51597         * lib/csharpexec.c: Likewise.
51598         * lib/csharpexec.h: Likewise.
51599         * lib/cycle-check.c: Likewise.
51600         * lib/cycle-check.h: Likewise.
51601         * lib/diacrit.c: Likewise.
51602         * lib/diacrit.h: Likewise.
51603         * lib/diffseq.h: Likewise.
51604         * lib/dirchownmod.c: Likewise.
51605         * lib/dirent.in.h: Likewise.
51606         * lib/dirfd.c: Likewise.
51607         * lib/dirfd.h: Likewise.
51608         * lib/dirname.c: Likewise.
51609         * lib/dirname.h: Likewise.
51610         * lib/dummy.c: Likewise.
51611         * lib/dup-safer.c: Likewise.
51612         * lib/dup2.c: Likewise.
51613         * lib/eealloc.h: Likewise.
51614         * lib/error.c: Likewise.
51615         * lib/error.h: Likewise.
51616         * lib/euidaccess.c: Likewise.
51617         * lib/exclude.c: Likewise.
51618         * lib/exclude.h: Likewise.
51619         * lib/execute.c: Likewise.
51620         * lib/execute.h: Likewise.
51621         * lib/exitfail.c: Likewise.
51622         * lib/exitfail.h: Likewise.
51623         * lib/expl.c: Likewise.
51624         * lib/fatal-signal.c: Likewise.
51625         * lib/fatal-signal.h: Likewise.
51626         * lib/fbufmode.c: Likewise.
51627         * lib/fbufmode.h: Likewise.
51628         * lib/fchdir.c: Likewise.
51629         * lib/fchmodat.c: Likewise.
51630         * lib/fchownat.c: Likewise.
51631         * lib/fcntl--.h: Likewise.
51632         * lib/fcntl-safer.h: Likewise.
51633         * lib/fcntl.in.h: Likewise.
51634         * lib/fd-safer.c: Likewise.
51635         * lib/fflush.c: Likewise.
51636         * lib/file-has-acl.c: Likewise.
51637         * lib/file-set.c: Likewise.
51638         * lib/file-type.c: Likewise.
51639         * lib/file-type.h: Likewise.
51640         * lib/fileblocks.c: Likewise.
51641         * lib/filemode.c: Likewise.
51642         * lib/filemode.h: Likewise.
51643         * lib/filename.h: Likewise.
51644         * lib/filenamecat.c: Likewise.
51645         * lib/filenamecat.h: Likewise.
51646         * lib/findprog.c: Likewise.
51647         * lib/findprog.h: Likewise.
51648         * lib/float.in.h: Likewise.
51649         * lib/floor.c: Likewise.
51650         * lib/floorf.c: Likewise.
51651         * lib/floorl.c: Likewise.
51652         * lib/fopen-safer.c: Likewise.
51653         * lib/fopen.c: Likewise.
51654         * lib/fpending.c: Likewise.
51655         * lib/fpending.h: Likewise.
51656         * lib/fprintf.c: Likewise.
51657         * lib/fprintftime.h: Likewise.
51658         * lib/fpucw.h: Likewise.
51659         * lib/fpurge.c: Likewise.
51660         * lib/fpurge.h: Likewise.
51661         * lib/freadable.c: Likewise.
51662         * lib/freadable.h: Likewise.
51663         * lib/freadahead.c: Likewise.
51664         * lib/freadahead.h: Likewise.
51665         * lib/freading.c: Likewise.
51666         * lib/freading.h: Likewise.
51667         * lib/free.c: Likewise.
51668         * lib/freopen.c: Likewise.
51669         * lib/frexp.c: Likewise.
51670         * lib/frexpl.c: Likewise.
51671         * lib/fseek.c: Likewise.
51672         * lib/fseterr.c: Likewise.
51673         * lib/fseterr.h: Likewise.
51674         * lib/fstatat.c: Likewise.
51675         * lib/fstrcmp.c: Likewise.
51676         * lib/fstrcmp.h: Likewise.
51677         * lib/fsusage.c: Likewise.
51678         * lib/fsusage.h: Likewise.
51679         * lib/ftell.c: Likewise.
51680         * lib/ftello.c: Likewise.
51681         * lib/fts-cycle.c: Likewise.
51682         * lib/fts.c: Likewise.
51683         * lib/fts_.h: Likewise.
51684         * lib/full-read.c: Likewise.
51685         * lib/full-read.h: Likewise.
51686         * lib/full-write.c: Likewise.
51687         * lib/full-write.h: Likewise.
51688         * lib/fwritable.c: Likewise.
51689         * lib/fwritable.h: Likewise.
51690         * lib/fwriteerror.c: Likewise.
51691         * lib/fwriteerror.h: Likewise.
51692         * lib/fwriting.c: Likewise.
51693         * lib/fwriting.h: Likewise.
51694         * lib/gcd.c: Likewise.
51695         * lib/gcd.h: Likewise.
51696         * lib/getcwd.c: Likewise.
51697         * lib/getdate.h: Likewise.
51698         * lib/getdate.y: Likewise.
51699         * lib/getdomainname.c: Likewise.
51700         * lib/getdomainname.h: Likewise.
51701         * lib/getgroups.c: Likewise.
51702         * lib/gethostname.c: Likewise.
51703         * lib/gethrxtime.c: Likewise.
51704         * lib/gethrxtime.h: Likewise.
51705         * lib/getloadavg.c: Likewise.
51706         * lib/getndelim2.c: Likewise.
51707         * lib/getndelim2.h: Likewise.
51708         * lib/getnline.c: Likewise.
51709         * lib/getnline.h: Likewise.
51710         * lib/getopt.c: Likewise.
51711         * lib/getopt.in.h: Likewise.
51712         * lib/getopt1.c: Likewise.
51713         * lib/getopt_int.h: Likewise.
51714         * lib/getpagesize.h: Likewise.
51715         * lib/getsubopt.c: Likewise.
51716         * lib/gettime.c: Likewise.
51717         * lib/getugroups.c: Likewise.
51718         * lib/getugroups.h: Likewise.
51719         * lib/getusershell.c: Likewise.
51720         * lib/gl_anyavltree_list1.h: Likewise.
51721         * lib/gl_anyavltree_list2.h: Likewise.
51722         * lib/gl_anyhash_list1.h: Likewise.
51723         * lib/gl_anyhash_list2.h: Likewise.
51724         * lib/gl_anylinked_list1.h: Likewise.
51725         * lib/gl_anylinked_list2.h: Likewise.
51726         * lib/gl_anyrbtree_list1.h: Likewise.
51727         * lib/gl_anyrbtree_list2.h: Likewise.
51728         * lib/gl_anytree_list1.h: Likewise.
51729         * lib/gl_anytree_list2.h: Likewise.
51730         * lib/gl_anytree_oset.h: Likewise.
51731         * lib/gl_anytreehash_list1.h: Likewise.
51732         * lib/gl_anytreehash_list2.h: Likewise.
51733         * lib/gl_array_list.c: Likewise.
51734         * lib/gl_array_list.h: Likewise.
51735         * lib/gl_array_oset.c: Likewise.
51736         * lib/gl_array_oset.h: Likewise.
51737         * lib/gl_avltree_list.c: Likewise.
51738         * lib/gl_avltree_list.h: Likewise.
51739         * lib/gl_avltree_oset.c: Likewise.
51740         * lib/gl_avltree_oset.h: Likewise.
51741         * lib/gl_avltreehash_list.c: Likewise.
51742         * lib/gl_avltreehash_list.h: Likewise.
51743         * lib/gl_carray_list.c: Likewise.
51744         * lib/gl_carray_list.h: Likewise.
51745         * lib/gl_linked_list.c: Likewise.
51746         * lib/gl_linked_list.h: Likewise.
51747         * lib/gl_linkedhash_list.c: Likewise.
51748         * lib/gl_linkedhash_list.h: Likewise.
51749         * lib/gl_list.c: Likewise.
51750         * lib/gl_list.h: Likewise.
51751         * lib/gl_oset.c: Likewise.
51752         * lib/gl_oset.h: Likewise.
51753         * lib/gl_rbtree_list.c: Likewise.
51754         * lib/gl_rbtree_list.h: Likewise.
51755         * lib/gl_rbtree_oset.c: Likewise.
51756         * lib/gl_rbtree_oset.h: Likewise.
51757         * lib/gl_rbtreehash_list.c: Likewise.
51758         * lib/gl_rbtreehash_list.h: Likewise.
51759         * lib/gl_sublist.c: Likewise.
51760         * lib/gl_sublist.h: Likewise.
51761         * lib/group-member.c: Likewise.
51762         * lib/group-member.h: Likewise.
51763         * lib/hard-locale.c: Likewise.
51764         * lib/hard-locale.h: Likewise.
51765         * lib/hash-pjw.c: Likewise.
51766         * lib/hash-pjw.h: Likewise.
51767         * lib/hash-triple.c: Likewise.
51768         * lib/hash.c: Likewise.
51769         * lib/hash.h: Likewise.
51770         * lib/human.c: Likewise.
51771         * lib/human.h: Likewise.
51772         * lib/i-ring.c: Likewise.
51773         * lib/i-ring.h: Likewise.
51774         * lib/idcache.c: Likewise.
51775         * lib/imaxabs.c: Likewise.
51776         * lib/imaxdiv.c: Likewise.
51777         * lib/inet_pton.c: Likewise.
51778         * lib/inet_pton.h: Likewise.
51779         * lib/intprops.h: Likewise.
51780         * lib/inttostr.c: Likewise.
51781         * lib/inttostr.h: Likewise.
51782         * lib/inttypes.in.h: Likewise.
51783         * lib/isapipe.c: Likewise.
51784         * lib/isdir.c: Likewise.
51785         * lib/isnan.c: Likewise.
51786         * lib/isnan.h: Likewise.
51787         * lib/isnanf.c: Likewise.
51788         * lib/isnanf.h: Likewise.
51789         * lib/isnanl-nolibm.h: Likewise.
51790         * lib/isnanl.c: Likewise.
51791         * lib/isnanl.h: Likewise.
51792         * lib/javacomp.c: Likewise.
51793         * lib/javacomp.h: Likewise.
51794         * lib/javaexec.c: Likewise.
51795         * lib/javaexec.h: Likewise.
51796         * lib/javaversion.c: Likewise.
51797         * lib/javaversion.h: Likewise.
51798         * lib/javaversion.java: Likewise.
51799         * lib/lbrkprop.h: Likewise.
51800         * lib/lchmod.h: Likewise.
51801         * lib/lchown.c: Likewise.
51802         * lib/ldexpl.c: Likewise.
51803         * lib/linebreak.c: Likewise.
51804         * lib/linebreak.h: Likewise.
51805         * lib/linebuffer.c: Likewise.
51806         * lib/linebuffer.h: Likewise.
51807         * lib/locale.in.h: Likewise.
51808         * lib/logl.c: Likewise.
51809         * lib/long-options.c: Likewise.
51810         * lib/long-options.h: Likewise.
51811         * lib/lstat.c: Likewise.
51812         * lib/lstat.h: Likewise.
51813         * lib/math.in.h: Likewise.
51814         * lib/mbchar.c: Likewise.
51815         * lib/mbchar.h: Likewise.
51816         * lib/mbfile.h: Likewise.
51817         * lib/mbiter.h: Likewise.
51818         * lib/mbscasecmp.c: Likewise.
51819         * lib/mbscasestr.c: Likewise.
51820         * lib/mbschr.c: Likewise.
51821         * lib/mbscspn.c: Likewise.
51822         * lib/mbslen.c: Likewise.
51823         * lib/mbsncasecmp.c: Likewise.
51824         * lib/mbsnlen.c: Likewise.
51825         * lib/mbspbrk.c: Likewise.
51826         * lib/mbspcasecmp.c: Likewise.
51827         * lib/mbsrchr.c: Likewise.
51828         * lib/mbssep.c: Likewise.
51829         * lib/mbsspn.c: Likewise.
51830         * lib/mbsstr.c: Likewise.
51831         * lib/mbstok_r.c: Likewise.
51832         * lib/mbswidth.c: Likewise.
51833         * lib/mbswidth.h: Likewise.
51834         * lib/mbuiter.h: Likewise.
51835         * lib/memcasecmp.c: Likewise.
51836         * lib/memcasecmp.h: Likewise.
51837         * lib/memchr.c: Likewise.
51838         * lib/memcmp.c: Likewise.
51839         * lib/memcoll.c: Likewise.
51840         * lib/memcoll.h: Likewise.
51841         * lib/memcpy.c: Likewise.
51842         * lib/memrchr.c: Likewise.
51843         * lib/mkancesdirs.c: Likewise.
51844         * lib/mkdir-p.c: Likewise.
51845         * lib/mkdir-p.h: Likewise.
51846         * lib/mkdir.c: Likewise.
51847         * lib/mkdirat.c: Likewise.
51848         * lib/mkdtemp.c: Likewise.
51849         * lib/mkstemp-safer.c: Likewise.
51850         * lib/mkstemp.c: Likewise.
51851         * lib/modechange.c: Likewise.
51852         * lib/modechange.h: Likewise.
51853         * lib/mountlist.c: Likewise.
51854         * lib/mountlist.h: Likewise.
51855         * lib/mpsort.c: Likewise.
51856         * lib/nanosleep.c: Likewise.
51857         * lib/obstack.c: Likewise.
51858         * lib/obstack.h: Likewise.
51859         * lib/open-safer.c: Likewise.
51860         * lib/open.c: Likewise.
51861         * lib/openat-die.c: Likewise.
51862         * lib/openat-priv.h: Likewise.
51863         * lib/openat-proc.c: Likewise.
51864         * lib/openat.c: Likewise.
51865         * lib/openat.h: Likewise.
51866         * lib/pagealign_alloc.c: Likewise.
51867         * lib/pagealign_alloc.h: Likewise.
51868         * lib/physmem.c: Likewise.
51869         * lib/physmem.h: Likewise.
51870         * lib/pipe-safer.c: Likewise.
51871         * lib/pipe.c: Likewise.
51872         * lib/pipe.h: Likewise.
51873         * lib/posixtm.c: Likewise.
51874         * lib/posixtm.h: Likewise.
51875         * lib/posixver.c: Likewise.
51876         * lib/printf-frexp.c: Likewise.
51877         * lib/printf-frexp.h: Likewise.
51878         * lib/printf-frexpl.c: Likewise.
51879         * lib/printf-frexpl.h: Likewise.
51880         * lib/printf.c: Likewise.
51881         * lib/progname.c: Likewise.
51882         * lib/progname.h: Likewise.
51883         * lib/progreloc.c: Likewise.
51884         * lib/putenv.c: Likewise.
51885         * lib/quote.c: Likewise.
51886         * lib/quote.h: Likewise.
51887         * lib/quotearg.c: Likewise.
51888         * lib/quotearg.h: Likewise.
51889         * lib/raise.c: Likewise.
51890         * lib/readline.c: Likewise.
51891         * lib/readline.h: Likewise.
51892         * lib/readlink.c: Likewise.
51893         * lib/readtokens.c: Likewise.
51894         * lib/readtokens.h: Likewise.
51895         * lib/readtokens0.c: Likewise.
51896         * lib/readtokens0.h: Likewise.
51897         * lib/readutmp.c: Likewise.
51898         * lib/readutmp.h: Likewise.
51899         * lib/realloc.c: Likewise.
51900         * lib/relocwrapper.c: Likewise.
51901         * lib/rename-dest-slash.c: Likewise.
51902         * lib/rename.c: Likewise.
51903         * lib/rmdir.c: Likewise.
51904         * lib/rpmatch.c: Likewise.
51905         * lib/safe-read.c: Likewise.
51906         * lib/safe-read.h: Likewise.
51907         * lib/safe-write.c: Likewise.
51908         * lib/safe-write.h: Likewise.
51909         * lib/same-inode.h: Likewise.
51910         * lib/same.c: Likewise.
51911         * lib/same.h: Likewise.
51912         * lib/save-cwd.c: Likewise.
51913         * lib/save-cwd.h: Likewise.
51914         * lib/savedir.c: Likewise.
51915         * lib/savedir.h: Likewise.
51916         * lib/savewd.c: Likewise.
51917         * lib/savewd.h: Likewise.
51918         * lib/search.in.h: Likewise.
51919         * lib/setenv.c: Likewise.
51920         * lib/setenv.h: Likewise.
51921         * lib/settime.c: Likewise.
51922         * lib/sh-quote.c: Likewise.
51923         * lib/sh-quote.h: Likewise.
51924         * lib/sig2str.c: Likewise.
51925         * lib/sig2str.h: Likewise.
51926         * lib/signal.in.h: Likewise.
51927         * lib/signbitd.c: Likewise.
51928         * lib/signbitf.c: Likewise.
51929         * lib/signbitl.c: Likewise.
51930         * lib/sigprocmask.c: Likewise.
51931         * lib/sincosl.c: Likewise.
51932         * lib/sleep.c: Likewise.
51933         * lib/sprintf.c: Likewise.
51934         * lib/sqrtl.c: Likewise.
51935         * lib/stat-time.h: Likewise.
51936         * lib/stdio--.h: Likewise.
51937         * lib/stdio-safer.h: Likewise.
51938         * lib/stdlib--.h: Likewise.
51939         * lib/stdlib-safer.h: Likewise.
51940         * lib/stdlib.in.h: Likewise.
51941         * lib/stpcpy.c: Likewise.
51942         * lib/stpncpy.c: Likewise.
51943         * lib/strchrnul.c: Likewise.
51944         * lib/strcspn.c: Likewise.
51945         * lib/strerror.c: Likewise.
51946         * lib/strftime.c: Likewise.
51947         * lib/strftime.h: Likewise.
51948         * lib/striconveh.c: Likewise.
51949         * lib/striconveh.h: Likewise.
51950         * lib/striconveha.c: Likewise.
51951         * lib/striconveha.h: Likewise.
51952         * lib/stripslash.c: Likewise.
51953         * lib/strnlen1.c: Likewise.
51954         * lib/strnlen1.h: Likewise.
51955         * lib/strtod.c: Likewise.
51956         * lib/strtoimax.c: Likewise.
51957         * lib/strtok_r.c: Likewise.
51958         * lib/strtol.c: Likewise.
51959         * lib/strtoll.c: Likewise.
51960         * lib/strtoul.c: Likewise.
51961         * lib/strtoull.c: Likewise.
51962         * lib/sysexits.in.h: Likewise.
51963         * lib/tempname.c: Likewise.
51964         * lib/tempname.h: Likewise.
51965         * lib/timespec.h: Likewise.
51966         * lib/tls.c: Likewise.
51967         * lib/tls.h: Likewise.
51968         * lib/tmpdir.c: Likewise.
51969         * lib/tmpdir.h: Likewise.
51970         * lib/tmpfile-safer.c: Likewise.
51971         * lib/tmpfile.c: Likewise.
51972         * lib/trigl.c: Likewise.
51973         * lib/trigl.h: Likewise.
51974         * lib/trim.c: Likewise.
51975         * lib/trim.h: Likewise.
51976         * lib/trunc.c: Likewise.
51977         * lib/truncf.c: Likewise.
51978         * lib/truncl.c: Likewise.
51979         * lib/tsearch.c: Likewise.
51980         * lib/unicodeio.c: Likewise.
51981         * lib/unicodeio.h: Likewise.
51982         * lib/unistd--.h: Likewise.
51983         * lib/unistd-safer.h: Likewise.
51984         * lib/unistdio/ulc-fprintf.c: Likewise.
51985         * lib/unistdio/ulc-vfprintf.c: Likewise.
51986         * lib/unlinkdir.c: Likewise.
51987         * lib/unlinkdir.h: Likewise.
51988         * lib/unlocked-io.h: Likewise.
51989         * lib/unsetenv.c: Likewise.
51990         * lib/userspec.c: Likewise.
51991         * lib/utime.c: Likewise.
51992         * lib/utimecmp.c: Likewise.
51993         * lib/utimecmp.h: Likewise.
51994         * lib/utimens.c: Likewise.
51995         * lib/verify.h: Likewise.
51996         * lib/verror.c: Likewise.
51997         * lib/verror.h: Likewise.
51998         * lib/version-etc-fsf.c: Likewise.
51999         * lib/version-etc.c: Likewise.
52000         * lib/version-etc.h: Likewise.
52001         * lib/vfprintf.c: Likewise.
52002         * lib/vprintf.c: Likewise.
52003         * lib/vsprintf.c: Likewise.
52004         * lib/w32spawn.h: Likewise.
52005         * lib/wait-process.c: Likewise.
52006         * lib/wait-process.h: Likewise.
52007         * lib/wcwidth.c: Likewise.
52008         * lib/write-any-file.c: Likewise.
52009         * lib/xalloc-die.c: Likewise.
52010         * lib/xalloc.h: Likewise.
52011         * lib/xasprintf.c: Likewise.
52012         * lib/xgetcwd.c: Likewise.
52013         * lib/xgetcwd.h: Likewise.
52014         * lib/xgetdomainname.c: Likewise.
52015         * lib/xgetdomainname.h: Likewise.
52016         * lib/xgethostname.c: Likewise.
52017         * lib/xmalloc.c: Likewise.
52018         * lib/xmalloca.c: Likewise.
52019         * lib/xmalloca.h: Likewise.
52020         * lib/xmemcoll.c: Likewise.
52021         * lib/xnanosleep.c: Likewise.
52022         * lib/xreadlink.c: Likewise.
52023         * lib/xreadlink.h: Likewise.
52024         * lib/xsetenv.c: Likewise.
52025         * lib/xsetenv.h: Likewise.
52026         * lib/xstriconv.c: Likewise.
52027         * lib/xstriconv.h: Likewise.
52028         * lib/xstrndup.c: Likewise.
52029         * lib/xstrndup.h: Likewise.
52030         * lib/xstrtod.c: Likewise.
52031         * lib/xstrtod.h: Likewise.
52032         * lib/xstrtol-error.c: Likewise.
52033         * lib/xstrtol.c: Likewise.
52034         * lib/xstrtol.h: Likewise.
52035         * lib/xtime.h: Likewise.
52036         * lib/xvasprintf.c: Likewise.
52037         * lib/xvasprintf.h: Likewise.
52038         * lib/yesno.c: Likewise.
52039         * lib/yesno.h: Likewise.
52040         * posix-modules: Likewise.
52041         * tests/test-alloca-opt.c: Likewise.
52042         * tests/test-arcfour.c: Likewise.
52043         * tests/test-arctwo.c: Likewise.
52044         * tests/test-argmatch.c: Likewise.
52045         * tests/test-argp-2.sh: Likewise.
52046         * tests/test-argp.c: Likewise.
52047         * tests/test-arpa_inet.c: Likewise.
52048         * tests/test-array_list.c: Likewise.
52049         * tests/test-array_oset.c: Likewise.
52050         * tests/test-atexit.c: Likewise.
52051         * tests/test-avltree_list.c: Likewise.
52052         * tests/test-avltree_oset.c: Likewise.
52053         * tests/test-avltreehash_list.c: Likewise.
52054         * tests/test-base64.c: Likewise.
52055         * tests/test-binary-io.c: Likewise.
52056         * tests/test-byteswap.c: Likewise.
52057         * tests/test-c-ctype.c: Likewise.
52058         * tests/test-c-strcasecmp.c: Likewise.
52059         * tests/test-c-strcasestr.c: Likewise.
52060         * tests/test-c-strncasecmp.c: Likewise.
52061         * tests/test-c-strstr.c: Likewise.
52062         * tests/test-canonicalize-lgpl.c: Likewise.
52063         * tests/test-canonicalize.c: Likewise.
52064         * tests/test-carray_list.c: Likewise.
52065         * tests/test-ceilf.c: Likewise.
52066         * tests/test-ceill.c: Likewise.
52067         * tests/test-count-one-bits.c: Likewise.
52068         * tests/test-crc.c: Likewise.
52069         * tests/test-dirname.c: Likewise.
52070         * tests/test-fbufmode.c: Likewise.
52071         * tests/test-fcntl.c: Likewise.
52072         * tests/test-fflush.c: Likewise.
52073         * tests/test-floorf.c: Likewise.
52074         * tests/test-floorl.c: Likewise.
52075         * tests/test-fopen.c: Likewise.
52076         * tests/test-fprintf-posix.c: Likewise.
52077         * tests/test-fprintf-posix.h: Likewise.
52078         * tests/test-fpurge.c: Likewise.
52079         * tests/test-freadable.c: Likewise.
52080         * tests/test-freadahead.c: Likewise.
52081         * tests/test-freading.c: Likewise.
52082         * tests/test-freopen.c: Likewise.
52083         * tests/test-frexp.c: Likewise.
52084         * tests/test-frexpl.c: Likewise.
52085         * tests/test-fseek.c: Likewise.
52086         * tests/test-fseeko.c: Likewise.
52087         * tests/test-fseterr.c: Likewise.
52088         * tests/test-fstrcmp.c: Likewise.
52089         * tests/test-ftell.c: Likewise.
52090         * tests/test-ftello.c: Likewise.
52091         * tests/test-fwritable.c: Likewise.
52092         * tests/test-fwriting.c: Likewise.
52093         * tests/test-getaddrinfo.c: Likewise.
52094         * tests/test-getpass.c: Likewise.
52095         * tests/test-gettimeofday.c: Likewise.
52096         * tests/test-hmac-md5.c: Likewise.
52097         * tests/test-hmac-sha1.c: Likewise.
52098         * tests/test-iconv.c: Likewise.
52099         * tests/test-iconvme.c: Likewise.
52100         * tests/test-inttypes.c: Likewise.
52101         * tests/test-isnan.c: Likewise.
52102         * tests/test-isnanf.c: Likewise.
52103         * tests/test-isnanl-nolibm.c: Likewise.
52104         * tests/test-isnanl.c: Likewise.
52105         * tests/test-isnanl.h: Likewise.
52106         * tests/test-ldexpl.c: Likewise.
52107         * tests/test-linked_list.c: Likewise.
52108         * tests/test-linkedhash_list.c: Likewise.
52109         * tests/test-locale.c: Likewise.
52110         * tests/test-localename.c: Likewise.
52111         * tests/test-lock.c: Likewise.
52112         * tests/test-lseek.c: Likewise.
52113         * tests/test-malloca.c: Likewise.
52114         * tests/test-math.c: Likewise.
52115         * tests/test-mbscasecmp.c: Likewise.
52116         * tests/test-mbscasestr1.c: Likewise.
52117         * tests/test-mbscasestr2.c: Likewise.
52118         * tests/test-mbscasestr3.c: Likewise.
52119         * tests/test-mbscasestr4.c: Likewise.
52120         * tests/test-mbschr.c: Likewise.
52121         * tests/test-mbscspn.c: Likewise.
52122         * tests/test-mbsncasecmp.c: Likewise.
52123         * tests/test-mbspbrk.c: Likewise.
52124         * tests/test-mbspcasecmp.c: Likewise.
52125         * tests/test-mbsrchr.c: Likewise.
52126         * tests/test-mbsspn.c: Likewise.
52127         * tests/test-mbsstr1.c: Likewise.
52128         * tests/test-mbsstr2.c: Likewise.
52129         * tests/test-mbsstr3.c: Likewise.
52130         * tests/test-md5.c: Likewise.
52131         * tests/test-memmem.c: Likewise.
52132         * tests/test-netinet_in.c: Likewise.
52133         * tests/test-open.c: Likewise.
52134         * tests/test-printf-frexp.c: Likewise.
52135         * tests/test-printf-frexpl.c: Likewise.
52136         * tests/test-printf-posix.c: Likewise.
52137         * tests/test-printf-posix.h: Likewise.
52138         * tests/test-rbtree_list.c: Likewise.
52139         * tests/test-rbtree_oset.c: Likewise.
52140         * tests/test-rbtreehash_list.c: Likewise.
52141         * tests/test-read-file.c: Likewise.
52142         * tests/test-rijndael.c: Likewise.
52143         * tests/test-search.c: Likewise.
52144         * tests/test-signbit.c: Likewise.
52145         * tests/test-sleep.c: Likewise.
52146         * tests/test-snprintf-posix.c: Likewise.
52147         * tests/test-snprintf-posix.h: Likewise.
52148         * tests/test-snprintf.c: Likewise.
52149         * tests/test-sprintf-posix.c: Likewise.
52150         * tests/test-sprintf-posix.h: Likewise.
52151         * tests/test-stat-time.c: Likewise.
52152         * tests/test-stdbool.c: Likewise.
52153         * tests/test-stdint.c: Likewise.
52154         * tests/test-stdio.c: Likewise.
52155         * tests/test-stdlib.c: Likewise.
52156         * tests/test-stpncpy.c: Likewise.
52157         * tests/test-strcasestr.c: Likewise.
52158         * tests/test-striconv.c: Likewise.
52159         * tests/test-striconveh.c: Likewise.
52160         * tests/test-striconveha.c: Likewise.
52161         * tests/test-string.c: Likewise.
52162         * tests/test-sys_select.c: Likewise.
52163         * tests/test-sys_socket.c: Likewise.
52164         * tests/test-sys_stat.c: Likewise.
52165         * tests/test-sys_time.c: Likewise.
52166         * tests/test-sysexits.c: Likewise.
52167         * tests/test-time.c: Likewise.
52168         * tests/test-tls.c: Likewise.
52169         * tests/test-trunc.c: Likewise.
52170         * tests/test-truncf.c: Likewise.
52171         * tests/test-truncl.c: Likewise.
52172         * tests/test-unistd.c: Likewise.
52173         * tests/test-vasnprintf-posix.c: Likewise.
52174         * tests/test-vasnprintf-posix2.c: Likewise.
52175         * tests/test-vasnprintf.c: Likewise.
52176         * tests/test-vasprintf-posix.c: Likewise.
52177         * tests/test-vasprintf.c: Likewise.
52178         * tests/test-verify.c: Likewise.
52179         * tests/test-vfprintf-posix.c: Likewise.
52180         * tests/test-vprintf-posix.c: Likewise.
52181         * tests/test-vsnprintf-posix.c: Likewise.
52182         * tests/test-vsnprintf.c: Likewise.
52183         * tests/test-vsprintf-posix.c: Likewise.
52184         * tests/test-wchar.c: Likewise.
52185         * tests/test-wctype.c: Likewise.
52186         * tests/test-wcwidth.c: Likewise.
52187         * tests/test-xstrtol.c: Likewise.
52188         * tests/test-xvasprintf.c: Likewise.
52189         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52190         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52191         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52192         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52193         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52194         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52195         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52196         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52197         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52198         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52201         * tests/uniname/test-uninames.c: Likewise.
52202         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52203         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52204         * tests/unistdio/test-u16-printf1.h: Likewise.
52205         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52206         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52207         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52208         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52209         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52210         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52211         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52212         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52213         * tests/unistdio/test-u32-printf1.h: Likewise.
52214         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52215         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52216         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52217         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52218         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52219         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52220         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52221         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52222         * tests/unistdio/test-u8-printf1.h: Likewise.
52223         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52224         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52225         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52226         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52227         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52228         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52229         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52230         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52231         * tests/unistdio/test-ulc-printf1.h: Likewise.
52232         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52233         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52234         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52235         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52236         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52237         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52238         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52239         * tests/uniwidth/test-u16-width.c: Likewise.
52240         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52241         * tests/uniwidth/test-u32-width.c: Likewise.
52242         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52243         * tests/uniwidth/test-u8-width.c: Likewise.
52244         * tests/uniwidth/test-uc_width.c: Likewise.
52245         * config/srclist-update: Likewise.
52246         (fixlicense): Update to GPLv3+.
52247
52248         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52249         * tests/test-tsearch.c: Change copyright notice.
52250
52251         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52252         * lib/c-strcaseeq.h: Change copyright notice.
52253         * lib/streq.h: Likewise.
52254         * lib/uniconv.h: Likewise.
52255         * lib/uniconv/u-conv-from-enc.h: Likewise.
52256         * lib/uniconv/u-conv-to-enc.h: Likewise.
52257         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52258         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52259         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52260         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52261         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52262         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52263         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52264         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52265         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52266         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52267         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52268         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52269         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52270         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52271         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52272         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52273         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52274         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52275         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52276         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52277         * lib/uniname.h: Likewise.
52278         * lib/uniname/uniname.c: Likewise.
52279         * lib/unistdio.h: Likewise.
52280         * lib/unistdio/u-asnprintf.h: Likewise.
52281         * lib/unistdio/u-asprintf.h: Likewise.
52282         * lib/unistdio/u-printf-args.c: Likewise.
52283         * lib/unistdio/u-printf-args.h: Likewise.
52284         * lib/unistdio/u-printf-parse.h: Likewise.
52285         * lib/unistdio/u-snprintf.h: Likewise.
52286         * lib/unistdio/u-sprintf.h: Likewise.
52287         * lib/unistdio/u-vasprintf.h: Likewise.
52288         * lib/unistdio/u-vsnprintf.h: Likewise.
52289         * lib/unistdio/u-vsprintf.h: Likewise.
52290         * lib/unistdio/u16-asnprintf.c: Likewise.
52291         * lib/unistdio/u16-asprintf.c: Likewise.
52292         * lib/unistdio/u16-printf-parse.c: Likewise.
52293         * lib/unistdio/u16-snprintf.c: Likewise.
52294         * lib/unistdio/u16-sprintf.c: Likewise.
52295         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52296         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52297         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52298         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52299         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52300         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52301         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52302         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52303         * lib/unistdio/u16-vasnprintf.c: Likewise.
52304         * lib/unistdio/u16-vasprintf.c: Likewise.
52305         * lib/unistdio/u16-vsnprintf.c: Likewise.
52306         * lib/unistdio/u16-vsprintf.c: Likewise.
52307         * lib/unistdio/u32-asnprintf.c: Likewise.
52308         * lib/unistdio/u32-asprintf.c: Likewise.
52309         * lib/unistdio/u32-printf-parse.c: Likewise.
52310         * lib/unistdio/u32-snprintf.c: Likewise.
52311         * lib/unistdio/u32-sprintf.c: Likewise.
52312         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52313         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52314         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52315         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52316         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52317         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52318         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52319         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52320         * lib/unistdio/u32-vasnprintf.c: Likewise.
52321         * lib/unistdio/u32-vasprintf.c: Likewise.
52322         * lib/unistdio/u32-vsnprintf.c: Likewise.
52323         * lib/unistdio/u32-vsprintf.c: Likewise.
52324         * lib/unistdio/u8-asnprintf.c: Likewise.
52325         * lib/unistdio/u8-asprintf.c: Likewise.
52326         * lib/unistdio/u8-printf-parse.c: Likewise.
52327         * lib/unistdio/u8-snprintf.c: Likewise.
52328         * lib/unistdio/u8-sprintf.c: Likewise.
52329         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52330         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52331         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52332         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52333         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52334         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52335         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52336         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52337         * lib/unistdio/u8-vasnprintf.c: Likewise.
52338         * lib/unistdio/u8-vasprintf.c: Likewise.
52339         * lib/unistdio/u8-vsnprintf.c: Likewise.
52340         * lib/unistdio/u8-vsprintf.c: Likewise.
52341         * lib/unistdio/ulc-asnprintf.c: Likewise.
52342         * lib/unistdio/ulc-asprintf.c: Likewise.
52343         * lib/unistdio/ulc-printf-parse.c: Likewise.
52344         * lib/unistdio/ulc-snprintf.c: Likewise.
52345         * lib/unistdio/ulc-sprintf.c: Likewise.
52346         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52347         * lib/unistdio/ulc-vasprintf.c: Likewise.
52348         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52349         * lib/unistdio/ulc-vsprintf.c: Likewise.
52350         * lib/unistr.h: Likewise.
52351         * lib/unistr/u-cpy-alloc.h: Likewise.
52352         * lib/unistr/u-cpy.h: Likewise.
52353         * lib/unistr/u-endswith.h: Likewise.
52354         * lib/unistr/u-move.h: Likewise.
52355         * lib/unistr/u-set.h: Likewise.
52356         * lib/unistr/u-startswith.h: Likewise.
52357         * lib/unistr/u-stpcpy.h: Likewise.
52358         * lib/unistr/u-stpncpy.h: Likewise.
52359         * lib/unistr/u-strcat.h: Likewise.
52360         * lib/unistr/u-strcpy.h: Likewise.
52361         * lib/unistr/u-strcspn.h: Likewise.
52362         * lib/unistr/u-strdup.h: Likewise.
52363         * lib/unistr/u-strlen.h: Likewise.
52364         * lib/unistr/u-strncat.h: Likewise.
52365         * lib/unistr/u-strncpy.h: Likewise.
52366         * lib/unistr/u-strnlen.h: Likewise.
52367         * lib/unistr/u-strpbrk.h: Likewise.
52368         * lib/unistr/u-strspn.h: Likewise.
52369         * lib/unistr/u-strstr.h: Likewise.
52370         * lib/unistr/u-strtok.h: Likewise.
52371         * lib/unistr/u16-check.c: Likewise.
52372         * lib/unistr/u16-chr.c: Likewise.
52373         * lib/unistr/u16-cmp.c: Likewise.
52374         * lib/unistr/u16-cpy-alloc.c: Likewise.
52375         * lib/unistr/u16-cpy.c: Likewise.
52376         * lib/unistr/u16-endswith.c: Likewise.
52377         * lib/unistr/u16-mblen.c: Likewise.
52378         * lib/unistr/u16-mbsnlen.c: Likewise.
52379         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52380         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52381         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52382         * lib/unistr/u16-mbtouc.c: Likewise.
52383         * lib/unistr/u16-mbtoucr.c: Likewise.
52384         * lib/unistr/u16-move.c: Likewise.
52385         * lib/unistr/u16-next.c: Likewise.
52386         * lib/unistr/u16-prev.c: Likewise.
52387         * lib/unistr/u16-set.c: Likewise.
52388         * lib/unistr/u16-startswith.c: Likewise.
52389         * lib/unistr/u16-stpcpy.c: Likewise.
52390         * lib/unistr/u16-stpncpy.c: Likewise.
52391         * lib/unistr/u16-strcat.c: Likewise.
52392         * lib/unistr/u16-strchr.c: Likewise.
52393         * lib/unistr/u16-strcmp.c: Likewise.
52394         * lib/unistr/u16-strcpy.c: Likewise.
52395         * lib/unistr/u16-strcspn.c: Likewise.
52396         * lib/unistr/u16-strdup.c: Likewise.
52397         * lib/unistr/u16-strlen.c: Likewise.
52398         * lib/unistr/u16-strmblen.c: Likewise.
52399         * lib/unistr/u16-strmbtouc.c: Likewise.
52400         * lib/unistr/u16-strncat.c: Likewise.
52401         * lib/unistr/u16-strncmp.c: Likewise.
52402         * lib/unistr/u16-strncpy.c: Likewise.
52403         * lib/unistr/u16-strnlen.c: Likewise.
52404         * lib/unistr/u16-strpbrk.c: Likewise.
52405         * lib/unistr/u16-strrchr.c: Likewise.
52406         * lib/unistr/u16-strspn.c: Likewise.
52407         * lib/unistr/u16-strstr.c: Likewise.
52408         * lib/unistr/u16-strtok.c: Likewise.
52409         * lib/unistr/u16-to-u32.c: Likewise.
52410         * lib/unistr/u16-to-u8.c: Likewise.
52411         * lib/unistr/u16-uctomb-aux.c: Likewise.
52412         * lib/unistr/u16-uctomb.c: Likewise.
52413         * lib/unistr/u32-check.c: Likewise.
52414         * lib/unistr/u32-chr.c: Likewise.
52415         * lib/unistr/u32-cmp.c: Likewise.
52416         * lib/unistr/u32-cpy-alloc.c: Likewise.
52417         * lib/unistr/u32-cpy.c: Likewise.
52418         * lib/unistr/u32-endswith.c: Likewise.
52419         * lib/unistr/u32-mblen.c: Likewise.
52420         * lib/unistr/u32-mbsnlen.c: Likewise.
52421         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52422         * lib/unistr/u32-mbtouc.c: Likewise.
52423         * lib/unistr/u32-mbtoucr.c: Likewise.
52424         * lib/unistr/u32-move.c: Likewise.
52425         * lib/unistr/u32-next.c: Likewise.
52426         * lib/unistr/u32-prev.c: Likewise.
52427         * lib/unistr/u32-set.c: Likewise.
52428         * lib/unistr/u32-startswith.c: Likewise.
52429         * lib/unistr/u32-stpcpy.c: Likewise.
52430         * lib/unistr/u32-stpncpy.c: Likewise.
52431         * lib/unistr/u32-strcat.c: Likewise.
52432         * lib/unistr/u32-strchr.c: Likewise.
52433         * lib/unistr/u32-strcmp.c: Likewise.
52434         * lib/unistr/u32-strcpy.c: Likewise.
52435         * lib/unistr/u32-strcspn.c: Likewise.
52436         * lib/unistr/u32-strdup.c: Likewise.
52437         * lib/unistr/u32-strlen.c: Likewise.
52438         * lib/unistr/u32-strmblen.c: Likewise.
52439         * lib/unistr/u32-strmbtouc.c: Likewise.
52440         * lib/unistr/u32-strncat.c: Likewise.
52441         * lib/unistr/u32-strncmp.c: Likewise.
52442         * lib/unistr/u32-strncpy.c: Likewise.
52443         * lib/unistr/u32-strnlen.c: Likewise.
52444         * lib/unistr/u32-strpbrk.c: Likewise.
52445         * lib/unistr/u32-strrchr.c: Likewise.
52446         * lib/unistr/u32-strspn.c: Likewise.
52447         * lib/unistr/u32-strstr.c: Likewise.
52448         * lib/unistr/u32-strtok.c: Likewise.
52449         * lib/unistr/u32-to-u16.c: Likewise.
52450         * lib/unistr/u32-to-u8.c: Likewise.
52451         * lib/unistr/u32-uctomb.c: Likewise.
52452         * lib/unistr/u8-check.c: Likewise.
52453         * lib/unistr/u8-chr.c: Likewise.
52454         * lib/unistr/u8-cmp.c: Likewise.
52455         * lib/unistr/u8-cpy-alloc.c: Likewise.
52456         * lib/unistr/u8-cpy.c: Likewise.
52457         * lib/unistr/u8-endswith.c: Likewise.
52458         * lib/unistr/u8-mblen.c: Likewise.
52459         * lib/unistr/u8-mbsnlen.c: Likewise.
52460         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52461         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52462         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52463         * lib/unistr/u8-mbtouc.c: Likewise.
52464         * lib/unistr/u8-mbtoucr.c: Likewise.
52465         * lib/unistr/u8-move.c: Likewise.
52466         * lib/unistr/u8-next.c: Likewise.
52467         * lib/unistr/u8-prev.c: Likewise.
52468         * lib/unistr/u8-set.c: Likewise.
52469         * lib/unistr/u8-startswith.c: Likewise.
52470         * lib/unistr/u8-stpcpy.c: Likewise.
52471         * lib/unistr/u8-stpncpy.c: Likewise.
52472         * lib/unistr/u8-strcat.c: Likewise.
52473         * lib/unistr/u8-strchr.c: Likewise.
52474         * lib/unistr/u8-strcmp.c: Likewise.
52475         * lib/unistr/u8-strcpy.c: Likewise.
52476         * lib/unistr/u8-strcspn.c: Likewise.
52477         * lib/unistr/u8-strdup.c: Likewise.
52478         * lib/unistr/u8-strlen.c: Likewise.
52479         * lib/unistr/u8-strmblen.c: Likewise.
52480         * lib/unistr/u8-strmbtouc.c: Likewise.
52481         * lib/unistr/u8-strncat.c: Likewise.
52482         * lib/unistr/u8-strncmp.c: Likewise.
52483         * lib/unistr/u8-strncpy.c: Likewise.
52484         * lib/unistr/u8-strnlen.c: Likewise.
52485         * lib/unistr/u8-strpbrk.c: Likewise.
52486         * lib/unistr/u8-strrchr.c: Likewise.
52487         * lib/unistr/u8-strspn.c: Likewise.
52488         * lib/unistr/u8-strstr.c: Likewise.
52489         * lib/unistr/u8-strtok.c: Likewise.
52490         * lib/unistr/u8-to-u16.c: Likewise.
52491         * lib/unistr/u8-to-u32.c: Likewise.
52492         * lib/unistr/u8-uctomb-aux.c: Likewise.
52493         * lib/unistr/u8-uctomb.c: Likewise.
52494         * lib/unitypes.h: Likewise.
52495         * lib/uniwidth.h: Likewise.
52496         * lib/uniwidth/cjk.h: Likewise.
52497         * lib/uniwidth/u16-strwidth.c: Likewise.
52498         * lib/uniwidth/u16-width.c: Likewise.
52499         * lib/uniwidth/u32-strwidth.c: Likewise.
52500         * lib/uniwidth/u32-width.c: Likewise.
52501         * lib/uniwidth/u8-strwidth.c: Likewise.
52502         * lib/uniwidth/u8-width.c: Likewise.
52503         * lib/uniwidth/width.c: Likewise.
52504
52505 2007-10-07  Bruno Haible  <bruno@clisp.org>
52506
52507         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52508         The file is still under LGPL (see modules/inttypes).
52509
52510 2007-10-06  Bruno Haible  <bruno@clisp.org>
52511
52512         * modules/trunc (Dependencies): Add 'extensions'.
52513         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52514         Reported by Ben Pfaff <blp@gnu.org>.
52515
52516 2007-10-06  Bruno Haible  <bruno@clisp.org>
52517
52518         * modules/freopen-tests: New file.
52519         * tests/test-freopen.c: New file.
52520
52521         * modules/fopen-tests: New file.
52522         * tests/test-fopen.c: New file.
52523
52524         * modules/fopen: New file.
52525         * lib/fopen.c: New file.
52526         * m4/fopen.m4: New file.
52527         * modules/freopen: New file.
52528         * lib/freopen.c: New file.
52529         * m4/freopen.m4: New file.
52530         * lib/stdio.in.h (fopen, freopen): New declarations.
52531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52532         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52533         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52534         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52535         * doc/functions/fopen.texi: Mention the 'fopen' module.
52536         * doc/functions/freopen.texi: Mention the 'freopen' module.
52537
52538 2007-10-06  Bruno Haible  <bruno@clisp.org>
52539
52540         * modules/open-tests: New file.
52541         * tests/test-open.c: New file.
52542
52543         * modules/open: New file.
52544         * lib/open.c: New file.
52545         * m4/open.m4: New file.
52546         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52547         lib/open.c does.
52548         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52549         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52550         macros.
52551         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52552         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52553         REPLACE_OPEN.
52554         * doc/functions/open.texi: Mention the 'open' module.
52555
52556 2007-10-04  Bruno Haible  <bruno@clisp.org>
52557
52558         * modules/ceill-tests: New file.
52559         * tests/test-ceill.c: New file.
52560
52561         * modules/ceill: New file.
52562         * lib/ceill.c: Replace entire file.
52563         * m4/ceill.m4: New file.
52564         * lib/math.in.h (ceill): Replace declaration.
52565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52566         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52567         * doc/functions/ceill.texi: Mention the 'ceill' module.
52568         * modules/mathl (Files): Remove lib/ceill.c.
52569         (Depends-on): Add ceill.
52570
52571 2007-10-04  Bruno Haible  <bruno@clisp.org>
52572
52573         * modules/ceilf-tests: New file.
52574         * tests/test-ceilf.c: New file.
52575
52576         * modules/ceilf: New file.
52577         * lib/ceil.c: New file.
52578         * lib/ceilf.c: New file.
52579         * m4/ceilf.m4: New file.
52580         * lib/math.in.h (ceilf): New declaration.
52581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52582         HAVE_DECL_CEILF.
52583         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52584         HAVE_DECL_CEILF.
52585         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52586
52587 2007-10-04  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/floorl-tests: New file.
52590         * tests/test-floorl.c: New file.
52591
52592         * modules/floorl: New file.
52593         * lib/floorl.c: Replace entire file.
52594         * m4/floorl.m4: New file.
52595         * lib/math.in.h (floorl): Replace declaration.
52596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52597         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52598         * doc/functions/floorl.texi: Mention the 'floorl' module.
52599         * modules/mathl (Files): Remove lib/floorl.c.
52600         (Depends-on): Add floorl.
52601
52602 2007-10-04  Bruno Haible  <bruno@clisp.org>
52603
52604         * modules/floorf-tests: New file.
52605         * tests/test-floorf.c: New file.
52606
52607         * modules/floorf: New file.
52608         * lib/floor.c: New file.
52609         * lib/floorf.c: New file.
52610         * m4/floorf.m4: New file.
52611         * lib/math.in.h (floorf): New declaration.
52612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52613         HAVE_DECL_FLOORF.
52614         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52615         HAVE_DECL_FLOORF.
52616         * doc/functions/floorf.texi: Mention the 'floorf' module.
52617
52618 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52619             Bruno Haible  <bruno@clisp.org>
52620
52621         Advertise for the Git server instead of the CVS server.
52622         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52623         repository instead of the CVS one.
52624         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52625         about all VCS systems generically.
52626         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52627
52628 2007-10-04  Bruno Haible  <bruno@clisp.org>
52629
52630         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52631         means.
52632         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52633
52634 2007-10-04  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/truncl-tests: New file.
52637         * tests/test-truncl.c: New file.
52638
52639         * modules/truncl: New file.
52640         * lib/truncl.c: New file.
52641         * m4/truncl.m4: New file.
52642         * lib/math.in.h (truncl): New declaration.
52643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52644         HAVE_DECL_TRUNCL.
52645         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52646         HAVE_DECL_TRUNCL.
52647         * doc/functions/truncl.texi: Mention the 'truncl' module.
52648
52649 2007-10-04  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/truncf-tests: New file.
52652         * tests/test-truncf.c: New file.
52653
52654         * modules/truncf: New file.
52655         * lib/trunc.c: Make paramerizable through USE_* macros.
52656         * lib/truncf.c: New file.
52657         * m4/truncf.m4: New file.
52658         * lib/math.in.h (truncf): New declaration.
52659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52660         HAVE_DECL_TRUNCF.
52661         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52662         HAVE_DECL_TRUNCF.
52663         * doc/functions/truncf.texi: Mention the 'truncf' module.
52664
52665 2007-10-03  Bruno Haible  <bruno@clisp.org>
52666
52667         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52668         augmentation also for tests modules.
52669         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52670         * modules/atexit-tests (Makefile.am): Likewise.
52671         * modules/binary-io-tests (Makefile.am): Likewise.
52672         * modules/c-strcase-tests (Makefile.am): Likewise.
52673         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52674         * modules/canonicalize-tests (Makefile.am): Likewise.
52675         * modules/closein-tests (Makefile.am): Likewise.
52676         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52677         * modules/freadahead-tests (Makefile.am): Likewise.
52678         * modules/fseek-tests (Makefile.am): Likewise.
52679         * modules/fseeko-tests (Makefile.am): Likewise.
52680         * modules/ftell-tests (Makefile.am): Likewise.
52681         * modules/ftello-tests (Makefile.am): Likewise.
52682         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52683         * modules/isnanl-tests (Makefile.am): Likewise.
52684         * modules/lseek-tests (Makefile.am): Likewise.
52685         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52686         * modules/mbscasestr-tests (Makefile.am): Likewise.
52687         * modules/mbschr-tests (Makefile.am): Likewise.
52688         * modules/mbscspn-tests (Makefile.am): Likewise.
52689         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52690         * modules/mbspbrk-tests (Makefile.am): Likewise.
52691         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52692         * modules/mbsrchr-tests (Makefile.am): Likewise.
52693         * modules/mbsspn-tests (Makefile.am): Likewise.
52694         * modules/mbsstr-tests (Makefile.am): Likewise.
52695         * modules/printf-posix-tests (Makefile.am): Likewise.
52696         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52697         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52698         * modules/tsearch-tests (Makefile.am): Likewise.
52699         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52700         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52701         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52702         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52703         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52704         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52705         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52706         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52707         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52708         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52709         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52710         * modules/xstrtol-tests (Makefile.am): Likewise.
52711         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52712         * modules/yesno-tests (Makefile.am): Likewise.
52713
52714 2007-10-03  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/trunc-tests: New file.
52717         * tests/test-trunc.c: New file.
52718
52719         * modules/trunc: New file.
52720         * lib/trunc.c: New file.
52721         * m4/trunc.m4: New file.
52722         * lib/math.in.h (trunc): New declaration.
52723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52724         HAVE_DECL_TRUNC.
52725         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52726         HAVE_DECL_TRUNC.
52727         * doc/functions/trunc.texi: Mention the 'trunc' module.
52728
52729 2007-10-03  Bruno Haible  <bruno@clisp.org>
52730
52731         * tests/test-fpending.c: New file, mostly copied
52732         from coreutils/lib/t-fpending.c.
52733         * modules/fpending-tests: New file.
52734
52735 2007-10-03  Bruno Haible  <bruno@clisp.org>
52736
52737         Port the stdio extensions to QNX (untested).
52738         * lib/fseterr.c (fseterr): Add support for QNX.
52739         * lib/fbufmode.c (fbufmode): Likewise.
52740         * lib/freadable.c (freadable): Likewise.
52741         * lib/fwritable.c (fwritable): Likewise.
52742         * lib/freading.c (freading): Likewise.
52743         * lib/fwriting.c (fwriting): Likewise.
52744         * lib/freadahead.c (freadahed): Likewise.
52745         * lib/fpurge.c (fpurge): Likewise.
52746         * lib/fseeko.c (rpl_fseeko): Likewise.
52747
52748 2007-10-03  Bruno Haible  <bruno@clisp.org>
52749             Jim Meyering  <jim@meyering.net>
52750             Eric Blake  <ebb9@byu.net>
52751
52752         * doc/relocatable.texi: Use @command instead of @program.
52753
52754 2007-10-02  Jim Meyering  <jim@meyering.net>
52755
52756         Perform one more "_.h" -> ".in.h" substitution.
52757         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52758         instead of unistd_.h here, too.
52759
52760 2007-10-01  Bruno Haible  <bruno@clisp.org>
52761
52762         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52763         Needed for the alloca-opt module.
52764
52765 2007-09-30  Bruno Haible  <bruno@clisp.org>
52766
52767         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52768         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52769         alloca_.h.
52770         * lib/argz.in.h: Renamed from lib/argz_.h.
52771         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52772         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52773         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52774         byteswap_.h.
52775         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52776         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52777         dirent_.h.
52778         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52779         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52780         fcntl_.h.
52781         * lib/float.in.h: Renamed from lib/float_.h.
52782         * modules/float (Files, Makefile.am): Use float.in.h instead of
52783         float_.h.
52784         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52785         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52786         fnmatch_.h.
52787         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52788         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52789         getopt_.h.
52790         * lib/glob.in.h: Renamed from lib/glob_.h.
52791         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52792         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52793         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52794         iconv_.h.
52795         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52796         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52797         inttypes_.h.
52798         * lib/locale.in.h: Renamed from lib/locale_.h.
52799         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52800         locale_.h.
52801         * lib/math.in.h: Renamed from lib/math_.h.
52802         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52803         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52804         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52805         of netinet_in_.h. Add dependency.
52806         * lib/poll.in.h: Renamed from lib/poll_.h.
52807         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52808         * lib/search.in.h: Renamed from lib/search_.h.
52809         * modules/search (Files, Makefile.am): Use search.in.h instead of
52810         search_.h.
52811         * lib/signal.in.h: Renamed from lib/signal_.h.
52812         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52813         _signal.h.
52814         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52815         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52816         stdbool_.h.
52817         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52818         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52819         stdint_.h.
52820         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52821         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52822         stdio_.h.
52823         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52824         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52825         stdlib_.h.
52826         * lib/string.in.h: Renamed from lib/string_.h.
52827         * modules/string (Files, Makefile.am): Use string.in.h instead of
52828         string_.h.
52829         * doc/gnulib-tool.texi (Initial import): Update.
52830         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52831         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52832         of sys_select_.h. Add dependency.
52833         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52834         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52835         of sys_socket_.h.
52836         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52837         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52838         sys_stat_.h.
52839         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52840         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52841         sys_time_.h.
52842         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52843         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52844         sysexits_.h.
52845         * lib/time.in.h: Renamed from lib/time_.h.
52846         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52847         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52848         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52849         unistd_.h.
52850         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52851         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52852         wchar_.h.
52853         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52854         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52855         wctype_.h.
52856         * build-aux/bootstrap (slurp): Update.
52857         * lib/.cppi-disable: Update.
52858
52859 2007-09-30  Bruno Haible  <bruno@clisp.org>
52860
52861         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52862         Needed on BeOS.
52863
52864 2007-09-30  Bruno Haible  <bruno@clisp.org>
52865
52866         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52867
52868 2007-09-29  Bruno Haible  <bruno@clisp.org>
52869
52870         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52871
52872 2007-09-29  Bruno Haible  <bruno@clisp.org>
52873
52874         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52875         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52876         * build-aux/install-reloc: Compile also areadlink.c.
52877         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52878
52879 2007-09-29  Bruno Haible  <bruno@clisp.org>
52880
52881         * gnulib-tool (func_emit_initmacro_done): Indentation.
52882
52883 2007-09-29  Bruno Haible  <bruno@clisp.org>
52884
52885         * README: Add CVS checkout update instructions.
52886         Info from Bob Proulx <bob@proulx.com>.
52887
52888 2007-09-28  Eric Blake  <ebb9@byu.net>
52889
52890         Provide move-if-change.
52891         * build-aux/move-if-change: New file, based on best practice
52892         rather than any canonical upstream location.
52893
52894 2007-09-28  Jim Meyering  <jim@meyering.net>
52895
52896         Fix canonicalize loop-detection corner case.
52897         Do not attempt to stat the symlink values stored via seen_triple.
52898         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52899         on linux-2.6.18, (but not 2.6.22).
52900         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52901         triple_compare.  The former compares dev,ino,filename, while the latter
52902         would actually stat dirname(filename) when dev and ino were equal.
52903         * lib/hash-triple.c: Install <string.h>.
52904         (STREQ): Define.
52905         (triple_compare_ino_str): New function.
52906         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52907
52908 2007-09-28  Eric Blake  <ebb9@byu.net>
52909
52910         Enforce that AC_REPLACE_FUNCS files exist.
52911         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52912         override check for typos.
52913
52914         Fix test-closein on Solaris 10.
52915         * tests/test-closein.c (main): Don't assume stdin can be inherited
52916         closed on all systems.
52917         * tests/test-closein.sh: Likewise.
52918         Reported by Piotr Tarnowski.
52919
52920 2007-09-28  Jim Meyering  <jim@meyering.net>
52921
52922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52923
52924 2007-09-27  Jim Meyering  <jim@meyering.net>
52925
52926         canonicalize: Avoid a false-positive cycle failure.
52927         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52928         Sort.  Remove cycle-check.
52929         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52930         not cycle-check.h.
52931         (seen_triple): New function.
52932         (canonicalize_filename_mode): Use it instead of cycle-check.
52933         * tests/test-canonicalize.c: Add a test for this bug.
52934         * tests/test-canonicalize.sh: Set up and run the test.
52935
52936         New module, file-set, from coreutils.
52937         * modules/file-set: Define it.
52938         * lib/file-set.c, lib/file-set.h: Implement.
52939
52940         New module, hash-triple, from coreutils.
52941         * modules/hash-triple: Define it.
52942         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52943
52944 2007-09-25  Eric Blake  <ebb9@byu.net>
52945
52946         Fix strerror on Interix.
52947         * lib/string_.h (strerror): Declare replacement.
52948         * doc/functions/strerror.texi (strerror): Document the Interix
52949         shortcoming.
52950         * modules/string (Makefile.am): Support new hooks.
52951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52952         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52953         gl_FUNC_STRERROR_SEPARATE.
52954         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52955         * lib/strerror.c (rpl_strerror): Provide replacement.
52956         * modules/strerror (Depends-on): Add string.
52957         (configure.ac): Detect use of module.
52958         * tests/test-strerror.c: New file.
52959         * modules/strerror-tests: New test module.
52960         * modules/argp (Depends-on): Add strerror.
52961         * modules/error (Depends-on): Likewise.
52962         Reported by Martin Koeppe.
52963
52964 2007-09-24  Bruno Haible  <bruno@clisp.org>
52965
52966         * README: Update git instructions.
52967
52968 2007-09-24  Eric Blake  <ebb9@byu.net>
52969
52970         Revert fpending breakage from 2007-09-08.
52971         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52972         __fpending.c.
52973
52974 2007-09-24  Jim Meyering  <jim@meyering.net>
52975
52976         filenamecat.c: Add a test.
52977         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52978         showing how the function works when DIR is the empty string.
52979
52980 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52981
52982         * tests/test-canonicalize.sh: Turn on executable bit.
52983
52984 2007-09-19  Eric Blake  <ebb9@byu.net>
52985
52986         * README: Update CVS instructions.
52987
52988 2007-09-18  Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/areadlink: New file.
52991         * lib/areadlink.h (areadlink): New declaration.
52992         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52993
52994 2007-09-17  Jim Meyering  <jim@meyering.net>
52995
52996         * lib/savewd.c (ESTALE) [!defined]: Define.
52997         Reported to be required on Interix by Martin Koeppe.
52998
52999 2007-09-17  Bruno Haible  <bruno@clisp.org>
53000
53001         * gnulib-tool (func_version): Use $version.
53002
53003 2007-09-16  Bruno Haible  <bruno@clisp.org>
53004
53005         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53006         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53007         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53008         Reported by Greg Schafer <gschafer@zip.com.au>.
53009
53010 2007-09-15  Bruno Haible  <bruno@clisp.org>
53011
53012         * gnulib-tool (sed): Try a little harder to make bash understand the
53013         alias.
53014         Reported by Bruce Korb <bruce.korb@gmail.com>.
53015
53016 2007-09-13  Eric Blake  <ebb9@byu.net>
53017
53018         * ChangeLog: Remove conflict markers.
53019
53020 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53021
53022         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53023         Reported by Bruno Haible <bruno@clisp.org>.
53024
53025 2007-09-12  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53028         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53029         is not defined.
53030
53031 2007-09-12  Eric Blake  <ebb9@byu.net>
53032
53033         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53035         Autoconf definition.
53036         * modules/euidaccess (Depends-on): Add extensions, for
53037         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53038         * modules/fnmatch (Depends-on): Likewise.
53039         * modules/getaddrinfo (Depends-on): Likewise.
53040         * modules/getdelim (Depends-on): Likewise.
53041         * modules/getline (Depends-on): Likewise.
53042         * modules/getsubopt (Depends-on): Likewise.
53043         * modules/gettext (Depends-on): Likewise.
53044         * modules/group-member (Depends-on): Likewise.
53045         * modules/mbchar (Depends-on): Likewise.
53046         * modules/memmem (Depends-on): Likewise.
53047         * modules/mempcpy (Depends-on): Likewise.
53048         * modules/memrchr (Depends-on): Likewise.
53049         * modules/pagealign_alloc (Depends-on): Likewise.
53050         * modules/readutmp (Depends-on): Likewise.
53051         * modules/stpcpy (Depends-on): Likewise.
53052         * modules/stpncpy (Depends-on): Likewise.
53053         * modules/strchrnul (Depends-on): Likewise.
53054         * modules/strndup (Depends-on): Likewise.
53055         * modules/strsep (Depends-on): Likewise.
53056         * modules/strverscmp (Depends-on): Likewise.
53057         * modules/vasprintf (Depends-on): Likewise.
53058         * modules/wcwidth (Depends-on): Likewise.
53059         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53060         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53061         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53062         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53063         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53064         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53065         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53066         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53067         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53068         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53069         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53072         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53073         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53074         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53075         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53078         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53080         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53081         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53082         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53083         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53085         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53086         so that lock.m4 can be used in gettext without extensions module.
53087
53088 2007-09-11  Bruno Haible  <bruno@clisp.org>
53089
53090         * m4/isc-posix.m4: Remove file.
53091         Suggested by Eric Blake.
53092
53093 2007-09-11  Eric Blake  <ebb9@byu.net>
53094
53095         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53096
53097 2007-09-10  Bruno Haible  <bruno@clisp.org>
53098
53099         * posix-modules: Fix typo in error message.
53100         Reported by Matt <mkraai@beckman.com>.
53101
53102 2007-09-09  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/functions/getdelim.texi: Update list of platforms lacking the
53105         function.
53106         * doc/functions/getline.texi: Likewise.
53107
53108 2007-09-09  Jim Meyering  <jim@meyering.net>
53109
53110         * lib/hash.c (hash_initialize): Detect calloc failure.
53111         Reported by Bruno Haible.
53112
53113 2007-09-09  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53116         malloc or realloc fails.
53117
53118 2007-09-09  Bruno Haible  <bruno@clisp.org>
53119
53120         * modules/getcwd (Depends-on): Add malloc-posix.
53121         * modules/glob (Depends-on): Likewise.
53122         * modules/putenv (Depends-on): Likewise.
53123         * modules/strdup (Depends-on): Likewise.
53124         * modules/getdelim (Depends-on): Add realloc-posix.
53125         * modules/read-file (Depends-on): Likewise.
53126
53127 2007-09-09  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53130         (gl_FUNC_MALLOC_POSIX): Require it.
53131         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53132         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53133         * modules/realloc (Files): Add m4/malloc.m4.
53134         * modules/calloc (Files): Likewise.
53135
53136 2007-09-09  Bruno Haible  <bruno@clisp.org>
53137
53138         * modules/malloc-posix: New file.
53139         * modules/malloc (Depends-on): Add malloc-posix.
53140         * lib/malloc.c: Include errno.h.
53141         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53142         and a POSIX-compatible malloc into a single function. Set ENOMEM
53143         when returning NULL.
53144         * m4/malloc.m4: New file.
53145         * doc/functions/malloc.texi: Mention the malloc-posix module.
53146         * lib/stdlib_.h (malloc): New declaration.
53147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53148         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53149         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53150         and HAVE_MALLOC_POSIX.
53151
53152 2007-09-09  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/realloc-posix: New file.
53155         * modules/realloc (Depends-on): Add realloc-posix.
53156         * lib/realloc.c: Include errno.h.
53157         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53158         and a POSIX-compatible realloc into a single function. Set ENOMEM
53159         when returning NULL.
53160         * m4/realloc.m4: New file.
53161         * doc/functions/realloc.texi: Mention the realloc-posix module.
53162         * lib/stdlib_.h (realloc): New declaration.
53163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53164         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53165         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53166         and HAVE_REALLOC_POSIX.
53167
53168 2007-09-09  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/calloc-posix: New file.
53171         * modules/calloc (Depends-on): Add calloc-posix.
53172         * lib/calloc.c: Include errno.h.
53173         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53174         and a POSIX-compatible calloc into a single function. Set ENOMEM
53175         when returning NULL.
53176         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53177         * doc/functions/calloc.texi: Mention the calloc-posix module.
53178         * lib/stdlib_.h (calloc): New declaration.
53179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53180         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53181         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53182         and HAVE_CALLOC_POSIX.
53183
53184 2007-09-09  Bruno Haible  <bruno@clisp.org>
53185
53186         Allow for modules to show an arbitrary notice.
53187         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53188         * gnulib-tool: New option --extract-notice.
53189         (func_usage): Document it.
53190         (sed_extract_prog): Update.
53191         (func_get_notice): New function.
53192         (func_modules_notice): New function.
53193         (func_import, func_create_testdir): Invoke it.
53194         Suggested by Jim Meyering.
53195
53196 2007-09-09  Bruno Haible  <bruno@clisp.org>
53197
53198         * gnulib-tool: New options --verbose, --quiet.
53199         (func_usage): Document them.
53200         (verbose): New variable.
53201         (func_execute_command): New function.
53202         (func_import): Don't show the module list and the file list if
53203         $verbose < 0.
53204         (func_create_testdir): Likewise. Use func_execute_command.
53205         (func_create_megatestdir): Use func_execute_command.
53206
53207 2007-09-08  Bruno Haible  <bruno@clisp.org>
53208
53209         * gnulib-tool (func_import): Prefer rsync over wget when available,
53210         for fetching the PO files.
53211
53212 2007-09-08  Bruno Haible  <bruno@clisp.org>
53213
53214         * posix-modules: New file. Portions copied from gnulib-tool.
53215         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53216
53217 2007-09-08  Jim Meyering  <jim@meyering.net>
53218
53219         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53220         * lib/fpending.h: Rename from __fpending.h.
53221         * lib/fpending.c: Rename from __fpending.c.
53222         Include "fpending.h", not "__fpending.h".
53223         * lib/__fpending.h, lib/__fpending.c: Remove files.
53224         * modules/fpending (Files): Reflect new file names.
53225         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53226
53227 2007-09-08  Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/inttypes-h.m4: Remove stub file.
53230
53231 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53232
53233         * doc/headers/stdint.texi: Discuss #include_next issue.
53234
53235 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53238
53239 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53240
53241         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53242         in variable name.
53243
53244 2007-09-03  Jim Meyering  <jim@meyering.net>
53245
53246         New module: git-version-gen.
53247         * modules/git-version-gen: New file.
53248
53249         Import changes from coreutils for bootstrap script.
53250
53251         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53252
53253         bootstrap: uses rsync to download the .po files
53254         * build-aux/bootstrap (po_download_command_format): New global.
53255         (download_po_files): Use rsync.
53256         (update_po_files): Don't remove .po files after download,
53257         so future rsync runs can take advantage of the copies.
53258
53259         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53260
53261         Solve the unnecessary-.po-file-regeneration problem once and for all.
53262         * build-aux/bootstrap (download_po_files): New function, renamed from
53263         get_translations.  Now, downloads, but doesn't update LINGUAS.
53264         (update_po_files): New function.
53265
53266         bootstrap: Ignore more.
53267         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53268         uniwidth to e.g., lib/.gitignore.
53269         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53270
53271         * build-aux/bootstrap: New setting: vc_ignore.
53272         (insert_sorted_if_absent): Create $file if absent.
53273         Adapt to new, possibly empty, list: $vc_ignore.
53274
53275         bootstrap: generate more ignorable names
53276         * build-aux/bootstrap (slurp): When generating ignorable names,
53277         also map .sin to .sed, .gperf to .c, and .y to .c.
53278
53279 2007-09-03  Jim Meyering  <jim@meyering.net>
53280
53281         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53282         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53283
53284 2007-09-02  Bruno Haible  <bruno@clisp.org>
53285
53286         Fix mis-recognition of 'mcs' on QNX 6.
53287         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53288         output contains the string "Mono".
53289         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53290         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53291
53292 2007-09-01  Bruno Haible  <bruno@clisp.org>
53293
53294         Fix collision between uniwidth/* and linebreak modules.
53295         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53296         u32_width): Remove declarations.
53297         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53298         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53299         streq3, streq2, streq1, streq0): Remove functions.
53300         (STREQ): Remove macro.
53301         (is_cjk_encoding): Remove function.
53302         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53303         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53304         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53305         * NEWS: Document the change.
53306
53307 2007-09-01  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/streq.h: Add double-inclusion guard.
53310
53311 2007-09-01  Karl Berry  <karl@gnu.org>
53312
53313         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53314
53315 2007-08-28  Jim Meyering  <jim@meyering.net>
53316
53317         Rename mreadlink_with_size to areadlink_with_size.
53318         * NEWS: Document the change.
53319         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53320         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53321         * lib/mreadlink.h: Rename this to...
53322         * lib/areadlink.h: ...this.
53323         * modules/mreadlink-with-size: Rename this to...
53324         * modules/areadlink-with-size: ...this.
53325         * lib/canonicalize.c: Reflect the renaming.
53326         * modules/canonicalize: Likewise.
53327
53328 2007-08-26  Bruno Haible  <bruno@clisp.org>
53329
53330         * gnulib-tool (func_import): When deciding which files to remove,
53331         consider also dangling symbolic links.
53332         Reported by Eric Blake.
53333
53334 2007-08-26  Bruno Haible  <bruno@clisp.org>
53335
53336         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53337
53338 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53339
53340         * lib/readline.c: Don't include getline.h, the prototype is now
53341         found in stdio.h.
53342
53343 2007-08-23  Jim Meyering  <jim@meyering.net>
53344
53345         Getdelim touchup.
53346         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53347         around the funlockfile call, since funlockfile never sets errno.
53348         Don't set errno upon failed realloc.
53349
53350 2007-08-22  Eric Blake  <ebb9@byu.net>
53351
53352         Getline touchups.
53353         * lib/getdelim.c (getdelim): Revert regression that required *n to
53354         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53355         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53356         getdelim, rather than whether implementation is missing.
53357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53358         * lib/stdio_.h (getline): Also declare if replacement is
53359         required.
53360         * doc/functions/getdelim.texi: New file.
53361         * doc/functions/getline.texi: Likewise.
53362         * doc/gnulib.texi (Function Substitutes): Add new files.
53363         Reported by Bruno Haible.
53364
53365 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53366
53367         * users.txt: Add Guile.
53368
53369 2007-08-22  Eric Blake  <ebb9@byu.net>
53370
53371         * tests/test-getdelim.c (main): Use remove, not unlink.
53372         * tests/test-getline.c (main): Likewise.
53373
53374         Move getline and getdelim into stdio.h, per POSIX 200x.
53375         * modules/getline (Files): Remove getline.h.
53376         (Depends-on): Add stdio.
53377         (configure.ac): Add module indicator.
53378         * modules/getdelim (Files): Remove getdelim.h.
53379         (Depends-on): Add stdio.
53380         (configure.ac): Add module indicator.
53381         * modules/stdio (Makefile.am): Work with new indicators.
53382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53383         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53384         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53385         * lib/getdelim.h: Delete.
53386         * lib/getline.h: Delete.
53387         * lib/stdio_.h (getdelim, getline): Declare.
53388         * modules/getdelim-tests: New module.
53389         * modules/getline-tests: Likewise.
53390         * tests/test-getdelim.c: New file.
53391         * tests/test-getline.c: Likewise.
53392         * NEWS: Document the change.
53393         * lib/getline.c: Update choice of header.
53394         * lib/csharpcomp.c: Likewise.
53395         * lib/getpass.c: Likewise.
53396         * lib/javacomp.c: Likewise.
53397         * lib/javaversion.c: Likewise.
53398         * lib/yesno.c: Likewise.
53399         * lib/getdelim.c: Likewise.
53400         (getdelim): Set errno on failure, and avoid memory leak.
53401
53402 2007-08-19  Bruno Haible  <bruno@clisp.org>
53403
53404         * modules/closein (Depends-on): Add freadahead.
53405         * lib/closein.c: Include freadahead.h.
53406         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53407         is zero.
53408
53409 2007-08-19  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/freadahead-tests: New file.
53412         * tests/test-freadahead.sh: New file.
53413         * tests/test-freadahead.c: New file.
53414
53415         * modules/freadahead: New file.
53416         * lib/freadahead.h: New file.
53417         * lib/freadahead.c: New file.
53418         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53419         fbufmode, fpurge, freadable, fwritable.
53420
53421 2007-08-19  Eric Blake  <ebb9@byu.net>
53422
53423         Test yesno in combination with closein.
53424         * lib/yesno.c (yesno): Document use of stdin.
53425         * modules/yesno-tests (Files): New module.
53426         * tests/test-yesno.c (main): New file.
53427         * tests/test-yesno.sh: Likewise.
53428
53429 2007-08-19  Bruno Haible  <bruno@clisp.org>
53430
53431         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53432         * lib/fseeko.c (rpl_fseeko): Likewise.
53433         * lib/fseterr.c (fseterr): Likewise.
53434
53435 2007-08-19  Bruno Haible  <bruno@clisp.org>
53436
53437         * tests/test-lseek.c (main): Disable a test for BeOS.
53438         * doc/functions/lseek.texi: Document the BeOS bug.
53439
53440 2007-08-19  Bruno Haible  <bruno@clisp.org>
53441             Eric Blake  <ebb9@byu.net>
53442
53443         * lib/lseek.c: Include <sys/stat.h>.
53444         (rpl_lseek): Add workaround code also for Unix platforms.
53445         Needed for BeOS.
53446         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53447         * doc/functions/lseek.texi: Document BeOS definiency.
53448
53449 2007-08-18  Bruno Haible  <bruno@clisp.org>
53450
53451         * modules/fstrcmp-tests: New file.
53452         * tests/test-fstrcmp.c: New file.
53453
53454 2007-08-18  Bruno Haible  <bruno@clisp.org>
53455
53456         * modules/fstrcmp: New file, from GNU gettext with modifications.
53457         * lib/fstrcmp.h: New file, from GNU gettext.
53458         * lib/fstrcmp.c: New file, from GNU gettext.
53459         * MODULES.html.sh (String handling): Add fstrcmp.
53460
53461 2007-08-18  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53464         'bool'.
53465         (diag, compareseq): Remove const from the ctxt argument.
53466         (USE_HEURISTIC): Undefine at the end.
53467
53468 2007-08-18  Jim Meyering  <jim@meyering.net>
53469
53470         New file: lib/idcache.h
53471         * NEWS: Mention the addition.
53472         * modules/idcache (Files): Add lib/idcache.h
53473         * lib/idcache.c: Include "idcache.h".
53474         Don't include <sys/types.h>.
53475         Add a FIXME comment.
53476         Move file-scoped "static" declarations to the top.
53477         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53478
53479 2007-08-17  Bruno Haible  <bruno@clisp.org>
53480         and Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         * MODULES.html.sh: Add diffseq.
53483         * modules/diffseq: New file.
53484         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53485         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53486
53487 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         Import changes from coreutils for bootstrap script.
53490
53491         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53492
53493         * build-aux/bootstrap (slurp): Work even in environments where
53494         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53495         current code does not slurp files whose names start with ".", and
53496         this looks like it might be a troublesome area.
53497
53498         2007-07-11  Jim Meyering  <jim@meyering.net>
53499
53500         If there's a GPL vN copyright comment, require that N == 3.
53501
53502         2007-07-08  Jim Meyering  <jim@meyering.net>
53503
53504         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53505         * build-aux/bootstrap (mam_template): Move definition out of loop.
53506
53507         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53508
53509         * build-aux/bootstrap (symlink_to_dir): Rename function from
53510         symlink_to_gnulib.  Add a directory parameter.  Update all
53511         callers.
53512         (cp_mark_as_generated): Also check for -- and link to -- files in
53513         gl/.
53514
53515         2007-07-08  Jim Meyering  <jim@meyering.net>
53516
53517         Adapt to deeper hierarchy in gnulib.
53518         * build-aux/bootstrap (symlink_to_dir): If the destination
53519         directory doesn't exist, create it. This is required at least for
53520         "lib/uniwidth/cjk.h".
53521
53522         2007-05-15  Jim Meyering  <jim@meyering.net>
53523
53524         * build-aux/bootstrap: Now that generated Makefile.am files
53525         are no longer under version control, they must be created at
53526         bootstrap time.
53527
53528 2007-08-14  Ben Pfaff  <blp@gnu.org>
53529
53530         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53531
53532 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53535         given the changes below.
53536         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53537         even on hosts that have padding bits beyond the supported 64.
53538
53539 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53542         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53543         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53544         depends on it.
53545         (xstrtol_error): Remove.
53546         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53547         but with a different signature.
53548         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53549         * lib/xstrtol-error.c: Include exitfail.h.
53550         (xstrtol_fatal): New function, with a different signature from the
53551         old xstrtol_error, so that the caller need not worry about passing
53552         in an exit status, or about storage management of the option argument.
53553         (xstrtol_error): Now a static function.  Redo signature to
53554         implement xstrtol_fatal.  Output the correct number of hyphens in
53555         front of the option so that the caller need not worry about
53556         storage management.
53557         (N_): New macro.
53558         (_): Remove; not used now.
53559         * modules/xstrtol: Depend on getopt.
53560         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53561         of old STRTOL_FATAL_ERROR macro.
53562         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53563         of test program.
53564         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53565         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53566
53567 2007-08-08  Eric Blake  <ebb9@byu.net>
53568
53569         * lib/xstrtol-error.c: Add missing include.
53570
53571         Move xstrtol messages into gnulib domain, when --pobase is used.
53572         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53573         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53574         * modules/xstrtol (Files): Distribute new file.
53575         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53576         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53577         * tests/test-xstrtol.c: ...into new file.
53578         * tests/test-xstrtoul.c: Also test xstrtoul.
53579         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53580         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53581         * tests/test-xstrtol.sh: Drive the tests.
53582         * tests/test-xstrtoimax.sh: Likewise.
53583         * tests/test-xstrtoumax.sh: Likewise.
53584         * modules/xstrtol-tests: New module.
53585         * modules/xstrtoimax-tests: Likewise.
53586         * modules/xstrtoumax-tests: Likewise.
53587
53588 2007-08-08  Jim Meyering  <jim@meyering.net>
53589
53590         New function: mfile_name_concat.
53591         * lib/filenamecat.c (mfile_name_concat): New function, just like
53592         file_name_concat, but return NULL upon failure rather than exiting
53593         with a diagnostic.
53594         * lib/filenamecat.h: Declare it.
53595
53596 2007-08-07  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53599         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53600         warning from gcc.
53601         Reported by Eric Blake.
53602
53603 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53604
53605         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53606         * modules/crypto/arcfour (License): Likewise.
53607         * modules/crypto/des-tests (License): Likewise.
53608         * modules/crypto/gc-arctwo-tests (License): Likewise.
53609         * modules/crypto/gc-des-tests (License): Likewise.
53610         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53611         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53612         * modules/crypto/gc-md2-tests (License): Likewise.
53613         * modules/crypto/gc-md4-tests (License): Likewise.
53614         * modules/crypto/gc-md5-tests (License): Likewise.
53615         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53616         * modules/crypto/gc-rijndael-tests (License): Likewise.
53617         * modules/crypto/gc-sha1-tests (License): Likewise.
53618         * modules/crypto/gc-tests (License): Likewise.
53619         * modules/crypto/hmac-md5 (License): Likewise.
53620         * modules/crypto/hmac-sha1 (License): Likewise.
53621         * modules/crypto/md2-tests (License): Likewise.
53622         * modules/crypto/md4-tests (License): Likewise.
53623         * modules/crypto/md5 (License): Likewise.
53624         * modules/crypto/rijndael (License): Likewise.
53625         * modules/crypto/sha1 (License): Likewise.
53626         * modules/memxor (License): Likewise.
53627
53628 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53629         and Bruno Haible  <bruno@clisp.org>
53630
53631         * NEWS: Describe interface changes to human, xstrtol.
53632         * lib/human.h: Include <xstrtol.h>.
53633         (human_options): Return enum strtol_error, not int.  Remove
53634         bool arg; take int * instead.
53635         * lib/human.c: Don't include "gettext.h".
53636         (_): Remove; no longer used.
53637         Don't include <xstrtol.h>, since human.h does it.
53638         (human_options): Adjust to abovementioned interface changes.
53639         Do not report error to stderr; that's now the caller's
53640         responsibility.
53641         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53642         interface change.
53643         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53644         Str, Argument_type_string.  All uses changed.  Put " argument"
53645         in diagnostics to make them clearer.  Change wording of suffix
53646         message for clarity.
53647         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53648         Argument_type_string.
53649         (STRTOL_FATAL_WARN): Remove; no longer used.
53650         * modules/human (Depends-on): Remove gettext-h.
53651
53652 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53653
53654         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53655
53656 2007-07-31  Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53659         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53660         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53661
53662 2007-07-31  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53665         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53666
53667 2007-07-30  Bruno Haible  <bruno@clisp.org>
53668
53669         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53670         * modules/c-ctype (License): Likewise.
53671         * modules/c-strcase (License): Likewise.
53672         * modules/check-version (License): Likewise.
53673         * modules/iconv (License): Likewise.
53674         * modules/iconv_open (License): Likewise.
53675         * modules/read-file (License): Likewise.
53676         * modules/striconv (License): Likewise.
53677         * modules/strverscmp (License): Likewise.
53678         * modules/vasprintf (License): Likewise.
53679         * modules/crypto/des (License): Likewise.
53680         * modules/crypto/gc (License): Likewise.
53681         * modules/crypto/gc-arcfour (License): Likewise.
53682         * modules/crypto/gc-arctwo (License): Likewise.
53683         * modules/crypto/gc-des (License): Likewise.
53684         * modules/crypto/gc-hmac-md5 (License): Likewise.
53685         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53686         * modules/crypto/gc-md2 (License): Likewise.
53687         * modules/crypto/gc-md4 (License): Likewise.
53688         * modules/crypto/gc-md5 (License): Likewise.
53689         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53690         * modules/crypto/gc-random (License): Likewise.
53691         * modules/crypto/gc-rijndael (License): Likewise.
53692         * modules/crypto/gc-sha1 (License): Likewise.
53693         * modules/crypto/md2 (License): Likewise.
53694         * modules/crypto/md4 (License): Likewise.
53695
53696 2007-07-30  Jim Meyering  <jim@meyering.net>
53697
53698         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53699         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53700         it has valid stat data.  This bug would cause du not to count the
53701         sizes of inaccessible directories.
53702         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53703         in <http://bugzilla.redhat.com/250077>.
53704
53705 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53706             Bruno Haible  <bruno@clisp.org>
53707
53708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53709         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53710         #include_next, gives a diagnostic about it, but reports no error in
53711         the exit code.
53712         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53713
53714 2007-07-24  Ben Pfaff  <blp@gnu.org>
53715
53716         Improve name: "count-one-bits" is better than "popcount".
53717         * MODULES.html.sh: Update name.
53718         * lib/popcount.h: Renamed lib/count-one-bits.h.
53719         (popcount): Renamed count_one_bits.
53720         (popcountl): Renamed count_one_bits_l.
53721         (popcountll): Renamed count_one_bits_ll.
53722         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53723         * modules/popcount: Renamed module/count-one-bits.
53724         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53725         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53726
53727 2007-07-23  Ben Pfaff  <blp@gnu.org>
53728
53729         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53730         better code generation, and add U to large constants to avoid
53731         warnings, in non-GCC case.
53732         Suggested by Bruno Haible.
53733
53734 2007-07-23  Ben Pfaff  <blp@gnu.org>
53735
53736         * lib/popcount.h: Use verify_true instead of if...abort.
53737         * modules/popcount: Depend on verify module.
53738         Suggested by Jim Meyering.
53739
53740 2007-07-23  Bruno Haible  <bruno@clisp.org>
53741
53742         * gnulib-tool (func_import): Create a .cvsignore file also when the
53743         directory is not yet in CVS but the toplevel directory is. When
53744         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53745         Reported by Karl Berry.
53746
53747 2007-07-22  Ben Pfaff  <blp@gnu.org>
53748
53749         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53750         case.
53751         Suggested by Eric Blake.
53752
53753 2007-07-22  Ben Pfaff  <blp@gnu.org>
53754
53755         New module: popcount.
53756         * MODULES.html.sh: Add popcount.
53757         * modules/popcount: New file.
53758         * modules/popcount-tests: New file.
53759         * tests/test-popcount.c: New file.
53760         * lib/popcount.h: New file.
53761         * m4/popcount.m4: New file.
53762
53763 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * build-aux/announce-gen: Update to GPLv3.
53766
53767         * build-aux/config.guess: Update from config.
53768
53769 2007-07-21  Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53772         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53773
53774 2007-07-20  Jim Meyering  <jim@meyering.net>
53775
53776         * check-module: Diagnose a self-dependency.
53777
53778 2007-07-19  Bruno Haible  <bruno@clisp.org>
53779
53780         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53781         empty.
53782         Reported by Eric Blake.
53783
53784 2007-07-18  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool: New options --po-base, --po-domain.
53787         (func_usage): Document them.
53788         (pobase, po_domain): New variables.
53789         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53790         DEFAULT_TEXT_DOMAIN.
53791         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53792         (func_import): Consider pobase and po_domain. Create a po/ directory.
53793         (func_create_testdir): Set pobase and po_domain to empty.
53794         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53795         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53796
53797 2007-07-18  Bruno Haible  <bruno@clisp.org>
53798
53799         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53800         EXTRA_DIST augmentation for files in build-aux/.
53801
53802 2007-07-16  Bruno Haible  <bruno@clisp.org>
53803
53804         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53805         * modules/getdelim (License): Likewise.
53806
53807 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53808
53809         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53810         * modules/d-type (License): Likewise.
53811         * modules/extensions (License): Likewise.
53812         * modules/fnmatch (License): Likewise.
53813         * modules/fseeko (License): Likewise.
53814         * modules/getaddrinfo (License): Likewise.
53815         * modules/getline (License): Likewise.
53816         * modules/getlogin_r (License): Likewise.
53817         * modules/getpass (License): Likewise.
53818         * modules/gettimeofday (License): Likewise.
53819         * modules/glob (License): Likewise.
53820         * modules/inet_ntop (License): Likewise.
53821         * modules/malloc (License): Likewise.
53822         * modules/malloca (License): Likewise.
53823         * modules/memmem (License): Likewise.
53824         * modules/mempcpy (License): Likewise.
53825         * modules/memset (License): Likewise.
53826         * modules/minmax (License): Likewise.
53827         * modules/mktime (License): Likewise.
53828         * modules/netinet_in (License): Likewise.
53829         * modules/pathmax (License): Likewise.
53830         * modules/poll (License): Likewise.
53831         * modules/regex (License): Likewise.
53832         * modules/snprintf (License): Likewise.
53833         * modules/stdbool (License): Likewise.
53834         * modules/stdint (License): Likewise.
53835         * modules/stdio (License): Likewise.
53836         * modules/strcase (License): Likewise.
53837         * modules/strcasestr (License): Likewise.
53838         * modules/strdup (License): Likewise.
53839         * modules/string (License): Likewise.
53840         * modules/strndup (License): Likewise.
53841         * modules/strnlen (License): Likewise.
53842         * modules/strpbrk (License): Likewise.
53843         * modules/strptime (License): Likewise.
53844         * modules/strsep (License): Likewise.
53845         * modules/sys_select (License): Likewise.
53846         * modules/sys_socket (License): Likewise.
53847         * modules/sys_stat (License): Likewise.
53848         * modules/sys_time (License): Likewise.
53849         * modules/time (License): Likewise.
53850         * modules/time_r (License): Likewise.
53851         * modules/timegm (License): Likewise.
53852         * modules/unistd (License): Likewise.
53853         * modules/vsnprintf (License): Likewise.
53854         * modules/wctype (License): Likewise.
53855
53856 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53857
53858         * modules/argz (License): LGPLv2+.
53859
53860 2007-07-15  Karl Berry  <karl@gnu.org>
53861
53862         * doc/gnulib.texi: revise node structure per new fdl.texi.
53863
53864 2007-07-14  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53867         the output file.
53868         * lib/uniname/uninames.h: Regenerated.
53869
53870 2007-07-14  Karl Berry  <karl@gnu.org>
53871
53872         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53873         omitting sectioning and index commands.
53874
53875 2007-07-13  Bruno Haible  <bruno@clisp.org>
53876
53877         New gnulib-tool option --more-symlinks.
53878         * gnulib-tool (func_usage): Document --more-symlinks.
53879         (do_copyrights): New variable.
53880         Recognize option --more-symlinks.
53881         (func_import): Don't add a copyright notice transform to
53882         sed_transform_lib_file if do_copyrights is empty.
53883
53884 2007-07-13  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/vasnprintf.c (decimal_point_char): Define also if
53887         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53888         && !NEED_PRINTF_DIRECTIVE_A.
53889         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53890         Gary V. Vaughan <gary@gnu.org>.
53891
53892 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/inttypes_.h: Undo previous change, since it was fixed
53895         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53896
53897 2007-07-13  Bruno Haible  <bruno@clisp.org>
53898
53899         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53900         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53901
53902 2007-07-13  Jim Meyering  <jim@meyering.net>
53903
53904         df: Don't fail for Tru64's "file-on-file mount".
53905         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53906         so we fall through and use statfs instead.  Details here:
53907         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53908         Reported by Albert Chin.
53909
53910 2007-07-13  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53913         * modules/configmake (License): Likewise.
53914         * modules/gettext (License): Likewise.
53915         * modules/gettext-h (License): Likewise.
53916         * modules/include_next (License): Likewise.
53917         * modules/link-warning (License): Likewise.
53918         * modules/localcharset (License): Likewise.
53919         * modules/localename (License): Likewise.
53920         * modules/lock (License): Likewise.
53921         * modules/relocatable-lib-lgpl (License): Likewise.
53922         * modules/size_max (License): Likewise.
53923         * modules/vasnprintf (License): Likewise.
53924         * modules/wchar (License): Likewise.
53925         * modules/xsize (License): Likewise.
53926
53927 2007-07-13  Bruno Haible  <bruno@clisp.org>
53928
53929         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53930         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53931
53932 2007-07-12  Bruno Haible  <bruno@clisp.org>
53933
53934         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53935         in the modules files.
53936
53937 2007-07-11  Karl Berry  <karl@gnu.org>
53938
53939         * MODULES.html.sh (func_module): use
53940          sed -e '\|^'"${includefile}"'$|d'
53941          instead of /.../d, to avoid errors on $includefile's containing /.
53942
53943 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53944
53945         * gnulib-tool (func_import): Avoid duplication of --avoid
53946         statements
53947         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53948         names to `_' in variable names.
53949
53950 2007-07-10  Eric Blake  <ebb9@byu.net>
53951
53952         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53953         * NEWS: Document this change.
53954
53955 2007-07-08  Bruno Haible  <bruno@clisp.org>
53956
53957         Update to Unicode 5.0.
53958         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53959         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53960         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53961         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53962         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53963         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53964         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53965         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53966         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53967         U+10A3F, U+1D242..U+1D244.
53968         (nonspacing_table_ind): Update.
53969         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53970         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53971
53972 2007-07-08  Bruno Haible  <bruno@clisp.org>
53973
53974         Update to Unicode 5.0.
53975         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53976         code transform. Extend the name index field of unicode_name_to_code and
53977         unicode_code_to_name from 16 to 24 bits.
53978         * lib/uniname/uniname.c (unicode_character_name,
53979         unicode_name_character): Add the range 0x12xxx to the code transform.
53980         * lib/uniname/uninames.h: Regenerated.
53981         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53982
53983 2007-07-07  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/wcwidth-tests: New file.
53986         * tests/test-wcwidth.c: New file.
53987
53988         Work around MacOS X wcwidth() bug.
53989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53990         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53991         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53992         original wcwidth in non-UTF-8 locales.
53993         * modules/wcwidth (Depends-on): Add localcharset, streq,
53994         uniwidth/width.
53995         * doc/functions/wcwidth.texi: Update.
53996
53997 2007-07-07  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54000         (wcwidth): New declaration.
54001         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54002         macros.
54003         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54004         here. Prepare for creating <wchar.h> unconditionally.
54005         * modules/wchar (Depends-on): Add link-warning.
54006         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54007         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54008         * lib/wcwidth.h: Remove file.
54009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54010         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54011         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54012         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54013         (Include): Replace wcwidth.h with <wchar.h>.
54014         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54015         * lib/mbchar.h: Don't include wcwidth.h.
54016         * lib/mbswidth.c: Likewise.
54017         * NEWS: Mention the change.
54018
54019 2007-07-07  Bruno Haible  <bruno@clisp.org>
54020
54021         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54022         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54023         definition with an external declaration.
54024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54025         defined as a function. Remove AC_C_INLINE requirement.
54026         * modules/wcwidth (Files): Add lib/wcwidth.c.
54027         (Makefile.am): Remove redundant statement.
54028
54029 2007-07-07  Bruno Haible  <bruno@clisp.org>
54030
54031         * MODULES.html.sh (Unicode string functions): Add the new modules.
54032
54033         * tests/uniwidth/test-u32-strwidth.c: New file.
54034         * modules/uniwidth/u32-strwidth-tests: New file.
54035
54036         * lib/uniwidth/u32-strwidth.c: New file.
54037         * modules/uniwidth/u32-strwidth: New file.
54038
54039         * tests/uniwidth/test-u16-strwidth.c: New file.
54040         * modules/uniwidth/u16-strwidth-tests: New file.
54041
54042         * lib/uniwidth/u16-strwidth.c: New file.
54043         * modules/uniwidth/u16-strwidth: New file.
54044
54045         * tests/uniwidth/test-u8-strwidth.c: New file.
54046         * modules/uniwidth/u8-strwidth-tests: New file.
54047
54048         * lib/uniwidth/u8-strwidth.c: New file.
54049         * modules/uniwidth/u8-strwidth: New file.
54050
54051         * tests/uniwidth/test-u32-width.c: New file.
54052         * modules/uniwidth/u32-width-tests: New file.
54053
54054         * lib/uniwidth/u32-width.c: New file.
54055         * modules/uniwidth/u32-width: New file.
54056
54057         * tests/uniwidth/test-u16-width.c: New file.
54058         * modules/uniwidth/u16-width-tests: New file.
54059
54060         * lib/uniwidth/u16-width.c: New file.
54061         * modules/uniwidth/u16-width: New file.
54062
54063         * tests/uniwidth/test-u8-width.c: New file.
54064         * modules/uniwidth/u8-width-tests: New file.
54065
54066         * lib/uniwidth/u8-width.c: New file.
54067         * modules/uniwidth/u8-width: New file.
54068
54069         * tests/uniwidth/test-uc_width.c: New file.
54070         * modules/uniwidth/width-tests: New file.
54071
54072         * lib/uniwidth/width.c: New file, from GNU libiconv.
54073         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54074         * modules/uniwidth/width: New file.
54075
54076         * lib/uniwidth.h: New file, from GNU libiconv.
54077         * modules/uniwidth/base: New file.
54078
54079 2007-07-07  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/uniname.h: New file, from GNU gettext.
54082         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54083         * lib/uniname/uninames.h: New file, from GNU gettext.
54084         * lib/uniname/uniname.c: New file, from GNU gettext.
54085         * tests/uniname/test-uninames.sh: New file.
54086         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54087         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54088         * modules/uniname/base: New file.
54089         * modules/uniname/uniname: New file.
54090         * modules/uniname/uniname-tests: New file.
54091         * MODULES.html.sh (Unicode string functions): Add the new modules.
54092
54093 2007-07-06  Bruno Haible  <bruno@clisp.org>
54094
54095         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54096
54097 2007-07-06  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54100         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54101         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54102         include <sys/time.h>.
54103         Reported by Eric Blake.
54104
54105 2007-07-06  Eric Blake  <ebb9@byu.net>
54106
54107         Fix testing canonicalize on cygwin.
54108         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54109         Revert patch from 2007-06-19.
54110         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54111         canonicalize module is also in use.
54112         * tests/test-canonicalize.c: New file.
54113         * tests/test-canonicalize.sh: Likewise.
54114         * modules/canonicalize-tests: Likewise.
54115
54116 2007-07-06  Jim Meyering  <jim@meyering.net>
54117
54118         * lib/getugroups.c (getugroups): Detect getgrent failure.
54119         Adjust comment to reflect reality: this function may return -1.
54120
54121 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54122
54123         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54124         the new TP address.
54125         (usage): Fix typo
54126         (gnulib_mk): New variable.
54127
54128 2007-07-05  Jim Meyering  <jim@meyering.net>
54129
54130         Don't let endgrent clobber errno, no matter how improbable.
54131         * lib/getugroups.c (getugroups): Save and restore errno around
54132         endgrent call.
54133
54134         Close the group DB even when failing with 2^31 or more members.
54135         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54136
54137 2007-07-04  Jim Meyering  <jim@meyering.net>
54138
54139         * lib/getugroups.h: New file.
54140         * lib/getugroups.c: Include "getugroups.h".
54141         Remove uses of "register" keyword.
54142         Move local variable, "cp", down into scope where used.
54143         Give "username" parameter the "const" attribute.
54144         * modules/getugroups (Files): Add lib/getugroups.h
54145
54146 2007-07-04  Karl Berry  <karl@gnu.org>
54147
54148         * MODULES.html.sh (func_all_modules): Complete rename of
54149         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54150
54151 2007-07-02  Bruno Haible  <bruno@clisp.org>
54152
54153         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54154         mode, when inttypes.h comes from gnulib.
54155         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54156
54157 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54158
54159         * NEWS: Mention lgpl module name change.
54160
54161         * modules/lgpl-2.1: Renamed from lgpl.
54162
54163         * NEWS: Mention gpl module name change.
54164
54165         * modules/gpl-3.0: New file, based on gpl-2.0.
54166
54167         * modules/gpl-2.0: Renamed from gpl.
54168
54169         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54170         doc/gpl-2.0.texi.
54171
54172 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54175         #define __STDC_LIMIT_MACROS temporarily while including
54176         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54177         Problem reported by Joel E. Denny in
54178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54179
54180 2007-07-01  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/unistdio.h: New file.
54183         * lib/unistdio/u-asnprintf.h: New file.
54184         * lib/unistdio/u-asprintf.h: New file.
54185         * lib/unistdio/u-printf-args.c: New file.
54186         * lib/unistdio/u-printf-args.h: New file.
54187         * lib/unistdio/u-printf-parse.h: New file.
54188         * lib/unistdio/u-snprintf.h: New file.
54189         * lib/unistdio/u-sprintf.h: New file.
54190         * lib/unistdio/u-vasprintf.h: New file.
54191         * lib/unistdio/u-vsnprintf.h: New file.
54192         * lib/unistdio/u-vsprintf.h: New file.
54193         * lib/unistdio/ulc-asnprintf.c: New file.
54194         * lib/unistdio/ulc-asprintf.c: New file.
54195         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54196         * lib/unistdio/ulc-printf-parse.c: New file.
54197         * lib/unistdio/ulc-snprintf.c: New file.
54198         * lib/unistdio/ulc-sprintf.c: New file.
54199         * lib/unistdio/ulc-vasnprintf.c: New file.
54200         * lib/unistdio/ulc-vasprintf.c: New file.
54201         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54202         * lib/unistdio/ulc-vsnprintf.c: New file.
54203         * lib/unistdio/ulc-vsprintf.c: New file.
54204         * lib/unistdio/u8-asnprintf.c: New file.
54205         * lib/unistdio/u8-asprintf.c: New file.
54206         * lib/unistdio/u8-printf-parse.c: New file.
54207         * lib/unistdio/u8-snprintf.c: New file.
54208         * lib/unistdio/u8-sprintf.c: New file.
54209         * lib/unistdio/u8-vasnprintf.c: New file.
54210         * lib/unistdio/u8-vasprintf.c: New file.
54211         * lib/unistdio/u8-vsnprintf.c: New file.
54212         * lib/unistdio/u8-vsprintf.c: New file.
54213         * lib/unistdio/u8-u8-asnprintf.c: New file.
54214         * lib/unistdio/u8-u8-asprintf.c: New file.
54215         * lib/unistdio/u8-u8-snprintf.c: New file.
54216         * lib/unistdio/u8-u8-sprintf.c: New file.
54217         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54218         * lib/unistdio/u8-u8-vasprintf.c: New file.
54219         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54220         * lib/unistdio/u8-u8-vsprintf.c: New file.
54221         * lib/unistdio/u16-asnprintf.c: New file.
54222         * lib/unistdio/u16-asprintf.c: New file.
54223         * lib/unistdio/u16-printf-parse.c: New file.
54224         * lib/unistdio/u16-snprintf.c: New file.
54225         * lib/unistdio/u16-sprintf.c: New file.
54226         * lib/unistdio/u16-vasnprintf.c: New file.
54227         * lib/unistdio/u16-vasprintf.c: New file.
54228         * lib/unistdio/u16-vsnprintf.c: New file.
54229         * lib/unistdio/u16-vsprintf.c: New file.
54230         * lib/unistdio/u16-u16-asnprintf.c: New file.
54231         * lib/unistdio/u16-u16-asprintf.c: New file.
54232         * lib/unistdio/u16-u16-snprintf.c: New file.
54233         * lib/unistdio/u16-u16-sprintf.c: New file.
54234         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54235         * lib/unistdio/u16-u16-vasprintf.c: New file.
54236         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54237         * lib/unistdio/u16-u16-vsprintf.c: New file.
54238         * lib/unistdio/u32-asnprintf.c: New file.
54239         * lib/unistdio/u32-asprintf.c: New file.
54240         * lib/unistdio/u32-printf-parse.c: New file.
54241         * lib/unistdio/u32-snprintf.c: New file.
54242         * lib/unistdio/u32-sprintf.c: New file.
54243         * lib/unistdio/u32-vasnprintf.c: New file.
54244         * lib/unistdio/u32-vasprintf.c: New file.
54245         * lib/unistdio/u32-vsnprintf.c: New file.
54246         * lib/unistdio/u32-vsprintf.c: New file.
54247         * lib/unistdio/u32-u32-asnprintf.c: New file.
54248         * lib/unistdio/u32-u32-asprintf.c: New file.
54249         * lib/unistdio/u32-u32-snprintf.c: New file.
54250         * lib/unistdio/u32-u32-sprintf.c: New file.
54251         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54252         * lib/unistdio/u32-u32-vasprintf.c: New file.
54253         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54254         * lib/unistdio/u32-u32-vsprintf.c: New file.
54255         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54256         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54257         * tests/unistdio/test-ulc-printf1.h: New file.
54258         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54259         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54260         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54261         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54262         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54263         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54264         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54265         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54266         * tests/unistdio/test-u8-asnprintf1.c: New file.
54267         * tests/unistdio/test-u8-asnprintf1.h: New file.
54268         * tests/unistdio/test-u8-printf1.h: New file.
54269         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54270         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54271         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54272         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54273         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54274         * tests/unistdio/test-u8-vasprintf1.c: New file.
54275         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54276         * tests/unistdio/test-u8-vsprintf1.c: New file.
54277         * tests/unistdio/test-u16-asnprintf1.c: New file.
54278         * tests/unistdio/test-u16-asnprintf1.h: New file.
54279         * tests/unistdio/test-u16-printf1.h: New file.
54280         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54281         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54282         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54283         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54284         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54285         * tests/unistdio/test-u16-vasprintf1.c: New file.
54286         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54287         * tests/unistdio/test-u16-vsprintf1.c: New file.
54288         * tests/unistdio/test-u32-asnprintf1.c: New file.
54289         * tests/unistdio/test-u32-asnprintf1.h: New file.
54290         * tests/unistdio/test-u32-printf1.h: New file.
54291         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54292         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54293         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54294         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54295         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54296         * tests/unistdio/test-u32-vasprintf1.c: New file.
54297         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54298         * tests/unistdio/test-u32-vsprintf1.c: New file.
54299         * modules/unistdio/base: New file.
54300         * modules/unistdio/u-printf-args: New file.
54301         * modules/unistdio/ulc-asnprintf: New file.
54302         * modules/unistdio/ulc-asprintf: New file.
54303         * modules/unistdio/ulc-fprintf: New file.
54304         * modules/unistdio/ulc-printf-parse: New file.
54305         * modules/unistdio/ulc-snprintf: New file.
54306         * modules/unistdio/ulc-sprintf: New file.
54307         * modules/unistdio/ulc-vasnprintf: New file.
54308         * modules/unistdio/ulc-vasprintf: New file.
54309         * modules/unistdio/ulc-vfprintf: New file.
54310         * modules/unistdio/ulc-vsnprintf: New file.
54311         * modules/unistdio/ulc-vsprintf: New file.
54312         * modules/unistdio/u8-asnprintf: New file.
54313         * modules/unistdio/u8-asprintf: New file.
54314         * modules/unistdio/u8-printf-parse: New file.
54315         * modules/unistdio/u8-snprintf: New file.
54316         * modules/unistdio/u8-sprintf: New file.
54317         * modules/unistdio/u8-vasnprintf: New file.
54318         * modules/unistdio/u8-vasprintf: New file.
54319         * modules/unistdio/u8-vsnprintf: New file.
54320         * modules/unistdio/u8-vsprintf: New file.
54321         * modules/unistdio/u8-u8-asnprintf: New file.
54322         * modules/unistdio/u8-u8-asprintf: New file.
54323         * modules/unistdio/u8-u8-snprintf: New file.
54324         * modules/unistdio/u8-u8-sprintf: New file.
54325         * modules/unistdio/u8-u8-vasnprintf: New file.
54326         * modules/unistdio/u8-u8-vasprintf: New file.
54327         * modules/unistdio/u8-u8-vsnprintf: New file.
54328         * modules/unistdio/u8-u8-vsprintf: New file.
54329         * modules/unistdio/u16-asnprintf: New file.
54330         * modules/unistdio/u16-asprintf: New file.
54331         * modules/unistdio/u16-printf-parse: New file.
54332         * modules/unistdio/u16-snprintf: New file.
54333         * modules/unistdio/u16-sprintf: New file.
54334         * modules/unistdio/u16-vasnprintf: New file.
54335         * modules/unistdio/u16-vasprintf: New file.
54336         * modules/unistdio/u16-vsnprintf: New file.
54337         * modules/unistdio/u16-vsprintf: New file.
54338         * modules/unistdio/u16-u16-asnprintf: New file.
54339         * modules/unistdio/u16-u16-asprintf: New file.
54340         * modules/unistdio/u16-u16-snprintf: New file.
54341         * modules/unistdio/u16-u16-sprintf: New file.
54342         * modules/unistdio/u16-u16-vasnprintf: New file.
54343         * modules/unistdio/u16-u16-vasprintf: New file.
54344         * modules/unistdio/u16-u16-vsnprintf: New file.
54345         * modules/unistdio/u16-u16-vsprintf: New file.
54346         * modules/unistdio/u32-asnprintf: New file.
54347         * modules/unistdio/u32-asprintf: New file.
54348         * modules/unistdio/u32-printf-parse: New file.
54349         * modules/unistdio/u32-snprintf: New file.
54350         * modules/unistdio/u32-sprintf: New file.
54351         * modules/unistdio/u32-vasnprintf: New file.
54352         * modules/unistdio/u32-vasprintf: New file.
54353         * modules/unistdio/u32-vsnprintf: New file.
54354         * modules/unistdio/u32-vsprintf: New file.
54355         * modules/unistdio/u32-u32-asnprintf: New file.
54356         * modules/unistdio/u32-u32-asprintf: New file.
54357         * modules/unistdio/u32-u32-snprintf: New file.
54358         * modules/unistdio/u32-u32-sprintf: New file.
54359         * modules/unistdio/u32-u32-vasnprintf: New file.
54360         * modules/unistdio/u32-u32-vasprintf: New file.
54361         * modules/unistdio/u32-u32-vsnprintf: New file.
54362         * modules/unistdio/u32-u32-vsprintf: New file.
54363         * modules/unistdio/ulc-asnprintf-tests: New file.
54364         * modules/unistdio/ulc-vasnprintf-tests: New file.
54365         * modules/unistdio/ulc-vasprintf-tests: New file.
54366         * modules/unistdio/ulc-vsnprintf-tests: New file.
54367         * modules/unistdio/ulc-vsprintf-tests: New file.
54368         * modules/unistdio/u8-asnprintf-tests: New file.
54369         * modules/unistdio/u8-vasnprintf-tests: New file.
54370         * modules/unistdio/u8-vasprintf-tests: New file.
54371         * modules/unistdio/u8-vsnprintf-tests: New file.
54372         * modules/unistdio/u8-vsprintf-tests: New file.
54373         * modules/unistdio/u16-asnprintf-tests: New file.
54374         * modules/unistdio/u16-vasnprintf-tests: New file.
54375         * modules/unistdio/u16-vasprintf-tests: New file.
54376         * modules/unistdio/u16-vsnprintf-tests: New file.
54377         * modules/unistdio/u16-vsprintf-tests: New file.
54378         * modules/unistdio/u32-asnprintf-tests: New file.
54379         * modules/unistdio/u32-vasnprintf-tests: New file.
54380         * modules/unistdio/u32-vasprintf-tests: New file.
54381         * modules/unistdio/u32-vsnprintf-tests: New file.
54382         * modules/unistdio/u32-vsprintf-tests: New file.
54383         * MODULES.html.sh (Unicode string functions): Add the new modules.
54384
54385 2007-07-01  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/sprintf.c (sprintf): Limit the available length estimation,
54388         to avoid address wraparound.
54389         * lib/vsprintf.c (vsprintf): Likewise.
54390         * modules/sprintf-posix (Dependencies): Add stdint.
54391         * modules/vsprintf-posix (Dependencies): Likewise.
54392
54393 2007-07-01  Bruno Haible  <bruno@clisp.org>
54394
54395         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54396         Windows PATH as well. Conservative double-quoting. Comments.
54397
54398 2007-07-01  Bruno Haible  <bruno@clisp.org>
54399             Eric Blake  <ebb9@byu.net>
54400             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54401
54402         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54403         empty components in $PATH, denoting '.'.
54404
54405 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54406
54407         * gnulib-tool: Fix indentation.
54408         (func_create_megatestdir): Likewise.
54409         Report by Bruno Haible.
54410
54411 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54412
54413         Sync from Automake.
54414         * build-aux/gnupload: Fix shell portability issues with for loops.
54415         Report by Karl Berry.
54416
54417 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54418
54419         * build-aux/maint.mk (POURL): Use translationproject.org.
54420
54421 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54422             Bruno Haible  <bruno@clisp.org>
54423
54424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54425         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54426         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54427         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54428         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54429
54430 2007-06-27  Bruno Haible  <bruno@clisp.org>
54431
54432         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54433         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54434
54435 2007-06-26  Karl Berry  <karl@gnu.org>
54436
54437         * MODULES.html.sh: remove xreadlink-with-size.
54438
54439 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54442         method that I hope also handles the double-include problem noted
54443         by Bruno Haible in
54444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54445
54446 2007-06-23  Bruno Haible  <bruno@clisp.org>
54447
54448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54449         Don't let the 'mostlyclean' target fail if the last subdirectory could
54450         not be removed.
54451         Reported by Karl Berry.
54452
54453 2007-06-23  Bruno Haible  <bruno@clisp.org>
54454
54455         * gnulib-tool (echo): Add a speedier workaround for ksh.
54456         * tests/test-echo.sh: Likewise.
54457
54458 2007-06-23  Bruno Haible  <bruno@clisp.org>
54459
54460         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54461         * tests/test-echo.sh: Likewise.
54462
54463 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54464
54465         * gnulib-tool (IFS): Initialize early, so we don't set it to
54466         empty later.
54467         (self_abspathname): Rewrite algorithm to set it, reindent.
54468         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54469         (func_create_megatestdir): Merge some sed scripts.
54470
54471 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54472
54473         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54474         exposed by Sun Studio 11 cc on Solaris 8.
54475
54476 2007-06-22  Bruno Haible  <bruno@clisp.org>
54477
54478         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54479         backslashes.
54480         * tests/test-echo.sh: New file.
54481
54482 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54483
54484         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54485         simplify `sed_replace_build_aux' scripts, they are portable but
54486         echoing them with `echo' is not.
54487         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54488
54489 2007-06-21  Karl Berry  <karl@gnu.org>
54490
54491         * config/srclist.txt: guess we can't handle the licenses via
54492         srclist at the moment.
54493
54494 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * MODULES.html.sh: Add include_next.
54497         * modules/include_next: New file.
54498
54499 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54500
54501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54502         INCLUDE_NEXT.
54503         (gl_CHECK_NEXT_HEADERS): New macro.
54504         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54505         the obsolescent gl_ABSOLUTE_HEADER.
54506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54507         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54508         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54509         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54510         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54511         * m4/math_h.m4 (gl_MATH_H): Likewise.
54512         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54513         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54514         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54515         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54516         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54517         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54518         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54520         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54521         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54522         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54523         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54524         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54525         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54526         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54527         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54528         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54529         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54530         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54531         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54532         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54533         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54534         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54535         * lib/float_.h: Likewise.
54536         * lib/inttypes_.h: Likewise.
54537         * lib/math_.h: Likewise.
54538         * lib/search_.h: Likewise.
54539         * lib/signal_.h: Likewise.
54540         * lib/stdint_.h: Likewise.
54541         * lib/stdio_.h: Likewise.
54542         * lib/stdlib_.h: Likewise.
54543         * lib/string_.h: Likewise.
54544         * lib/sys_stat_.h: Likewise.
54545         * lib/sys_time_.h: Likewise.
54546         * lib/time_.h: Likewise.
54547         * lib/unistd_.h: Likewise.
54548         * lib/wchar_.h: Likewise.
54549         * lib/wctype_.h: Likewise.
54550         * lib/dirent_.h: Likewise.
54551         * lib/iconv_.h: Likewise.
54552         * lib/locale_.h: Likewise.
54553         * lib/netinet_in_.h: Likewise.
54554         * lib/sys_select_.h: Likewise.
54555         * lib/sys_socket_.h: Likewise.
54556         * lib/sysexits_.h: Likewise.
54557         * modules/fcntl (Depends-on): Depend on include_next, not
54558         absolute_header.
54559         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54560         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54561         * modules/fchdir: Likewise.
54562         * modules/float: Likewise.
54563         * modules/iconv_open: Likewise.
54564         * modules/inttypes: Likewise.
54565         * modules/locale: Likewise.
54566         * modules/math: Likewise.
54567         * modules/netinet_in: Likewise.
54568         * modules/search: Likewise.
54569         * modules/signal: Likewise.
54570         * modules/stdint: Likewise.
54571         * modules/stdio: Likewise.
54572         * modules/stdlib: Likewise.
54573         * modules/string: Likewise.
54574         * modules/sys_select: Likewise.
54575         * modules/sys_socket: Likewise.
54576         * modules/sys_stat: Likewise.
54577         * modules/sys_time: Likewise.
54578         * modules/sysexits: Likewise.
54579         * modules/time: Likewise.
54580         * modules/unistd: Likewise.
54581         * modules/wchar: Likewise.
54582         * modules/wctype: Likewise.
54583         * modules/sys_stat: Change maintainer to "all".
54584         * modules/unistd: Likewise.
54585
54586 2007-06-20  Karl Berry  <karl@gnu.org>
54587
54588         * config/srclist.txt: track www changes in license files.
54589
54590 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54591
54592         * build-aux/bootstrap: Remove stray dot.
54593         Make sure build_aux settings are honored when linking
54594         gnulib_extra_files.
54595
54596 2007-06-19  Eric Blake  <ebb9@byu.net>
54597
54598         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54599         Allow compilation on cygwin.
54600
54601 2007-06-19  Jim Meyering  <jim@meyering.net>
54602
54603         xreadlink-with-size: Remove module.  No longer used.
54604         Ex-callers now use xreadlink or mreadlink-with-size.
54605         * modules/xreadlink-with-size: Remove module.
54606         * lib/xreadlink-with-size.c: Remove file.
54607         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54608         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54609         just before the function definition *is* accurate.
54610
54611         Eliminate one way canonicalize_filename_mode could exit.
54612         * lib/canonicalize.c (canonicalize_filename_mode):
54613         Use mreadlink_with_size, not xreadlink_with_size.
54614
54615 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         Detect porting problems to FreeBSD/arm, which has time_t wider than
54618         long int.  Original problem reported for GNU diff by Xin Li in
54619         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54620         * modules/getdate (Depends-on): Add intprops, verify.
54621         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54622         is an integer type no wider than long int.
54623
54624 2007-06-18  Jim Meyering  <jim@meyering.net>
54625
54626         New module: mreadlink-with-size.
54627         * MODULES.html.sh: Add mreadlink-with-size.
54628         * modules/mreadlink-with-size: New module
54629         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54630         not xreadlink-with-size.
54631         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54632
54633 2007-06-16  Bruno Haible  <bruno@clisp.org>
54634
54635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54636         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54637         Reported by Gary V. Vaughan <gary@gnu.org>.
54638
54639 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         Revamp lchown so that it lives in unistd.h where it belongs.
54642         * lib/lchown.h: Remove.
54643         * lib/dirchownmod.c: Don't include lib/lchown.h.
54644         * lib/fchownat.c: Likewise.
54645         * lib/openat.c: Likewise.
54646         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54647         does not follow symlinks.
54648         (EOPNOTSUPP): Define if not defined.
54649         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54650         is defined to 0.
54651         (lchown): New decl.
54652         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54653         Do not check for lchown decl.
54654         Set REPLACE_LCHOWN.
54655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54656         REPLACE_LCHOWN.
54657         * modules/chown: Make it clear it follows symlinks.
54658         * modules/lchown: Make it clear it doesn't follow symlinks.
54659         (Files): Remove lib/lchown.h
54660         (Depends-on): Add unistd.
54661         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54662         (Include): Include <unistd.h>, not "lchown.h".
54663         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54664         REPLACE_LCHOWN.
54665
54666 2007-06-15  Jim Meyering  <jim@meyering.net>
54667
54668         Change license (GPL to LGPL) of fsusage and dependents.
54669         * modules/fsusage (License): Change to LGPL.
54670         * modules/full-read (License): Likewise.
54671         * modules/full-write (License): Likewise.
54672         * modules/safe-read (License): Likewise.
54673         * modules/safe-write (License): Likewise.
54674
54675 2007-06-14  Ben Pfaff  <blp@gnu.org>
54676
54677         Missing part of allocsa -> malloca transition.
54678         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54679         gl_MALLOCA.
54680
54681 2007-06-12  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54684         to ia64, x86_64, i386.
54685         Reported by Eric Blake.
54686
54687 2007-06-12  Bruno Haible  <bruno@clisp.org>
54688
54689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54690         cross-compiling to x86_64.
54691
54692 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54695         glitch reported by Ralf Wildenhues in
54696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54697
54698         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54699         Vin Shelton.
54700
54701 2007-06-11  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54704         replacement string.
54705         Reported by Eric Blake.
54706
54707 2007-06-10  Bruno Haible  <bruno@clisp.org>
54708
54709         Prepare vasnprintf code for use with Unicode strings.
54710         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54711         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54712         TYPE_U32_STRING.
54713         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54714         a_u32_string variants.
54715         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54716         * lib/printf-args.c: Don't include config.h and the specification
54717         header if PRINTF_FETCHARGS is already defined.
54718         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54719         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54720         TYPE_U16_STRING, TYPE_U32_STRING.
54721         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54722         u16_directive, u16_directives, u32_directive, u32_directives): New
54723         types.
54724         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54725         New declarations.
54726         * lib/printf-parse.c: Don't include config.h and the specification
54727         header if PRINTF_PARSE is already defined. Eliminate the set of
54728         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54729         them now. Include c-ctype.h.
54730         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54731         directive and CHAR_T_ONLY_ASCII.
54732         * lib/vasnprintf.c: Don't include config.h and the specification header
54733         if VASNPRINTF is already defined.
54734         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54735         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54736         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54737         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54738         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54739         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54740         code accordingly.
54741         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54742         pad_ourselves also in this case, with the 'c' and 's' directives, and
54743         with a different notion of "width".
54744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54745
54746 2007-06-10  Bruno Haible  <bruno@clisp.org>
54747
54748         * modules/unistr/u32-mbsnlen: New file.
54749         * lib/unistr/u32-mbsnlen.c: New file.
54750
54751         * modules/unistr/u16-mbsnlen: New file.
54752         * lib/unistr/u16-mbsnlen.c: New file.
54753
54754         * modules/unistr/u8-mbsnlen: New file.
54755         * lib/unistr/u8-mbsnlen.c: New file.
54756
54757         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54758         declarations.
54759
54760 2007-06-10  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/string_.h (mbsnlen): New declaration.
54763         * lib/mbsnlen.c: New file.
54764         * m4/mbsnlen.m4: New file.
54765         * modules/mbsnlen: New file.
54766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54767         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54768         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54769
54770 2007-06-10  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54773
54774 2007-06-10  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54777         * lib/mbuiter.h: Likewise.
54778
54779 2007-06-10  Bruno Haible  <bruno@clisp.org>
54780
54781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54782         declaration.
54783
54784 2007-06-10  Karl Berry  <karl@gnu.org>
54785
54786         * config/srclist.txt: remove gettext entries, Bruno prefers
54787         to update individually.
54788
54789 2007-06-10  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54792         'maxlen'. Ensure only length + width bytes are allocated, not
54793         length + 1 + width.
54794
54795 2007-06-09  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54798         (CHAR_T): Remove macro.
54799         (VASNPRINTF): Update.
54800
54801 2007-06-09  Bruno Haible  <bruno@clisp.org>
54802
54803         * MODULES.html.sh (Unicode string functions): Add the new modules.
54804
54805         * modules/uniconv/u32-conv-to-enc: New file.
54806         * lib/uniconv/u32-conv-to-enc.c: New file.
54807         * modules/uniconv/u32-conv-to-enc-tests: New file.
54808         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54809
54810         * modules/uniconv/u16-conv-to-enc: New file.
54811         * lib/uniconv/u16-conv-to-enc.c: New file.
54812         * lib/uniconv/u-conv-to-enc.h: New file.
54813         * modules/uniconv/u16-conv-to-enc-tests: New file.
54814         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54815
54816         * modules/uniconv/u8-conv-to-enc: New file.
54817         * lib/uniconv/u8-conv-to-enc.c: New file.
54818         * modules/uniconv/u8-conv-to-enc-tests: New file.
54819         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54820
54821         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54822         u32_conv_to_encoding): New declarations.
54823
54824 2007-06-09  Bruno Haible  <bruno@clisp.org>
54825
54826         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54827
54828 2007-06-09  Bruno Haible  <bruno@clisp.org>
54829
54830         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54831         * modules/malloca: Renamed from modules/allocsa, updated.
54832         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54833         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54834         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54835         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54836         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54837         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54838         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54839         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54840         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54841         * modules/c-strcasestr (Depends-on): Update.
54842         * lib/c-strcasestr.c: Update.
54843         * modules/c-strstr (Depends-on): Update.
54844         * lib/c-strstr.c: Update.
54845         * modules/canonicalize-lgpl (Depends-on): Update.
54846         * lib/canonicalize-lgpl.c: Update.
54847         * modules/clean-temp (Depends-on): Update.
54848         * lib/clean-temp.c: Update.
54849         * modules/csharpcomp (Depends-on): Update.
54850         * lib/csharpcomp.c: Update.
54851         * modules/csharpexec (Depends-on): Update.
54852         * lib/csharpexec.c: Update.
54853         * modules/javacomp (Depends-on): Update.
54854         * lib/javacomp.c: Update.
54855         * modules/javaexec (Depends-on): Update.
54856         * lib/javaexec.c: Update.
54857         * modules/mbscasestr (Depends-on): Update.
54858         * lib/mbscasestr.c: Update.
54859         * modules/mbsstr (Depends-on): Update.
54860         * lib/mbsstr.c: Update.
54861         * modules/setenv (Depends-on): Update.
54862         * lib/setenv.c: Update.
54863         * modules/strcasestr (Depends-on): Update.
54864         * lib/strcasestr.c: Update.
54865         * modules/striconveha (Depends-on): Update.
54866         * lib/striconveha.c: Update.
54867         * modules/relocatable-prog-wrapper (Files): Update.
54868         * lib/relocwrapper.c: Update.
54869         * build-aux/install-reloc: Update.
54870         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54871
54872 2007-06-08  Bruno Haible  <bruno@clisp.org>
54873
54874         Port to uClibc.
54875         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54876         * lib/fpurge.c (fpurge): Likewise.
54877         * lib/freading.c (freading): Likewise.
54878         * lib/fseeko.c (rpl_fseeko): Likewise.
54879         * lib/fseterr.c (fseterr): Likewise.
54880         * lib/fwriting.c (fwriting): Likewise.
54881         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54882
54883 2007-06-08  Bruno Haible  <bruno@clisp.org>
54884
54885         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54886         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54887         * modules/gettext (Files): Add m4/intlmacosx.m4.
54888
54889 2007-06-07  Bruno Haible  <bruno@clisp.org>
54890
54891         * modules/localename-tests: New file.
54892         * tests/test-localename.c: New file.
54893
54894         New module 'localename'.
54895         * lib/localename.h: New file.
54896         * lib/localename.c: New file, from GNU gettext.
54897         * m4/localename.m4: New file.
54898         * modules/localename: New file.
54899
54900 2007-06-07  Bruno Haible  <bruno@clisp.org>
54901
54902         Work around the lack of <wchar.h> on some builds of uClibc.
54903         * doc/headers/wchar.texi: Update.
54904         * lib/wchar_.h: Include <wchar.h> only if it exists.
54905         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54906         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54907         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54908         doesn't exist.
54909         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54910         * modules/mbfile (Depends-on): Add wchar.
54911         * modules/mbiter (Depends-on): Likewise.
54912         * modules/mbuiter (Depends-on): Likewise.
54913         Reported by Simon Josefsson.
54914
54915 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         Work around problem reported by Steven M. Schweda in
54918         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54919         Tru64 5.1B with the Compaq compiler environment installed declares
54920         an 'isblank' function but does not define it in the C library.
54921         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54922         * lib/regex_internal.h (isblank): Likewise.
54923         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54924         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54925
54926 2007-06-05  Bruno Haible  <bruno@clisp.org>
54927
54928         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54929         ia64.
54930         * modules/printf-safe: New file.
54931         * modules/fprintf-posix (Depends-on): Add printf-safe.
54932         * modules/printf-posix (Depends-on): Likewise.
54933         * modules/snprintf-posix (Depends-on): Likewise.
54934         * modules/sprintf-posix (Depends-on): Likewise.
54935         * modules/vasnprintf-posix (Depends-on): Likewise.
54936         * modules/vasprintf-posix (Depends-on): Likewise.
54937         * modules/vfprintf-posix (Depends-on): Likewise.
54938         * modules/vprintf-posix (Depends-on): Likewise.
54939         * modules/vsnprintf-posix (Depends-on): Likewise.
54940         * modules/vsprintf-posix (Depends-on): Likewise.
54941         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54942         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54943         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54944         "no" on i386, x86_64, ia64.
54945         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54946         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54947         on i386, x86_64, ia64.
54948         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54949         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54950         on i386, x86_64, ia64.
54951         * tests/test-vasnprintf-posix.c: Include float.h.
54952         (LDBL80_WORDS): New macro.
54953         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54954         on i386, x86_64, ia64.
54955         * tests/test-vasprintf-posix.c: Include float.h.
54956         (LDBL80_WORDS): New macro.
54957         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54958         on i386, x86_64, ia64.
54959         * tests/test-snprintf-posix.c: Include float.h.
54960         * tests/test-sprintf-posix.c: Likewise.
54961         * tests/test-vsnprintf-posix.c: Likewise.
54962         * tests/test-vsprintf-posix.c: Likewise.
54963
54964 2007-06-05  Bruno Haible  <bruno@clisp.org>
54965
54966         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54968         non-IEEE numbers on i386, x86_64, ia64.
54969         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54970         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54971         * tests/test-isnanl.h: Include float.h.
54972         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54973
54974 2007-06-05  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54977         also the %a / %A. Handle the %a / %A code before this extra handling.
54978
54979 2007-06-05  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54982         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54983
54984 2007-06-05  Bruno Haible  <bruno@clisp.org>
54985
54986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54987         typo in variable name.
54988
54989 2007-06-05  Eric Blake  <ebb9@byu.net>
54990
54991         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54992         Reported by Simon Josefsson.
54993
54994 2007-06-04  Bruno Haible  <bruno@clisp.org>
54995
54996         Avoid test failures on some PowerPC platforms.
54997         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54998         Define differently for PowerPC.
54999         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55000         Reported by Gary V. Vaughan <gary@gnu.org>.
55001
55002 2007-06-02  Bruno Haible  <bruno@clisp.org>
55003
55004         Fix test-stdint failure on FreeBSD/ia64.
55005         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55006         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55007         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55008         * doc/headers/stdint.texi: Update.
55009
55010 2007-06-01  Bruno Haible  <bruno@clisp.org>
55011
55012         * tests/test-binary-io.c (main): Pass a third argument to open().
55013         Reported by Gary V. Vaughan <gary@gnu.org>.
55014
55015 2007-06-01  Bruno Haible  <bruno@clisp.org>
55016
55017         * doc/functions/frexpl.texi: Update for mingw.
55018
55019 2007-06-01  Bruno Haible  <bruno@clisp.org>
55020
55021         * tests/test-lseek.c (main): Disable test of errno for invalid third
55022         argument.
55023         * doc/functions/lseek.texi: Update.
55024         Reported by Gary V. Vaughan <gary@gnu.org>.
55025
55026 2007-05-28  Bruno Haible  <bruno@clisp.org>
55027
55028         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55029
55030 2007-05-31  Eric Blake  <ebb9@byu.net>
55031
55032         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55033         cross compiling.
55034
55035 2007-05-30  Eric Blake  <ebb9@byu.net>
55036         and Bruno Haible  <bruno@clisp.org>
55037
55038         Work around mingw test failures exposed by m4-1.4.9b.
55039         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55040         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55041         moment.
55042
55043 2007-05-30  Bruno Haible  <bruno@clisp.org>
55044
55045         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55046         assuming that they are closed. Needed on HP-UX 11.
55047
55048 2007-05-29  Bruno Haible  <bruno@clisp.org>
55049
55050         Fix a problem with #include_next.
55051         * lib/dirent_.h: Split the double-inclusion guard.
55052         * lib/fcntl_.h: Likewise.
55053         * lib/float_.h: Likewise.
55054         * lib/iconv_.h: Likewise.
55055         * lib/inttypes_.h: Likewise.
55056         * lib/locale_.h: Likewise.
55057         * lib/math_.h: Likewise.
55058         * lib/netinet_in_.h: Likewise.
55059         * lib/search_.h: Likewise.
55060         * lib/signal_.h: Likewise.
55061         * lib/stdint_.h: Likewise.
55062         * lib/stdio_.h: Likewise.
55063         * lib/stdlib_.h: Likewise.
55064         * lib/string_.h: Likewise.
55065         * lib/sys_select_.h: Likewise.
55066         * lib/sys_socket_.h: Likewise.
55067         * lib/sys_stat_.h: Likewise.
55068         * lib/sys_time_.h: Likewise.
55069         * lib/sysexits_.h: Likewise.
55070         * lib/time_.h: Likewise.
55071         * lib/unistd_.h: Likewise.
55072         * lib/wchar_.h: Likewise.
55073         * lib/wctype_.h: Likewise.
55074
55075 2007-05-29  Bruno Haible  <bruno@clisp.org>
55076
55077         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55078         for the moment.
55079
55080 2007-05-29  Bruno Haible  <bruno@clisp.org>
55081
55082         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55083         invocation.
55084         Reported by Eric Blake.
55085
55086 2007-05-29  Bruno Haible  <bruno@clisp.org>
55087
55088         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55089         compiling case.
55090
55091 2007-05-29  Eric Blake  <ebb9@byu.net>
55092             Bruno Haible  <bruno@clisp.org>
55093
55094         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55095         cross compiles.
55096
55097 2007-05-28  Eric Blake  <ebb9@byu.net>
55098
55099         * modules/closein-tests (test_closein_LDADD): Support test on
55100         cygwin with libtool.
55101
55102 2007-05-28  Bruno Haible  <bruno@clisp.org>
55103
55104         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55105         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55106         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55107         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55108         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55109         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55110         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55111         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55112         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55113
55114 2007-05-28  Eric Blake  <ebb9@byu.net>
55115
55116         Unconditionally include <config.h> in unit tests.
55117         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55118         * tests/test-allocsa.c, tests/test-arcfour.c,
55119         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55120         tests/test-array_list.c, tests/test-array_oset.c,
55121         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55122         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55123         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55124         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55125         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55126         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55127         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55128         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55129         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55130         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55131         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55132         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55133         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55134         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55135         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55136         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55137         test-md5.c, test-memmem.c, test-printf-posix.c,
55138         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55139         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55140         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55141         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55142         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55143         test-vasnprintf-posix2.c, test-vasnprintf.c,
55144         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55145         test-vfprintf-posix.c, test-vprintf-posix.c,
55146         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55147         test-xvasprintf.c: Likewise.
55148
55149 2007-05-28  Bruno Haible  <bruno@clisp.org>
55150
55151         * gnulib-tool (func_import): Remember the --with-tests command-line
55152         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55153         Reported by Eric Blake.
55154
55155 2007-05-28  Bruno Haible  <bruno@clisp.org>
55156
55157         * modules/ftell-tests: New file.
55158         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55159         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55160
55161         * lib/ftell.c: New file.
55162         * modules/ftell: New file.
55163         * m4/ftell.m4: New file.
55164         * doc/functions/ftell.texi: Update.
55165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55166         REPLACE_FTELL.
55167         * lib/stdio_.h (rpl_ftell): New declaration.
55168         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55169         REPLACE_FTELL.
55170
55171 2007-05-28  Eric Blake  <ebb9@byu.net>
55172
55173         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55174
55175 2007-05-28  Bruno Haible  <bruno@clisp.org>
55176
55177         * modules/fseek-tests: New file.
55178         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55179         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55180
55181         * lib/fseek.c: New file.
55182         * modules/fseek: New file.
55183         * m4/fseek.m4: New file.
55184         * doc/functions/fseek.texi: Update.
55185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55186         REPLACE_FSEEK.
55187         * lib/stdio_.h (rpl_fseek): New declaration.
55188         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55189         REPLACE_FSEEK.
55190
55191 2007-05-28  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/stdio_.h (fflush): More comments.
55194
55195 2007-05-28  Bruno Haible  <bruno@clisp.org>
55196
55197         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55198         runtime test.
55199
55200 2007-05-28  Eric Blake  <ebb9@byu.net>
55201
55202         Improve lseek module.
55203         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55204         * lib/unistd_.h (lseek): Scale back link warning message.
55205         * tests/test-lseek.c: Beef up test.
55206         * tests/test-lseek.sh: Exercise more facets of lseek.
55207         Reported by Bruno Haible.
55208
55209 2007-05-28  Bruno Haible  <bruno@clisp.org>
55210
55211         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55212         to define.
55213
55214 2007-05-27  Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55217
55218 2007-05-27  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/openmp: New file.
55221         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55222         Noah Misch.
55223
55224 2007-05-26  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/chdir-long (Depends-on): Add fchdir.
55227         * modules/chdir-safer (Depends-on): Likewise.
55228         * modules/fts (Depends-on): Likewise.
55229         * modules/fts-lgpl (Depends-on): Likewise.
55230         * modules/openat (Depends-on): Likewise.
55231         * modules/savewd (Depends-on): Likewise.
55232
55233 2007-05-24  Eric Blake  <ebb9@byu.net>
55234
55235         Fix lseek on mingw.
55236         * modules/lseek: New module.
55237         * m4/lseek.m4: New file.
55238         * lib/lseek.c: New file.
55239         * modules/lseek-tests: New file.
55240         * tests/test-lseek.c: New file.
55241         * tests/test-lseek.sh: New file.
55242         * MODULES.html.sh: Document lseek module.
55243         * modules/fflush (Depends-on): Add lseek, fseeko.
55244         * modules/fseeko (Depends-on): Likewise.
55245         * modules/ftello (Depends-on): Likewise.
55246         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55247         broken.
55248         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55249         broken.
55250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55251         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55252         * lib/ftello.c (rpl_ftello): Likewise.
55253         * tests/test-fseeko.c (main): Test this.
55254         * tests/test-fseeko.sh: Likewise.
55255         * tests/test-ftello.c (main): Likewise.
55256         * tests/test-ftello.sh: Likewise.
55257         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55258         implies replacing fseek.
55259         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55260         HAVE_FTELLO.
55261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55262         * modules/unistd (Makefile.am): Likewise.
55263         * lib/unistd_.h (lseek): Declare a replacement.
55264         * doc/functions/lseek.texi (lseek): Document this fix.
55265         * doc/functions/fseek.texi (fseek): Likewise.
55266         * doc/functions/ftell.texi (ftell): Likewise.
55267
55268 2007-05-24  Bruno Haible  <bruno@clisp.org>
55269
55270         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55271         in the printed representation of a NaN.
55272         * tests/test-vasprintf-posix.c (test_function): Likewise.
55273         * tests/test-snprintf-posix.h (test_function): Likewise.
55274         * tests/test-sprintf-posix.h (test_function): Likewise.
55275         Reported by Eric Blake.
55276
55277 2007-05-23  Eric Blake  <ebb9@byu.net>
55278
55279         Fix fseeko/ftello on cygwin 1.5.24.
55280         * doc/functions/fseeko.texi (fseeko): Document the fix.
55281         * doc/functions/ftello.texi (ftello): Document the fix.
55282         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55283         * doc/functions/stdout.text (stdout): New file.
55284         * doc/functions/stderr.text (stderr): New file.
55285         * doc/gnulib.texi (Function Substitutes): Use new files.
55286         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55287         prior to 1.7.0.
55288         * tests/test-ftello.c (main): Likewise for ftello.
55289         * tests/test-fseeko.sh: New file.
55290         * tests/test-ftello.sh: New file.
55291         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55292         with seekable stdin.
55293         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55294         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55295         (gl_REPLACE_FSEEKO): New macro.
55296         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55297         * modules/fseeko (Files): Distribute fseeko.c.
55298         * modules/ftello (Files): Distribute ftello.c.
55299         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55300         mode.
55301         * lib/ftello.c (rpl_ftello): New file.
55302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55303         fseeko, ftello.
55304         (gl_STDIN_LARGE_OFFSET): New macro.
55305         * modules/stdio (Makefile.am): Perform the replacement.
55306         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55307
55308 2007-05-23  Bruno Haible  <bruno@clisp.org>
55309
55310         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55311         GNULIB_POSIXCHECK is defined.
55312
55313 2007-05-21  Bruno Haible  <bruno@clisp.org>
55314
55315         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55316         Check also the output for NaN arguments. When cross-compiling, guess
55317         no on IRIX.
55318         * lib/vasnprintf.c: Update comments.
55319         * tests/test-vasnprintf-posix.c (strisnan): New function.
55320         (test_function): Use it.
55321         * tests/test-vasprintf-posix.c (strisnan): New function.
55322         (test_function): Use it.
55323         * tests/test-snprintf-posix.h (strisnan): New function.
55324         (test_function): Use it.
55325         * tests/test-sprintf-posix.h (strisnan): New function.
55326         (test_function): Use it.
55327         Reported by Eric Blake.
55328
55329 2007-05-20  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55332         numbers that fails on BeOS.
55333         * doc/functions/frexpl.texi: Update.
55334
55335 2007-05-20  Jim Meyering  <jim@meyering.net>
55336
55337         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55338         forced upon us by glibc-2.6.
55339
55340 2007-05-20  Bruno Haible  <bruno@clisp.org>
55341
55342         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55343         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55344         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55345         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55346         NEED_PRINTF_INFINITE.
55347         (is_infinitel): New function.
55348         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55350         gl_PREREQ_VASNPRINTF_INFINITE.
55351         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55352         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55353         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55354         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55355         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55356         gl_PREREQ_VASNPRINTF_INFINITE.
55357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55364         * doc/functions/fprintf.texi: Update.
55365         * doc/functions/printf.texi: Update.
55366         * doc/functions/snprintf.texi: Update.
55367         * doc/functions/sprintf.texi: Update.
55368         * doc/functions/vfprintf.texi: Update.
55369         * doc/functions/vprintf.texi: Update.
55370         * doc/functions/vsnprintf.texi: Update.
55371         * doc/functions/vsprintf.texi: Update.
55372
55373 2007-05-20  Bruno Haible  <bruno@clisp.org>
55374
55375         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55376         was not found in libc.
55377         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55378
55379 2007-05-20  Bruno Haible  <bruno@clisp.org>
55380
55381         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55382         printed as "-nan" instead of "nan".
55383         * tests/test-vasprintf-posix.c (test_function): Likewise.
55384         * tests/test-snprintf-posix.h (test_function): Likewise.
55385         * tests/test-sprintf-posix.h (test_function): Likewise.
55386         Needed for HP-UX 11.
55387
55388 2007-05-20  Jim Meyering  <jim@meyering.net>
55389
55390         Fix buggy test for the fchownat-deref bug.
55391         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55392         symlink required for the run-test.  Without it, this test would
55393         always declare that fchownat doesn't work, and client code would
55394         unnecessarily use the replacement function with fixed libc.
55395         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55396         Reported by Greg Schafer.
55397
55398 2007-05-19  Bruno Haible  <bruno@clisp.org>
55399
55400         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55401         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55402         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55403         Needed for IRIX 6.5 and Solaris 2.5.1.
55404
55405 2007-05-19  Bruno Haible  <bruno@clisp.org>
55406
55407         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55408         (test_function): Skip tests involving -0.0 on platforms where
55409         -0.0 = 0.0.
55410         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55411         (test_function): Skip tests involving -0.0 on platforms where
55412         -0.0 = 0.0.
55413         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55414         (test_function): Skip tests involving -0.0 on platforms where
55415         -0.0 = 0.0.
55416         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55417         (test_function): Skip tests involving -0.0 on platforms where
55418         -0.0 = 0.0.
55419         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55420         tests.
55421         * tests/test-printf-posix.h (test_function): Likewise.
55422         * tests/test-printf-posix.output: Remove all -0.0 related results.
55423         Needed for IRIX 6.5.
55424
55425 2007-05-19  Bruno Haible  <bruno@clisp.org>
55426
55427         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55428         printed as "nan0x7fffffff" instead of "nan".
55429         * tests/test-vasprintf-posix.c (test_function): Likewise.
55430         * tests/test-snprintf-posix.h (test_function): Likewise.
55431         * tests/test-sprintf-posix.h (test_function): Likewise.
55432         * tests/test-fprintf-posix.h (NaN): Remove macro.
55433         (test_function): Remove all NaN related tests.
55434         * tests/test-printf-posix.h (NaN): Remove macro.
55435         (test_function): Remove all NaN related tests.
55436         * tests/test-printf-posix.output: Remove all NaN related results.
55437         Needed for IRIX 6.5.
55438
55439 2007-05-19  Bruno Haible  <bruno@clisp.org>
55440
55441         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55442         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55443
55444 2007-05-19  Bruno Haible  <bruno@clisp.org>
55445
55446         * lib/float_.h: New file.
55447         * m4/float_h.m4: New file.
55448         * modules/float: New file.
55449         * modules/isnanl (Dependencies): Add float.
55450         * modules/isnanl-nolibm (Dependencies): Likewise.
55451         * modules/mathl (Dependencies): Likewise.
55452         * modules/printf-frexpl (Dependencies): Likewise.
55453         * modules/signbit (Dependencies): Likewise.
55454         * modules/vasnprintf (Dependencies): Likewise.
55455         * doc/headers/float.texi: Update.
55456
55457 2007-05-19  Jim Meyering  <jim@meyering.net>
55458
55459         * lib/utimens.c (gl_futimens): Rename from futimens,
55460         now that glibc-2.6 declares futimens.
55461         * lib/utimens.h: Likewise.
55462
55463 2007-05-19  Bruno Haible  <bruno@clisp.org>
55464
55465         Avoid test failures on mingw.
55466         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55467         * tests/test-printf-posix.sh: Likewise.
55468         * tests/test-vfprintf-posix.sh: Likewise.
55469         * tests/test-vprintf-posix.sh: Likewise.
55470
55471 2007-05-19  Bruno Haible  <bruno@clisp.org>
55472
55473         Fix *printf result for NaN, Inf, -0.0 on mingw.
55474         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55475         * lib/vasnprintf.c: Include math.h and isnan.h.
55476         (is_infinite_or_zero): New function.
55477         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55478         values in the %f, %F, %e, %E, %g, %G directives.
55479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55481         gl_PRINTF_INFINITE and test its result. Invoke
55482         gl_PREREQ_VASNPRINTF_INFINITE.
55483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55490         * doc/functions/fprintf.texi: Update.
55491         * doc/functions/printf.texi: Update.
55492         * doc/functions/snprintf.texi: Update.
55493         * doc/functions/sprintf.texi: Update.
55494         * doc/functions/vfprintf.texi: Update.
55495         * doc/functions/vprintf.texi: Update.
55496         * doc/functions/vsnprintf.texi: Update.
55497         * doc/functions/vsprintf.texi: Update.
55498
55499 2007-05-19  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55502         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55503         Instead of multiplying with 10^k, set extra_zeroes to k.
55504         (scale10_round_long_double): Remove function.
55505
55506 2007-05-18  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55509         introduced on 2007-05-06.
55510
55511 2007-05-18  Bruno Haible  <bruno@clisp.org>
55512
55513         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55514         %g directives.
55515         * tests/test-vasprintf-posix.c (test_function): Likewise.
55516         * tests/test-snprintf-posix.h (test_function): Likewise.
55517         * tests/test-sprintf-posix.h (test_function): Likewise.
55518
55519 2007-05-18  Bruno Haible  <bruno@clisp.org>
55520
55521         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55522         (strmatch): New function.
55523         (test_function): Test the %f directive on numbers of various exponents.
55524         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55525         (strmatch): New function.
55526         (test_function): Test the %f directive on numbers of various exponents.
55527         * tests/test-snprintf-posix.h (strmatch): New function.
55528         (test_function): Test the %f directive on numbers of various exponents.
55529         * tests/test-sprintf-posix.h (strmatch): New function.
55530         (test_function): Test the %f directive on numbers of various exponents.
55531         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55532         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55533         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55534         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55535
55536 2007-05-18  Bruno Haible  <bruno@clisp.org>
55537
55538         Add support for 'long double' number output.
55539         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55540         * lib/vasnprintf.c: Include math.h and float+.h.
55541         (mp_limb_t): New type.
55542         (GMP_LIMB_BITS): New macro.
55543         (mp_twolimb_t): New type.
55544         (GMP_TWOLIMB_BITS): New macro.
55545         (mpn_t): New type.
55546         (multiply, divide, convert_to_decimal, decode_long_double,
55547         scale10_round_long_double, scale10_round_decimal_long_double,
55548         floorlog10l): New functions.
55549         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55550         for the %f, %F, %e, %E, %g, %G directives.
55551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55553         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55554         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55562         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55563         * modules/snprintf-posix (Depends-on): Likewise.
55564         * modules/sprintf-posix (Depends-on): Likewise.
55565         * modules/vasnprintf-posix (Depends-on): Likewise.
55566         * modules/vasprintf-posix (Depends-on): Likewise.
55567         * modules/vfprintf-posix (Depends-on): Likewise.
55568         * modules/vsnprintf-posix (Depends-on): Likewise.
55569         * modules/vsprintf-posix (Depends-on): Likewise.
55570         * modules/vasnprintf (Files): Add lib/float+.h.
55571         * doc/functions/fprintf.texi: Update.
55572         * doc/functions/printf.texi: Update.
55573         * doc/functions/snprintf.texi: Update.
55574         * doc/functions/sprintf.texi: Update.
55575         * doc/functions/vfprintf.texi: Update.
55576         * doc/functions/vprintf.texi: Update.
55577         * doc/functions/vsnprintf.texi: Update.
55578         * doc/functions/vsprintf.texi: Update.
55579
55580 2007-05-18  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55583
55584 2007-05-18  Bruno Haible  <bruno@clisp.org>
55585
55586         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55587         for printing 64-bit integers. Needed for mingw.
55588
55589 2007-05-18  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55592         gl_FUNC_FREXPL_WORKS.
55593         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55594
55595 2007-05-18  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/frexpl-nolibm-tests: New file.
55598
55599         * modules/frexpl-nolibm: New file.
55600         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55601
55602 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55605         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55606         GCC 4.2, which otherwise issues a lot of warnings.
55607         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55608         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55609         Likewise.
55610         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55611         * modules/iconv_open (iconv.h): Likewise.
55612         * modules/locale (locale.h): Likewise.
55613         * modules/netinet_in (netinet/in.h): Likewise.
55614         * modules/sys_select (sys_select.h): Likewise.
55615         * modules/sys_socket (sys/socket.h): Likewise.
55616         * modules/sys_stat (sys/stat.h): Likewise.
55617         * modules/sysexits (sysexits.h): Likewise.
55618         * modules/unistd (unistd.h): Likewise.
55619
55620 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55621
55622         * modules/closein-tests (Makefile.am): Distribute
55623         `test-closein.sh'.
55624
55625 2007-05-17  Bruno Haible  <bruno@clisp.org>
55626
55627         * tests/test-printf-posix.output: Renamed from
55628         tests/test-fprintf-posix.out.
55629         * modules/fprintf-posix-tests: Update.
55630         * modules/printf-posix-tests: Update.
55631         * modules/vfprintf-posix-tests: Update.
55632         * modules/vprintf-posix-tests: Update.
55633         * tests/test-fprintf-posix.sh: Update.
55634         * tests/test-printf-posix.sh: Update.
55635         * tests/test-vfprintf-posix.sh: Update.
55636         * tests/test-vprintf-posix.sh: Update.
55637         Reported by Ralf Wildenhues.
55638
55639 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55640
55641         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55642         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55643         GCC 4.2, which otherwise issues a lot of warnings.
55644         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55645         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55646         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55647         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55648         it should no longer be needed.
55649         * lib/string_.h: Likewise.
55650         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55651         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55652         * modules/inttypes (inttypes.h): Likewise.
55653         * modules/math (math.h): Likewise.
55654         * modules/search (search.h): Likewise.
55655         * modules/signal (signal.h): Likewise.
55656         * modules/stdint (stdint.h): Likewise.
55657         * modules/stdio (stdio.h): Likewise.
55658         * modules/stdlib (stdlib.h): Likewise.
55659         * modules/string (string.h): Likewise.
55660         * modules/sys_time (sys/time.h): Likewise.
55661         * modules/time (time.h): Likewise.
55662         * modules/wchar (wchar.h): Likewise.
55663         * modules/wctype (wtype.h): Likewise.
55664
55665 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55666
55667         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55668
55669 2007-05-13  Bruno Haible  <bruno@clisp.org>
55670
55671         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55672         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55673         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55674         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55675         (gl_PREREQ_STRTOK_R): Don't require it here.
55676
55677 2007-05-13  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55680         when used in C++ mode.
55681
55682 2007-05-12  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/linebuffer.h: Tweak doc.
55685         * lib/linebuffer.c: Likewise.
55686
55687 2007-05-12  James Youngman  <jay@gnu.org>
55688
55689         * lib/linebuffer.c (readlinebuffer_delim): New function,
55690         like readlinebuffer, but use a caller-specified delimiter.
55691         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55692         as the delimiter.
55693         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55694
55695 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55696
55697         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55698         * modules/openat (Files): Remove openat-die.c.
55699         (Depends-on): Add openat-die.
55700         * modules/openat-die: New module.
55701
55702 2007-05-06  Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55705         Update with info about Cygwin.
55706         * doc/functions/fprintf.texi: Update.
55707         * doc/functions/printf.texi: Update.
55708         * doc/functions/snprintf.texi: Update.
55709         * doc/functions/sprintf.texi: Update.
55710         * doc/functions/vfprintf.texi: Update.
55711         * doc/functions/vprintf.texi: Update.
55712         * doc/functions/vsnprintf.texi: Update.
55713         * doc/functions/vsprintf.texi: Update.
55714         Reported by Eric Blake.
55715
55716 2007-05-06  Bruno Haible  <bruno@clisp.org>
55717
55718         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55719         padding ourselves for the floating-point directives.
55720         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55723         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55724         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55732         * tests/test-snprintf-posix.h (test_function): Also check the width
55733         and some flags in the %f directive.
55734         * tests/test-sprintf-posix.h (test_function): Likewise.
55735         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55736         * tests/test-vasprintf-posix.c (test_function): Likewise.
55737         * doc/functions/fprintf.texi: Update.
55738         * doc/functions/printf.texi: Update.
55739         * doc/functions/snprintf.texi: Update.
55740         * doc/functions/sprintf.texi: Update.
55741         * doc/functions/vfprintf.texi: Update.
55742         * doc/functions/vprintf.texi: Update.
55743         * doc/functions/vsnprintf.texi: Update.
55744         * doc/functions/vsprintf.texi: Update.
55745
55746 2007-05-06  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55749         pass the ' flag character to sprintf or snprintf.
55750         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55753         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55754         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55756         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55761         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55762         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55763         flag.
55764         * tests/test-sprintf-posix.h (test_function): Likewise.
55765         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55766         * tests/test-vasprintf-posix.c (test_function): Likewise.
55767         * doc/functions/fprintf.texi: Update.
55768         * doc/functions/printf.texi: Update.
55769         * doc/functions/snprintf.texi: Update.
55770         * doc/functions/sprintf.texi: Update.
55771         * doc/functions/vfprintf.texi: Update.
55772         * doc/functions/vprintf.texi: Update.
55773         * doc/functions/vsnprintf.texi: Update.
55774         * doc/functions/vsprintf.texi: Update.
55775
55776 2007-05-01  Bruno Haible  <bruno@clisp.org>
55777
55778         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55779
55780 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55783         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55784
55785 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55788         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55790
55791 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55792
55793         * lib/argp-help.c (struct hol_entry): New member `ord'.
55794         (HOL_ENTRY_PTRCMP): Use ord for comparison
55795         (hol_sort): Initialize ord.
55796
55797 2007-05-01  Bruno Haible  <bruno@clisp.org>
55798
55799         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55800         Reported by Eric Blake.
55801         * doc/gnulib.texi (Function Substitutes): Update.
55802
55803 2007-05-01  Bruno Haible  <bruno@clisp.org>
55804
55805         * doc/functions.texi: Remove file, now redundant through
55806         doc/functions/*.texi.
55807
55808 2007-05-01  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/argp (Depends-on): Add sleep.
55811
55812 2007-05-01  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/sleep-tests: New file.
55815         * tests/test-sleep.c: New file.
55816
55817         * modules/sleep: New file.
55818         * lib/sleep.c: New file.
55819         * m4/sleep.m4: New file.
55820         * lib/unistd_.h (sleep): New declaration.
55821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55822         HAVE_SLEEP.
55823         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55824         * doc/functions/sleep.texi: Document the sleep module.
55825
55826 2007-05-01  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/sigprocmask.h: Remove file.
55829         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55830         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55831         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55832         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55833         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55834         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55835         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55836         HAVE_SIGSET_T as a shell variable.
55837         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55838         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55839         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55840         (Depends-on): Add signal. Remove verify.
55841         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55842         (Include): Mention <signal.h> instead of sigprocmask.h.
55843         * NEWS: Mention the change.
55844         * lib/fatal-signal.c: Don't include sigprocmask.h.
55845
55846 2007-05-01  Bruno Haible  <bruno@clisp.org>
55847
55848         * modules/signal: New file.
55849         * lib/signal_.h: New file.
55850         * m4/signal_h.m4: New file.
55851
55852 2007-05-01  Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55855         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55856         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55857         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55858
55859 2007-05-01  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55862         configure time.
55863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55864         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55865         * modules/sys_stat (Makefile.am): Substitute their values into
55866         sys/stat.h.
55867
55868 2007-05-01  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55871         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55872         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55873
55874 2007-05-01  Bruno Haible  <bruno@clisp.org>
55875
55876         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55877         'assert' module here.
55878
55879 2007-05-01  Bruno Haible  <bruno@clisp.org>
55880
55881         * doc/functions/*.texi: New files.
55882         * doc/functions/google-ranking.txt: New file.
55883         * doc/gnulib.texi (Function Substitutes): New chapter.
55884         (ctime, inet_ntoa): Remove sections.
55885         * doc/ctime.texi: Remove file.
55886         * doc/inet_ntoa.texi: Remove file.
55887         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55888         dependencies.
55889         (%.info): New rule, specifying a --reference-limit.
55890
55891 2007-05-01  Bruno Haible  <bruno@clisp.org>
55892
55893         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55894
55895 2007-05-01  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55898         the portability of 'mkdir' to mingw systems.
55899
55900 2007-05-01  Bruno Haible  <bruno@clisp.org>
55901
55902         * doc/headers/google-ranking.txt: New file.
55903
55904 2007-04-30  Eric Blake  <ebb9@byu.net>
55905
55906         Prefer fseeko to fseek.
55907         * modules/getpass (Depends-on): Add fseeko.
55908         * lib/getpass.c (getpass): Use fseeko, not fseek.
55909
55910 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55911
55912         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55913         assumes the sorting is stable, while most qsort implementations
55914         are not.  Use argument addresses to ensure they never compare as
55915         equal.
55916
55917         * tests/test-argp-2.sh (usage-indent test): Fix output
55918         (func_compare): Restore diff options
55919         * tests/test-argp.c: Restore #include "progname.h"
55920
55921 2007-04-29  Bruno Haible  <bruno@clisp.org>
55922
55923         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55925         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55927         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55928         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55929         (TESTS, check_PROGRAMS): Add test-snprintf.
55930         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55931         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55932         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55933         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55934         assertions that fail on HP-UX, OSF/1, or IRIX.
55935         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55936
55937 2007-04-29  Bruno Haible  <bruno@clisp.org>
55938
55939         * MODULES.html.sh (posix_functions): Remove 'contents'.
55940
55941 2007-04-29  Karl Berry  <karl@gnu.org>
55942
55943         * config/srclist.txt (gendocs_template_min): new entry.
55944
55945 2007-04-29  Bruno Haible  <bruno@clisp.org>
55946
55947         Work around fpurge bug on BSD systems.
55948         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55949         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55950         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55951         fpurge to rpl_fpurge if the system already has this function.
55952         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55953         the case where the system already has this function. Correct invariants
55954         on BSD systems.
55955         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55956         BSD systems.
55957
55958 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55959
55960         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55961         proposed by Sven Verdoolaege.
55962
55963         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55964         options.
55965         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55966         (usage and help tests): Update
55967
55968 2007-04-29  Bruno Haible  <bruno@clisp.org>
55969
55970         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55971         Print more information in case of failure. Disable a test on BeOS.
55972
55973 2007-04-29  Bruno Haible  <bruno@clisp.org>
55974
55975         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55976         This helps debugging on systems on which no gdb is available.
55977
55978 2007-04-29  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/freading.h: Improve comments.
55981         * lib/fwriting.h: Likewise.
55982         * tests/test-freading.c (main): Don't check freading immediately after
55983         repositioning. Needed for glibc.
55984
55985 2007-04-29  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/freading.c (freading): Trivial simplification.
55988
55989 2007-04-28  Bruno Haible  <bruno@clisp.org>
55990
55991         * tests/test-fwriting.c (main): Also test the interaction between
55992         fflush and fwriting.
55993         * modules/fwriting-tests (Depends-on): Add fflush.
55994
55995         * tests/test-freading.c (main): Also test the interaction between
55996         fflush and freading.
55997         * modules/freading-tests (Depends-on): Add fflush.
55998
55999 2007-04-28  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56002         fseeko and ftello.
56003         Suggested by Eric Blake.
56004
56005 2007-04-28  Jim Meyering  <jim@meyering.net>
56006
56007         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56008         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56009         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56010
56011 2007-04-27  Eric Blake  <ebb9@byu.net>
56012
56013         * doc/headers/assert.texi (assert.h): Document assert module use.
56014
56015 2007-04-27  Bruno Haible  <bruno@clisp.org>
56016
56017         * doc/headers/*.texi: New files.
56018         * doc/gnulib.texi (Header File Substitutes): New chapter.
56019         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56020         dependencies.
56021         (standards.info ,standards.html, standards.dvi): Update dependencies.
56022         (mostlyclean, clean): New targets.
56023
56024 2007-04-27  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56027         * modules/sysexits (Files, Makefile.am): Update.
56028
56029         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56030         * modules/sys_socket (Files, Makefile.am): Update.
56031
56032         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56033         * modules/sys_stat (Files, Makefile.am): Update.
56034
56035 2007-04-27  Eric Blake  <ebb9@byu.net>
56036
56037         * lib/freading.h: Improve comments.
56038         * lib/fwriting.h: Likewise.
56039         * lib/fflush.c: Likewise.
56040
56041         Fix closein for mingw.
56042         * modules/closein-tests: Add tests for closein.
56043         * tests/test-closein.c: New file.
56044         * tests/test-closein.sh: Likewise.
56045         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56046         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56047
56048 2007-04-27  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56051         version is < 6.
56052         * lib/math_.h [__DECC]: Likewise.
56053         * lib/stdio_.h [__DECC]: Likewise.
56054         * lib/stdlib_.h [__DECC]: Likewise.
56055         * lib/string_.h [__DECC]: Likewise.
56056         * lib/time_.h [__DECC]: Likewise.
56057         * lib/wchar_.h [__DECC]: Likewise.
56058         * lib/wctype_.h [__DECC]: Likewise.
56059
56060 2007-04-27  Bruno Haible  <bruno@clisp.org>
56061
56062         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56063
56064 2007-04-27  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/fflush.c: Add comments.
56067         * modules/fpurge-tests (Depends-on): Add fflush.
56068         * modules/freadable-tests (Depends-on): Likewise.
56069         * modules/fwritable-tests (Depends-on): Likewise.
56070
56071 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56072
56073         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56074         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56075         Report by Bruno Haible <bruno@clisp.org>.
56076
56077 2007-04-26  Eric Blake  <ebb9@byu.net>
56078
56079         Fix fflush on mingw.
56080         * modules/fflush (Depends-on): Add freading.
56081         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56082         but unread data.
56083
56084 2007-04-26  Eric Blake  <ebb9@byu.net>
56085         and Bruno Haible  <bruno@clisp.org>
56086
56087         Implement freading and fwriting.
56088         * lib/freading.c: New file.
56089         * lib/freading.h: Likewise.
56090         * m4/freading.m4: Likewise.
56091         * modules/freading: Likewise.
56092         * modules/freading-tests: Likewise.
56093         * tests/test-freading.c: Likewise.
56094         * lib/fwriting.c: New file.
56095         * lib/fwriting.h: Likewise.
56096         * m4/fwriting.m4: Likewise.
56097         * modules/fwriting: Likewise.
56098         * modules/fwriting-tests: Likewise.
56099         * tests/test-fwriting.c: Likewise.
56100         * MODULES.html.sh (File stream based Input/Output): Mention them.
56101
56102 2007-04-26  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56105         'long' when we assume it.
56106         Suggested by Eric Blake.
56107
56108 2007-04-26  Bruno Haible  <bruno@clisp.org>
56109
56110         Ensure fseeko, ftello are declared on glibc systems.
56111         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56112         * modules/fseeko (configure.ac-early): Likewise.
56113         * modules/ftello (configure.ac-early): Likewise.
56114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56115         AC_FUNC_FSEEKO for this.
56116         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56117         (gl_CHECK_FSEEKO): Remove macro.
56118
56119 2007-04-26  Bruno Haible  <bruno@clisp.org>
56120
56121         * tests/test-fflush.c (main): Also check the ftell result after
56122         fflush and fseek/fseeko.
56123         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56124         file descriptor position cache in the stream.
56125         * lib/fseeko.c (rpl_fseeko): Likewise.
56126
56127 2007-04-26  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/fflush-tests (Depends-on): Add fseeko.
56130
56131 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56132             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56133
56134         * lib/argz_.h: ensure error_t definition is obtained in same
56135         mechanism system argz.h would have.
56136         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56137         argz facilities are known bad.  Err on the side of caution if
56138         cross-compiling.
56139
56140 2007-04-25  Eric Blake  <ebb9@byu.net>
56141
56142         * lib/fpurge.c (includes): Use stdlib.h for free.
56143         * tests/test-fflush.c (main): Also test fflush-fseeko.
56144
56145 2007-04-25  Bruno Haible  <bruno@clisp.org>
56146
56147         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56148         * lib/fseeko.c: New file.
56149         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56150         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56151         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56152         gl_FUNC_FSEEKO.
56153         (gl_FUNC_FSEEKO): Invoke it.
56154         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56155         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56156         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56157
56158 2007-04-25  Bruno Haible  <bruno@clisp.org>
56159
56160         * modules/fflush (Depends-on): Add ftello.
56161
56162 2007-04-25  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/ftello-tests: New file.
56165         * tests/test-ftello.c: New file.
56166
56167         * modules/ftello: New file.
56168         * m4/ftello.m4: New file.
56169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56170         HAVE_FTELLO.
56171         * lib/stdio_.h (ftello): New declaration.
56172         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56173         HAVE_FTELLO.
56174
56175 2007-04-25  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/fseeko-tests: New file.
56178         * tests/test-fseeko.c: New file.
56179
56180         * modules/fseeko: New file.
56181         * m4/fseeko.m4: New file.
56182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56183         HAVE_FSEEKO.
56184         * lib/stdio_.h (fseeko): New declaration.
56185         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56186         HAVE_FSEEKO.
56187
56188 2007-04-25  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56191
56192 2007-04-25  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56195         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56196         * tests/test-unistd.c: Likewise.
56197         * tests/test-fcntl.c: Likewise.
56198
56199 2007-04-23  Eric Blake  <ebb9@byu.net>
56200
56201         * lib/fflush.c: Fix missing include.
56202         Reported by Bruno Haible.
56203
56204 2007-04-23  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56207         Reported by Eric Blake.
56208
56209 2007-04-23  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56212
56213 2007-04-23  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56216
56217 2007-04-23  Bruno Haible  <bruno@clisp.org>
56218
56219         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56220         Needed on HP-UX 11.
56221
56222 2007-04-16  Eric Blake  <ebb9@byu.net>
56223
56224         Make fflush rely on fpurge.
56225         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56226         open coding all variants.
56227         * modules/fflush (Depends-on): Add fpurge and unistd.
56228         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56229         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56230
56231         Fix --with-tests compilation on cygwin.
56232         * modules/argmatch-tests (Makefile.am): List gnulib library first
56233         in LDADD.
56234         * modules/argp-tests (Makefile.am): Likewise.
56235         * modules/array-list-tests (Makefile.am): Likewise.
56236         * modules/array-oset-tests (Makefile.am): Likewise.
56237         * modules/avltree-list-tests (Makefile.am): Likewise.
56238         * modules/avltree-oset-tests (Makefile.am): Likewise.
56239         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56240         * modules/carray-list-tests (Makefile.am): Likewise.
56241         * modules/dirname-tests (Makefile.am): Likewise.
56242         * modules/frexp-tests (Makefile.am): Likewise.
56243         * modules/isnanl-tests (Makefile.am): Likewise.
56244         * modules/linked-list-tests (Makefile.am): Likewise.
56245         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56246         * modules/lock-tests (Makefile.am): Likewise.
56247         * modules/rbtree-list-tests (Makefile.am): Likewise.
56248         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56249         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56250         * modules/tls-tests (Makefile.am): Likewise.
56251         * modules/tsearch-tests (Makefile.am): Likewise.
56252         * modules/xvasprintf-tests (Makefile.am): Likewise.
56253
56254         Fix fpurge for cygwin.
56255         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56256         value.
56257         * modules/fpurge-tests (Depends-on): Clean up trash.
56258
56259 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56260
56261         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56262
56263         * m4/autobuild.m4: Re-indent.
56264
56265 2007-04-13  Bruno Haible  <bruno@clisp.org>
56266
56267         * modules/fpurge-tests: New file.
56268         * tests/test-fpurge.c: New file.
56269
56270         * modules/fpurge: New file.
56271         * lib/fpurge.h: New file.
56272         * lib/fpurge.c: New file.
56273         * m4/fpurge.m4: New file.
56274
56275 2007-04-13  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/fbufmode-tests: New file.
56278         * tests/test-fbufmode.c: New file.
56279
56280         * modules/fbufmode: New file.
56281         * lib/fbufmode.h: New file.
56282         * lib/fbufmode.c: New file.
56283         * m4/fbufmode.m4: New file.
56284
56285 2007-04-13  Bruno Haible  <bruno@clisp.org>
56286
56287         * modules/fwritable-tests: New file.
56288         * tests/test-fwritable.c: New file.
56289
56290         * modules/fwritable: New file.
56291         * lib/fwritable.h: New file.
56292         * lib/fwritable.c: New file.
56293         * m4/fwritable.m4: New file.
56294
56295 2007-04-13  Bruno Haible  <bruno@clisp.org>
56296
56297         * modules/freadable-tests: New file.
56298         * tests/test-freadable.c: New file.
56299
56300         * modules/freadable: New file.
56301         * lib/freadable.h: New file.
56302         * lib/freadable.c: New file.
56303         * m4/freadable.m4: New file.
56304
56305 2007-04-13  Bruno Haible  <bruno@clisp.org>
56306
56307         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56308         MOSTLYCLEANFILES.
56309
56310 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56313         gzip bootstrap.conf to avoid dragging in i18n machinery.
56314         (gnulib_tool_option): Use it.
56315
56316 2007-04-13  Bruno Haible  <bruno@clisp.org>
56317
56318         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56319         %F directives.
56320         * tests/test-vasprintf-posix.c (test_function): Likewise.
56321         * tests/test-snprintf-posix.h (test_function): Likewise.
56322         * tests/test-sprintf-posix.h (test_function): Likewise.
56323         * tests/test-fprintf-posix.h (test_function): Likewise.
56324         * tests/test-printf-posix.h (test_function): Likewise.
56325         * tests/test-fprintf-posix.out: Likewise.
56326
56327 2007-04-13  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56330         * modules/tls-tests (configure.ac): Likewise.
56331         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56332
56333 2007-04-13  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/tls.c (glthread_tls_get): Fix return type.
56336         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56337
56338 2007-04-12  Eric Blake  <ebb9@byu.net>
56339
56340         * modules/gettime (Depends-on): Remove gettime.
56341         Reported by Dmitry V. Levin.
56342
56343 2007-04-12  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/fflush (Include): Mention <stdio.h>.
56346         * modules/strtoimax (Include): Mention <inttypes.h>.
56347         * modules/strtoumax (Include): Likewise.
56348
56349 2007-04-12  Eric Blake  <ebb9@byu.net>
56350
56351         * .cvsignore: New file.
56352         * .gitignore: Likewise.
56353
56354 2007-04-12  Bruno Haible  <bruno@clisp.org>
56355
56356         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56357         not before, since $(LDADD) often contains libgnu.a.
56358         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56359         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56360         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56361         Needed on Cygwin.
56362
56363 2007-04-12  Eric Blake  <ebb9@byu.net>
56364
56365         Work around glibc's failure to flush stdin on fclose.
56366         * lib/closein.c (close_stdin): Flush stdin before closing.
56367
56368         Work around glibc's failure to reset seekable stdin on exit.
56369         * modules/closein: New module.
56370         * lib/closein.c: New file.
56371         * lib/closein.h: Likewise.
56372         * m4/closein.m4: Likewise.
56373         * MODULES.html.sh (File stream based Input/Output): Document it.
56374
56375 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56376
56377         * gnulib-tool: Rename generated 'autobuild' script to
56378         'do-autobuild' in --create-megatestdir output.
56379
56380         * doc/gnulib.texi (Build robot for gnulib): Fix.
56381
56382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56383
56384         * modules/sysexits (Depends-on): Add absolute-header.
56385
56386 2007-04-12  Eric Blake  <ebb9@byu.net>
56387
56388         No need to preserve errno on success.
56389         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56390         Reported by Bruno Haible.
56391
56392 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56393
56394         * MODULES.html.sh (Support for maintaining and releasing
56395         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56396
56397 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56398
56399         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56400
56401 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56402
56403         * modules/autobuild: New module.
56404
56405         * m4/autobuild.m4: New file.
56406
56407 2007-04-11  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56410         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56414         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56415         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56417         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56418         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56423         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56424         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56437         Reported by Eric Blake.
56438
56439 2007-04-11  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56442
56443 2007-04-10  Bruno Haible  <bruno@clisp.org>
56444
56445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56446         for NaN and Infinity. Needed on FreeBSD 6.1.
56447         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56448         regarding results for "%010a" of Infinity and NaN.
56449         * tests/test-vasprintf-posix.c (test_function): Likewise.
56450         * tests/test-snprintf-posix.h (test_function): Likewise.
56451         * tests/test-sprintf-posix.h (test_function): Likewise.
56452         * tests/test-fprintf-posix.h (test_function): Likewise.
56453         * tests/test-printf-posix.h (test_function): Likewise.
56454         * tests/test-fprintf-posix.out: Likewise.
56455
56456 2007-04-10  Bruno Haible  <bruno@clisp.org>
56457
56458         * modules/locale-tests: New file.
56459         * tests/test-locale.c: New file.
56460
56461         * modules/locale: New file.
56462         * lib/locale_.h: New file.
56463         * m4/locale_h.m4: New file.
56464
56465 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56466             Bruno Haible  <bruno@clisp.org>
56467
56468         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56469         be determined, test for availability of the copysignf, copysign,
56470         copysignl functions.
56471         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56472         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56473         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56474
56475 2007-04-09  Eric Blake  <ebb9@byu.net>
56476
56477         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56478         * modules/stdio (Makefile.am): Support fflush.
56479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56480         * modules/fflush: New file.
56481         * lib/fflush.c: Likewise.
56482         * m4/fflush.m4: Likewise.
56483         * modules/fflush-tests: New test.
56484         * tests/test-fflush.c: Likewise.
56485         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56486
56487 2007-04-06  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56490         (VASNPRINTF): Use signbit for faster determination whether to print a
56491         minus sign.
56492         * modules/vasnprintf (Files): Remove lib/float+.h.
56493         * modules/fprintf-posix (Depends-on): Add signbit.
56494         * modules/snprintf-posix (Depends-on): Likewise.
56495         * modules/sprintf-posix (Depends-on): Likewise.
56496         * modules/vasnprintf-posix (Depends-on): Likewise.
56497         * modules/vasprintf-posix (Depends-on): Likewise.
56498         * modules/vfprintf-posix (Depends-on): Likewise.
56499         * modules/vsnprintf-posix (Depends-on): Likewise.
56500         * modules/vsprintf-posix (Depends-on): Likewise.
56501
56502 2007-04-06  Bruno Haible  <bruno@clisp.org>
56503
56504         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56505         * tests/test-frexpl.c (main): Likewise.
56506         * tests/test-ldexpl.c (main): Likewise.
56507         * modules/frexp-tests (Depends-on): Add signbit.
56508         * modules/frexpl-tests (Depdends-on): Likewise.
56509         * modules/ldexpl-tests (Depdends-on): Likewise.
56510
56511 2007-04-06  Bruno Haible  <bruno@clisp.org>
56512
56513         * modules/signbit-tests: New file.
56514         * tests/test-signbit.c: New file.
56515
56516         * modules/signbit: New file.
56517         * lib/signbitf.c: New file.
56518         * lib/signbitd.c: New file.
56519         * lib/signbitl.c: New file.
56520         * m4/signbit.m4: New file.
56521         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56522         (signbit): New macro.
56523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56524         REPLACE_SIGNBIT.
56525         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56526         REPLACE_FREXPL into math.h.
56527
56528 2007-04-06  Bruno Haible  <bruno@clisp.org>
56529
56530         * modules/isnanf-nolibm-tests: New file.
56531         * tests/test-isnanf.c: New file.
56532
56533         * modules/isnanf-nolibm: New file.
56534         * lib/isnanf.h: New file.
56535         * lib/isnanf.c: New file.
56536         * lib/isnan.c: Consider the USE_FLOAT macro.
56537         * m4/isnanf.m4: New file.
56538
56539 2007-04-06  Bruno Haible  <bruno@clisp.org>
56540
56541         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56542         (Link): New section.
56543
56544         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56545
56546 2007-04-06  Bruno Haible  <bruno@clisp.org>
56547
56548         Assume the 'long double' type.
56549         * m4/longdouble.m4: Remove file.
56550         * config/srclist.txt: Don't mention longdouble.m4.
56551         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56552         * lib/float+.h: Likewise.
56553         * lib/frexp.c: Likewise.
56554         * lib/printf-args.h: Likewise.
56555         * lib/printf-args.c: Likewise.
56556         * lib/printf-frexp.c: Likewise.
56557         * lib/printf-parse.c: Likewise.
56558         * lib/vasnprintf.c: Likewise.
56559         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56560         * m4/intl.m4: Likewise.
56561         * m4/isnanl.m4: Likewise.
56562         * m4/printf.m4: Likewise.
56563         * m4/printf-frexpl.m4: Likewise.
56564         * m4/vasnprintf.m4: Likewise.
56565         * modules/allocsa (Files): Remove m4/longdouble.m4.
56566         * modules/gettext (Files): Likewise.
56567         * modules/relocatable-prog-wrapper (Files): Likewise.
56568         * modules/vasnprintf (Files): Likewise.
56569         * modules/isnanl (Files): Likewise.
56570         (Include): Simplify.
56571         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56572         (Include): Simplify.
56573         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56574         (Include): Simplify.
56575         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56576         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56577         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56578         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56579         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56580         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56581         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56582         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56583         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56585         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56587         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56588         * tests/test-isnanl.c: Likewise.
56589         * tests/test-snprintf-posix.h: Likewise.
56590         * tests/test-sprintf-posix.h: Likewise.
56591         * tests/test-vasnprintf-posix.c: Likewise.
56592         * tests/test-vasnprintf-posix2.c: Likewise.
56593         * tests/test-vasprintf-posix.c: Likewise.
56594
56595 2007-04-06  Bruno Haible  <bruno@clisp.org>
56596
56597         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56598         * lib/math_.h [__DECC]: Include the overridden include file through
56599         #include_next, outside the double-inclusion guard.
56600         * lib/stdio_.h [__DECC]: Likewise.
56601         * lib/stdlib_.h [__DECC]: Likewise.
56602         * lib/string_.h [__DECC]: Likewise.
56603         * lib/time_.h [__DECC]: Likewise.
56604         * lib/wchar_.h [__DECC]: Likewise.
56605         * lib/wctype_.h [__DECC]: Likewise.
56606         * lib/inttypes_.h [__DECC]: Likewise.
56607         Reported by Albert Chin <china@thewrittenword.com> in
56608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56609
56610 2007-04-04  Eric Blake  <ebb9@byu.net>
56611
56612         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56613         1.5.x.
56614
56615 2007-04-04  Bruno Haible  <bruno@clisp.org>
56616
56617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56618         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56619
56620 2007-04-04  Bruno Haible  <bruno@clisp.org>
56621
56622         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56623         results for "%010a" of Infinity and NaN.
56624         * tests/test-vasprintf-posix.c (test_function): Likewise.
56625         * tests/test-snprintf-posix.h (test_function): Likewise.
56626         * tests/test-sprintf-posix.h (test_function): Likewise.
56627         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56628         * tests/test-printf-posix.h (test_function): Likewise.
56629         * tests/test-fprintf-posix.out: Update.
56630         Needed for FreeBSD 6.1.
56631
56632 2007-04-04  Bruno Haible  <bruno@clisp.org>
56633
56634         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56635         directly used by the gnulib modules nor by gnulib-tool.
56636
56637 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * DEPENDENCIES: Give overall description of version dependency
56640         desirability.  Use more-typical names for apps.
56641         Add shell, coreutils, diffutils, grep, tar, gzip.
56642
56643 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56644
56645         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56646
56647 2007-04-04  Karl Berry  <karl@gnu.org>
56648
56649         * MODULES.html.sh (func_module): missing '.
56650
56651 2007-04-03  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/argmatch-tests (Makefile.am): New variable
56654         test_argmatch_LDADD.
56655         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56656         * modules/array-list-tests (Makefile.am): New variable
56657         test_array_list_LDADD.
56658         * modules/array-oset-tests (Makefile.am): New variable
56659         test_array_oset_LDADD.
56660         * modules/avltree-list-tests (Makefile.am): New variable
56661         test_avltree_list_LDADD.
56662         * modules/avltree-oset-tests (Makefile.am): New variable
56663         test_avltree_oset_LDADD.
56664         * modules/avltreehash-list-tests (Makefile.am): New variable
56665         test_avltreehash_list_LDADD.
56666         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56667         test_canonicalize_lgpl_LDADD.
56668         * modules/carray-list-tests (Makefile.am): New variable
56669         test_carray_list_LDADD.
56670         * modules/dirname-tests (Makefile.am): New variable
56671         test_dirname_LDADD.
56672         * modules/linked-list-tests (Makefile.am): New variable
56673         test_linked_list_LDADD.
56674         * modules/linkedhash-list-tests (Makefile.am): New variable
56675         test_linkedhash_list_LDADD.
56676         * modules/rbtree-list-tests (Makefile.am): New variable
56677         test_rbtree_list_LDADD.
56678         * modules/rbtree-oset-tests (Makefile.am): New variable
56679         test_rbtree_oset_LDADD.
56680         * modules/rbtreehash-list-tests (Makefile.am): New variable
56681         test_rbtreehash_list_LDADD.
56682         * modules/xvasprintf-tests (Makefile.am): New variable
56683         test_xvasprintf_LDADD.
56684         Reported by Eric Blake.
56685
56686 2007-04-03  Eric Blake  <ebb9@byu.net>
56687
56688         * DEPENDENCIES: Weaken m4 requirements.
56689
56690 2007-04-03  Bruno Haible  <bruno@clisp.org>
56691
56692         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56693         * modules/isnanl-tests (configure.ac): Likewise.
56694
56695 2007-04-03  Ben Pfaff  <blp@gnu.org>
56696
56697         * modules/iconv_open: Add $(srcdir)/ to source directory
56698         references in Makefile fragments that call gperf, to fix VPATH
56699         builds.
56700
56701 2007-04-03  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56704         * lib/ldexpl.c: Undo last change.
56705
56706 2007-04-03  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/printf-frexpl (Depends-on): Undo last change.
56709         (Files): Add m4/ldexpl.m4.
56710
56711 2007-04-03  Bruno Haible  <bruno@clisp.org>
56712
56713         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56714         * modules/isnanl (Link): New section.
56715
56716         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56717         * modules/frexp (Link): New section.
56718
56719         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56720         * modules/frexpl (Link): New section.
56721
56722         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56723         * modules/ldexpl (Link): New section.
56724
56725 2007-04-03  Bruno Haible  <bruno@clisp.org>
56726
56727         * modules/TEMPLATE-EXTENDED: New file.
56728         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56729
56730 2007-04-03  Bruno Haible  <bruno@clisp.org>
56731
56732         * DEPENDENCIES: New file.
56733         Suggested by Simon Josefsson.
56734
56735 2007-04-03  Bruno Haible  <bruno@clisp.org>
56736
56737         * doc/gnulib.texi: Escape @.
56738
56739 2007-04-03  James Youngman  <jay@gnu.org>
56740         and Paul Eggert  <eggert@cs.ucla.edu>
56741
56742         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56743         birthtime on all systems that have birthtime, not just those which
56744         use st_birthtimensec rather than st_birthtim.  Putting zero in
56745         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56746         that the birth time is not available for files on an NFS mount.
56747
56748 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56749
56750         * modules/memxor: Move back from crypto/, suggested by Bruno.
56751         * modules/crypto/hmac-sha1: Fix memxor dependency.
56752
56753         * modules/crypto/gc: Moved from ../.
56754
56755 2007-04-02  Eric Blake  <ebb9@byu.net>
56756
56757         * lib/ldexpl.c (includes): Avoid libm.
56758
56759         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56760
56761 2007-04-02  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56764         on IRIX.
56765
56766 2007-04-02  Bruno Haible  <bruno@clisp.org>
56767
56768         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56769         x86 or x86_64 platforms running MacOS X.
56770         Reported by Ryan Schmidt <@ryandesign.com>.
56771
56772 2007-04-02  Bruno Haible  <bruno@clisp.org>
56773
56774         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56775         i386.
56776
56777 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56778
56779         * modules/crypto/arcfour: Moved from ../.
56780         * modules/crypto/arcfour-tests: Moved from ../.
56781         * modules/crypto/arctwo: Moved from ../.
56782         * modules/crypto/arctwo-tests: Moved from ../.
56783         * modules/crypto/des: Moved from ../.
56784         * modules/crypto/des-tests: Moved from ../.
56785         * modules/crypto/gc-arcfour: Moved from ../.
56786         * modules/crypto/gc-arcfour-tests: Moved from ../.
56787         * modules/crypto/gc-arctwo: Moved from ../.
56788         * modules/crypto/gc-arctwo-tests: Moved from ../.
56789         * modules/crypto/gc-des: Moved from ../.
56790         * modules/crypto/gc-des-tests: Moved from ../.
56791         * modules/crypto/gc-hmac-md5: Moved from ../.
56792         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56793         * modules/crypto/gc-hmac-sha1: Moved from ../.
56794         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56795         * modules/crypto/gc-md2: Moved from ../.
56796         * modules/crypto/gc-md2-tests: Moved from ../.
56797         * modules/crypto/gc-md4: Moved from ../.
56798         * modules/crypto/gc-md4-tests: Moved from ../.
56799         * modules/crypto/gc-md5: Moved from ../.
56800         * modules/crypto/gc-md5-tests: Moved from ../.
56801         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56802         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56803         * modules/crypto/gc-random: Moved from ../.
56804         * modules/crypto/gc-rijndael: Moved from ../.
56805         * modules/crypto/gc-rijndael-tests: Moved from ../.
56806         * modules/crypto/gc-sha1: Moved from ../.
56807         * modules/crypto/gc-sha1-tests: Moved from ../.
56808         * modules/crypto/gc-tests: Moved from ../.
56809         * modules/crypto/hmac-md5: Moved from ../.
56810         * modules/crypto/hmac-md5-tests: Moved from ../.
56811         * modules/crypto/hmac-sha1: Moved from ../.
56812         * modules/crypto/hmac-sha1-tests: Moved from ../.
56813         * modules/crypto/md2: Moved from ../.
56814         * modules/crypto/md2-tests: Moved from ../.
56815         * modules/crypto/md4: Moved from ../.
56816         * modules/crypto/md4-tests: Moved from ../.
56817         * modules/crypto/md5: Moved from ../.
56818         * modules/crypto/md5-tests: Moved from ../.
56819         * modules/crypto/memxor: Moved from ../.
56820         * modules/crypto/rijndael: Moved from ../.
56821         * modules/crypto/rijndael-tests: Moved from ../.
56822         * modules/crypto/sha1: Moved from ../.
56823
56824 2007-03-30  James Youngman  <jay@gnu.org>
56825
56826         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56827         rename() to change the ctime of a file (because ctime is unaffected
56828         by rename on jfs2 on AIX 5.1).
56829         (main): Start by doing cleanup, in case a previous run failed leaving
56830         test files behind.
56831
56832 2007-03-31  Bruno Haible  <bruno@clisp.org>
56833
56834         Support old proprietary implementations of iconv.
56835         * modules/iconv_open: New file.
56836         * lib/iconv_.h: New file.
56837         * m4/iconv_h.m4: New file.
56838         * lib/iconv_open.c: New file.
56839         * lib/iconv_open-aix.gperf: New file.
56840         * lib/iconv_open-hpux.gperf: New file.
56841         * lib/iconv_open-irix.gperf: New file.
56842         * lib/iconv_open-osf.gperf: New file.
56843         * m4/iconv_open.m4: New file.
56844         * modules/linebreak (Depends-on): Add iconv_open.
56845         * modules/striconv (Depends-on): Likewise.
56846         * modules/striconveh (Depends-on): Likewise.
56847         * modules/unicodeio (Depends-on): Likewise.
56848         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56849         (iconv_t)(-1).
56850         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56851         conversion if cd is (iconv_t)(-1).
56852         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56853         is not possible.
56854
56855 2007-03-31  Bruno Haible  <bruno@clisp.org>
56856
56857         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56858         work on Solaris either. Protect also second use of "autodetect_jp".
56859
56860 2007-03-31  Bruno Haible  <bruno@clisp.org>
56861
56862         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56863         the function is not present.
56864
56865 2007-03-31  Bruno Haible  <bruno@clisp.org>
56866
56867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56868         the function is not present.
56869
56870 2007-03-31  Bruno Haible  <bruno@clisp.org>
56871
56872         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56873         a bug in HP-UX iconv_open().
56874
56875 2007-03-31  Bruno Haible  <bruno@clisp.org>
56876
56877         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56878         (Mathematics <math.h>): New section, add fpieee.
56879         (Input/output <stdio.h>): Add fseterr.
56880         (Mathematics <math.h>): New section, add printf-frexp.
56881         (Container data structures): Add sublist.
56882         (Core language properties): Add fpucw, inline.
56883         (Functions for greatest-width integer types <inttypes.h>): Add
56884         imaxabs, imaxdiv, inttypes.
56885         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56886         isnanl-nolibm, ldexp.
56887         (Mathematics <math.h>): New section, add printf-frexpl.
56888         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56889         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56890         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56891         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56892         (Unicode string functions): Add unistr/u*-mbtoucr.
56893         (Java): Add javacomp-script, javaexec-script.
56894         (C#): Add csharpcomp-script, csharpexec-script.
56895         (Support for building libraries and executables): Add havelib,
56896         relocatable-*.
56897         (Support for maintaining and releasing projects): Renamed from
56898         'Support for maintaining and release projects'. Add announce-gen.
56899
56900 2007-03-31  Bruno Haible  <bruno@clisp.org>
56901
56902         * README: Talk primarily about git.
56903         (git and CVS): Renamed from CVS.
56904         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56905         gnulib is available through git.
56906         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56907
56908 2007-03-30  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56911         * lib/poll_.h: Likewise.
56912         * lib/stat_.h: Likewise.
56913         * lib/sys_time_.h: Likewise.
56914         * lib/sysexit_.h: Likewise.
56915         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56916         * lib/stdbool_.h: Likewise.
56917         * lib/byteswap_.h: Add double-inclusion guard.
56918
56919 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56920
56921         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56922
56923 2007-03-30  Karl Berry  <karl@gnu.org>
56924
56925         * config/srclist-update: double space after USA in the license
56926         substitution, since that's how it's usually (?) written.
56927
56928 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56931         reported by Bruno Haible.
56932
56933 2007-03-29  Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56936         a bug in AIX iconv().
56937
56938 2007-03-29  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/ldexpl-tests: New file.
56941         * tests/test-ldexpl.c: New file.
56942
56943 2007-03-29  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/ldexpl.c: Include fpucw.h.
56946         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56947         multiplication.
56948         * modules/ldexpl (Depends-on): Add fpucw.
56949
56950 2007-03-29  Bruno Haible  <bruno@clisp.org>
56951
56952         * modules/ldexpl: New file.
56953         * m4/ldexpl.m4: New file.
56954         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56955         set.
56956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56957         REPLACE_LDEXPL.
56958         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56959         REPLACE_LDEXPL.
56960         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56961         gl_FUNC_LDEXPL_WORKS.
56962         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56963         * modules/mathl (Files): Remove lib/ldexpl.c.
56964         (Depends-on): Add ldexpl.
56965
56966 2007-03-29  Bruno Haible  <bruno@clisp.org>
56967
56968         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56969
56970 2007-03-29  Bruno Haible  <bruno@clisp.org>
56971
56972         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56973         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56974         and possibly also HP-UX.
56975         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56976         work on AIX, IRIX, HP-UX, OSF/1.
56977         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56978         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56979         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56980         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56981         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56982         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56983
56984 2007-03-29  Bruno Haible  <bruno@clisp.org>
56985
56986         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56987
56988 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56989
56990         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56991         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56992
56993 2007-03-29  Eric Blake  <ebb9@byu.net>
56994
56995         * lib/acl-internal.h: Remove redundant include.
56996         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56997         Cygwin when a file is locked.
56998
56999 2007-03-29  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57002         file.
57003         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57004
57005 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57008         try to remove a parent directory if the child couldn't be removed
57009         (except for the first rmdir, which could fail because the child
57010         doesn't exist).  Problem reported by Jeff Blaine in
57011         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57012
57013 2007-03-28  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/striconveh.c (utf8conv_carefully): New function.
57016         (mem_cd_iconveh_internal): Invoke it.
57017
57018 2007-03-28  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57021         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57022         input.
57023         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57024         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57025         unistr/u8-uctomb.
57026
57027 2007-03-28  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/unistr/u8-mbtoucr: New file.
57030         * lib/unistr/u8-mbtoucr.c: New file.
57031         * modules/unistr/u16-mbtoucr: New file.
57032         * lib/unistr/u16-mbtoucr.c: New file.
57033         * modules/unistr/u16-mbtoucr: New file.
57034         * lib/unistr/u16-mbtoucr.c: New file.
57035         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57036
57037 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57038             Bruno Haible  <bruno@clisp.org>
57039
57040         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57041         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57042         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57043
57044         * m4/stdio_h.m4: Add stubs for vasprintf too.
57045
57046         * modules/stdio: Support vasprintf in sed command.
57047
57048         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57049         vasprintf.h.  Add stdio module indicator.
57050
57051         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57052         vasprintf.h.
57053
57054         * lib/vasprintf.h: File removed.
57055
57056         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57057         * lib/vasprintf.c: Ditto.
57058         * lib/xvasprintf.c: Ditto.
57059         * tests/test-vasprintf-posix.c: Ditto.
57060         * tests/test-vasprintf.c: Ditto.
57061
57062 2007-03-27  Bruno Haible  <bruno@clisp.org>
57063
57064         Make vasnprintf multithread-safe.
57065         * lib/vasnprintf.c (decimal_point_char): New function.
57066         (VASNPRINTF): Use it.
57067         Suggested by Simon Josefsson.
57068
57069 2007-03-27  Eric Blake  <ebb9@byu.net>
57070
57071         Support sub-second birthtime on cygwin.
57072         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57073         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57074         (get_stat_birthtime): Also work with st_birthtim.
57075
57076 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57079         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57080         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57081         (get_stat_birthtime_ns): Simplify compile-time tests.
57082         (get_stat_birthtime): Change the API to look like
57083         get_stat_mtime etc., except return a negative tv_nsec on error.
57084         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57085         Don't check for "spare" fields.
57086         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57087         or for struct stat.st_birthtime, as these tests aren't used.
57088         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57089
57090 2007-03-27  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/stat-time.h: Include <sys/stat.h>.
57093
57094 2007-03-27  James Youngman  <jay@gnu.org>
57095
57096         * lib/stat-time.h (get_stat_birthtime): New function for
57097           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57098         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57099           and its variants.
57100         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57101         * modules/stat-time-test: New file.
57102         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57103
57104 2007-03-26  Bruno Haible  <bruno@clisp.org>
57105
57106         Better support of signalling NaNs.
57107         * lib/atanl.c: Include isnanl.h.
57108         (atanl): Perform test for NaN at the beginning of the function and
57109         through a call to isnanl.
57110         * lib/cosl.c: Include isnanl.h.
57111         (cosl): Perform test for NaN at the beginning of the function and
57112         through a call to isnanl.
57113         * lib/ldexpl.c: Include isnanl.h.
57114         (ldexpl): Perform test for NaN through a call to isnanl.
57115         * lib/logl.c: Include isnanl.h.
57116         (logl): Perform test for NaN at the beginning of the function and
57117         through a call to isnanl.
57118         * lib/sinl.c: Include isnanl.h.
57119         (sinl): Perform test for NaN at the beginning of the function and
57120         through a call to isnanl.
57121         * lib/sqrtl.c: Include isnanl.h.
57122         (sqrtl): Perform test for NaN at the beginning of the function and
57123         through a call to isnanl.
57124         * lib/tanl.c: Include isnanl.h.
57125         (tanl): Perform test for NaN at the beginning of the function and
57126         through a call to isnanl.
57127         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57128         * modules/mathl (Depends-on): Add isnanl.
57129
57130 2007-03-26  Eric Blake  <ebb9@byu.net>
57131
57132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57133         regression in logic sense of previous patch.
57134
57135 2007-03-26  Bruno Haible  <bruno@clisp.org>
57136
57137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57138         unportable shell command "if ! ...".
57139         Reported by Ralf Wildenhues.
57140
57141 2007-03-25  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57144         <sysexits.h> file, and only add EX_CONFIG.
57145         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57146         absolute file name and whether it is sufficient. Substitute also
57147         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57148         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57149         ABSOLUTE_SYSEXITS_H into sysexits.h.
57150
57151 2007-03-25  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57154         hints is NULL.
57155
57156 2007-03-25  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57159         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57160
57161 2007-03-25  Bruno Haible  <bruno@clisp.org>
57162
57163         * lib/vasnprintf.c: Include langinfo.h.
57164         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57165         multithread-safe.
57166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57175         Reported by Simon Josefsson.
57176
57177 2007-03-25  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57180         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57181         * modules/vasnprintf (Depends-on): Add stdint.
57182
57183 2007-03-25  Bruno Haible  <bruno@clisp.org>
57184
57185         * modules/fpieee: New file.
57186         * m4/fpieee.m4: New file.
57187         * modules/isnan-nolibm (Depends-on): Add fpieee.
57188         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57189         * modules/isnanl (Depends-on): Add fpieee.
57190
57191 2007-03-25  Bruno Haible  <bruno@clisp.org>
57192
57193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57194
57195 2007-03-25  Bruno Haible  <bruno@clisp.org>
57196
57197         Avoid test failures on IRIX 6.5.
57198         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57199         (main): Use it.
57200         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57201         macros.
57202         (main): Use them.
57203
57204 2007-03-25  Bruno Haible  <bruno@clisp.org>
57205
57206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57207         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57208         exists but doesn't work.
57209         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57210         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57212         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57213         math.h.
57214
57215 2007-03-25  Bruno Haible  <bruno@clisp.org>
57216
57217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57218         returns inf. Needed on IRIX 6.5.
57219
57220 2007-03-25  Bruno Haible  <bruno@clisp.org>
57221
57222         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57223         (main): Use isnanl instead of x != x idiom.
57224         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57225
57226         * tests/test-frexp.c: Include isnan.h.
57227         (main): Use isnan instead of x != x idiom.
57228         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57229
57230 2007-03-25  Bruno Haible  <bruno@clisp.org>
57231
57232         * tests/test-frexp.c (NaN): New function/macro.
57233         (main): Use it instead of 0.0 / 0.0.
57234         * tests/test-isnan.c (NaN): New function/macro.
57235         (main): Use it instead of 0.0 / 0.0.
57236         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57237         (test_function): Use it instead of 0.0 / 0.0.
57238         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57239         (test_function): Use it instead of 0.0 / 0.0.
57240         * tests/test-snprintf-posix.h (NaN): New function/macro.
57241         (test_function): Use it instead of 0.0 / 0.0.
57242         * tests/test-sprintf-posix.h (NaN): New function/macro.
57243         (test_function): Use it instead of 0.0 / 0.0.
57244         * tests/test-fprintf-posix.h (NaN): New function/macro.
57245         (test_function): Use it instead of 0.0 / 0.0.
57246         * tests/test-printf-posix.h (NaN): New function/macro.
57247         (test_function): Use it instead of 0.0 / 0.0.
57248
57249         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57250
57251 2007-03-25  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57254
57255 2007-03-25  Bruno Haible  <bruno@clisp.org>
57256
57257         * lib/regexec.c (merge_state_with_log): Make static.
57258
57259 2007-03-25  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/trigl.c (kernel_rem_pio2): Make static.
57262
57263 2007-03-25  Bruno Haible  <bruno@clisp.org>
57264
57265         * lib/sincosl.c (sincosl_table): Make static.
57266
57267 2007-03-25  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57270         if the compiler does not support C99.
57271
57272 2007-03-25  Bruno Haible  <bruno@clisp.org>
57273
57274         * modules/time (Makefile.am): Ensure all rule action lines start with a
57275         tab.
57276
57277 2007-03-24  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/tsearch-tests: New file.
57280         * tests/test-tsearch.sh: New file.
57281         * tests/test-tsearch.c: New file, mostly copied from glibc.
57282
57283         * modules/search-tests: New file.
57284         * tests/test-search.c: New file.
57285
57286         * modules/search: New file.
57287         * lib/search_.h: New file, incorporating lib/tsearch.h.
57288         * m4/search_h.m4: New file.
57289         * lib/tsearch.h: Remove file.
57290         * lib/tsearch.c: Include search.h instead of tsearch.h.
57291         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57292         HAVE_TSEARCH.
57293         * modules/tsearch (Files): Remove lib/tsearch.h.
57294         (Depends-on): Add search.
57295         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57296         (Include): Change tsearch.h into search.h.
57297
57298 2007-03-24  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/fpucw: New file.
57301         * lib/fpucw.h: New file.
57302         * lib/frexp.c: Include fpucw.h.
57303         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57304         (FUNC): Use them.
57305         * lib/printf-frexp.c: Include fpucw.h.
57306         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57307         (FUNC): Use them.
57308         * lib/vasnprintf.c: Include fpucw.h.
57309         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57310         'long double' calculations.
57311         * tests/test-frexpl.c: Include fpucw.h.
57312         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57313         * tests/test-printf-frexpl.c: Include fpucw.h.
57314         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57315         * modules/frexpl (Depends-on): Add fpucw.
57316         * modules/printf-frexpl (Depends-on): Likewise.
57317         * modules/fprintf-posix (Depends-on): Likewise.
57318         * modules/snprintf-posix (Depends-on): Likewise.
57319         * modules/sprintf-posix (Depends-on): Likewise.
57320         * modules/vasnprintf-posix (Depends-on): Likewise.
57321         * modules/vasprintf-posix (Depends-on): Likewise.
57322         * modules/vfprintf-posix (Depends-on): Likewise.
57323         * modules/vsnprintf-posix (Depends-on): Likewise.
57324         * modules/vsprintf-posix (Depends-on): Likewise.
57325         * modules/frexpl-tests (Depends-on): Likewise.
57326         * modules/printf-frexpl-tests (Depends-on): Likewise.
57327
57328 2007-03-24  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/float+.h: New file.
57331         * lib/isnan.c: Include float+.h.
57332         (SIZE): New macro.
57333         (FUNC): Compare only SIZE bytes of the value.
57334         * lib/vasnprintf.c: Include float+.h.
57335         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57336         SIZEOF_LDBL or SIZEOF_DBL bytes.
57337         * modules/isnan-nolibm (Files): Add lib/float+.h.
57338         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57339         * modules/isnanl (Files): Add lib/float+.h.
57340         * modules/vasnprintf (Files): Add lib/float+.h.
57341
57342 2007-03-24  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57345         include isnanl-nolibm.h.
57346
57347 2007-03-24  Bruno Haible  <bruno@clisp.org>
57348
57349         * tests/test-read-file.c (main): Don't produce spurious output for
57350         expected situations. Make the test fail if it encountered unexpected
57351         results.
57352
57353 2007-03-24  Bruno Haible  <bruno@clisp.org>
57354
57355         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57356         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57357
57358 2007-03-24  Bruno Haible  <bruno@clisp.org>
57359
57360         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57361
57362 2007-03-24  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57365         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57366
57367         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57368         * modules/utf8-ucs4: Turn into a symbolic link to module
57369         unistr/u8-mbtouc.
57370
57371         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57372         utf8-ucs4-unsafe.
57373         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57374         unistr/u8-mbtouc-unsafe.
57375
57376         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57377         * modules/utf16-ucs4: Turn into a symbolic link to module
57378         unistr/u16-mbtouc.
57379
57380         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57381         utf16-ucs4-unsafe.
57382         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57383         unistr/u16-mbtouc-unsafe.
57384
57385         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57386         * modules/ucs4-utf8: Turn into a symbolic link to module
57387         unistr/u8-ubtomb.
57388
57389         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57390         * modules/ucs4-utf16: Turn into a symbolic link to module
57391         unistr/u16-ubtomb.
57392
57393 2007-03-24  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57396         Enable the function only if HAVE_INLINE.
57397         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57398         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57399         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57400         Enable the function only if HAVE_INLINE.
57401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57402         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57403         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57404         Enable the function only if HAVE_INLINE.
57405         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57406         Enable the function only if HAVE_INLINE.
57407         * modules/utf8-ucs4: Update.
57408         * modules/utf8-ucs4-unsafe: Update.
57409         * modules/utf16-ucs4: Update.
57410         * modules/utf16-ucs4-unsafe: Update.
57411         * modules/ucs4-utf8: Update.
57412         * modules/ucs4-utf16: Update.
57413
57414 2007-03-24  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/utf8-ucs4.h: Remove file.
57417         * lib/utf8-ucs4-unsafe.h: Remove file.
57418         * lib/utf16-ucs4.h: Remove file.
57419         * lib/utf16-ucs4-unsafe.h: Remove file.
57420         * lib/ucs4-utf8.h: Remove file.
57421         * lib/ucs4-utf16.h: Remove file.
57422         * lib/unistr.h: Include their previous contents.
57423         * m4/utf-ucs4.m4: Remove file.
57424         * m4/ucs4-utf.m4: Remove file.
57425         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57426         (Depends-on): Add unistr/base.
57427         (configure.ac): Remove gl_UTF_UCS4.
57428         (Makefile.am): Update.
57429         (Include): Change to unistr.h.
57430         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57431         (Depends-on): Add unistr/base.
57432         (configure.ac): Remove gl_UTF_UCS4.
57433         (Makefile.am): Update.
57434         (Include): Change to unistr.h.
57435         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57436         (Depends-on): Add unistr/base.
57437         (configure.ac): Remove gl_UTF_UCS4.
57438         (Makefile.am): Update.
57439         (Include): Change to unistr.h.
57440         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57441         (Depends-on): Add unistr/base.
57442         (configure.ac): Remove gl_UTF_UCS4.
57443         (Makefile.am): Update.
57444         (Include): Change to unistr.h.
57445         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57446         (Depends-on): Add unistr/base.
57447         (configure.ac): Remove gl_UCS4_UTF.
57448         (Makefile.am): Update.
57449         (Include): Change to unistr.h.
57450         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57451         (Depends-on): Add unistr/base.
57452         (configure.ac): Remove gl_UCS4_UTF.
57453         (Makefile.am): Update.
57454         (Include): Change to unistr.h.
57455         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57456         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57457         utf8-ucs4-unsafe.h.
57458         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57459         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57460         utf16-ucs4-unsafe.h.
57461         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57462         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57463         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57464         * lib/unistr/u8-strchr.c: Likewise.
57465         * lib/unistr/u8-strrchr.c: Likewise.
57466         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57467         * lib/unistr/u16-strchr.c: Likewise.
57468         * lib/unistr/u16-strrchr.c: Likewise.
57469         * lib/striconveh.c: Update.
57470         * lib/linebreak.c: Update.
57471
57472 2007-03-24  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57475         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57476
57477 2007-03-22  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57480
57481 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         * MODULES.html.sh (File system functions): New module write-any-file.
57484         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57485         * m4/write-any-file.m4: New files.
57486
57487 2007-03-23  Eric Blake  <ebb9@byu.net>
57488
57489         * gnulib-tool: Rearrange space-tab sequences, since some editors
57490         like to eat them.
57491
57492 2007-03-23  Eric Blake  <ebb9@byu.net>
57493
57494         * lib/version-etc.c (version_etc_va): Update license wording to
57495         be more concise.  Recommended by Richard Stallman.
57496
57497 2007-03-22  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/poll.c (MSG_PEEK): New fallback definition.
57500
57501 2007-03-22  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57504         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57505         (main): Update.
57506         Fixes a compilation error on BeOS.
57507
57508 2007-03-22  Bruno Haible  <bruno@clisp.org>
57509
57510         * modules/frexpl-tests: New file.
57511         * tests/test-frexpl.c: New file.
57512
57513         * modules/frexpl: New file.
57514         * m4/frexpl.m4: New file.
57515         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57516         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57518         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57519         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57520         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57521
57522 2007-03-22  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/frexpl.c: Share code with lib/frexp.c.
57525         * modules/mathl (Files): Add lib/frexp.c.
57526         (Depends-on): Add isnanl-nolibm.
57527
57528 2007-03-22  Bruno Haible  <bruno@clisp.org>
57529
57530         * modules/printf-frexp (Files): Add m4/frexp.m4.
57531         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57532         only if the found frexp function actually works.
57533
57534 2007-03-22  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/frexp.c: Remove older implementation that uses divisions.
57537
57538 2007-03-21  Bruno Haible  <bruno@clisp.org>
57539
57540         * modules/frexp-tests: New file.
57541         * tests/test-frexp.c: New file.
57542
57543         * modules/frexp: New file.
57544         * lib/frexp.c: New file.
57545         * m4/frexp.m4: New file.
57546         * lib/math_.h (frexp): New declaration.
57547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57548         REPLACE_FREXP.
57549         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57550
57551 2007-03-21  Bruno Haible  <bruno@clisp.org>
57552
57553         * modules/isnanl-tests: New file.
57554         * tests/test-isnanl.c: New file.
57555
57556         * modules/isnanl: New file.
57557         * lib/isnanl.h: New file.
57558         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57559         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57560         gl_FUNC_ISNANL_WORKS.
57561         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57562         New macros.
57563
57564 2007-03-21  Bruno Haible  <bruno@clisp.org>
57565
57566         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57567         lib/isnanl.h.
57568         (Include): Update.
57569         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57570         * lib/vasnprintf.c: Update.
57571         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57572         tests/test-isnanl.h, remove tests/test-isnanl.c.
57573         (Makefile.am): Update.
57574         * tests/test-isnanl-nolibm.c: New file.
57575         * tests/test-isnanl.h: New file.
57576         * tests/test-isnanl.c: Remove file.
57577
57578 2007-03-21  Jim Meyering  <jim@meyering.net>
57579
57580         When trying to open ".", treat ESTALE like EACCES.
57581         * lib/savewd.c (savewd_save): Resort to forking not just upon
57582         failure with EACCES, but also when errno is ESTALE.
57583
57584 2007-03-20  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57587         Needed on AIX 5.1. Reported by Matthew Woehlke.
57588
57589 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57590
57591         Suggestions by Bruno Haible:
57592         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57593         our own.
57594         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57595         * modules/acl (Depends-on): Add gettext.
57596
57597 2007-03-19  Bruno Haible  <bruno@clisp.org>
57598
57599         * modules/iconvme: Remove file.
57600         * lib/iconvme.h: Remove file.
57601         * lib/iconvme.c: Remove file.
57602         * m4/iconvme.m4: Remove file.
57603
57604 2007-03-19  Bruno Haible  <bruno@clisp.org>
57605
57606         * doc/relocatable-maint.texi: Break long shell script line.
57607         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57608
57609 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57612         handle file_has_acl.
57613         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57614         * lib/acl.c: Move header inclusions and related macro defns into
57615         lib/acl-internal.h.
57616         (S_ISLNK): Remove defn, since that's now done for us.
57617         (file_has_acl): Move to lib/file-has-acl.c.
57618         Call acl_trivial if available.  This is the crucial part of the fix.
57619         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57620         shared within the library.  Rewrite a bit, partly to make it compatible
57621         with the GNU coding style.
57622         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57623         Remove unnecessary double-quotes.
57624         Don't test for acl_to_text; the build will catch that.
57625         Replace acl_entries if it doesn't exist and it is needed.
57626         Check for -lsec and acl_trivial (as used on Solaris 10).
57627         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57628         lib/file-has-acl.c.
57629         (Depends-on): Add sys_stat, for S_ISLNK.
57630
57631 2007-03-19  Ben Pfaff  <blp@gnu.org>
57632
57633         * doc/gnulib.texi: Fix typos.
57634         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57635
57636 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57639         If size is zero here, buf must be zero.
57640
57641 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57642
57643         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57644         <bruno@clisp.org>.
57645
57646 2007-03-18  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57649         Suggested by Eric Blake.
57650
57651 2007-03-18  Ben Pfaff  <blp@gnu.org>
57652
57653         * doc/relocatable.texi: Recommend using as prefix a directory
57654         that does not exist and will never be created.  Based on
57655         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57656         and others.
57657
57658 2007-03-17  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/fchownat.c: Include lchown.h.
57661
57662 2007-03-17  Bruno Haible  <bruno@clisp.org>
57663
57664         Fix endless loop when the given allocated size was > INT_MAX.
57665         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57666         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57667         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57668         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57669         * lib/sprintf.c (sprintf): Likewise.
57670
57671 2007-03-17  Bruno Haible  <bruno@clisp.org>
57672
57673         * tests/test-argp-2.sh (func_compare): Output a context diff.
57674
57675 2007-03-17  Bruno Haible  <bruno@clisp.org>
57676
57677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57678         locale's decimal-point character.
57679
57680 2007-03-17  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57683         before comparing it. Needed because on some platforms (e.g. x86) a
57684         'long double' occupies less bytes than sizeof (long double).
57685
57686 2007-03-17  Bruno Haible  <bruno@clisp.org>
57687
57688         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57689         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57690         * tests/test-getaddrinfo.c (simple): Likewise.
57691         * tests/test-read-file.c (main): Likewise.
57692
57693 2007-03-17  Bruno Haible  <bruno@clisp.org>
57694
57695         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57696
57697 2007-03-17  Bruno Haible  <bruno@clisp.org>
57698
57699         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57700         unused variable.
57701
57702 2007-03-17  Bruno Haible  <bruno@clisp.org>
57703
57704         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57705         * tests/test-c-strncasecmp.c: Likewise.
57706
57707 2007-03-17  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/stdlib (Depends-on): Add unistd.
57710         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57711         Needed for MacOS X 10.3.
57712
57713 2007-03-17  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57716
57717 2007-03-17  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57720
57721 2007-03-17  Bruno Haible  <bruno@clisp.org>
57722
57723         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57724         to reflect files copied from gnulib (with or without modifications).
57725         Suggested by Jim Meyering.
57726
57727 2007-03-17  Eric Blake  <ebb9@byu.net>
57728
57729         * NEWS: Document stdlib change from 2007-02-18.
57730
57731 2007-03-17  Jim Meyering  <jim@meyering.net>
57732
57733         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57734         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57735         someone uses a name containing shell meta-characters.
57736         Reported by Alfred M. Szmidt.
57737
57738         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57739
57740 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57741
57742         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57743         and copy gettext configuration files only if configure.ac contains
57744         a use of AM_GNU_GETTEXT_VERSION.
57745
57746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57747
57748         * build-aux/bootstrap (gnulib_name): New variable.
57749         (gnulib_tool_options): Use it.
57750
57751 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57752
57753         * tests/test-des.c: Use new namespace.
57754
57755 2007-03-15  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57758         Reported by James Youngman <jay@gnu.org>.
57759
57760 2007-03-15  Bruno Haible  <bruno@clisp.org>
57761
57762         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57763         declared prototype. Needed with cc on OSF/1 5.1.
57764
57765 2007-03-15  Bruno Haible  <bruno@clisp.org>
57766
57767         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57768         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57769         (struct gl_list_implementation): Add dispose_fn argument to the
57770         'create_empty', 'create' methods.
57771         (struct gl_list_impl_base): Add field 'dispose_fn'.
57772         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57773         argument.
57774         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57775         dispose_fn argument.
57776         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57777         dispose_fn on the dropped values.
57778         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57779         dispose_fn argument.
57780         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57781         dropped values.
57782         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57783         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57784         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57785         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57786         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57787         argument.
57788         (gl_tree_list_free): Call dispose_fn on the dropped values.
57789         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57790         the dropped values.
57791         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57792         Add dispose_fn argument.
57793         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57794         Call dispose_fn on the dropped values.
57795         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57796         Add dispose_fn argument.
57797         (gl_sublist_create): Initialize the 'dispose_fn' field.
57798         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57799         * tests/test-array_list.c (main): Update.
57800         * tests/test-carray_list.c (main): Update.
57801         * tests/test-avltree_list.c (main): Update.
57802         * tests/test-rbtree_list.c (main): Update.
57803         * tests/test-avltreehash_list.c (main): Update.
57804         * tests/test-rbtreehash_list.c (main): Update.
57805         * tests/test-linked_list.c (main): Update.
57806         * tests/test-linkedhash_list.c (main): Update.
57807         * tests/test-array_oset.c (main): Update.
57808
57809 2007-03-15  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57812         (gl_oset_create_empty): Add dispose_fn argument.
57813         (struct gl_oset_implementation): Add dispose_fn argument to
57814         'create_empty' method.
57815         (struct gl_oset_impl_base): Add dispose_fn field.
57816         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57817         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57818         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57819         values.
57820         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57821         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57822         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57823         dropped value.
57824         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57825         dropped value.
57826         * tests/test-array_oset.c (main): Update.
57827         * tests/test-avltree_oset.c (main): Update.
57828         * tests/test-rbtree_oset.c (main): Update.
57829         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57830
57831 2007-03-13  Bruno Haible  <bruno@clisp.org>
57832
57833         * tests/test-stdbool.c (i): Update after last patch.
57834
57835 2007-03-12  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57838         the iswprint macro. Needed on Solaris 2.5.1.
57839
57840 2007-03-12  Bruno Haible  <bruno@clisp.org>
57841
57842         * tests/test-printf-frexp.c (main): Declare x as volatile.
57843
57844 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57845
57846         * doc/gnulib.texi (Build robot for gnulib): New section.
57847
57848 2007-03-12  Jim Meyering  <jim@meyering.net>
57849
57850         * build-aux/bootstrap: New file.
57851         * build-aux/bootstrap.conf: New file, from coreutils.
57852
57853 2007-03-11  Bruno Haible  <bruno@clisp.org>
57854
57855         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57856
57857 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57858
57859         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57860         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57861         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57862
57863 2007-03-11  Bruno Haible  <bruno@clisp.org>
57864
57865         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57866         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57867
57868 2007-03-11  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57871         formula. Needed for SunPRO C 5.0.
57872
57873 2007-03-11  Bruno Haible  <bruno@clisp.org>
57874
57875         * modules/long-options (Depends-on): Add getopt.
57876
57877 2007-03-11  Bruno Haible  <bruno@clisp.org>
57878
57879         * modules/modechange (Depends-on): Add stdbool.
57880
57881 2007-03-11  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/i-ring (Depends-on): Add stdbool.
57884
57885 2007-03-11  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/gc-des (Depends-on): Add stdbool.
57888
57889 2007-03-11  Bruno Haible  <bruno@clisp.org>
57890
57891         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57892
57893 2007-03-11  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57896
57897 2007-03-11  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57900
57901 2007-03-11  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/vasnprintf.c (sprintf): Undefine.
57904
57905 2007-03-11  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57908         initializers in SunPRO C and Compaq C compilers.
57909
57910 2007-03-11  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57913         decrementing code ANSI C compliant.
57914
57915 2007-03-11  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57918         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57919
57920 2007-03-11  Bruno Haible  <bruno@clisp.org>
57921
57922         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57923         <stdbool.h> substitute doesn't pass.
57924
57925 2007-03-11  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57928
57929 2007-03-11  Bruno Haible  <bruno@clisp.org>
57930
57931         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57932         script, for submission to autobuild.josefsson.org.
57933
57934 2007-03-10  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/canonicalize-lgpl-tests: New file.
57937         * tests/test-canonicalize-lgpl.sh: New file.
57938         * tests/test-canonicalize-lgpl.c: New file.
57939
57940         * modules/c-strcase-tests: New file.
57941         * tests/test-c-strcase.sh: New file.
57942         * tests/test-c-strcasecmp.c: New file.
57943         * tests/test-c-strncasecmp.c: New file.
57944
57945         * modules/atexit-tests: New file.
57946         * tests/test-atexit.sh: New file.
57947         * tests/test-atexit.c: New file.
57948
57949 2007-03-10  Bruno Haible  <bruno@clisp.org>
57950
57951         * tests/test-binary-io.sh: Use temporary filenames that are not so
57952         likely to clash with those of other tests (in a parallel make).
57953         * tests/test-binary-io.c: Likewise.
57954
57955 2007-03-10  Bruno Haible  <bruno@clisp.org>
57956
57957         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57958         fallback; use #error instead.
57959         Suggested by Simon Josefsson.
57960
57961 2007-03-10  Bruno Haible  <bruno@clisp.org>
57962
57963         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57964         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57965         first and the last.
57966
57967 2007-03-10  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57970
57971 2007-03-10  Bruno Haible  <bruno@clisp.org>
57972
57973         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57974         "make distcheck".
57975         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57976         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57977         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57978
57979 2007-03-10  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57982         variable.
57983         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57984         variable.
57985
57986 2007-03-09  Eric Blake  <ebb9@byu.net>
57987         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57988
57989         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57990         types are not being provided by gnulib.
57991         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57992         types are supported.
57993
57994 2007-03-10  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/stdio_.h (__attribute__): New macro.
57997         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57998         vsprintf): Specify __attribute__ __format__ for GCC.
57999         Suggested by Eric Blake.
58000
58001 2007-03-09  Bruno Haible  <bruno@clisp.org>
58002
58003         * modules/printf-posix-tests: New file.
58004         * tests/test-printf-posix.sh: New file.
58005         * tests/test-printf-posix.c: New file.
58006
58007         * modules/printf-posix: New file.
58008         * lib/printf.c: New file.
58009         * m4/printf-posix-rpl.m4: New file.
58010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58011         REPLACE_PRINTF.
58012         * lib/stdio_.h (printf): New declaration.
58013         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58014         ____strfmon____): New macros.
58015         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58016         REPLACE_PRINTF.
58017
58018 2007-03-09  Bruno Haible  <bruno@clisp.org>
58019
58020         * tests/test-vasnprintf-posix2.sh: New file.
58021         * tests/test-vasnprintf-posix2.c: New file.
58022         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58023         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58024         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58025
58026         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58027         a locale dependent decimal point, rather than always '.'.
58028
58029 2007-03-09  Eric Blake  <ebb9@byu.net>
58030
58031         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58032         spite of platforms like Tandem/NSK that define it to -1.
58033
58034 2007-03-08  Bruno Haible  <bruno@clisp.org>
58035
58036         * modules/vprintf-posix-tests: New file.
58037         * tests/test-vprintf-posix.sh: New file.
58038         * tests/test-vprintf-posix.c: New file.
58039         * tests/test-printf-posix.h: New file.
58040
58041         * modules/vprintf-posix: New file.
58042         * lib/vprintf.c: New file.
58043         * m4/vprintf-posix.m4: New file.
58044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58045         REPLACE_VPRINTF.
58046         * lib/stdio_.h (vprintf): New declaration.
58047         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58048         REPLACE_VPRINTF.
58049
58050 2007-03-08  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/fprintf-posix-tests: New file.
58053         * tests/test-fprintf-posix.sh: New file.
58054         * tests/test-fprintf-posix.c: New file.
58055
58056         * modules/fprintf-posix: New file.
58057         * lib/fprintf.c: New file.
58058         * m4/fprintf-posix.m4: New file.
58059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58060         REPLACE_FPRINTF.
58061         * lib/stdio_.h (fprintf): New declaration.
58062         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58063         REPLACE_FPRINTF.
58064
58065 2007-03-08  Bruno Haible  <bruno@clisp.org>
58066
58067         * modules/vfprintf-posix-tests: New file.
58068         * tests/test-vfprintf-posix.sh: New file.
58069         * tests/test-vfprintf-posix.c: New file.
58070         * tests/test-fprintf-posix.h: New file.
58071         * tests/test-fprintf-posix.out: New file.
58072
58073         * modules/vfprintf-posix: New file.
58074         * lib/vfprintf.c: New file.
58075         * m4/vfprintf-posix.m4: New file.
58076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58077         REPLACE_VFPRINTF.
58078         * lib/stdio_.h (vfprintf): New declaration.
58079         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58080         REPLACE_VFPRINTF.
58081
58082 2007-03-08  Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58085
58086 2007-03-08  Bruno Haible  <bruno@clisp.org>
58087
58088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58089         instead of 'expr' invocations.
58090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58095         Suggested by Paul Eggert.
58096
58097 2007-03-08  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/fseterr-tests: New file.
58100         * tests/test-fseterr.c: New file.
58101
58102         * modules/fseterr: New file.
58103         * lib/fseterr.h: New file.
58104         * lib/fseterr.c: New file.
58105
58106 2007-03-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58109         * lib/getopt_.h: Likewise.
58110         * lib/mbswidth.h: Likewise.
58111         * lib/setenv.h: Likewise.
58112         * lib/vasnprintf.h: Likewise.
58113         * lib/vasprintf.h: Likewise.
58114         * lib/verror.h: Likewise.
58115         * lib/xsetenv.h: Likewise.
58116         * lib/xvasprintf.h: Likewise.
58117
58118 2007-03-08  Jim Meyering  <jim@meyering.net>
58119
58120         * users.txt: Add parted.
58121
58122         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58123
58124 2007-03-07  Bruno Haible  <bruno@clisp.org>
58125
58126         * m4/printf.m4: Make the shell script snippets copy&pastable.
58127
58128 2007-03-02  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/netinet_in_.h: New file.
58131         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58132         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58133         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58134         (Depends-on): Add absolute-header.
58135         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58136         into netinet/in.h.
58137
58138 2007-03-03  Bruno Haible  <bruno@clisp.org>
58139
58140         * lib/sys_select_.h: New file.
58141         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58142         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58143         * modules/sys_select (Files): Add lib/sys_select_.h.
58144         (Depends-on): Add absolute-header.
58145         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58146         into sys/select.h.
58147
58148 2007-03-02  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58151         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58152         values.
58153         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58154         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58155         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58156         * modules/sys_socket (Depends-on): Add absolute-header.
58157         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58158         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58159         (Include): Remove requirement of inclusion of <sys/types.h>.
58160
58161 2007-03-02  Bruno Haible  <bruno@clisp.org>
58162
58163         * lib/byteswap_.h (bswap_32): Fix formula.
58164
58165 2007-03-06  Bruno Haible  <bruno@clisp.org>
58166
58167         * modules/sprintf-posix-tests: New file.
58168         * tests/test-sprintf-posix.c: New file.
58169
58170         * modules/sprintf-posix: New file.
58171         * lib/sprintf.c: New file.
58172         * m4/sprintf-posix.m4: New file.
58173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58174         REPLACE_SPRINTF.
58175         * lib/stdio_.h (sprintf): New declaration.
58176         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58177         REPLACE_SPRINTF.
58178
58179 2007-03-06  Bruno Haible  <bruno@clisp.org>
58180
58181         * modules/vsprintf-posix-tests: New file.
58182         * tests/test-vsprintf-posix.c: New file.
58183         * tests/test-sprintf-posix.h: New file.
58184
58185         * modules/vsprintf-posix: New file.
58186         * lib/vsprintf.c: New file.
58187         * m4/vsprintf-posix.m4: New file.
58188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58189         REPLACE_VSPRINTF.
58190         * lib/stdio_.h (vsprintf): New declaration.
58191         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58192         REPLACE_VSPRINTF.
58193
58194 2007-03-06  Bruno Haible  <bruno@clisp.org>
58195
58196         * modules/vsnprintf (Depend-on): Remove minmax.
58197
58198 2007-03-06  Bruno Haible  <bruno@clisp.org>
58199
58200         * modules/snprintf-posix-tests: New file.
58201         * tests/test-snprintf-posix.c: New file.
58202
58203         * modules/snprintf-posix: New file.
58204         * m4/snprintf-posix.m4: New file.
58205         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58206         gl_FUNC_SNPRINTF.
58207         (gl_FUNC_SNPRINTF): Invoke it.
58208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58209         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58210         is set.
58211         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58212
58213 2007-03-06  Bruno Haible  <bruno@clisp.org>
58214
58215         * modules/vsnprintf-posix-tests: New file.
58216         * tests/test-vsnprintf-posix.c: New file.
58217         * tests/test-snprintf-posix.h: New file.
58218
58219         * modules/vsnprintf-posix: New file.
58220         * m4/vsnprintf-posix.m4: New file.
58221         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58222         gl_FUNC_VSNPRINTF.
58223         (gl_FUNC_VSNPRINTF): Invoke it.
58224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58225         * lib/stdio_.h (vsnprintf): Define as a replacement if
58226         REPLACE_VSNPRINTF is set.
58227         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58228
58229 2007-03-06  Bruno Haible  <bruno@clisp.org>
58230
58231         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58233
58234 2007-03-06  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58237         (asinl): Declare also if HAVE_DECL_ASINL is set.
58238         (atanl): Declare also if HAVE_DECL_ATANL is set.
58239         (ceill): Declare also if HAVE_DECL_CEILL is set.
58240         (cosl): Declare also if HAVE_DECL_COSL is set.
58241         (expl): Declare also if HAVE_DECL_EXPL is set.
58242         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58243         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58244         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58245         (logl): Declare also if HAVE_DECL_LOGL is set.
58246         (sinl): Declare also if HAVE_DECL_SINL is set.
58247         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58248         (tanl): Declare also if HAVE_DECL_TANL is set.
58249         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58252         declaration of frexpl, ldexpl.
58253         * modules/printf-frexpl (Depends-on): Add math.
58254         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58255
58256 2007-03-05  Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58259         frexpl and ldexpl are declared.
58260         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58261
58262 2007-03-05  Bruno Haible  <bruno@clisp.org>
58263
58264         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58265         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58266
58267 2007-03-05  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/stdio_.h: Include <stddef.h>.
58270
58271 2007-03-05  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58274
58275 2007-03-05  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58278         NetBSD 4, from Ralf Wildenhues.
58279
58280 2007-03-04  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/vasprintf.h: Update #if logic for the case when the functions
58283         exist but are overridden.
58284
58285 2007-03-04  Bruno Haible  <bruno@clisp.org>
58286
58287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58288         implementations: glibc-2.4 and MacOS X 10.3.
58289         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58290         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58291         * tests/test-vasprintf-posix.c (test_function): Likewise.
58292
58293 2007-03-04  Bruno Haible  <bruno@clisp.org>
58294
58295         * modules/vasprintf-posix-tests: New file.
58296         * tests/test-vasprintf-posix.c: New file.
58297
58298         * modules/vasprintf-posix: New file.
58299         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58300         defined.
58301         * m4/vasprintf-posix.m4: New file.
58302         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58303         gl_FUNC_VASPRINTF.
58304         (gl_FUNC_VASPRINTF): Invoke it.
58305         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58306         here.
58307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58308
58309 2007-03-04  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58312         REPLACE_GETTIMEOFDAY.
58313         * modules/sys_time (Makefile.am): Likewise.
58314         * m4/sys_time_h.m4: Likewise.
58315         * m4/gettimeofday.m4: Likewise.
58316
58317 2007-03-04  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/vasnprintf-posix-tests: New file.
58320         * tests/test-vasnprintf-posix.c: New file.
58321
58322         * modules/vasnprintf-posix: New file.
58323         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58324         printf-frexpl.h.
58325         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58326         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58327         REPLACE_VASNPRINTF is defined.
58328         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58329         gl_FUNC_VASNPRINTF.
58330         (gl_FUNC_VASNPRINTF): Invoke it.
58331         * m4/vasnprintf-posix.m4: New file.
58332         * m4/printf.m4: New file.
58333
58334 2007-03-04  Bruno Haible  <bruno@clisp.org>
58335
58336         Compile progreloc.c only if --enable-relocatable is specified.
58337         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58338         if --enable-relocatable was specified.
58339         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58340         lib_SOURCES.
58341
58342 2007-03-04  Jim Meyering  <jim@meyering.net>
58343
58344         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58345         Use it consistently, rather than enumerating errno constants.
58346
58347 2007-03-04  Bruno Haible  <bruno@clisp.org>
58348
58349         * modules/xvasprintf-tests: New file.
58350         * tests/test-xvasprintf.c: New file.
58351
58352         * modules/vasprintf-tests: New file.
58353         * tests/test-vasprintf.c: New file.
58354
58355         * modules/vasnprintf-tests: New file.
58356         * tests/test-vasnprintf.c: New file.
58357
58358         * modules/vsnprintf-tests: New file.
58359         * tests/test-vsnprintf.c: New file.
58360
58361         * modules/snprintf-tests: New file.
58362         * tests/test-snprintf.c: New file.
58363
58364 2007-03-04  Bruno Haible  <bruno@clisp.org>
58365
58366         Compile relocatable.c only if --enable-relocatable is specified.
58367         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58368         gl_RELOCATABLE_LIBRARY.
58369         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58370         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58371         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58372         gl_RELOCATABLE_LIBRARY.
58373         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58374         (Makefile.am): Remove lib_SOURCES.
58375         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58376         gl_RELOCATABLE_LIBRARY.
58377         (Makefile.am): Remove lib_SOURCES.
58378         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58379         always.
58380         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58381         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58382
58383 2007-03-04  Bruno Haible  <bruno@clisp.org>
58384
58385         * modules/argmatch-tests: New file.
58386         * tests/test-argmatch.c: New file.
58387
58388         * tests/test-allocsa.c (main): Halve the number of loop runs.
58389
58390         * modules/alloca-opt-tests: New file.
58391         * tests/test-alloca-opt.c: New file.
58392
58393 2007-03-04  Jim Meyering  <jim@meyering.net>
58394
58395         Work around difference between Linux ACLs and Solaris 10 ZFS.
58396         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58397         for EINVAL.
58398
58399 2007-03-03  Bruno Haible  <bruno@clisp.org>
58400
58401         * modules/relocatable-prog (Depends-on): Add back progreloc's
58402         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58403
58404 2007-03-03  Bruno Haible  <bruno@clisp.org>
58405
58406         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58407         * modules/relocatable-lib: New file.
58408
58409 2007-03-03  Bruno Haible  <bruno@clisp.org>
58410
58411         * modules/relocatable-prog: Renamed from modules/relocatable.
58412         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58413
58414 2007-03-03  Bruno Haible  <bruno@clisp.org>
58415
58416         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58417         m4/relocatable-lib.m4.
58418         (Depends-on): Remove 'relocatable'.
58419         (configure.ac): Add gl_RELOCATABLE_NOP.
58420
58421 2007-03-03  Bruno Haible  <bruno@clisp.org>
58422
58423         * modules/relocatable-prog-wrapper: New file.
58424         * modules/relocatable (Depends-on): Add it. Remove all other
58425         dependencies except progname.
58426         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58427
58428         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58429         (gl_FUNC_STRERROR): Nop.
58430         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58431
58432         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58433         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58434
58435         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58436         (gl_FUNC_READLINK): Update.
58437
58438         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58439
58440 2007-03-03  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58443         * modules/xreadlink (Depends-on): Add unistd.
58444         * modules/xreadlink-with-size (Depends-on): Likewise.
58445
58446 2007-03-03  Bruno Haible  <bruno@clisp.org>
58447
58448         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58449         extracted from gt_FUNC_SETENV.
58450         (gt_FUNC_SETENV): Remove macro.
58451         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58452         remove gt_FUNC_SETENV.
58453
58454 2007-03-03  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58457         ENABLE_RELOCATABLE here.
58458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58459
58460 2007-03-03  Bruno Haible  <bruno@clisp.org>
58461
58462         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58463         * tests/test-rbtreehash_list.c: Include progname.h.
58464         (main): Call set_program_name.
58465
58466         * modules/rbtree-oset-tests (Depends-on): Add progname.
58467         * tests/test-rbtree_oset.c: Include progname.h.
58468         (main): Call set_program_name.
58469
58470         * modules/rbtree-list-tests (Depends-on): Add progname.
58471         * tests/test-rbtree_list.c: Include progname.h.
58472         (main): Call set_program_name.
58473
58474         * modules/linked-list-tests (Depends-on): Add progname.
58475         * tests/test-linked_list.c: Include progname.h.
58476         (main): Call set_program_name.
58477
58478 2007-03-03  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58481         All uses of __restrict changed to _Restrict_.
58482         * lib/glob_.h (__restrict): Remove macro.
58483
58484 2007-03-02  Bruno Haible  <bruno@clisp.org>
58485
58486         * modules/gettext (configure.ac): Require gettext infrastructure
58487         from version 0.16.1.
58488
58489 2007-03-02  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/linkedhash-list-tests (Depends-on): Add progname.
58492         * tests/test-linkedhash_list.c: Include progname.h.
58493         (main): Call set_program_name.
58494
58495         * modules/carray-list-tests (Depends-on): Add progname.
58496         * tests/test-carray_list.c: Include progname.h.
58497         (main): Call set_program_name.
58498
58499         * modules/avltreehash-list-tests (Depends-on): Add progname.
58500         * tests/test-avltreehash_list.c: Include progname.h.
58501         (main): Call set_program_name.
58502
58503         * modules/avltree-oset-tests (Depends-on): Add progname.
58504         * tests/test-avltree_oset.c: Include progname.h.
58505         (main): Call set_program_name.
58506
58507         * modules/avltree-list-tests (Depends-on): Add progname.
58508         * tests/test-avltree_list.c: Include progname.h.
58509         (main): Call set_program_name.
58510
58511         * modules/array-oset-tests (Depends-on): Add progname.
58512         * tests/test-array_oset.c: Include progname.h.
58513         (main): Call set_program_name.
58514
58515         * modules/array-list-tests (Depends-on): Add progname.
58516         * tests/test-array_list.c: Include progname.h.
58517         (main): Call set_program_name.
58518
58519         * modules/argp-tests (Depends-on): Add progname.
58520         * tests/test-argp.c: Include argp.h first. Include progname.h.
58521         (main): Call set_program_name.
58522
58523 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * doc/gnulib-tool.texi (Initial import): Reword description of
58526         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58527         limited effect even if defined after the first system include.
58528
58529 2007-03-01  Bruno Haible  <bruno@clisp.org>
58530
58531         * build-aux/config.libpath: Update to libtool-1.5.22.
58532         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58533
58534 2007-03-01  Bruno Haible  <bruno@clisp.org>
58535
58536         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58537         foo_CFLAGS.
58538         Reported by Ralf Wildenhues.
58539
58540 2007-03-01  Bruno Haible  <bruno@clisp.org>
58541
58542         * build-aux/install-reloc: Remove object files left over by some
58543         compilers.
58544         Reported by Ralf Wildenhues.
58545
58546 2007-03-01  Bruno Haible  <bruno@clisp.org>
58547
58548         * build-aux/install-reloc: Break long lines.
58549
58550 2007-03-01  Bruno Haible  <bruno@clisp.org>
58551
58552         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58553         Reported by Ralf Wildenhues.
58554
58555 2007-03-01  Bruno Haible  <bruno@clisp.org>
58556
58557         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58558         include ordering constraints.
58559
58560 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58561
58562         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58564         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58565         as another example.
58566         * lib/time_.h: Fix misspelling.
58567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58568         Require gl_HEADER_TIME_H_DEFAULTS.
58569         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58570         * m4/time_r.m4 (gl_TIME_R): Likewise.
58571         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58572
58573 2007-03-01  Bruno Haible  <bruno@clisp.org>
58574
58575         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58576         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58577
58578 2007-03-01  Jim Meyering  <jim@meyering.net>
58579
58580         * modules/xreadlink (Maintainer): Add my name.
58581         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58582
58583 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58584             Bruno Haible  <bruno@clisp.org>
58585
58586         * build-aux/install-reloc: Compile also c-ctype.c.
58587         * build-aux/relocatable.sh.in: New file.
58588         * doc/relocatable.texi: New file.
58589         * doc/relocatable-maint.texi: New file.
58590         * doc/gnulib.texi: Include relocatable-maint.texi.
58591         * lib/progreloc.c: Include unistd.h unconditionally.
58592         * lib/relocwrapper.c: Include unistd.h unconditionally.
58593         Include c-ctype.h.
58594         (add_dotbin): Use c_tolower.
58595         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58596         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58597         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58598         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58599         to m4/relocatable-lib.m4.
58600         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58601         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58602         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58603         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58604         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58605         * modules/relocatable: New file.
58606         * modules/relocatable-lib: New file.
58607         * modules/relocatable-script: New file.
58608
58609 2007-02-28  Bruno Haible  <bruno@clisp.org>
58610
58611         Import --enable-relocatable infrastructure.
58612         * build-aux/config.libpath: New file, from GNU gettext.
58613         * build-aux/install-reloc: New file, from GNU gettext.
58614         * build-aux/reloc-ldflags: New file, from GNU gettext.
58615         * lib/relocatable.h: New file, from GNU gettext.
58616         * lib/relocatable.c: New file, from GNU gettext.
58617         * lib/relocwrapper.c: New file, from GNU gettext.
58618         * m4/relocatable.m4: New file, from GNU gettext.
58619
58620 2007-02-28  Bruno Haible  <bruno@clisp.org>
58621
58622         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58623
58624         * modules/xreadlink: New file, from GNU gettext with modifications.
58625         * lib/xreadlink.c: New file, from GNU gettext.
58626         * lib/xreadlink.h: Add comments.
58627         (xreadlink): New declaration.
58628
58629         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58630         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58631         lib/xreadlink-with-size.c.
58632         (configure.ac): Remove gl_XREADLINK invocation.
58633         (Makefile.am): Augment lib_SOURCES.
58634         * m4/xreadlink.m4: Remove file.
58635         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58636         (xreadlink_with_size): Renamed from xreadink.
58637         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58638         * modules/canonicalize (Depends-on): Replace xreadlink with
58639         xreadlink-with-size.
58640         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58641
58642 2007-02-25  Jim Meyering  <jim@meyering.net>
58643
58644         * build-aux/announce-gen: When complaining about excess arguments,
58645         list them.
58646
58647 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * README: Document signed integer overflow situation more
58650         accurately.
58651
58652 2007-02-25  Bruno Haible  <bruno@clisp.org>
58653
58654         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58655         'a' or 'A' conversion.
58656
58657 2007-02-25  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/filename: Renamed from modules/pathname.
58660         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58661         lib/concatpath.c with lib/concat-filename.c.
58662         (Makefile.am): Update.
58663         (Include): Replace pathname.h with filename.h.
58664         * lib/filename.h: Renamed from lib/pathname.h.
58665         (concatenated_filename): Renamed from concatenated_pathname.
58666         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58667         (concatenated_filename): Renamed from concatenated_pathname.
58668         * lib/findprog.c: Include filename.h instead of pathname.h.
58669         (find_in_path): Update.
58670         * lib/javacomp.c: Include filename.h instead of pathname.h.
58671         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58672         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58673         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58674         is_oldgcj_14_13_usable, is_javac_usable): Update.
58675         * lib/javaexec.c: Include filename.h instead of pathname.h.
58676         (execute_java_class): Update.
58677         * modules/findprog: Update.
58678         * modules/javacomp: Update.
58679         * modules/javaexec: Update.
58680         * MODULES.html.sh (File system functions): Add 'filename', remove
58681         'pathname'.
58682
58683 2007-02-25  Bruno Haible  <bruno@clisp.org>
58684
58685         * modules/printf-frexpl-tests: New file.
58686         * tests/test-printf-frexpl.c: New file.
58687
58688         * modules/printf-frexpl: New file.
58689         * lib/printf-frexpl.h: New file.
58690         * lib/printf-frexpl.c: New file.
58691         * m4/printf-frexpl.m4: New file.
58692
58693 2007-02-25  Bruno Haible  <bruno@clisp.org>
58694
58695         * modules/printf-frexp-tests: New file.
58696         * tests/test-printf-frexp.c: New file.
58697
58698         * modules/printf-frexp: New file.
58699         * lib/printf-frexp.h: New file.
58700         * lib/printf-frexp.c: New file.
58701         * m4/printf-frexp.m4: New file.
58702
58703 2007-02-25  Bruno Haible  <bruno@clisp.org>
58704
58705         Assume automake >= 1.10 for the tests.
58706         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58707         * modules/arctwo-tests: Likewise.
58708         * modules/argp-tests: Likewise.
58709         * modules/avltree-list-tests: Likewise.
58710         * modules/avltree-oset-tests: Likewise.
58711         * modules/avltreehash-list-tests: Likewise.
58712         * modules/carray-list-tests: Likewise.
58713         * modules/crc-tests: Likewise.
58714         * modules/des-tests: Likewise.
58715         * modules/gc-arcfour-tests: Likewise.
58716         * modules/gc-arctwo-tests: Likewise.
58717         * modules/gc-des-tests: Likewise.
58718         * modules/gc-hmac-md5-tests: Likewise.
58719         * modules/gc-hmac-sha1-tests: Likewise.
58720         * modules/gc-md2-tests: Likewise.
58721         * modules/gc-md4-tests: Likewise.
58722         * modules/gc-md5-tests: Likewise.
58723         * modules/gc-pbkdf2-sha1-tests: Likewise.
58724         * modules/gc-rijndael-tests: Likewise.
58725         * modules/gc-sha1-tests: Likewise.
58726         * modules/gc-tests: Likewise.
58727         * modules/getaddrinfo-tests: Likewise.
58728         * modules/hmac-md5-tests: Likewise.
58729         * modules/hmac-sha1-tests: Likewise.
58730         * modules/linked-list-tests: Likewise.
58731         * modules/linkedhash-list-tests: Likewise.
58732         * modules/lock-tests: Likewise.
58733         * modules/md2-tests: Likewise.
58734         * modules/md4-tests: Likewise.
58735         * modules/md5-tests: Likewise.
58736         * modules/rbtree-list-tests: Likewise.
58737         * modules/rbtree-oset-tests: Likewise.
58738         * modules/rbtreehash-list-tests: Likewise.
58739         * modules/read-file-tests: Likewise.
58740         * modules/rijndael-tests: Likewise.
58741         * modules/stdint-tests: Likewise.
58742         * modules/tls-tests: Likewise.
58743
58744 2007-02-24  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58747         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58748         function; instead check whether isnan with a double argument links.
58749         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58750         function; instead check whether isnan with a 'long double' argument
58751         links.
58752         Reported by Eric Blake <ebb9@byu.net>.
58753
58754 2007-02-24  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58757         defined.
58758         * lib/isnanl.c: Remove all code. Just include isnan.c.
58759         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58760
58761 2007-02-25  Jim Meyering  <jim@meyering.net>
58762
58763         Avoid conflicting types for 'unsetenv' on FreeBSD.
58764         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58765         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58766         in stdlib.h.
58767
58768 2007-02-24  Bruno Haible  <bruno@clisp.org>
58769
58770         * modules/isnanl-nolibm-tests: New file.
58771         * tests/test-isnanl.c: New file.
58772
58773         * modules/isnanl-nolibm: New file.
58774         * lib/isnanl.h: New file.
58775         * lib/isnanl.c: New file.
58776         * m4/isnanl.m4: New file.
58777
58778 2007-02-24  Bruno Haible  <bruno@clisp.org>
58779
58780         * modules/isnan-nolibm-tests: New file.
58781         * tests/test-isnan.c: New file.
58782
58783         * modules/isnan-nolibm: New file.
58784         * lib/isnan.h: New file.
58785         * lib/isnan.c: New file.
58786         * m4/isnan.m4: New file.
58787
58788 2007-02-24  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58791         assume that an exponent fits in 20 bits.
58792
58793 2007-02-24  Jim Meyering  <jim@meyering.net>
58794
58795         * m4/regex.m4: Update the description of the configure-time option,
58796         --without-included-regex, to state accurately what the defaults are,
58797         and perhaps to give people an idea why using this option is risky.
58798
58799 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58802         loops on small arguments.  This attempts to avoid the problem
58803         Bruno Haible reported for AIX 4.3.2 in
58804         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58805
58806 2007-02-23  Bruno Haible  <bruno@clisp.org>
58807
58808         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58809         Needed for help2man.
58810
58811 2007-02-23  Karl Berry  <karl@gnu.org>
58812
58813         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58814         exists, foo.h should be cvs-ignored, not committed.
58815
58816 2007-02-23  Eric Blake  <ebb9@byu.net>
58817
58818         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58819         * lib/stat-time.h (includes): Likewise.
58820         * lib/utimecmp.c (includes): Likewise.
58821         * lib/utimens.h (includes): Likewise.
58822         * lib/getdate.y (includes): Also include "timespec.h" for use
58823         internal to the module.
58824         * modules/utimens (Depends-on): Revert yesterday's patch.
58825         * modules/nanosleep (Depends-on): Add missing dependency.
58826
58827 2007-02-22  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/glob.c: Don't include getlogin_r.h.
58830
58831 2007-02-22  Jim Meyering  <jim@meyering.net>
58832
58833         * modules/utimens (Depends-on): Add timespec, required for
58834         utimens.h's inclusion of timespec.h.
58835
58836 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58839         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58840         Schwab in
58841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58842         I'll try to think of a better way to fix the Solaris problem.
58843
58844         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58845         like glibc; on Solaris 10, it fails with errno == EINVAL.
58846         POSIX says the behavior is unspecified if the first argument is NULL,
58847         so play it safe and never pass NULL to the system getcwd.
58848
58849 2007-02-21  Jim Meyering  <jim@meyering.net>
58850
58851         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58852         of gettimeofday.  It would conflict with the one now always
58853         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58854         an IRIX 6.5 build failure.
58855
58856 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         Minor fixups to port to Solaris 10 with Sun C 5.8.
58859         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58860         * modules/getcwd (Depends-on): Add dirfd.
58861         * lib/putenv.c (putenv): #undef it.
58862         (rpl_putenv): New decl.
58863         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58864
58865 2007-02-20  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/stdio-tests: New file.
58868         * tests/test-stdio.c: New file.
58869
58870         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58871         (Depends-on): Add stdio.
58872         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58873         (Include): Use <stdio.h> instead of vsnprintf.h.
58874         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58875         HAVE_DECL_VSNPRINTF.
58876         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58877
58878         * modules/snprintf (Files): Remove lib/snprintf.h.
58879         (Depends-on): Add stdio.
58880         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58881         (Include): Use <stdio.h> instead of snprintf.h.
58882         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58883         HAVE_DECL_SNPRINTF.
58884         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58885         * lib/getaddrinfo.c: Likewise.
58886
58887         * modules/stdio: New file.
58888         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58889         * lib/snprintf.h: Remove file.
58890         * lib/vsnprintf.h: Remove file.
58891         * lib/.cppi-disable: Remove snprintf.h.
58892         * m4/stdio_h.m4: New file.
58893         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58894
58895 2007-02-20  Jim Meyering  <jim@meyering.net>
58896
58897         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58898         used by e.g., mingw.  From Bruno Haible.
58899
58900 2007-02-19  Bruno Haible  <bruno@clisp.org>
58901
58902         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58903         warnings.
58904         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58905
58906 2007-02-19  Bruno Haible  <bruno@clisp.org>
58907
58908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58909         from mingw users.
58910
58911 2007-02-19  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58914         warnings.
58915         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58916
58917 2007-02-19  Jim Meyering  <jim@meyering.net>
58918
58919         Don't use FD after a successful "fdopendir (fd)".
58920         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58921         Reset it by calling dirfd on the just-obtained DIR*.
58922
58923         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58924         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58925
58926 2007-02-18  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/readlink.c: Include <unistd.h>.
58929         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58930         HAVE_READLINK.
58931         * modules/readlink (Depends-on): Add unistd.
58932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58933         (Include): Add <unistd.h>.
58934
58935         * lib/getlogin_r.h: Remove file.
58936         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58937         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58938         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58939         HAVE_DECL_GETLOGIN_R.
58940         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58941         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58942         (Include): Use <unistd.h> instead of getlogin_r.h.
58943
58944         * lib/getcwd.h: Remove file.
58945         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58946         * lib/xgetcwd.c: Likewise.
58947         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58948         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58949         * modules/getcwd (Files): Remove lib/getcwd.h.
58950         (Depends-on): Add unistd.
58951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58952         (Include): Use <unistd.h> instad of getcwd.h.
58953
58954         * lib/ftruncate.c: Include <unistd.h> first.
58955         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58956         Set HAVE_FTRUNCATE.
58957         * modules/ftruncate (Depends-on): Add unistd.
58958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58959
58960         * lib/fchdir.c: Include <unistd.h> first.
58961         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58963         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58964         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58965         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58966
58967         * lib/dup2.c: Include <unistd.h> first.
58968         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58969         HAVE_DUP2.
58970         * modules/dup2 (Depends-on): Add unistd.
58971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58972
58973         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58974         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58975         REPLACE_CHOWN. Don't define chown as a macro here.
58976         * modules/chown (Depends-on): Add unistd.
58977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58978
58979         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58980         Add definition for GL_LINK_WARNING.
58981         (chown, dup2): New declarations.
58982         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58983         link warning.
58984         (ftruncate): New declaration.
58985         (getcwd): New declaration, taken from old getcwd.h.
58986         (getlogin_r): New declaration, taken from old getlogin_r.h.
58987         (readlink): New declaration.
58988         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58989         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58990         (gl_PREREQ_UNISTD): Remove macro.
58991         (gl_UNISTD_MODULE_INDICATOR): New macro.
58992         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58993         many new variables. Don't set UNISTD_H.
58994         * modules/unistd (Description): Change.
58995         (Depends-on): Add link-warning.
58996         (configure.ac): Update.
58997         (Makefile.am): Create unistd.h always. Substitute many new variables
58998         into it.
58999
59000 2007-02-18  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59003         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59004         HAVE_GETSUBOPT.
59005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59006         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59007         * lib/getsubopt.h: Remove file.
59008         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59009         (Depends-on): Add stdlib.
59010         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59011         (Includes): Use <stdlib.h> instead of getsubopt.h.
59012         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59013         Set HAVE_GETSUBOPT.
59014         * lib/getsubopt.c: Don't include getsubopt.h.
59015
59016 2007-02-18  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/fchdir (Depends-on): Add dup2.
59019
59020 2007-02-18  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/stdlib_.h: Handle glibc's special invocation convention
59023         specially.
59024
59025 2007-02-18  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/stdlib-tests: New file.
59028         * tests/test-stdlib.c: New file.
59029
59030         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59031         (Depends-on): Add stdlib.
59032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59033         (Includes): Use <stdlib.h> instead of mkstemp.h.
59034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59035         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59036         * lib/mkstemp.c: Don't include mkstemp.h.
59037         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59038         * lib/stdlib--.h: Don't include mkstemp.h.
59039
59040         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59041         (Depends-on): Add stdlib.
59042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59043         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59044         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59045         HAVE_MKDTEMP.
59046         * lib/mkdtemp.c: Don't include mkdtemp.h.
59047         * lib/clean-temp.c: Don't include mkdtemp.h.
59048
59049         * modules/exit (Files): Remove lib/exit.h.
59050         (Depends-on): Add stdlib.
59051         (Makefile.am): Remove lib_SOURCES.
59052         (Include): Use <stdlib.h> instead of exit.h.
59053         * lib/argmatch.c: Don't include exit.h.
59054         * lib/execute.c: Likewise.
59055         * lib/pagealign_alloc.c: Likewise.
59056         * lib/pipe.c: Likewise.
59057         * lib/wait-process.c: Likewise.
59058         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59059         * lib/exitfail.c: Likewise.
59060         * lib/savewd.c: Likewise.
59061         * lib/xsetenv.c: Likewise.
59062
59063         * modules/stdlib: New file.
59064         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59065         and extra comments about mkstemp().
59066         * lib/exit.h: Remove file.
59067         * lib/mkdtemp.h: Remove file.
59068         * lib/mkstemp.h: Remove file.
59069         * m4/stdlib_h.m4: New file.
59070         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59071
59072 2007-02-18  Bruno Haible  <bruno@clisp.org>
59073
59074         * modules/math-tests: New file.
59075         * tests/test-math.c: New file.
59076
59077         * modules/math: New file.
59078         * modules/mathl (Files): Remove lib/mathl.h.
59079         (Depends-on): Add math.
59080         (Makefile.am): Don't mention mathl.h.
59081         (Include): Use <math.h> instead of mathl.h.
59082         * lib/math_.h: New file.
59083         * lib/mathl.h: Remove file.
59084         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59085         mathl.h.
59086         * lib/asinl.c: Likewise.
59087         * lib/atanl.c: Likewise.
59088         * lib/ceill.c: Likewise.
59089         * lib/cosl.c: Likewise.
59090         * lib/expl.c: Likewise.
59091         * lib/floorl.c: Likewise.
59092         * lib/frexpl.c: Likewise.
59093         * lib/ldexpl.c: Likewise.
59094         * lib/logl.c: Likewise.
59095         * lib/sincosl.c: Likewise.
59096         * lib/sinl.c: Likewise.
59097         * lib/sqrtl.c: Likewise.
59098         * lib/tanl.c: Likewise.
59099         * lib/trigl.c: Likewise.
59100         * m4/math_h.m4: New file.
59101         * MODULES.html.sh (Mathematics): Add math.
59102
59103 2007-02-17  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/wctype-tests: New file.
59106         * tests/test-wctype.c: New file.
59107
59108         * modules/wchar-tests: New file.
59109         * tests/test-wchar.c: New file.
59110
59111         * modules/unistd-tests: New file.
59112         * tests/test-unistd.c: New file.
59113
59114         * modules/time-tests: New file.
59115         * tests/test-time.c: New file.
59116
59117         * modules/sysexits-tests: New file.
59118         * tests/test-sysexits.c: New file.
59119
59120         * modules/sys_time-tests: New file.
59121         * tests/test-sys_time.c: New file.
59122
59123         * modules/sys_stat-tests: New file.
59124         * tests/test-sys_stat.c: New file.
59125
59126         * modules/sys_socket-tests: New file.
59127         * tests/test-sys_socket.c: New file.
59128
59129         * modules/sys_select-tests: New file.
59130         * tests/test-sys_select.c: New file.
59131
59132         * modules/string-tests: New file.
59133         * tests/test-string.c: New file.
59134
59135         * modules/stdbool-tests: New file.
59136         * tests/test-stdbool.c: New file.
59137
59138         * modules/netinet_in-tests: New file.
59139         * tests/test-netinet_in.c: New file.
59140
59141         * modules/inttypes-tests: New file.
59142         * tests/test-inttypes.c: New file.
59143
59144         * modules/fcntl-tests: New file.
59145         * tests/test-fcntl.c: New file.
59146
59147         * modules/byteswap-tests: New file.
59148         * tests/test-byteswap.c: New file.
59149
59150         * modules/arpa_inet-tests: New file.
59151         * tests/test-arpa_inet.c: New file.
59152
59153 2007-02-17  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59156         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59157         if the corresponding module is not enabled. Emit link warnings if
59158         the function is used nevertheless.
59159         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59160         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59161         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59162         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59163         * modules/inttypes (Depends-on): Add link-warning.
59164         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59165         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59166         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59167         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59168         * modules/imaxdiv (configure.ac): Likewise.
59169         * modules/strtoimax (configure.ac): Likewise.
59170         * modules/strtoumax (configure.ac): Likewise.
59171
59172 2007-02-17  Bruno Haible  <bruno@clisp.org>
59173
59174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59175         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59176         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59177         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59178
59179 2007-02-17  Bruno Haible  <bruno@clisp.org>
59180
59181         * modules/link-warning: New file.
59182         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59183         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59184         * modules/string (Depends-on): Add link-warning.
59185         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59186         string.h.
59187         * MODULES.html.sh (Support for building libraries and executables): Add
59188         link-warning.
59189
59190 2007-02-17  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59193         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59194         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59195         long lines.
59196
59197 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59198             Bruno Haible  <bruno@clisp.org>
59199
59200         * modules/tmpfile: New file.
59201         * lib/tmpfile.c: New file.
59202         * m4/tmpfile.m4: New file.
59203         * MODULES.html.sh (func_all_modules): New section "Input/output".
59204
59205 2007-02-15  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59208         (supports_delete_on_close): New function.
59209         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59210
59211 2007-02-14  Bruno Haible  <bruno@clisp.org>
59212
59213         * modules/mbspcasecmp-tests: New file.
59214         * tests/test-mbspcasecmp.sh: New file.
59215         * tests/test-mbspcasecmp.c: New file.
59216
59217         New module mbspcasecmp.
59218         * modules/mbspcasecmp: New file.
59219         * lib/mbspcasecmp.c: New file.
59220         * lib/string_.h (strncasecmp): Change warning message.
59221         (mbspcasecmp): New declaration.
59222         * m4/mbspcasecmp.m4: New file.
59223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59224         GNULIB_MBSPCASECMP.
59225         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59226         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59227
59228 2007-02-14  Bruno Haible  <bruno@clisp.org>
59229
59230         * modules/mbsncasecmp-tests: New file.
59231         * tests/test-mbsncasecmp.sh: New file.
59232         * tests/test-mbsncasecmp.c: New file.
59233
59234         New module mbsncasecmp.
59235         * modules/mbsncasecmp: New file.
59236         * lib/mbsncasecmp.c: New file.
59237         * lib/string_.h (mbsncasecmp): New declaration.
59238         * m4/mbsncasecmp.m4: New file.
59239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59240         GNULIB_MBSNCASECMP.
59241         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59242         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59243
59244 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59247         Verify that it doesn't overlap with our flags.
59248         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59249         do not have the desired effect in multibyte locales; instead, use
59250         mbscasecmp.
59251         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59252         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59253         we don't require GNU fnmatch ourselves (if our users require it, they
59254         should do so explicitly).
59255
59256         Fix regex code so it doesn't rely on strcasecmp.
59257         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59258         Otherwise, include gnulib's langinfo.h.
59259         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59260         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59261         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59262         * modules/regex (FILES): Remove m4/codeset.m4.
59263         (Depends-on): Add localcharset.  Remove strcase.
59264
59265 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59266
59267         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59268         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59269
59270 2007-02-13  Bruno Haible  <bruno@clisp.org>
59271
59272         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59274
59275 2007-02-12  Bruno Haible  <bruno@clisp.org>
59276
59277         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59278         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59279         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59280         time warning rather than a link error.
59281
59282 2007-02-12  Bruno Haible  <bruno@clisp.org>
59283
59284         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59287
59288 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59289
59290         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59291         args, not 2.
59292
59293 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         New module 'time', so that apps can include <time.h> as per
59296         POSIX and GNU instead of separate include files like time_r.h
59297         and timegm.h.  This implementation tries out a simpler approach
59298         for replacing decls in standard include files (as compared to
59299         the string module), somewhat as an experiment.
59300
59301         * config/srclist.txt: Comment out mktime.c for now.
59302         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59303         since it doesn't apply any more.  Use generic wording instead.
59304         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59305         'time'.
59306         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59307         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59308         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59309         Don't include <sys/types.h>; no longer needed since we assume C89.
59310         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59311         * lib/strftime.c: Likewise.
59312         * lib/time_r.c: Likewise.
59313         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59314         * lib/nanosleep.c: Include <time.h> first, to check interface.
59315         * lib/strptime.c: Likewise.
59316         * lib/time_r.c: Likewise.
59317         * lib/timegm.c: Likewise.
59318         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59319         needed.
59320         * lib/timegm.c: Don't include timegm.h; no longer needed.
59321         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59322         time.h now handles any problems in that area.
59323         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59324         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59325         that time.h defines struct timespec.
59326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59327         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59328         handles that.
59329         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59330         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59331         needed.  Set REPLACE_LOCALTIME.
59332         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59333         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59334         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59335         nanosleep; time_h.m4 now does that.  Don't require
59336         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59337         module handles this now.
59338         * modules/getdate (Depends-on): Remove timespec.  Add time.
59339         * modules/nanosleep (Depends-on): Likewise.
59340         * modules/stat-time (Depends-on): Likewise.
59341         * modules/nanosleep (Include): Include time.h, not timespec.h.
59342         * modules/strptime (Files): Remove lib/strptime.h.
59343         (Depends-on): Add extensions, time.
59344         (Include): Include time.h, not strptime.h.
59345         * modules/time_r (Files): Remove lib/time_r.h.
59346         (Depends-on): Add time.
59347         (Include): Include time.h, not time_r.h.
59348         * modules/timegm: Likewise.
59349         * modules/timespec (Description): Now does timespec-related decls
59350         of our own, instead of struct timespec itself.
59351         (Depends-on): Add time; remove extensions.
59352         (Maintainer): Add self.
59353         * modules/utimecmp (Depends-on): Add time; remove timespec.
59354         * modules/utimens (Depends-on): Likewise.
59355         * modules/xnanosleep (Depends-on): Likewise.
59356
59357 2007-02-11  Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/c-strstr.c: Include allocsa.h.
59360         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59361         * lib/c-strcasestr.c: Include allocsa.h.
59362         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59363         * lib/strcasestr.c: Include allocsa.h.
59364         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59365         * lib/mbsstr.c: Include allocsa.h.
59366         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59367         allocsa/freesa instead of malloc/free.
59368         * lib/mbscasestr.c: Include allocsa.h.
59369         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59370         allocsa/freesa instead of malloc/free.
59371         * modules/c-strstr (Depends-on): Add allocsa.
59372         * modules/c-strcasestr (Depends-on): Likewise.
59373         * modules/strcasestr (Depends-on): Likewise.
59374         * modules/mbsstr (Depends-on): Likewise.
59375         * modules/mbscasestr (Depends-on): Likewise.
59376
59377 2007-02-11  Bruno Haible  <bruno@clisp.org>
59378
59379         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59380
59381         * modules/mbsspn-tests: New file.
59382         * tests/test-mbsspn.sh: New file.
59383         * tests/test-mbsspn.c: New file.
59384
59385 2007-02-11  Bruno Haible  <bruno@clisp.org>
59386
59387         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59388
59389         * modules/mbspbrk-tests: New file.
59390         * tests/test-mbspbrk.sh: New file.
59391         * tests/test-mbspbrk.c: New file.
59392
59393 2007-02-11  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59396         unneeded cast.
59397
59398         * modules/mbscspn-tests: New file.
59399         * tests/test-mbscspn.sh: New file.
59400         * tests/test-mbscspn.c: New file.
59401
59402 2007-02-11  Bruno Haible  <bruno@clisp.org>
59403
59404         * modules/mbscasecmp-tests: New file.
59405         * tests/test-mbscasecmp.sh: New file.
59406         * tests/test-mbscasecmp.c: New file.
59407
59408 2007-02-11  Bruno Haible  <bruno@clisp.org>
59409
59410         Ensure O(n) worst-case complexity of mbscasestr.
59411         * lib/mbscasestr.c: Include stdbool.h.
59412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59413         functions.
59414         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59415         the bookkeeping indicates that it's worth it.
59416         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59417
59418         * modules/mbscasestr-tests: New file.
59419         * tests/test-mbscasestr1.c: New file.
59420         * tests/test-mbscasestr2.sh: New file.
59421         * tests/test-mbscasestr2.c: New file.
59422         * tests/test-mbscasestr3.sh: New file.
59423         * tests/test-mbscasestr3.c: New file.
59424         * tests/test-mbscasestr4.sh: New file.
59425         * tests/test-mbscasestr4.c: New file.
59426         * m4/locale-tr.m4: New file.
59427
59428 2007-02-11  Bruno Haible  <bruno@clisp.org>
59429
59430         Ensure O(n) worst-case complexity of mbsstr.
59431         * lib/mbsstr.c: Include stdbool.h.
59432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59433         functions.
59434         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59435         bookkeeping indicates that it's worth it.
59436         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59437
59438         * modules/mbsstr-tests: New file.
59439         * tests/test-mbsstr1.c: New file.
59440         * tests/test-mbsstr2.sh: New file.
59441         * tests/test-mbsstr2.c: New file.
59442         * tests/test-mbsstr3.sh: New file.
59443         * tests/test-mbsstr3.c: New file.
59444         * m4/locale-fr.m4: New file.
59445
59446 2007-02-11  Bruno Haible  <bruno@clisp.org>
59447
59448         * lib/mbsrchr.c (mbsrchr): Fix bug.
59449
59450         * modules/mbsrchr-tests: New file.
59451         * tests/test-mbsrchr.sh: New file.
59452         * tests/test-mbsrchr.c: New file.
59453
59454 2007-02-11  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/mbschr.c (mbschr): Fix bug.
59457
59458         * modules/mbschr-tests: New file.
59459         * tests/test-mbschr.sh: New file.
59460         * tests/test-mbschr.c: New file.
59461         * m4/locale-zh.m4: New file.
59462
59463 2007-02-11  Bruno Haible  <bruno@clisp.org>
59464
59465         Support for copying multibyte string iterators.
59466         * lib/mbiter.h: Include <string.h>.
59467         (mbiter_multi_copy): New function.
59468         (mbi_copy): New macro.
59469         * lib/mbuiter.h: Include <string.h>.
59470         (mbuiter_multi_copy): New function.
59471         (mbui_copy): New macro.
59472
59473 2007-02-11  Bruno Haible  <bruno@clisp.org>
59474
59475         New module mbslen.
59476         * modules/mbslen: New file.
59477         * lib/mbslen.c: New file.
59478         * lib/string_.h (mbslen): New declaration.
59479         * m4/mbslen.m4: New file.
59480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59481         GNULIB_MBSLEN.
59482         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59483         * MODULES.html.sh (Internationalization functions): Add mbslen.
59484
59485 2007-02-11  Bruno Haible  <bruno@clisp.org>
59486
59487         Ensure O(n) worst-case complexity of strcasestr substitute.
59488         * lib/strcasestr.c: Include stdbool.h.
59489         (knuth_morris_pratt): New function.
59490         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59491         bookkeeping indicates that it's worth it.
59492         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59493
59494         * modules/strcasestr-tests: New file.
59495         * tests/test-strcasestr.c: New file.
59496
59497 2007-02-11  Bruno Haible  <bruno@clisp.org>
59498
59499         Ensure O(n) worst-case complexity of c_strcasestr.
59500         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59501         (knuth_morris_pratt): New function.
59502         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59503         the bookkeeping indicates that it's worth it.
59504         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59505
59506         * modules/c-strcasestr-tests: New file.
59507         * tests/test-c-strcasestr.c: New file.
59508
59509 2007-02-11  Bruno Haible  <bruno@clisp.org>
59510
59511         Ensure O(n) worst-case complexity of c_strstr.
59512         * lib/c-strstr.c: Include stdbool.h, string.h.
59513         (knuth_morris_pratt): New function.
59514         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59515         bookkeeping indicates that it's worth it.
59516         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59517
59518         * lib/c-strstr.c: Complete rewrite for maintainability.
59519
59520         * modules/c-strstr-tests: New file.
59521         * tests/test-c-strstr.c: New file.
59522
59523 2007-02-11  Bruno Haible  <bruno@clisp.org>
59524
59525         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59526         5.2.1 and earlier, whereby \055 was treated just like the range
59527         delimiter '-'.
59528         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59529
59530 2007-02-08  Bruno Haible  <bruno@clisp.org>
59531
59532         * modules/regex (Depends-on): Add stdbool.
59533         Reported by Dalibor Topic <robilad@kaffe.org>.
59534
59535 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59538         Prefer returning from main to exiting from it.
59539         Remove unnecessary parens after sizeof.
59540
59541 2007-02-05  Bruno Haible  <bruno@clisp.org>
59542
59543         New module mbssep.
59544         * modules/mbssep: New file.
59545         * lib/mbssep.c: New file.
59546         * lib/string_.h (strsep): Add a conditional link warning.
59547         (mbssep): New declaration.
59548         * m4/mbssep.m4: New file.
59549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59550         GNULIB_MBSSEP.
59551         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59552         * MODULES.html.sh (Internationalization functions): Add mbssep.
59553
59554 2007-02-05  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59557         Optimize search in case of 1 delimiter.
59558
59559 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59560
59561         * lib/acl.h: Include sys/types.h before sys/acl.h.
59562
59563 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59564
59565         Merge upstream fix for glibc bugzilla #3957:
59566
59567         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59568
59569         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59570         bit for RE_HAT_LISTS_NOT_NEWLINE.
59571         (build_charclass_op): Remove bogus comment.
59572
59573 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59574
59575         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59576
59577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59580         * lib/memmem.c [!defined _LIBC]: Include config.h.
59581
59582 2007-02-04  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59585         warning message.
59586
59587 2007-02-04  Bruno Haible  <bruno@clisp.org>
59588
59589         New module mbstok_r.
59590         * modules/mbstok_r: New file.
59591         * lib/mbstok_r.c: New file.
59592         * lib/string_.h (strtok_r): Change argument names to match the
59593         comments. Add a conditional link warning.
59594         (mbstok_r): New declaration.
59595         * m4/mbstok_r.m4: New file.
59596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59597         GNULIB_MBSTOK_R.
59598         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59599         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59600
59601 2007-02-04  Bruno Haible  <bruno@clisp.org>
59602
59603         New module mbsspn.
59604         * modules/mbsspn: New file.
59605         * lib/mbsspn.c: New file.
59606         * lib/string_.h (strspn): Add a conditional link warning.
59607         (mbsspn): New declaration.
59608         * m4/mbsspn.m4: New file.
59609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59610         GNULIB_MBSSPN.
59611         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59612         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59613
59614 2007-02-04  Bruno Haible  <bruno@clisp.org>
59615
59616         New module mbspbrk.
59617         * modules/mbspbrk: New file.
59618         * lib/mbspbrk.c: New file.
59619         * lib/string_.h (strpbrk): Add a conditional link warning.
59620         (mbspbrk): New declaration.
59621         * m4/mbspbrk.m4: New file.
59622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59623         GNULIB_MBSPBRK.
59624         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59625         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59626
59627 2007-02-04  Bruno Haible  <bruno@clisp.org>
59628
59629         New module mbscspn.
59630         * modules/mbscspn: New file.
59631         * lib/mbscspn.c: New file.
59632         * lib/string_.h (strcspn): Add a conditional link warning.
59633         (mbscspn): New declaration.
59634         * m4/mbscspn.m4: New file.
59635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59636         GNULIB_MBSCSPN.
59637         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59638         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59639
59640 2007-02-04  Bruno Haible  <bruno@clisp.org>
59641
59642         New module mbscasestr, reduced goal of strcasestr.
59643         * modules/mbscasestr: New file.
59644         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59645         (mbscasestr): Renamed from strcasestr.
59646         * lib/strcasestr.c: Don't include mbuiter.h.
59647         (strcasestr): Remove support for multibyte locales.
59648         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59649         Change the conditional link warning.
59650         (mbscasestr): New declaration.
59651         * m4/mbscasestr.m4: New file.
59652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59653         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59654         REPLACE_STRCASESTR.
59655         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59657         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59658         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59659         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59660         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59661         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59662         (Depends-on): Remove mbuiter.
59663         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59664
59665 2007-02-04  Bruno Haible  <bruno@clisp.org>
59666
59667         Simplify handling of strncasecmp.
59668         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59669         the conditional link warning.
59670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59671         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59672         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59673         * modules/strcase (configure.ac): Don't invoke
59674         gl_STRING_MODULE_INDICATOR.
59675         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59676
59677 2007-02-04  Bruno Haible  <bruno@clisp.org>
59678
59679         New module mbscasecmp, reduced goal of strcasecmp.
59680         * modules/mbscasecmp: New file.
59681         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59682         (mbscasecmp): Renamed from strcasecmp.
59683         * lib/strcasecmp.c: Don't include mbuiter.h.
59684         (strcasecmp): Remove support for multibyte locales.
59685         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59686         Change the conditional link warning.
59687         (mbscasecmp): New declaration.
59688         * m4/mbscasecmp.m4: New file.
59689         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59690         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59691         REPLACE_STRCASECMP.
59692         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59694         GNULIB_MBSCASECMP.
59695         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59696         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59697         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59698         (Depends-on): Remove mbuiter.
59699         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59700
59701 2007-02-04  Bruno Haible  <bruno@clisp.org>
59702
59703         New module mbsstr. Remove module strstr.
59704         * modules/mbsstr: New file.
59705         * modules/strstr: Remove file.
59706         * lib/mbsstr.c: Renamed from lib/strstr.c.
59707         (mbsstr): Renamed from strstr.
59708         * lib/string_.h (strstr): Remove declaration. Change the conditional
59709         link warning.
59710         (mbsstr): New declaration.
59711         * m4/mbsstr.m4: New file.
59712         * m4/strstr.m4: Remove file.
59713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59714         REPLACE_STRSTR.
59715         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59716         Don't initialize GNULIB_STRSTR.
59717         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59718         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59719         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59720         (Support for systems lacking ANSI C 89): Remove strstr.
59721
59722 2007-02-04  Bruno Haible  <bruno@clisp.org>
59723
59724         New module mbsrchr.
59725         * modules/mbsrchr: New file.
59726         * lib/mbsrchr.c: New file.
59727         * lib/string_.h (strrchr): Add a conditional link warning.
59728         (mbsrchr): New declaration.
59729         * m4/mbsrchr.m4: New file.
59730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59731         GNULIB_MBSRCHR.
59732         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59733         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59734
59735 2007-02-04  Bruno Haible  <bruno@clisp.org>
59736
59737         New module mbschr.
59738         * modules/mbschr: New file.
59739         * lib/mbschr.c: New file.
59740         * lib/string_.h (strchr): Add a conditional link warning.
59741         (mbschr): New declaration.
59742         * m4/mbschr.m4: New file.
59743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59744         GNULIB_MBSCHR.
59745         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59746         * MODULES.html.sh (Internationalization functions): Add mbschr.
59747
59748 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59749
59750         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59751
59752         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59753
59754 2007-02-04  Bruno Haible  <bruno@clisp.org>
59755
59756         New module description section 'configure.ac-early'.
59757         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59758         (func_get_autoconf_early_snippet): New function.
59759         (func_import, func_create_testdir): Use it. Remove special cases for
59760         modules 'extensions' and 'lock'.
59761         * modules/extensions (configure.ac-early): Require
59762         gl_USE_SYSTEM_EXTENSIONS.
59763         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59764
59765 2007-02-04  Bruno Haible  <bruno@clisp.org>
59766
59767         Make use of gcj-4.3's -fsource and -ftarget option.
59768         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59769         and if so try the options -fsource and -ftarget.
59770         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59771         source_version, ftarget_option, target_version arguments.
59772         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59773         (is_envjavac_oldgcj_14_14_usable): Renamed from
59774         is_envjavac_gcj_14_14_usable.
59775         (is_envjavac_oldgcj_14_13_usable): Renamed from
59776         is_envjavac_gcj_14_13_usable.
59777         (is_gcj_present): Update.
59778         (is_gcj_43, is_gcj43_usable): New functions.
59779         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59780         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59781         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59782         try the options -fsource and -ftarget.
59783
59784 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59785
59786         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59787         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59788         larger value.
59789
59790 2007-02-03  Jim Meyering  <jim@meyering.net>
59791
59792         Give tools a better chance to allocate space for very large buffers.
59793         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59794
59795         Make pwd and readlink work also when run with an unreadable parent dir
59796         on systems with openat support.
59797         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59798         provided getcwd function, even when we have openat support.
59799         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59800
59801 2007-02-02  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59804         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59805         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59806         portability problems if one of these functions is only used on specific
59807         platforms.
59808         Reported by Paul Eggert.
59809
59810 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59813         is causing more trouble than it's curing.
59814         * lib/regex_internal.h (__mempcpy): Remove.
59815         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59816         (and make the code a tad smaller to boot).
59817         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59818
59819 2007-02-02  Jim Meyering  <jim@meyering.net>
59820
59821         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59822         section, not in the Makefile.am: one.
59823
59824 2007-02-02  Eric Blake  <ebb9@byu.net>
59825
59826         * lib/strchrnul.c: Always include config.h first.
59827
59828         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59829         gnulib strstr is not necessary here.
59830
59831 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59832
59833         * m4/socklen.m4: Fix typo.
59834
59835 2007-02-02  Eric Blake  <ebb9@byu.net>
59836
59837         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59838         * modules/netinet_in (Makefile.am): Likewise.
59839
59840 2007-02-01  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/string_.h (GL_LINK_WARNING): New macro.
59843         (strcasecmp, strstr, strcasestr): If provided by the system,
59844         conditionally define as a macro that leads to a warning instead of to
59845         an error.
59846         (strncasecmp): Conditionally define as a macro that leads to a warning.
59847
59848 2007-02-01  Karl Berry  <karl@gnu.org>
59849
59850         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59851
59852 2007-02-01  Bruno Haible  <bruno@clisp.org>
59853
59854         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59855         renamings.
59856
59857 2007-02-01  Eric Blake  <ebb9@byu.net>
59858
59859         * modules/regex (Depends-on): Revert dependence on mempcpy.
59860         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59861         module's definition of mempcpy.
59862         Reported by Paul Eggert.
59863
59864 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59867         the symbol XYZ before redefining it.  This fixes a problem with
59868         programs that don't use XYZ, when compiled on systems that define
59869         XYZ to something else.
59870
59871 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59874         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59875         writeable to group or other and (2) is intended to have a special
59876         mode bit that is set or cleared.  In such a case, the directory
59877         should be neither group- nor other-writeable until the special
59878         mode bits are right.
59879
59880 2007-01-31  Eric Blake  <ebb9@byu.net>
59881
59882         * modules/mountlist (Depends-on): Add strstr.
59883
59884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59885         bug.
59886         * modules/string (Makefile.am): Remove redundant replacement.
59887         * modules/regex (Depends-on): Add mempcpy.
59888
59889 2007-01-31  Bruno Haible  <bruno@clisp.org>
59890
59891         New module description field 'Link'.
59892         * gnulib-tool (func_usage): Document --extract-link-directive.
59893         (sed_extract_prog): Recognize 'Link' directive.
59894         (func_get_link_directive): New function.
59895         (func_import): Show summary of link directives.
59896         Handle --extract-link-directive option.
59897         * modules/acl (Link): New section.
59898         * modules/clock-time (Link): New section.
59899         * modules/euidaccess (Link): New section.
59900         * modules/gettext (Link): New section.
59901         * modules/iconv (Link): New section.
59902         * modules/lock (Link): New section.
59903         * modules/nanosleep (Link): New section.
59904         * modules/readline (Link): New section.
59905
59906 2007-01-27  Bruno Haible  <bruno@clisp.org>
59907
59908         Enforce the use of gnulib modules for unportable <string.h> functions.
59909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59910         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59911         (gl_HEADER_STRING_H_BODY): Require it.
59912         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59913         the symbol XYZ to one that gives a link error.
59914         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59915         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59916         * modules/mempcpy (configure.ac): Likewise.
59917         * modules/memrchr (configure.ac): Likewise.
59918         * modules/stpcpy (configure.ac): Likewise.
59919         * modules/stpncpy (configure.ac): Likewise.
59920         * modules/strcase (configure.ac): Likewise.
59921         * modules/strcasestr (configure.ac): Likewise.
59922         * modules/strchrnul (configure.ac): Likewise.
59923         * modules/strdup (configure.ac): Likewise.
59924         * modules/strndup (configure.ac): Likewise.
59925         * modules/strnlen (configure.ac): Likewise.
59926         * modules/strpbrk (configure.ac): Likewise.
59927         * modules/strsep (configure.ac): Likewise.
59928         * modules/strstr (configure.ac): Likewise.
59929         * modules/strtok_r (configure.ac): Likewise.
59930
59931 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59932
59933         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59934
59935 2007-01-30  Jim Meyering  <jim@meyering.net>
59936
59937         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59938
59939 2007-01-29  Bruno Haible  <bruno@clisp.org>
59940
59941         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59942         * lib/execute.c: Likewise.
59943         * lib/pipe.c: Likewise.
59944         * lib/printf-args.h: Likewise.
59945         * lib/printf-args.c: Likewise.
59946         * lib/printf-parse.c: Likewise.
59947         * lib/vasnprintf.c: Likewise.
59948
59949 2007-01-29  Eric Blake  <ebb9@byu.net>
59950
59951         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59952         declaration.
59953
59954 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59955
59956         * lib/strptime.h (strptime): Use 'restrict' for args where
59957         POSIX requires this.
59958         * lib/strptime.c (strptime): Likewise.
59959         Change license notice from LGPL to GPL, since gnulib-tool will
59960         change this as needed.
59961         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59962         defined.
59963         Include "strptime.h" first, to check interface.
59964         Do not #undef _LIBC and _NL_CURRENT.
59965         Do not include <stdlib.h>; no longer needed.
59966         Include "time_r.h" and declare ptime_locale_status
59967         only if _LIBC is not defined.
59968         (__P): Remove unused macro.
59969         (match_string): Bring back glibc version, but use it only if _LIBC
59970         is defined.
59971         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59972         Remove unnecessary assertion and abort() call.
59973         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59974         * m4/strptime.m4: Fix serial number comment.
59975         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59976         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59977         (Depends-on): Add time_r.
59978
59979 2007-01-29  Bruno Haible  <bruno@clisp.org>
59980
59981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59982         strptime.
59983         * modules/strptime (Depends-on): Add stdbool.
59984         * lib/strptime.h: Include <time.h> always. Add comments.
59985
59986 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59987
59988         * modules/strptime: New file.
59989         * lib/strptime.h: New file.
59990         * lib/strptime.c: New file.
59991         * m4/strptime.m4: New file.
59992
59993 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * MODULES.html.sh: New module mpsort.
59996         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59997
59998         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59999         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60001         All uses changed.
60002         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60003         All uses changed.
60004         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60005         to _Restrict_.
60006         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60007         the parameter matches the prototype.
60008
60009 2007-01-28  Jim Meyering  <jim@meyering.net>
60010
60011         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60012         sys/time.h here, reverting that part of the previous patch:
60013         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60014
60015 2007-01-28  Bruno Haible  <bruno@clisp.org>
60016
60017         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60018         value of $(SYS_TIME_H).
60019         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60020         remove it conditionally, too. [added by Jim Meyering]
60021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60023         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60024         GETTIMEOFDAY_REPLACEMENT to 1.
60025
60026 2007-01-28  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60029         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60031         Set UNISTD_H instead of UNISTD_H2.
60032         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60033
60034 2007-01-28  Bruno Haible  <bruno@clisp.org>
60035
60036         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60037         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60038
60039 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60040
60041         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60042         (func_create_testdir): Ensure C locale for `grep' and `tr'
60043         character ranges.
60044         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60045         ACLOCAL_AMFLAGS parsing state machine.
60046
60047 2007-01-27  Bruno Haible  <bruno@clisp.org>
60048
60049         * modules/unistr/base: Update.
60050
60051 2007-01-27  Bruno Haible  <bruno@clisp.org>
60052
60053         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60054         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60055         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60056         modules/unistr/u32-mbtouc.
60057         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60058         * lib/unistr.h: Update.
60059         * lib/linebreak.c: Update.
60060         * modules/unistr/u32-mbtouc: Renamed from
60061         modules/unistr/u32-mbtouc-safe.
60062         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60063         * lib/unistr.h: Update.
60064         * lib/unistr/u32-to-u8.c: Update.
60065         * lib/unistr/u32-to-u16.c: Update.
60066
60067 2007-01-27  Bruno Haible  <bruno@clisp.org>
60068
60069         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60070         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60071         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60072         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60073         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60074         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60075         modules/unistr/u16-mbtouc.
60076         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60077         * lib/unistr.h: Update.
60078         * lib/linebreak.c: Update.
60079         * modules/linebreak: Update.
60080         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60081         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60082         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60083         * modules/unistr/u16-mbtouc: Renamed from
60084         modules/unistr/u16-mbtouc-safe.
60085         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60086         * lib/unistr.h: Update.
60087         * lib/unistr/u16-to-u8.c: Update.
60088         * modules/unistr/u16-to-u8: Update.
60089         * lib/unistr/u16-to-u32.c: Update.
60090         * modules/unistr/u16-to-u32: Update.
60091
60092 2007-01-27  Bruno Haible  <bruno@clisp.org>
60093
60094         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60095         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60096         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60097         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60098         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60099         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60100         modules/unistr/u8-mbtouc.
60101         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60102         * lib/unistr.h: Update.
60103         * lib/striconveh.c: Update.
60104         * modules/striconveh: Update.
60105         * lib/linebreak.c: Update.
60106         * modules/linebreak: Update.
60107         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60108         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60109         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60110         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60111         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60112         * lib/unistr.h: Update.
60113         * lib/striconveh.c: Update.
60114         * modules/striconveh: Update.
60115         * lib/unistr/u8-to-u16.c: Update.
60116         * modules/unistr/u8-to-u16: Update.
60117         * lib/unistr/u8-to-u32.c: Update.
60118         * modules/unistr/u8-to-u32: Update.
60119
60120 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60121
60122         Sync from Libtool.
60123         * lib/argz.c: Do not include strings.h nor memory.h, include
60124         string.h unconditionally.  Patch by Simon Josefsson.
60125
60126 2007-01-27  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60129         from gl_HEADER_STRING_H_BODY.
60130         (gl_HEADER_STRING_H_BODY): Require it.
60131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60132         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60134         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60136         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60139         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60142         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60143         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60144         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60145         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60146
60147 2007-01-27  Bruno Haible  <bruno@clisp.org>
60148
60149         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60150         check_PROGRAMS into noinst_PROGRAMS.
60151         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60152         check_PROGRAMS in this case.
60153         (func_import): Set for_test to false.
60154         (func_create_testdir): Set for_test to true.
60155
60156 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60157             Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60160         (Depends-on): Add string.
60161         (Includes): Use <string.h> instead of strcasestr.h.
60162         * modules/string (Makefile.am): Also substitute the value of
60163         REPLACE_STRCASESTR.
60164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60165         assume strcasestr is declared in <string.h> not <strings.h>. Also
60166         set REPLACE_STRCASESTR.
60167         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60168         REPLACE_STRCASESTR.
60169         * lib/strcasestr.h: Remove file.
60170         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60171         * lib/string_.h (strcasestr): New declaration.
60172
60173 2007-01-27  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/string_.h: Use 'extern'.
60176
60177 2007-01-27  Jim Meyering  <jim@meyering.net>
60178
60179         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60180         of set-but-not-used local, "q".
60181
60182         * lib/mempcpy.c: Include <config.h> before <string.h>.
60183         This fixes a compilation error on HP-UX, due to the system's
60184         "restrict"-using mempcpy prototype.
60185
60186 2007-01-26  Bruno Haible  <bruno@clisp.org>
60187
60188         Small optimization.
60189         * lib/javacomp.c: Include c-strstr.h.
60190          (is_envjavac_gcj): Use c_strstr instead of strstr.
60191         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60192
60193 2007-01-26  Bruno Haible  <bruno@clisp.org>
60194
60195         * MODULES.html.sh (Unicode string functions): Add the new modules.
60196
60197         * modules/uniconv/u32-strconv-to-locale: New file.
60198         * lib/uniconv/u32-strconv-to-locale.c: New file.
60199
60200         * modules/uniconv/u16-strconv-to-locale: New file.
60201         * lib/uniconv/u16-strconv-to-locale.c: New file.
60202
60203         * modules/uniconv/u8-strconv-to-locale: New file.
60204         * lib/uniconv/u8-strconv-to-locale.c: New file.
60205
60206         * modules/uniconv/u32-strconv-from-locale: New file.
60207         * lib/uniconv/u32-strconv-from-locale.c: New file.
60208
60209         * modules/uniconv/u16-strconv-from-locale: New file.
60210         * lib/uniconv/u16-strconv-from-locale.c: New file.
60211
60212         * modules/uniconv/u8-strconv-from-locale: New file.
60213         * lib/uniconv/u8-strconv-from-locale.c: New file.
60214
60215         * modules/uniconv/u32-strconv-to-enc: New file.
60216         * lib/uniconv/u32-strconv-to-enc.c: New file.
60217         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60218         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60219
60220         * modules/uniconv/u16-strconv-to-enc: New file.
60221         * lib/uniconv/u16-strconv-to-enc.c: New file.
60222         * lib/uniconv/u-strconv-to-enc.h: New file.
60223         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60224         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60225
60226         * modules/uniconv/u8-strconv-to-enc: New file.
60227         * lib/uniconv/u8-strconv-to-enc.c: New file.
60228         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60229         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60230
60231         * modules/uniconv/u32-strconv-from-enc: New file.
60232         * lib/uniconv/u32-strconv-from-enc.c: New file.
60233         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60234         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60235
60236         * modules/uniconv/u16-strconv-from-enc: New file.
60237         * lib/uniconv/u16-strconv-from-enc.c: New file.
60238         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60239         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60240
60241         * modules/uniconv/u8-strconv-from-enc: New file.
60242         * lib/uniconv/u8-strconv-from-enc.c: New file.
60243         * lib/uniconv/u-strconv-from-enc.h: New file.
60244         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60245         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60246
60247         * modules/uniconv/u32-conv-from-enc: New file.
60248         * lib/uniconv/u32-conv-from-enc.c: New file.
60249         * modules/uniconv/u32-conv-from-enc-tests: New file.
60250         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60251
60252         * modules/uniconv/u16-conv-from-enc: New file.
60253         * lib/uniconv/u16-conv-from-enc.c: New file.
60254         * lib/uniconv/u-conv-from-enc.h: New file.
60255         * modules/uniconv/u16-conv-from-enc-tests: New file.
60256         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60257
60258         * modules/uniconv/u8-conv-from-enc: New file.
60259         * lib/uniconv/u8-conv-from-enc.c: New file.
60260         * modules/uniconv/u8-conv-from-enc-tests: New file.
60261         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60262
60263         * modules/uniconv/base: New file.
60264         * lib/uniconv.h: New file.
60265
60266 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * doc/gnulib-tool.texi (Initial import): Update to match current
60269         behavior with strdup module.
60270         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60271         * lib/memmem.h: Remove; all uses removed.  This is now done
60272         by <string.h>.
60273         * lib/mempcpy.h: Likewise.
60274         * lib/memrchr.h: Likewise.
60275         * lib/stpcpy.h: Likewise.
60276         * lib/stpncpy.h: Likewise.
60277         * lib/strcase.h: Likewise.
60278         * lib/strchrnul.h: Likewise.
60279         * lib/strdup.h: Likewise.
60280         * lib/strndup.h: Likewise.
60281         * lib/strnlen.h: Likewise.
60282         * lib/strpbrk.h: Likewise.
60283         * lib/strsep.h: Likewise.
60284         * lib/strstr.h: Likewise.
60285         * lib/strtok_r.h: Likewise.
60286         * lib/string_.h: New file.
60287         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60288         Rely on <string.h> instead.
60289         * lib/canon-host.c: Likewise.
60290         * lib/chdir-long.c: Likewise.
60291         * lib/concatpath.c: Likewise.
60292         * lib/exclude.c: Likewise.
60293         * lib/fchdir.c: Likewise.
60294         * lib/getaddrinfo.c: Likewise.
60295         * lib/getcwd.c: Likewise.
60296         * lib/getsubopt.c: Likewise.
60297         * lib/glob.c: Likewise.
60298         * lib/hard-locale.c: Likewise.
60299         * lib/iconvme.c: Likewise.
60300         * lib/javacomp.c: Likewise.
60301         * lib/mempcpy.c: Likewise.
60302         * lib/memrchr.c: Likewise.
60303         * lib/regex_internal.h: Likewise.
60304         * lib/stpncpy.c: Likewise.
60305         * lib/strcasecmp.c: Likewise.
60306         * lib/strchrnul.c: Likewise.
60307         * lib/strdup.c: Likewise.
60308         * lib/striconv.c: Likewise.
60309         * lib/striconveh.c: Likewise.
60310         * lib/striconveha.c: Likewise.
60311         * lib/strncasecmp.c: Likewise.
60312         * lib/strndup.c: Likewise.
60313         * lib/strnlen.c: Likewise.
60314         * lib/strsep.c: Likewise.
60315         * lib/strstr.c: Likewise.
60316         * lib/strtok_r.c: Likewise.
60317         * lib/userspec.c: Likewise.
60318         * lib/w32spawn.h: Likewise.
60319         * lib/xstrndup.c: Likewise.
60320         * lib/mountlist.c (strstr): Remove decl.
60321         * m4/string_h.m4: New file.
60322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60326         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60327         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60328         Set REPLACE_STRCASECMP if necessary.
60329         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60330         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60331         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60333         HAVE_DECL_STRDUP if necessary.
60334         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60335         since gl_FUNC_STRNDUP does that now.
60336         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60337         Check for decl here...
60338         (gl_PREREQ_STRNLEN): ... not here.
60339         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60340         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60341         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60343         necessary.
60344         * modules/string: New file.
60345         * modules/memmem (Files): Remove special-purpose include file.
60346         (Depends-on): Add string.
60347         (Include): Include <string.h>, not the removed file.
60348         * modules/mempcpy: Likewise.
60349         * modules/memrchr: Likewise.
60350         * modules/stpcpy: Likewise.
60351         * modules/stpncpy: Likewise.
60352         * modules/strcase: Likewise.
60353         * modules/strchrnul: Likewise.
60354         * modules/strdup: Likewise.
60355         * modules/strndup: Likewise.
60356         * modules/strnlen: Likewise.
60357         * modules/strpbrk: Likewise.
60358         * modules/strsep: Likewise.
60359         * modules/strstr: Likewise.
60360         * modules/strtok_r: Likewise.
60361         * tests/test-dirname.c: Don't include "strdup.h", since
60362         <string.h> now suffices.
60363         * tests/test-memmem.c: Don't include "memmem.h", since
60364         <string.h> now suffices.
60365
60366 2007-01-25  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60369         *resultp is 0.
60370
60371         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60372         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60373         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60374         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60375
60376         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60377         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60378         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60379         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60380         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60381         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60382
60383 2007-01-24  Bruno Haible  <bruno@clisp.org>
60384
60385         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60387         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60388         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60389         gl_FUNC_FTS_CORE.
60390         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60391         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60392         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60393         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60394         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60395         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60396         gl_FUNC_FCHOWNAT.
60397         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60398         gl_FUNC_STRFTIME.
60399         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60400         Reported by Ralf Wildenhues.
60401
60402 2007-01-24  Bruno Haible  <bruno@clisp.org>
60403
60404         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60405         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60406         gl_GETADDRINFO.
60407         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60408         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60409         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60410
60411 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60412
60413         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60414         Don't use 'exit'; just return from 'main'.
60415         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60416
60417         * lib/fnmatch_.h: Readjust white space and comments to match
60418         glibc, to avoid spurious diffs.
60419
60420 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60423         2004-12-01 change by Jakub Jelinek, since this code won't compile
60424         if !LIBC.  Problem reported by Bob Proulx.
60425
60426 2007-01-23  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/striconveh.c: Include c-strcaseeq.h.
60429         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60430         * modules/striconveh (Depends-on): Add c-strcaseeq.
60431
60432 2007-01-23  Bruno Haible  <bruno@clisp.org>
60433
60434         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60435
60436         * modules/c-strcaseeq: New file.
60437         * lib/c-strcaseeq.h: New file.
60438
60439         * modules/streq: New file.
60440         * lib/streq.h: New file.
60441
60442 2007-01-23  Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/striconveha-tests: New file.
60445         * tests/test-striconveha.c: New file.
60446
60447         * lib/striconveha.h: Include <stdbool.h>.
60448         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60449         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60450         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60451         (mem_iconveha): New function.
60452         (str_iconveha_notranslit): Renamed from str_iconveha.
60453         (str_iconveha): New function.
60454         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60455         c-strcase.
60456
60457 2007-01-23  Bruno Haible  <bruno@clisp.org>
60458
60459         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60460         encodings without forgiving before trying any encoding with handler.
60461         (str_iconveha): Try all encodings without forgiving before trying any
60462         encoding with handler.
60463
60464 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60465
60466         Import the following changes from libc.
60467
60468         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60469
60470         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60471
60472         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60473
60474         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60475         normal_bracket label.
60476
60477         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60478
60479         [BZ #361]
60480         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60481         to normal_bracket after fetching the next character.
60482
60483 2007-01-22  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60486         argument.
60487         * lib/striconveh.c (iconv_carefully_1): New function.
60488         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60489         argument.
60490         (str_cd_iconveh): Update.
60491         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60492         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60493         * tests/test-striconveh.c (MAGIC): New macro.
60494         (new_offsets): New function.
60495         (main): Test call with and without offsets.
60496
60497 2007-01-22  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60500         * modules/sys_select (Makefile.am): Likewise.
60501         * modules/sys_socket (Makefile.am): Likewise.
60502         * modules/sys_time (Makefile.am): Likewise.
60503
60504 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * modules/gettimeofday (License): Change from GPL to LGPL, since
60507         gettimeofday is a library function.
60508
60509 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60510
60511         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60512
60513 2007-01-21  Bruno Haible  <bruno@clisp.org>
60514
60515         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60516
60517 2007-01-21  Bruno Haible  <bruno@clisp.org>
60518
60519         * modules/striconveha: New file.
60520         * lib/striconveha.h: New file.
60521         * lib/striconveha.c: New file.
60522         * MODULES.html.sh (Internationalization functions): Add striconveha.
60523         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60524         string.
60525         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60526
60527 2007-01-21  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60530         * lib/striconveh.c (str_iconveh): Likewise.
60531
60532 2007-01-21  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/striconveh.h (mem_iconveh): New declaration.
60535         * lib/striconveh.c (mem_iconveh): New function.
60536         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60537
60538 2007-01-21  Bruno Haible  <bruno@clisp.org>
60539
60540         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60541
60542         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60543         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60544         original result buffer.
60545         (str_cd_iconveh): Update.
60546         * tests/test-striconveh.c (main): Update.
60547
60548         * lib/striconv.h (mem_cd_iconv): Change specification.
60549         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60550         result buffer.
60551         (str_cd_iconv): Update.
60552         * tests/test-striconv.c (main): Update.
60553
60554 2007-01-21  Bruno Haible  <bruno@clisp.org>
60555
60556         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60557
60558 2007-01-20  Jim Meyering  <jim@meyering.net>
60559
60560         * lib/userspec.c (parse_with_separator): If a user or group string
60561         starts with "+", skip the corresponding name-to-ID look-up, since
60562         such a look-up must fail: user and group names may not include "+".
60563
60564 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60567         since we now assume the sys_time module.
60568         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60569         check for sys/time.h; no longer needed.
60570         * modules/poll (Depends-on): Depend on sys_time.
60571
60572 2007-01-18  Bruno Haible  <bruno@clisp.org>
60573
60574         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60576
60577         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60578         gettimeofday.
60579
60580         * tests/test-gettimeofday.c: Include <time.h>.
60581         (dummy): Remove variable.
60582
60583         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60584         gl_HEADER_SYS_TIME_H.
60585         (gl_HEADER_SYS_TIME_H): New macro.
60586
60587         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60588         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60590         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60591         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60593         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60594         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60595         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60596         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60597         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60598
60599         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60600         last change; it caused a compilation error when cross-compiling to
60601         Cygwin.
60602
60603 2007-01-18  Jim Meyering  <jim@meyering.net>
60604
60605         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60606         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60607         than the race-prone "test -d sys || mkdir sys".
60608         (configure.ac): Use AC_PROG_MKDIR_P.
60609         * modules/sys_select: Likewise.
60610         * modules/sys_socket: Likewise.
60611         * modules/sys_time: Likewise.
60612
60613 2007-01-18  Eric Blake  <ebb9@byu.net>
60614
60615         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60616         replace gettimeofday.
60617         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60618         name, to avoid infinite recursion.
60619
60620 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60623         module sys_time.
60624         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60625         assume timespec.h defines struct timeval.
60626         * lib/settime.c: Likewise.
60627         * lib/utimens.c: Likewise.
60628         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60629         since we now assume the gettimeofday module.
60630         * lib/tempname.c (__gen_tempname): Likewise.
60631         * lib/gettimeofday.h: Remove.
60632         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60633         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60634         Include <time.h>, for 'time()'.
60635         (localtime_buffer_addr): Also use this workaround if
60636         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60637         to simplify the uses.  All uses changed.
60638         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60639         that #undef is inside {}, and 'const' follows type name consistently.
60640         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60641         (gettimeofday): Do not use the maximum possible value for
60642         tv->tv_usec, since that might break usages other than ls.c.
60643         Instead, we'll leave ls.c alone.  This undoes today's patch
60644         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60645         we've never observed the problem but might as well keep the
60646         canary.
60647         * lib/nanosleep.c: Include timespec.h first, for interface check.
60648         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60649         now assume the sys_time module.
60650         * lib/tempname.c: Likewise.
60651         * lib/timespec.h: Likewise.
60652         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60653         needed.
60654         * lib/strftime.c: Likewise.
60655         * lib/timespec.h: Likewise.
60656         * lib/posixtm.c: Include posixtm.h first, for interface check.
60657         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60658         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60659         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60660         * lib/sys_time_.h: New file.
60661         * lib/timespec.h (struct timespec): Use long int, not long.
60662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60663         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60664         Remove obsolescent call to AC_HEADER_TIME.
60665         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60667         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60668         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60669         Likewise.
60670         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60671         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60673         into the sys_time module.  Check for gettimeofday just once.
60674         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60675         for gettimeofday signature to just check the signature.  Merely
60676         compile it, since linking doesn't test signature.  Improve test for
60677         whether gettimeofday.o is actually needed.
60678         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60679         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60680         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60681         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60682         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60683         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60684         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60685         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60686         than worrying about sys/time.h.
60687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60688         Don't bother worrying about TIME_WITH_SYS_TIME.
60689         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60690         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60691         * m4/sys_time_h.m4: New file.
60692         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60693         Don't include sys/time.h.  Return from main rather than exiting.
60694         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60695         all uses changed.
60696         * modules/gethrxtime (Depends-on): Add sys_time.
60697         * modules/gettime (Depends-on): Likewise.
60698         * modules/gettimeofday (Depends-on): Likewise.
60699         * modules/nanosleep (Depends-on): Likewise.
60700         * modules/settime (Depends-on): Likewise.
60701         * modules/tempname (Depends-on): Likewise.
60702         * modules/utimens (Depends-on): Likewise.
60703         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60704         (Include): Change back to <sys/time.h>.
60705         (Maintainer): Add self.
60706         * modules/sys_time: New file.
60707         * modules/tempname (Depends-on): Add gettimeofday.
60708         * tests/test-gettimeofday.c: Include <sys/time.h>
60709         rather than gettimeofday.h.
60710
60711 2007-01-17  Bruno Haible  <bruno@clisp.org>
60712
60713         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60714         the license default to GPL.
60715         (func_create_testdir): Don't complain if a module is LGPL and its
60716         tests module depends on GPLed modules.
60717
60718 2007-01-17  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/gettimeofday.c (gettimeofday): Add code for the case
60721         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60722         maximum possible value for tv->tv_usec, rather than the minimum one.
60723
60724 2005-10-08  Martin Lambers  <marlam@marlam.de>
60725 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60726 2007-01-16  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60729         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60730         gl_FUNC_GETTIMEOFDAY.
60731         (Include): Add gettimeofday.h.
60732         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60733         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60734         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60735         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60736         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60737         * lib/gettimeofday.h: New file.
60738         * lib/gettimeofday.c: Include <sys/timeb.h>.
60739         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60740         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60741         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60742         fall back on time().
60743
60744         * tests/test-gettimeofday.c: New file.
60745         * modules/gettimeofday-tests: New file.
60746
60747 2007-01-16  Eric Blake  <ebb9@byu.net>
60748
60749         * modules/fnmatch (Depends-on): Depend on wchar.
60750         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60751         * m4/fnmatch.m4: Likewise.
60752         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60753         * m4/mbchar.m4: Likewise.
60754         * modules/mbswidth (Depends-on): Depend on wchar.
60755         * lib/mbswidth.c: Assume <wchar.h>.
60756         * m4/mbswidth.m4: Likewise.
60757         * modules/quotearg (Depends-on): Depend on wchar.
60758         * lib/quotearg.c: Assume <wchar.h>.
60759         * m4/quotearg.m4: Likewise.
60760         * modules/regex (Depends-on): Depend on wchar.
60761         * lib/regex_internal.h: Assume <wchar.h>.
60762         * m4/regex.m4: Likewise.
60763         * modules/stdint (Depends-on): Depend on wchar.
60764         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60765         * m4/stdint.m4: Likewise.
60766         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60767         * modules/strftime (Depends-on): Depend on wchar.
60768         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60769         * modules/strtol (Depends-on): Depend on wchar.
60770         * lib/strtol.c: Assume <wchar.h>.
60771         * modules/wcwidth (Depends-on): Depend on wchar.
60772         * lib/wcwidth.h: Assume <wchar.h>.
60773         * m4/wcwidth.m4: Likewise.
60774
60775 2007-01-16  Bruno Haible  <bruno@clisp.org>
60776
60777         * modules/csharpexec-script: New, created from...
60778         * modules/csharpexec: ... this.
60779
60780 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60781
60782         * modules/javaexec-script: New, created from...
60783         * modules/javaexec: ... this.
60784
60785 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60786
60787         * modules/poll (Dependencies): Add sys_select.
60788
60789 2007-01-15  Jim Meyering  <jim@meyering.net>
60790
60791         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60792         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60793         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60794         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60795
60796 2007-01-15  Bruno Haible  <bruno@clisp.org>
60797
60798         * modules/striconveh: New file.
60799         * lib/striconveh.h: New file.
60800         * lib/striconveh.c: New file.
60801         * MODULES.html.sh (Internationalization functions): Add striconveh.
60802
60803         * modules/striconveh-tests: New file.
60804         * tests/test-striconveh.c: New file.
60805
60806 2007-01-15  Bruno Haible  <bruno@clisp.org>
60807
60808         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60809         not from GNU libiconv or GNU libc.
60810
60811 2007-01-15  Bruno Haible  <bruno@clisp.org>
60812
60813         * doc/gnulib-intro.texi (Copyright): Explain the different license
60814         terms for module descriptions, autoconf macros, tests, documentation.
60815
60816 2007-01-14  Bruno Haible  <bruno@clisp.org>
60817
60818         * modules/striconv-tests: New file.
60819         * tests/test-striconv.c: New file.
60820
60821 2007-01-14  Bruno Haible  <bruno@clisp.org>
60822
60823         * modules/iconv-tests: New file.
60824         * tests/test-iconv.c: New file.
60825
60826 2007-01-14  Bruno Haible  <bruno@clisp.org>
60827
60828         * gnulib-tool (func_get_license): For test modules, use the license of
60829         the main module.
60830
60831 2007-01-14  Bruno Haible  <bruno@clisp.org>
60832
60833         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60834         if iconv is found to exist.
60835
60836 2007-01-14  Bruno Haible  <bruno@clisp.org>
60837
60838         * modules/c-ctype-tests: New file.
60839         * tests/test-c-ctype.c: New file.
60840
60841 2007-01-14  Bruno Haible  <bruno@clisp.org>
60842
60843         * modules/binary-io-tests: New file.
60844         * tests/test-binary-io.sh: New file.
60845         * tests/test-binary-io.c: New file.
60846
60847 2007-01-14  Bruno Haible  <bruno@clisp.org>
60848
60849         * modules/array-oset-tests: New file.
60850         * tests/test-array_oset.c: New file.
60851
60852 2007-01-14  Bruno Haible  <bruno@clisp.org>
60853
60854         * modules/array-list-tests: New file.
60855         * tests/test-array_list.c: New file.
60856
60857 2007-01-14  Bruno Haible  <bruno@clisp.org>
60858
60859         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60860         and make.
60861         Reported by Simon Josefsson in
60862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60863
60864 2007-01-14  Bruno Haible  <bruno@clisp.org>
60865
60866         * modules/allocsa-tests: New file.
60867         * tests/test-allocsa.c: New file.
60868
60869 2007-01-14  Bruno Haible  <bruno@clisp.org>
60870
60871         * modules/fchdir (Depends-on): Add absolute-header.
60872         * modules/unistd (Depends-on): Likewise.
60873
60874 2006-12-30  Bruno Haible  <bruno@clisp.org>
60875
60876         * modules/fchdir: New file.
60877         * modules/unistd (Files): Add lib/unistd_.h.
60878         (Makefile.am): Generate unistd.h from unistd_.h.
60879         * lib/fchdir.c: New file.
60880         * lib/dirent_.h: New file.
60881         * lib/unistd_.h: New file.
60882         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60883         * m4/fchdir.m4: New file.
60884         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60885         (gl_HEADER_UNISTD): Invoke it.
60886         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60887         function.
60888         * lib/backupfile.c (opendir, closedir): Undefine.
60889         * lib/chown.c (open, close): Undefine.
60890         * lib/clean-temp.c (open, close): Undefine.
60891         * lib/copy-file.c (open, close): Undefine.
60892         * lib/execute.c (open, close): Undefine.
60893         * lib/fsusage.c (open, close): Undefine.
60894         * lib/gc-gnulib.c (open, close): Undefine.
60895         * lib/getcwd.c (opendir, closedir): Undefine.
60896         * lib/glob.c (opendir, closedir): Undefine.
60897         * lib/javacomp.c (open, close): Undefine.
60898         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60899         * lib/openat-proc.c (open, close): Undefine.
60900         * lib/pagealign_alloc.c (open, close): Undefine.
60901         * lib/pipe.c (open, close): Undefine.
60902         * lib/progreloc.c (open, close): Undefine.
60903         * lib/savedir.c (opendir, closedir): Undefine.
60904         * lib/utime.c (open, close): Undefine.
60905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60906
60907 2007-01-10  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60910
60911 2007-01-12  Eric Blake  <ebb9@byu.net>
60912
60913         Provide a robust <wchar.h>.  Further simplifications are now
60914         possible in other modules, but not included here.
60915         * modules/wchar: New module.
60916         * m4/wchar.m4: New file.
60917         * lib/wchar_.h: Likewise.
60918         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60919         of the new module.
60920         * MODULES.html.sh (Extended multibyte and wide character utilities):
60921         New section.
60922
60923 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60926         to a reasonable default for memory allocation.
60927         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60928         file system that reports garbage st_size values for symlinks.
60929         Problem reported by Liyang Hu.
60930
60931 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60932
60933         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60934         Emacs .#* auto-save files).
60935
60936 2007-01-11  Bruno Haible  <bruno@clisp.org>
60937
60938         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60939         directory.
60940
60941 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         Use @...@ consistently in lib/wctype_.h.
60944         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60945         on it being set to 1 or 0.
60946         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60947         go back to AC_SUBSTing it.
60948         * modules/wctype (Makefile.am): Undo previous change.
60949
60950 2007-01-10  Eric Blake  <ebb9@byu.net>
60951
60952         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60953         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60954         * modules/wctype (Makefile.am): Likewise.
60955         Reported by Chris McGuire.
60956
60957 2007-01-10  Jim Meyering  <jim@meyering.net>
60958
60959         fts.c: a small readability/maintainability improvement
60960         * lib/fts.c (fts_read): Make this code slightly more readable and
60961         maintainable by hoisting the "sp->fts_cur = p" assignments to
60962         immediately follow the statements that set P.  Derived from
60963         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60964
60965 2007-01-10  Eric Blake  <ebb9@byu.net>
60966
60967         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60968         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60970         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60971         Reported by Chris McGuire.
60972
60973 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60974
60975         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60976         in sed script.
60977
60978 2007-01-09  Bruno Haible  <bruno@clisp.org>
60979
60980         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60981         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60982         variables.
60983         (func_module): Use them.
60984
60985 2007-01-09  Bruno Haible  <bruno@clisp.org>
60986
60987         * modules/unistr/base: New file.
60988         * lib/unistr.h: New file.
60989
60990         * modules/unistr/u8-to-u16: New file.
60991         * lib/unistr/u8-to-u16.c: New file.
60992
60993         * modules/unistr/u8-to-u32: New file.
60994         * lib/unistr/u8-to-u32.c: New file.
60995
60996         * modules/unistr/u16-to-u8: New file.
60997         * lib/unistr/u16-to-u8.c: New file.
60998
60999         * modules/unistr/u16-to-u32: New file.
61000         * lib/unistr/u16-to-u32.c: New file.
61001
61002         * modules/unistr/u32-to-u8: New file.
61003         * lib/unistr/u32-to-u8.c: New file.
61004
61005         * modules/unistr/u32-to-u16: New file.
61006         * lib/unistr/u32-to-u16.c: New file.
61007
61008         * modules/unistr/u8-check: New file.
61009         * modules/unistr/u16-check: New file.
61010         * modules/unistr/u32-check: New file.
61011         * lib/unistr/u8-check.c: New file.
61012         * lib/unistr/u16-check.c: New file.
61013         * lib/unistr/u32-check.c: New file.
61014
61015         * modules/unistr/u8-chr: New file.
61016         * modules/unistr/u16-chr: New file.
61017         * modules/unistr/u32-chr: New file.
61018         * lib/unistr/u8-chr.c: New file.
61019         * lib/unistr/u16-chr.c: New file.
61020         * lib/unistr/u32-chr.c: New file.
61021
61022         * modules/unistr/u8-cmp: New file.
61023         * modules/unistr/u16-cmp: New file.
61024         * modules/unistr/u32-cmp: New file.
61025         * lib/unistr/u8-cmp.c: New file.
61026         * lib/unistr/u16-cmp.c: New file.
61027         * lib/unistr/u32-cmp.c: New file.
61028
61029         * modules/unistr/u8-cpy: New file.
61030         * modules/unistr/u16-cpy: New file.
61031         * modules/unistr/u32-cpy: New file.
61032         * lib/unistr/u8-cpy.c: New file.
61033         * lib/unistr/u16-cpy.c: New file.
61034         * lib/unistr/u32-cpy.c: New file.
61035         * lib/unistr/u-cpy.h: New file.
61036
61037         * modules/unistr/u8-cpy-alloc: New file.
61038         * modules/unistr/u16-cpy-alloc: New file.
61039         * modules/unistr/u32-cpy-alloc: New file.
61040         * lib/unistr/u8-cpy-alloc.c: New file.
61041         * lib/unistr/u16-cpy-alloc.c: New file.
61042         * lib/unistr/u32-cpy-alloc.c: New file.
61043         * lib/unistr/u-cpy-alloc.h: New file.
61044
61045         * modules/unistr/u8-endswith: New file.
61046         * modules/unistr/u16-endswith: New file.
61047         * modules/unistr/u32-endswith: New file.
61048         * lib/unistr/u8-endswith.c: New file.
61049         * lib/unistr/u16-endswith.c: New file.
61050         * lib/unistr/u32-endswith.c: New file.
61051         * lib/unistr/u-endswith.h: New file.
61052
61053         * modules/unistr/u8-mblen: New file.
61054         * modules/unistr/u16-mblen: New file.
61055         * modules/unistr/u32-mblen: New file.
61056         * lib/unistr/u8-mblen.c: New file.
61057         * lib/unistr/u16-mblen.c: New file.
61058         * lib/unistr/u32-mblen.c: New file.
61059
61060         * modules/unistr/u8-mbtouc: New file.
61061         * modules/unistr/u16-mbtouc: New file.
61062         * modules/unistr/u32-mbtouc: New file.
61063         * lib/unistr/u8-mbtouc.c: New file.
61064         * lib/unistr/u16-mbtouc.c: New file.
61065         * lib/unistr/u32-mbtouc.c: New file.
61066
61067         * modules/unistr/u8-mbtouc-safe: New file.
61068         * modules/unistr/u16-mbtouc-safe: New file.
61069         * modules/unistr/u32-mbtouc-safe: New file.
61070         * lib/unistr/u8-mbtouc-safe.c: New file.
61071         * lib/unistr/u16-mbtouc-safe.c: New file.
61072         * lib/unistr/u32-mbtouc-safe.c: New file.
61073
61074         * modules/unistr/u8-move: New file.
61075         * modules/unistr/u16-move: New file.
61076         * modules/unistr/u32-move: New file.
61077         * lib/unistr/u8-move.c: New file.
61078         * lib/unistr/u16-move.c: New file.
61079         * lib/unistr/u32-move.c: New file.
61080         * lib/unistr/u-move.h: New file.
61081
61082         * modules/unistr/u8-next: New file.
61083         * modules/unistr/u16-next: New file.
61084         * modules/unistr/u32-next: New file.
61085         * lib/unistr/u8-next.c: New file.
61086         * lib/unistr/u16-next.c: New file.
61087         * lib/unistr/u32-next.c: New file.
61088
61089         * modules/unistr/u8-prev: New file.
61090         * modules/unistr/u16-prev: New file.
61091         * modules/unistr/u32-prev: New file.
61092         * lib/unistr/u8-prev.c: New file.
61093         * lib/unistr/u16-prev.c: New file.
61094         * lib/unistr/u32-prev.c: New file.
61095
61096         * modules/unistr/u8-set: New file.
61097         * modules/unistr/u16-set: New file.
61098         * modules/unistr/u32-set: New file.
61099         * lib/unistr/u8-set.c: New file.
61100         * lib/unistr/u16-set.c: New file.
61101         * lib/unistr/u32-set.c: New file.
61102         * lib/unistr/u-set.h: New file.
61103
61104         * modules/unistr/u8-startswith: New file.
61105         * modules/unistr/u16-startswith: New file.
61106         * modules/unistr/u32-startswith: New file.
61107         * lib/unistr/u8-startswith.c: New file.
61108         * lib/unistr/u16-startswith.c: New file.
61109         * lib/unistr/u32-startswith.c: New file.
61110         * lib/unistr/u-startswith.h: New file.
61111
61112         * modules/unistr/u8-stpcpy: New file.
61113         * modules/unistr/u16-stpcpy: New file.
61114         * modules/unistr/u32-stpcpy: New file.
61115         * lib/unistr/u8-stpcpy.c: New file.
61116         * lib/unistr/u16-stpcpy.c: New file.
61117         * lib/unistr/u32-stpcpy.c: New file.
61118         * lib/unistr/u-stpcpy.h: New file.
61119
61120         * modules/unistr/u8-stpncpy: New file.
61121         * modules/unistr/u16-stpncpy: New file.
61122         * modules/unistr/u32-stpncpy: New file.
61123         * lib/unistr/u8-stpncpy.c: New file.
61124         * lib/unistr/u16-stpncpy.c: New file.
61125         * lib/unistr/u32-stpncpy.c: New file.
61126         * lib/unistr/u-stpncpy.h: New file.
61127
61128         * modules/unistr/u8-strcat: New file.
61129         * modules/unistr/u16-strcat: New file.
61130         * modules/unistr/u32-strcat: New file.
61131         * lib/unistr/u8-strcat.c: New file.
61132         * lib/unistr/u16-strcat.c: New file.
61133         * lib/unistr/u32-strcat.c: New file.
61134         * lib/unistr/u-strcat.h: New file.
61135
61136         * modules/unistr/u8-strchr: New file.
61137         * modules/unistr/u16-strchr: New file.
61138         * modules/unistr/u32-strchr: New file.
61139         * lib/unistr/u8-strchr.c: New file.
61140         * lib/unistr/u16-strchr.c: New file.
61141         * lib/unistr/u32-strchr.c: New file.
61142
61143         * modules/unistr/u8-strcmp: New file.
61144         * modules/unistr/u16-strcmp: New file.
61145         * modules/unistr/u32-strcmp: New file.
61146         * lib/unistr/u8-strcmp.c: New file.
61147         * lib/unistr/u16-strcmp.c: New file.
61148         * lib/unistr/u32-strcmp.c: New file.
61149
61150         * modules/unistr/u8-strcpy: New file.
61151         * modules/unistr/u16-strcpy: New file.
61152         * modules/unistr/u32-strcpy: New file.
61153         * lib/unistr/u8-strcpy.c: New file.
61154         * lib/unistr/u16-strcpy.c: New file.
61155         * lib/unistr/u32-strcpy.c: New file.
61156         * lib/unistr/u-strcpy.h: New file.
61157
61158         * modules/unistr/u8-strcspn: New file.
61159         * modules/unistr/u16-strcspn: New file.
61160         * modules/unistr/u32-strcspn: New file.
61161         * lib/unistr/u8-strcspn.c: New file.
61162         * lib/unistr/u16-strcspn.c: New file.
61163         * lib/unistr/u32-strcspn.c: New file.
61164         * lib/unistr/u-strcspn.h: New file.
61165
61166         * modules/unistr/u8-strdup: New file.
61167         * modules/unistr/u16-strdup: New file.
61168         * modules/unistr/u32-strdup: New file.
61169         * lib/unistr/u8-strdup.c: New file.
61170         * lib/unistr/u16-strdup.c: New file.
61171         * lib/unistr/u32-strdup.c: New file.
61172         * lib/unistr/u-strdup.h: New file.
61173
61174         * modules/unistr/u8-strlen: New file.
61175         * modules/unistr/u16-strlen: New file.
61176         * modules/unistr/u32-strlen: New file.
61177         * lib/unistr/u8-strlen.c: New file.
61178         * lib/unistr/u16-strlen.c: New file.
61179         * lib/unistr/u32-strlen.c: New file.
61180         * lib/unistr/u-strlen.h: New file.
61181
61182         * modules/unistr/u8-strmblen: New file.
61183         * modules/unistr/u16-strmblen: New file.
61184         * modules/unistr/u32-strmblen: New file.
61185         * lib/unistr/u8-strmblen.c: New file.
61186         * lib/unistr/u16-strmblen.c: New file.
61187         * lib/unistr/u32-strmblen.c: New file.
61188
61189         * modules/unistr/u8-strmbtouc: New file.
61190         * modules/unistr/u16-strmbtouc: New file.
61191         * modules/unistr/u32-strmbtouc: New file.
61192         * lib/unistr/u8-strmbtouc.c: New file.
61193         * lib/unistr/u16-strmbtouc.c: New file.
61194         * lib/unistr/u32-strmbtouc.c: New file.
61195
61196         * modules/unistr/u8-strncat: New file.
61197         * modules/unistr/u16-strncat: New file.
61198         * modules/unistr/u32-strncat: New file.
61199         * lib/unistr/u8-strncat.c: New file.
61200         * lib/unistr/u16-strncat.c: New file.
61201         * lib/unistr/u32-strncat.c: New file.
61202         * lib/unistr/u-strncat.h: New file.
61203
61204         * modules/unistr/u8-strncmp: New file.
61205         * modules/unistr/u16-strncmp: New file.
61206         * modules/unistr/u32-strncmp: New file.
61207         * lib/unistr/u8-strncmp.c: New file.
61208         * lib/unistr/u16-strncmp.c: New file.
61209         * lib/unistr/u32-strncmp.c: New file.
61210
61211         * modules/unistr/u8-strncpy: New file.
61212         * modules/unistr/u16-strncpy: New file.
61213         * modules/unistr/u32-strncpy: New file.
61214         * lib/unistr/u8-strncpy.c: New file.
61215         * lib/unistr/u16-strncpy.c: New file.
61216         * lib/unistr/u32-strncpy.c: New file.
61217         * lib/unistr/u-strncpy.h: New file.
61218
61219         * modules/unistr/u8-strnlen: New file.
61220         * modules/unistr/u16-strnlen: New file.
61221         * modules/unistr/u32-strnlen: New file.
61222         * lib/unistr/u8-strnlen.c: New file.
61223         * lib/unistr/u16-strnlen.c: New file.
61224         * lib/unistr/u32-strnlen.c: New file.
61225         * lib/unistr/u-strnlen.h: New file.
61226
61227         * modules/unistr/u8-strpbrk: New file.
61228         * modules/unistr/u16-strpbrk: New file.
61229         * modules/unistr/u32-strpbrk: New file.
61230         * lib/unistr/u8-strpbrk.c: New file.
61231         * lib/unistr/u16-strpbrk.c: New file.
61232         * lib/unistr/u32-strpbrk.c: New file.
61233         * lib/unistr/u-strpbrk.h: New file.
61234
61235         * modules/unistr/u8-strrchr: New file.
61236         * modules/unistr/u16-strrchr: New file.
61237         * modules/unistr/u32-strrchr: New file.
61238         * lib/unistr/u8-strrchr.c: New file.
61239         * lib/unistr/u16-strrchr.c: New file.
61240         * lib/unistr/u32-strrchr.c: New file.
61241
61242         * modules/unistr/u8-strspn: New file.
61243         * modules/unistr/u16-strspn: New file.
61244         * modules/unistr/u32-strspn: New file.
61245         * lib/unistr/u8-strspn.c: New file.
61246         * lib/unistr/u16-strspn.c: New file.
61247         * lib/unistr/u32-strspn.c: New file.
61248         * lib/unistr/u-strspn.h: New file.
61249
61250         * modules/unistr/u8-strstr: New file.
61251         * modules/unistr/u16-strstr: New file.
61252         * modules/unistr/u32-strstr: New file.
61253         * lib/unistr/u8-strstr.c: New file.
61254         * lib/unistr/u16-strstr.c: New file.
61255         * lib/unistr/u32-strstr.c: New file.
61256         * lib/unistr/u-strstr.h: New file.
61257
61258         * modules/unistr/u8-strtok: New file.
61259         * modules/unistr/u16-strtok: New file.
61260         * modules/unistr/u32-strtok: New file.
61261         * lib/unistr/u8-strtok.c: New file.
61262         * lib/unistr/u16-strtok.c: New file.
61263         * lib/unistr/u32-strtok.c: New file.
61264         * lib/unistr/u-strtok.h: New file.
61265
61266         * modules/unistr/u8-uctomb: New file.
61267         * modules/unistr/u16-uctomb: New file.
61268         * modules/unistr/u32-uctomb: New file.
61269         * lib/unistr/u8-uctomb.c: New file.
61270         * lib/unistr/u16-uctomb.c: New file.
61271         * lib/unistr/u32-uctomb.c: New file.
61272
61273         * MODULES.html.sh (Unicode string functions): Add the new modules.
61274
61275 2007-01-08  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61278         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61279         subdirectories.
61280
61281 2007-01-08  Karl Berry  <karl@gnu.org>
61282
61283         * doc/error.texi: mention that main() fns must set program_name
61284         when progname is used.
61285
61286 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61289         WCTYPE_H is empty, for the benefit of builds from non-distclean
61290         directories.  Problem reported by Eric Blake in
61291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61292
61293 2007-01-08  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61296         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61297         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61298         PROVIDE_CANONICALIZE_FILENAME_MODE.
61299         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61300
61301 2007-01-08  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61304         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61305         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61306         * lib/fts.c: Likewise.
61307         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61308
61309 2006-12-25  Bruno Haible  <bruno@clisp.org>
61310
61311         * modules/utf8-ucs4-safe: New file.
61312         * lib/utf8-ucs4-safe.h: New file.
61313         * lib/unistr/utf8-ucs4-safe.c: New file.
61314
61315         * modules/utf16-ucs4-safe: New file.
61316         * lib/utf16-ucs4-safe.h: New file.
61317         * lib/unistr/utf16-ucs4-safe.c: New file.
61318
61319         * MODULES.html.sh (Unicode string functions): Add the new modules.
61320
61321 2007-01-08  Bruno Haible  <bruno@clisp.org>
61322
61323         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61324         (Depends-on): Add unitypes.
61325         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61326         (u8_mbtouc_aux): Move out to separate file.
61327         (u8_mbtouc): Use ucs4_t, uint8_t types.
61328         * lib/unistr/utf8-ucs4.c: New file.
61329
61330         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61331         (Depends-on): Add unitypes.
61332         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61333         (u16_mbtouc_aux): Move out to separate file.
61334         (u16_mbtouc): Use ucs4_t, uint16_t types.
61335         * lib/unistr/utf16-ucs4.c: New file.
61336
61337         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61338         (Depends-on): Add unitypes.
61339         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61340         (u8_uctomb_aux): Move out to separate file.
61341         (u8_uctomb): Use ucs4_t, uint8_t types.
61342         * lib/unistr/ucs4-utf8.c: New file.
61343
61344         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61345         (Depends-on): Add unitypes.
61346         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61347         (u16_uctomb_aux): Move out to separate file.
61348         (u16_uctomb): Use ucs4_t, uint16_t types.
61349         * lib/unistr/ucs4-utf16.c: New file.
61350
61351 2006-12-25  Bruno Haible  <bruno@clisp.org>
61352
61353         * modules/unitypes: New file.
61354         * lib/unitypes.h: New file.
61355         * MODULES.html.sh (func_all_modules): New section "Unicode string
61356         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61357         this section. Add unitypes.
61358
61359 2007-01-08  Bruno Haible  <bruno@clisp.org>
61360
61361         Avoid variable names that conflict with those from libtool.
61362         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61363         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61364         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61365         library_names_spec to acl_library_names_spec, hardcode_* to
61366         acl_hardcode_*.
61367         Reported by Ralf Wildenhues.
61368
61369 2007-01-08  Bruno Haible  <bruno@clisp.org>
61370
61371         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61372         definition.
61373         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61374         definition.
61375         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61376         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61377         definition.
61378         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61379         definition.
61380         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61381         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61382         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61383         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61384         definition.
61385         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61386         definition.
61387         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61388         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61389         GC_USE_<algorithm>.
61390         * lib/gc-libgcrypt.c: Likewise.
61391         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61392         * modules/gc-arctwo (configure.ac): Likewise.
61393         * modules/gc-des (configure.ac): Likewise.
61394         * modules/gc-hmac-md5 (configure.ac): Likewise.
61395         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61396         * modules/gc-md2 (configure.ac): Likewise.
61397         * modules/gc-md4 (configure.ac): Likewise.
61398         * modules/gc-md5 (configure.ac): Likewise.
61399         * modules/gc-random (configure.ac): Likewise.
61400         * modules/gc-rijndael (configure.ac): Likewise.
61401         * modules/gc-sha1 (configure.ac): Likewise.
61402
61403 2007-01-08  Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61406         macro definition.
61407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61408         definition.
61409         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61410         definition.
61411         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61412         * modules/fcntl-safer (configure.ac): Likewise.
61413         * modules/fopen-safer (configure.ac): Likewise.
61414         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61415         GNULIB_FWRITEERROR macro definition.
61416
61417 2007-01-08  Bruno Haible  <bruno@clisp.org>
61418
61419         * m4/gnulib-common.m4: New file.
61420         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61421         (func_get_filelist): Add m4/gnulib-common.m4.
61422
61423 2007-01-08  Bruno Haible  <bruno@clisp.org>
61424
61425         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61426         command.
61427
61428 2007-01-08  Jim Meyering  <jim@meyering.net>
61429
61430         Use a more robust test for a "can't happen" condition.
61431         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61432         narrowed the st_size value.  Presuming the "can't happen" condition
61433         is true, that narrowing could conceivably convert an invalid st_size
61434         value into a valid one.  Instead, use a change based on Matthew
61435         Woehlke's original patch.
61436
61437         Slight readability improvement: use an assert-like macro
61438         in place of literal "abort ()" uses.
61439         * lib/fts.c (fts_assert): Define.
61440         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61441         Use this macro instead of a bare 'abort'.
61442
61443 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61446         simply work around them.
61447         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61448         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61449         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61450         declaring.
61451         Don't bother to define as macros, since the standard doesn't require it.
61452         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61453         longer worry about IRIX 5.3.
61454         (HAVE_WCTYPE_CTMP_BUG): Remove.
61455
61456 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61459         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61460         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61461         Problems reported by Georg Schwarz for IRIX 5.3.
61462
61463         * gnulib-tool (autoconf_minversion): Take the maximum version number
61464         found, not the minimum.  Problem reported by James Youngman.
61465
61466 2007-01-03  Karl Berry  <karl@gnu.org>
61467
61468         * doc/error.texi: new file, explaining interaction with progname.
61469         * doc/gnulib.texi: include it.  Update copyright.
61470
61471 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61472
61473         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61474         AC_CANONICAL_HOST, to improve autobuild outputs.
61475
61476 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61477             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61478
61479         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61480         sockets, server sockets, and other file descriptors.  Count errors
61481         to compute the return value.  Reorder the code a bit to be easier
61482         to follow.  Don't set event bits that were not requested (except
61483         POLLERR and POLLHUP).
61484
61485 2007-01-01  Bruno Haible  <bruno@clisp.org>
61486
61487         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61488
61489 2007-01-03  Jim Meyering  <jim@meyering.net>
61490
61491         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61492
61493 2007-01-02  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/settime (Include): Require timespec.h.
61496         * modules/nanosleep (Include): Likewise.
61497
61498 2007-01-01  Bruno Haible  <bruno@clisp.org>
61499
61500         * gnulib-tool (func_emit_copyright_notice): Bump year.
61501         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61502
61503 2007-01-01  Bruno Haible  <bruno@clisp.org>
61504
61505         Improve support for OpenBSD.
61506         * build-aux/config.rpath (libname_spec): Export.
61507         (library_names_spec): New variable. Export.
61508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61509         library_names_spec from the config.rpath output. Locate shared library
61510         through the name pattern in library_names_spec.
61511
61512 2007-01-01  Eric Blake  <ebb9@byu.net>
61513
61514         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61515
61516 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61519         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61520         assume the C locale, and avoid an "eval" that could cause trouble.
61521         Problem with SORT reported by Bob Proulx.
61522
61523         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61524         Define.  Trivial patch from Henning Nielsen Lund, originally
61525         sent to bug-grep@gnu.org today.
61526
61527 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61530         struct stat.  Problem reported by Henning Nielsen Lund.
61531         * lib/acl.c: Include acl.h first, to check interface.  Don't
61532         bother to include sys/types.h and sys/stat.h again.
61533
61534 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         Import the following change from libc; problem reported by
61537         Sven Verdoolaege.
61538
61539         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61540
61541         [BZ #1373]
61542         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61543
61544 2006-12-28  Jim Meyering  <jim@meyering.net>
61545
61546         * build-aux/announce-gen: Do not assume that the package
61547         builds any of tar.gz, tar.bz2, and .xdelta files.
61548         Suggestion from Simon Josefsson.
61549
61550 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61551
61552         * modules/announce-gen: New file.
61553
61554 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61555
61556         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61557         handles its gotchas now.
61558         * lib/mbswidth.c: Likewise.
61559         * lib/wcwidth.h: Likewise.
61560         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61561         and iswcntrl; the wctype module does this stuff now.
61562         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61564         * modules/mbchar (Depends-on): Add wctype.
61565         * modules/mbswidth (Depends-on): Likewise.
61566         * modules/wcwidth (Depends-on): Likewise.
61567
61568 2006-12-27  Eric Blake  <ebb9@byu.net>
61569
61570         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61571         module uses more than what <wctype.h> is required to provide.
61572
61573 2006-12-26  Eric Blake  <ebb9@byu.net>
61574
61575         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61576
61577 2006-12-26  Eric Blake  <ebb9@byu.net>
61578
61579         * modules/absolute-header: New module.
61580         * modules/fcntl (Depends-on): Depend on it.
61581         * modules/inttypes (Depends-on): Likewise.
61582         * modules/stdint (Depends-on): Likewise.
61583         * modules/sys_stat (Depends-on): Likewise.
61584         * modules/wctype (Depends-on): Likewise.
61585         * MODULES.html.sh (Support for building libraries and
61586         executables): Document it.
61587
61588 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         * gnulib-tool (SED): Remove, undoing previous change.
61591         The problem was that it broke coreutils on Solaris, because
61592         "sed --posix" leaked into a makefile.
61593         (sed): New alias, if 'alias' and GNU sed.
61594
61595 2006-12-24  Jim Meyering  <jim@meyering.net>
61596
61597         Work around an fchownat bug in glibc-2.4:
61598         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61599         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61600         in spite of the -P option.
61601         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61602         New macros.
61603         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61604         * modules/openat (Files): Add lib/fchownat.c.
61605         * lib/openat.c (fchownat): Don't define here.  Move to...
61606         * lib/fchownat.c: ...this new file.
61607
61608 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         Fix bug reported by Bruno Haible in
61611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61612         where quotearg.c didn't compile on Mac OS X 10.2 because it
61613         lacks <wchar.h> and wint_t.
61614         * lib/wctype_.h (__wctype_wint_t): New type.
61615         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61616         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61617         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61618         Arg is now of type __wctype_wint_t, not wint_t.
61619         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61620         substitute HAVE_WINT_T.
61621         * modules/wctype (Files): Add m4/wint_t.m4.
61622         (wctype.h): Substitute HAVE_WINT_T.
61623
61624 2006-12-23  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61627
61628 2006-12-23  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61631         S_ISLNK.
61632         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61633         mingw.
61634
61635 2006-12-22  Bruno Haible  <bruno@clisp.org>
61636
61637         * lib/copy-file.c: Include acl.h.
61638         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61639         Close the file descriptors only after being done with copy_acl.
61640         * modules/copy-file (Depends-on): Add acl.
61641
61642 2006-12-22  Bruno Haible  <bruno@clisp.org>
61643
61644         * gnulib-tool (SED): New variable.
61645         Use $SED instead of sed everywhere.
61646
61647 2006-12-22  Bruno Haible  <bruno@clisp.org>
61648
61649         * modules/no-c++: New file.
61650         * m4/no-c++.m4: New file.
61651         * MODULES.html.sh (Support for building libraries and executables):
61652         Add no-c++.
61653
61654 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61657         Include <limits.h>, and use its INT_MAX to rewrite the
61658         j loop so that it does not overflow 'int'.  Problem reported by
61659         Ralf Wildenhues in
61660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61661         Play it safe by shifting left by 1 rather than multiplying by 2,
61662         as GCC is less likely to optimize this away when the value
61663         is signed (when it assumes overflow leads to undefined behavior).
61664         Also, don't assume time_t uses two's complement.
61665
61666 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * MODULES.html.sh: New module wctype.
61669         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61670         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61671         <wctype.h>, since the new wctype module should fix this.
61672         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61673         the wctype module should arrange for it.
61674         * lib/regex_internal.h: Likewise.
61675         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61676         since the wctype module should handle this now.
61677         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61678         * modules/fnmatch (Depends-on): Add wctype.
61679         * modules/quotearg (Depends-on): Likewise.
61680         * modules/regex (Depends-on): Likewise.
61681
61682 2006-12-19  Bruno Haible  <bruno@clisp.org>
61683
61684         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61685         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61686
61687 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61688
61689         * modules/savewd (Depends-on): Fix dependency on fcntl.
61690
61691 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61694         conforms to C99, rather than relying on the user's environment
61695         setting of STDINT_H.
61696
61697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61698         and Eric Blake  <ebb9@byu.net>
61699
61700         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61701         This is more consistent with the other defines here.
61702         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61703         Port to z/OS.  Problem reported by Paul Gilmartin.
61704         Change local vars to use gl_ prefix rather than ac_.
61705         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61706         with other defines.
61707         * modules/double-slash-root: New module.
61708         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61709         (Depends-on): Add double-slash-root.
61710         * MODULES.html.sh (File system functions): Mention new module.
61711
61712 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61715         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61716         This is for the benefit of gzip, which doesn't do i18n.
61717
61718 2006-12-12  Jim Meyering  <jim@meyering.net>
61719
61720         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61721         Reported by Andreas Schwab <schwab@suse.de>.
61722
61723 2006-12-12  Bruno Haible  <bruno@clisp.org>
61724
61725         Merge these changes.
61726         2006-09-05  Bruno Haible  <bruno@clisp.org>
61727         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61728         iconv_alloc succeeded.
61729         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61730         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61731         test for " && dest " at the end - dest is always != NULL there. Call
61732         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61733         with 2xNULL arguments, also to flush the state storage. Handle the
61734         IRIX iconv behaviour. Realloc the final result, to throw away unused
61735         memory.
61736
61737 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61740         and fchmodat unconditionally, since glibc 2.4 has them.
61741         Problem reported by Arkadiusz Miskiewicz.
61742
61743 2006-12-10  Bruno Haible  <bruno@clisp.org>
61744
61745         * gnulib-tool (func_import): Show the include files only for those
61746         modules that are copied and specified.
61747         Reported by Karl Berry.
61748
61749 2006-12-08  Jim Meyering  <jim@meyering.net>
61750
61751         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61752         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61753
61754         * build-aux/announce-gen: Add two new options, both optional:
61755         --bootstrap-tools=TOOL_LIST
61756               a comma-separated list of tools, e.g.,
61757               autoconf,automake,bison,gnulib
61758         --gnulib-snapshot-date=DATE
61759               if gnulib is in the bootstrap tool list,
61760               then report this as the snapshot date.
61761               If not specified, use the current date/time.
61762               If you specify a date here, be sure it's UTC.
61763
61764 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61765
61766         * tests/test-argp-2.sh: Fix test to match actual output.
61767         (func_compare): Fix sed script to be portable.
61768
61769 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61772         workaround for this case.  It is not autoconfigured now; offhand
61773         it's hard to see how to autoconfigure it.
61774
61775 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61776
61777         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61778         a directory that is about to be chowned.  Such a directory's
61779         initial file permissions should permit the owner only and this
61780         should not be changed until after the chown, since the group and
61781         other bits would be incorrect if they granted permission before
61782         the chown.
61783
61784         Fix porting problem for iswctype reported by Georg Schwarz in:
61785         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61786         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61787         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61789         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61790
61791 2006-12-03  Jim Meyering  <jim@meyering.net>
61792
61793         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61794         p->fts_statp may not yet be defined.
61795         (fts_read): Instead, set it in the caller, once p->fts_statp is
61796         sure to be defined, and corresponds to a top-level directory.
61797         This bug made du -x fail.  Here's the coreutils test case:
61798         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61799         Reported by Mike Frysinger.
61800
61801 2006-12-01  Jim Meyering  <jim@meyering.net>
61802
61803         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61804         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61805         Reported by Simon Josefsson.
61806
61807 2006-11-30  Jim Meyering  <jim@meyering.net>
61808
61809         * m4/warning.m4: Use the all-permissive copyright notice
61810         recommended by RMS (rather than LGPL).
61811         * m4/vararrays.m4: Likewise.
61812         * m4/flexmember.m4: Likewise.
61813
61814 2006-11-29  Bruno Haible  <bruno@clisp.org>
61815
61816         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61817         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61818         using +=.
61819         Reported by Simon Josefsson <simon@josefsson.org>.
61820
61821 2006-11-28  James Youngman <jay@gnu.org>
61822
61823         * README: Advise users that they might find the bug-gnulib@gnu.org
61824         and autotools-announce@gnu.org mailing lists useful.
61825
61826 2006-11-28  Bruno Haible  <bruno@clisp.org>
61827
61828         * m4/ptrdiff_max.m4: Remove file.
61829
61830 2006-11-21  Bruno Haible  <bruno@clisp.org>
61831
61832         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61833         _AC_COMPUTE_INT.
61834         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61835         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61836         _AC_COMPUTE_INT.
61837         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61838         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61839         _AC_COMPUTE_INT.
61840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61841
61842 2006-11-28  Jim Meyering  <jim@meyering.net>
61843
61844         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61845         warning from "gcc -Wshadow" about shadowing the builtin.
61846
61847 2006-11-27  Bruno Haible  <bruno@clisp.org>
61848
61849         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61850         _AC_COMPUTE_INT.
61851         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61852
61853 2006-11-27  Bruno Haible  <bruno@clisp.org>
61854             Paul Eggert  <eggert@cs.ucla.edu>
61855
61856         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61857
61858 2006-11-26  Bruno Haible  <bruno@clisp.org>
61859
61860         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61861         noinst_LTLIBRARIES.
61862
61863 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61864             Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61867         if compiling with "gcc -ansi".
61868
61869 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         Fix some incompatibilities with gcc -ansi -pedantic.
61872         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61873         if compiling pedantically with GCC, unless it's C99 or later.
61874         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61875         it mishandles gcc -ansi -pedantic as well.
61876         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61877         if gcc -pedantic.
61878         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61879         initializers for struct if -pedantic, unless it's C99 or later.
61880
61881 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61882
61883         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61884         Don't close an fd more than once. Identical atimes indicate
61885         success, not failure.
61886
61887 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61888
61889         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61890
61891 2006-11-23  Jim Meyering  <jim@meyering.net>
61892
61893         * build-aux/announce-gen: New file.  From coreutils.
61894
61895 2006-11-22  Jim Meyering  <jim@meyering.net>
61896
61897         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61898         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61899         (fts_read): Use a temporary to narrow the overused st_size member
61900         before using it in a switch statement.  Reported by Matthew Woehlke.
61901
61902         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61903         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61904
61905 2006-11-20  Bruno Haible  <bruno@clisp.org>
61906
61907         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61908         changequote instead of pairs of brackets.
61909         Reported by Andreas Schwab <schwab@suse.de>.
61910
61911 2006-11-21  Jim Meyering  <jim@meyering.net>
61912
61913         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61914         so as to remain compatible with older compilers.
61915         Patch from Michael Deutschmann.
61916
61917 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * MODULES.html.sh (File system functions): Add openat.
61920
61921         * lib/openat.h (rpl_fstatat): New macro, if
61922         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61923         (fstatat): Define to rpl_fstatat under the same conditions,
61924         unless COMPILING_FSTATAT.
61925         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61926         seems to have the bug.
61927         * lib/fstatat.c: New file.
61928         * modules/openat (Files): Add it.
61929
61930 2006-11-20  Bruno Haible  <bruno@clisp.org>
61931
61932         * Makefile: New file.
61933
61934 2006-11-20  Jim Meyering  <jim@meyering.net>
61935
61936         The beginnings of syntax-related checks for gnulib.
61937         * lib/Makefile: New file.
61938         * lib/t-idcache: New script.  Ensure that the two halves of
61939         idcache.c stay in sync.
61940
61941         * lib/idcache.c: Adjust comments in user- and group- portions to
61942         be more accurate, and to be consistent with one another.
61943
61944 2006-11-20  Jim Meyering  <jim@meyering.net>
61945
61946         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61947         continue using the flexible array member (thus, this module performs
61948         half as many malloc calls), with the addition that...
61949         (getgroup, getuser): Consistently record a non-match via an empty
61950         "name" string, and map an empty string match to a NULL return value.
61951         * modules/idcache (Depends-on): Re-add flexmember.
61952
61953         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61954         (getuidbyname, getgroup, getgidbyname): Likewise.
61955
61956         Use cleaner syntax: NULL rather than 0.
61957         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61958
61959 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61962         It mishandled the case where the group was missing.
61963         Problem reported by Greg Schafer.
61964         * modules/idcache: Likewise.
61965
61966 2006-11-18  Jim Meyering  <jim@meyering.net>
61967
61968         * check-module (%exempt_header): Add exception for some
61969         conditionally-included headers.
61970
61971         * modules/i-ring (Depends-on): Add verify.
61972         (License): Change to LGPL.
61973
61974 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61975
61976         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61977         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61978         and inttostr.h.  Use snprintf rather than uinttostr, so that
61979         LGPLed code doesn't depend on GPLed.
61980
61981 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61982
61983         * modules/inline (License): Change from GPL to LGPL.
61984
61985 2006-11-17  Jim Meyering  <jim@meyering.net>
61986
61987         * modules/d-type (License): Switch to LGPL.
61988
61989 2006-11-15  Bruno Haible  <bruno@clisp.org>
61990
61991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61992
61993 2006-11-15  Eric Blake  <ebb9@byu.net>
61994
61995         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61996         the module dependency.
61997
61998 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61999             Bruno Haible  <bruno@clisp.org>
62000
62001         * gnulib-tool (func_create_testdir): Add license consistency check.
62002
62003 2006-11-15  Eric Blake  <ebb9@byu.net>
62004
62005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62006         random "(cached)" in configure output.
62007
62008 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62009
62010         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62011         test for conforming inttypes.h is both announced and cached.
62012
62013         * MODULES.html.sh (seen_modules, seen_files): New variables.
62014         (func_module): Rewrite to use a few less gnulib-tool and sed
62015         invocations.  Avoid a couple of quadratic algorithms for ...
62016         (missed_modules, missed_files): ... these, with ...
62017         (func_append, func_tmpdir): ... these new functions, from
62018         gnulib-tool.  Analogously, install traps for cleanup.
62019
62020         * tests/test-gc.c (main): Remove unused variables.
62021         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62022
62023 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * modules/inttostr (License): Change to LGPL.
62026
62027 2006-11-14  Eric Blake  <ebb9@byu.net>
62028
62029         * modules/tempname (License): Change to LGPL.
62030
62031 2006-11-14  Eric Blake  <ebb9@byu.net>
62032
62033         * doc/functions.texi (Function Portability): *printf functions on
62034         Cygwin now understand all POSIX size specifiers.
62035
62036 2006-11-14  Bruno Haible  <bruno@clisp.org>
62037
62038         * modules/c-ctype (License): Change to LGPL.
62039
62040 2006-11-12  Bruno Haible  <bruno@clisp.org>
62041
62042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62043         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62044         for GNOME libraries, for which the include files are installed in
62045         subdirectories of $prefix/include.
62046
62047 2006-11-12  Bruno Haible  <bruno@clisp.org>
62048
62049         * m4/lib-link.m4: Require at least autoconf-2.54.
62050         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62051         name to underscores for the --with option.
62052
62053 2006-11-13  Bruno Haible  <bruno@clisp.org>
62054
62055         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62056         the tests directory.
62057         Reported by Ralf Wildenhues.
62058
62059 2006-11-13  Bruno Haible  <bruno@clisp.org>
62060
62061         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62062         (func_emit_initmacro_end): Undo the override here.
62063         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62064         Works around the famous automake error in coreutils.
62065
62066 2006-11-13  Eric Blake  <ebb9@byu.net>
62067
62068         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62069         element, not its node.
62070
62071 2006-11-12  Bruno Haible  <bruno@clisp.org>
62072
62073         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62074         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62075
62076 2006-11-12  Bruno Haible  <bruno@clisp.org>
62077
62078         * gnulib-tool: New option --local-symlink.
62079         (func_usage): Document it.
62080         (lsymbolic): New variable.
62081         (func_import, func_create_testdir): If --symlink was not specified,
62082         test whether --local-symlink was specified and the file comes from
62083         the local_gnulib_dir.
62084
62085 2006-11-12  Bruno Haible  <bruno@clisp.org>
62086
62087         * gnulib-tool (func_ln): New function.
62088         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62089
62090 2006-11-12  Bruno Haible  <bruno@clisp.org>
62091
62092         Finish support for source files in subdirectories.
62093         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62094         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62095         AUTOMAKE_OPTIONS.
62096         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62097
62098 2006-11-12  Bruno Haible  <bruno@clisp.org>
62099
62100         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62101         EXTRA_lib_SOURCES augmentation.
62102         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62103
62104 2006-11-12  Jim Meyering  <jim@meyering.net>
62105
62106         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62107         file descriptors.  This also averts a failure on systems with
62108         native openat support when a traversed directory lacks "x" access.
62109         * lib/fts_.h: Include "i-ring.h"
62110         (struct FTS) [fts_fd_ring]: New member.
62111         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62112         (FCHDIR): Add parentheses.
62113         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62114         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62115         When descending, rather than simply closing the previous
62116         fts_cwd_fd value, push that file descriptor onto the ring.
62117         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62118         (fts_open): Initialize the new fd_ring member.
62119         (fts_close): Clear the ring.
62120         (fts_safe_changedir): When possible, use our new fd_ring to skip
62121         the diropen and fstat and dev/ino comparison that would normally
62122         accompany a virtual `chdir ("..")'.
62123
62124         * modules/fts (Depends-on): Add i-ring.
62125         * modules/i-ring: New module.
62126         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62127         * m4/i-ring.m4: New file.
62128
62129 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62130
62131         * gnulib-tool (func_create_testdir): Fix replacement of
62132         `build-aux' in configure.ac.  Run autotools in gltests
62133         subdirectory.
62134         (func_create_testdir, func_create_megatestdir, test): There is
62135         no need for '--force' in most autotool invocations in a new
62136         tree.  Actually fail the whole test if any of the tools, or the
62137         configure or make stages fail.
62138
62139         Sync from Automake.
62140         * build-aux/gnupload: Revert last change.  Add pointer to upload
62141         instructions of the GNU Maintenance Instructions.
62142         Suggestion by Karl Berry.
62143
62144 2006-11-10  Jim Meyering  <jim@meyering.net>
62145
62146         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62147
62148 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62151         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62152         (bind_textdomain_codeset) [! ENABLE_NLS]:
62153         Evaluate all the arguments.  That way, callers get compatible behavior
62154         if the arguments have side effects.  Also, it avoids some GCC
62155         diagnostics in some cases; Joel E. Denny reported problems when Bison
62156         was configured with --enable-gcc-warnigs.
62157
62158 2006-11-10  Jim Meyering  <jim@meyering.net>
62159
62160         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62161         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62162         account.
62163
62164 2006-11-10  Jim Meyering  <jim@meyering.net>
62165
62166         * modules/inline: New file/module.
62167         * modules/xalloc (Files): Remove m4/inline.m4.
62168         (Depends-on): Add inline, instead.
62169         * modules/oset: Likewise.
62170         * modules/list: Likewise.
62171
62172 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62173
62174         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62175         Problem reported by Matthew Woehlke.
62176
62177 2006-11-09  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/tempname.c (gen_tempname): Remove variant that invokes
62180         __gen_tempname.
62181         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62182         __gen_tempname.
62183
62184 2006-11-08  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62187         to 'yes' instead of 'cross-compiling'.
62188
62189 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * lib/quotearg.h (quotearg_free): New decl.
62192         * lib/quotearg.c (quotearg_free): New function.
62193         (slot0, nslots, slotvec0, slotvec):
62194         Now file-scope so that quotearg_free can get at them.
62195
62196 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62197
62198         Sync from Automake.
62199         * build-aux/gnupload: Add missing 'gnu' to example URL.
62200         Report by Karl Berry.
62201
62202 2006-11-08  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62205         Suggested by Paul Eggert.
62206
62207 2006-11-08  Jim Meyering  <jim@meyering.net>
62208
62209         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62210         It's already included if !_LIBC.
62211         (fts_safe_changedir): Add a comment.
62212
62213 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62216         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62217         Matthew Woehlke.
62218
62219         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62220         definitions up, to avoid colliding with change below.
62221         (static_inline) [HAVE_INLINE]: New macro.
62222         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62223         Provide extern decls when !HAVE_INLINE.  Do not define unless
62224         static_inline is defined, either by us or by xmalloc.c.  Use
62225         static_inline rather than static inline.
62226         (XCALLOC): Optimize sizeof(T) = 1 case.
62227         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62228
62229 2006-11-07  Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62232         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62233         AC_C_INLINE.
62234         * modules/xalloc (Files): Add m4/inline.m4.
62235
62236 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62237
62238         * README: Fix typo.
62239         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62240         (Miscellanous Notes): ...from this.
62241
62242 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62243
62244         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62245         Mention that offsetof should be used instead of sizeof.
62246         From Bruno Haible.
62247
62248 2006-11-07  Bruno Haible  <bruno@clisp.org>
62249
62250         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62251
62252 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62253
62254         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62255         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62256         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62257         (gl_tree_add_before, gl_tree_add_after):
62258         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62259         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62260         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62261         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62262         (gl_linked_add_after, gl_linked_add_at): Likewise.
62263         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62264         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62265         (gl_tree_add_before, gl_tree_add_after): Likewise.
62266         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62267         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62268         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62269
62270 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62271
62272         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62273
62274 2006-11-06  Bruno Haible  <bruno@clisp.org>
62275
62276         * m4/inline.m4: New file.
62277         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62278         * modules/list (Files): Add m4/inline.m4.
62279         * modules/oset (Files): Likewise.
62280
62281 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * lib/idcache.c: Include <stddef.h>, for offsetof.
62284         (struct userid.name): Change from char * to a flexible array member.
62285         All uses changed.
62286         * modules/idcache (Depends-on): Add flexmember.
62287
62288         * MODULES.html.sh (Core language properties): New module flexmember.
62289         * modules/flexmember, m4/flexmember.m4: New files.
62290
62291         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62292         inline functions that are identical with the old xnmalloc_inline,
62293         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62294         that we can avoid some unnecessary integer multiplications and
62295         divisions in the common case where the element size is known at
62296         compile time.
62297         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62298         needed.
62299         (xnboundedmalloc): Remove.
62300         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62301         arguments, for consistency with rest of this header.
62302         (xcharalloc): Rewrite using XNMALLOC.
62303         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62304         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62305         versions have been moved to lib/xalloc.h and renamed to be the
62306         non-*_inline versions.
62307         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62308         and xnrealloc functions, since those functions are now inline and
62309         now call us.
62310         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62311         renaming described above.
62312         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62313         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62314         captures the dependency in AC_C_INLINE.
62315
62316         New module canonicalize-lgpl, proposed by Charles Wilson in
62317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62318         with a few small changes afterwards.
62319         * MODULES.html.sh (File system functions): New module
62320         canonicalize-lgpl.
62321         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62322         and canonicalize_file_name.
62323         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62324         * modules/canonicalize-lgpl: New files.
62325
62326 2006-11-05  Bruno Haible  <bruno@clisp.org>
62327
62328         * gnulib-tool (func_import, func_create_testdir): Create directories
62329         also for files in subdirectories of lib/.
62330
62331 2006-11-05  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62334         ANSI C compliant.
62335
62336 2006-11-03  Bruno Haible  <bruno@clisp.org>
62337
62338         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62339         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62340         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62341         (xnboundedmalloc): New inline function.
62342         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62343         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62344         xmalloc.
62345         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62346         xmalloc.
62347         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62348         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62349         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62350         xmalloc.
62351         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62352         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62353         xmalloc.
62354         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62355         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62356         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62357         xmalloc.
62358         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62359         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62360         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62361         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62362         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62363         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62364         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62365
62366 2006-11-03  Bruno Haible  <bruno@clisp.org>
62367
62368         * lib/c-ctype.h [C++]: Define functions without name mangling.
62369         * lib/fwriteerror.h [C++]: Likewise.
62370         * lib/gcd.h [C++]: Likewise.
62371         * lib/linebreak.h [C++]: Likewise.
62372
62373 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62376         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62377         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62379         Check for functions and headers just once.
62380         Check for declaration of canonicalize_file_name.
62381         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62382
62383 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62384
62385         * gnulib-tool (func_import): Fix typo in actioncmd.
62386
62387 2006-11-02  Bruno Haible  <bruno@clisp.org>
62388
62389         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62390         newline sequence in the Makefile.am snippet as a space, like "make"
62391         does.
62392         Reported by Roger Persson <perrog@gmail.com>.
62393
62394 2006-11-01  Bruno Haible  <bruno@clisp.org>
62395
62396         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62397         already declared in <string.h>.
62398         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62399
62400 2006-11-01  Bruno Haible  <bruno@clisp.org>
62401
62402         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62403         * lib/strcase.h: Include <string.h>.
62404         (strcasecmp): Define to rpl_strcasecmp here.
62405
62406 2006-11-01  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62409
62410 2006-11-01  Eric Blake  <ebb9@byu.net>
62411
62412         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62413
62414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62415
62416 2006-10-29  Bruno Haible  <bruno@clisp.org>
62417
62418         Make it compile in C++ mode.
62419         * lib/full-write.c (full_rw): Add a cast.
62420
62421 2006-11-01  Bruno Haible  <bruno@clisp.org>
62422
62423         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62424         be POSIX compliant.
62425         Reported by Roger Persson <perrog@gmail.com>.
62426
62427 2006-11-01  Eric Blake  <ebb9@byu.net>
62428
62429         * lib/getopt_.h: Fix comments.
62430
62431 2006-10-31  Eric Blake  <ebb9@byu.net>
62432
62433         * modules/tmpdir (Depends-on): Add sys_stat.
62434         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62435         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62436         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62437         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62438         tempname.
62439
62440 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         Avoid some C++ diagnostics reported by Bruno Haible.
62443         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62444         xmalloc.
62445         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62446         (struct slotvec): Move to top level.
62447         (quotearg_n_options): Rewrite to avoid xmalloc.
62448         * lib/xalloc.h (xcharalloc): New function.
62449         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62450         [defined __cplusplus]: Add function template that provides result
62451         type propagation.  This part of the change is from Bruno Haible.
62452
62453 2006-10-29  Bruno Haible  <bruno@clisp.org>
62454
62455         Make it compile in C++ mode.
62456         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62457         * lib/strnlen1.c (strnlen1): Cast memchr result.
62458         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62459         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62460         (create_temp_dir): Rename local variable 'template'.
62461         (compile_csharp_using_sscli): Add cast.
62462         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62463         * lib/findprog.c (find_in_path): Likewise.
62464         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62465         * lib/wait-process.c (register_slave_subprocess): Likewise.
62466
62467 2006-10-22  Bruno Haible  <bruno@clisp.org>
62468
62469         * modules/tsearch: New file.
62470         * lib/tsearch.h: New file.
62471         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62472         * m4/tsearch.m4: New file.
62473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62474
62475 2006-10-29  Eric Blake  <ebb9@byu.net>
62476
62477         * lib/arcfour.c: Assume config.h.
62478         * lib/arctwo.c: Likewise.
62479         * lib/base64.c: Likewise.
62480         * lib/check-version.c: Likewise.
62481         * lib/crc.c: Likewise.
62482         * lib/des.c: Likewise.
62483         * lib/gc-gnulib.c: Likewise.
62484         * lib/gc-libgcrypt.c: Likewise.
62485         * lib/gc-pbkdf2-sha1.c: Likewise.
62486         * lib/getaddrinfo.c: Likewise.
62487         * lib/getdelim.c: Likewise.
62488         * lib/getline.c: Likewise.
62489         * lib/hmac-md5.c: Likewise.
62490         * lib/hmac-sha1.c: Likewise.
62491         * lib/iconvme.c: Likewise.
62492         * lib/md2.c: Likewise.
62493         * lib/md4.c: Likewise.
62494         * lib/memxor.c: Likewise.
62495         * lib/read-file.c: Likewise.
62496         * lib/readline.c: Likewise.
62497         * lib/rijndael-alg-fst.c: Likewise.
62498         * lib/rijndael-api-fst.c: Likewise.
62499         * lib/xgetdomainname.c: Likewise.
62500
62501 2006-10-28  Eric Blake  <ebb9@byu.net>
62502
62503         * lib/xstrndup.c: Assume config.h.
62504
62505 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62508         stat-macros.h is now for our own macros, whereas stat_h is for
62509         macros in the <sys/stat.h> name space.
62510         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62511         (STAT_MACROS_H): Remove.
62512         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62513         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62514         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62515         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62516         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62517         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62518         Move these macros to ...
62519         * lib/stat_.h: here.  Don't include stat-macros.h.
62520         * lib/canonicalize.c: Don't include stat-macros.h.
62521         * lib/chown.c: Likewise.
62522         * lib/euidaccess.c: Likewise.
62523         * lib/file-type.c: Likewise.
62524         * lib/filemode.c: Likewise.
62525         * lib/glob.c: Likewise.
62526         * lib/isapipe.c: Likewise.
62527         * lib/lchown.c: Likewise.
62528         * lib/lstat.c: Likewise.
62529         * lib/mkdir-p.c: Likewise.
62530         * lib/rmdir.c: Likewise.
62531         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62533         unless mkdir isn't declared, to speed up 'configure'.
62534         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62535         would define all the S_* symbols.
62536         * modules/canonicalize (Depends-on):
62537         Depend on sys_stat, not stat-macros.
62538         * modules/chown: Likewise.
62539         * modules/euidaccess: Likewise.
62540         * modules/filemode: Likewise.
62541         * modules/file-type: Likewise.
62542         * modules/glob: Likewise.
62543         * modules/isapipe: Likewise.
62544         * modules/lchown: Likewise.
62545         * modules/lstat: Likewise.
62546         * modules/mkancesdirs: Likewise.
62547         * modules/rmdir: Likewise.
62548         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62549         * modules/modechange: Likewise.
62550         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62551         (configure.ac): Remove gl_STAT_MACROS.
62552         * modules/sys_stat (Depends-on): Remove stat-macros.
62553
62554 2006-10-27  Bruno Haible  <bruno@clisp.org>
62555
62556         * m4/signed.m4: Remove file.
62557         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62558         invocation.
62559         * modules/vasnprintf (Files): Remove m4/signed.m4.
62560
62561 2006-10-27  Bruno Haible  <bruno@clisp.org>
62562
62563         Update to GNU gettext 0.16.
62564         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62565         m4/inttypes-h.m4, m4/signed.m4.
62566         * m4/gettext.m4: Update to GNU gettext 0.16.
62567         * m4/intl.m4: New file, from GNU gettext.
62568         * m4/intldir.m4: New file, from GNU gettext.
62569         * config/srclist.txt: Update
62570
62571 2006-10-27  Eric Blake  <ebb9@byu.net>
62572
62573         * MODULES.html.sh: Document tempname.
62574         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62575         dependencies.
62576         (Files): Move lib/tempname.c...
62577         * modules/tempname: ...to this new module.
62578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62579         (gl_PREREQ_TEMPNAME): Move...
62580         * m4/tempname.m4: ...to this new file.
62581         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62582         * modules/sys_stat (Depends-on): Add stat-macros.
62583         * lib/stat_.h (includes): Pick up stat macros.
62584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62585         if stat macros are broken.
62586         * lib/tempname.c (includes): No need to include "stat-macros.h".
62587         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62588         (direxists, __path_search) [!_LIBC]: Don't compile these in
62589         gnulib; the tmpdir module covers that.
62590         * lib/tempname.h: New file.
62591
62592 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         * COPYING: Explain how gnulib-tool converts licence headers.
62595         Almost all wording by Eric Blake.
62596
62597 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * lib/mbchar.h (is_basic_table): Make read-only.
62600         * lib/mbchar.c (is_basic_table): Likewise.
62601         Reported by John Darrington.
62602
62603 2006-10-25  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/progname.h (set_program_name): Undefine before defining.
62606
62607 2006-10-25  Bruno Haible  <bruno@clisp.org>
62608
62609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62610         false for non-gcc C++ compilers.
62611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62612
62613 2006-10-24  Bruno Haible  <bruno@clisp.org>
62614
62615         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62616         iconv implementations like Irix iconv.
62617
62618 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * modules/vararrays: New file.
62621         * m4/vararrays.m4: New file, taken from diffutils.
62622         * MODULES.html.sh: New module vararrays.
62623
62624 2006-10-24  Karl Berry  <karl@gnu.org>
62625
62626         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62627         Don't call GNU Unix.
62628
62629 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62630
62631         * users.txt: Add Libtool.
62632
62633         Sync from Libtool:
62634
62635         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62636
62637         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62638         to gnulib's policy of including config.h unconditionally.
62639
62640 2006-10-24  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/wcwidth (Files): Add m4/wint_t.m4.
62643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62644         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62645
62646 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62649         to pacify GCC with some -W flags enabled.  Problem reported by
62650         Bruno Haible.
62651
62652 2006-10-24  Jim Meyering  <jim@meyering.net>
62653
62654         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62655         Reported by Karl Berry.
62656
62657 2006-10-23  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62660
62661 2006-10-24  Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/gl_list.h: Use C comment style, not C++ comment style.
62664
62665 2006-10-23  Eric Blake  <ebb9@byu.net>
62666
62667         * lib/getaddrinfo.c (includes): Add missing include.
62668
62669 2006-10-23  Bruno Haible  <bruno@clisp.org>
62670             Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         Ability to rename obstack_free.
62673         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62674         obstack_free.
62675         (obstack_free): Invoke the __obstack_free macro.
62676         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62677
62678 2006-10-23  Bruno Haible  <bruno@clisp.org>
62679             Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62682         __argc, __argv from the declaration. (They are defined as macros on
62683         mingw.)
62684
62685 2006-10-22  Bruno Haible  <bruno@clisp.org>
62686
62687         * doc/gnulib-intro.texi: New file.
62688         * doc/gnulib.texi: Include it.
62689
62690 2006-10-21  Bruno Haible  <bruno@clisp.org>
62691
62692         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62693         "Introduction", "Miscellanous Notes", "Particular Modules".
62694
62695 2006-10-21  Bruno Haible  <bruno@clisp.org>
62696
62697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62698         Change mostlyclean-local rule to avoid sh syntax error from bash
62699         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62700
62701 2006-10-23  Jim Meyering  <jim@meyering.net>
62702
62703         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62704         in place of snprintf.
62705
62706         * modules/inttostr (Files): Add lib/uinttostr.c.
62707         * lib/uinttostr.c (inttostr): New file/function.
62708         * lib/inttostr.h (uinttostr): Declare.
62709         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62710         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62711         Add uinttostr.
62712         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62713
62714 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         * lib/canonicalize.c (ELOOP): Define if not already defined.
62717         Problem reported by Bruno Haible in
62718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62719
62720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62723         Problem reported by Perry Smith and Ville Laurikari.
62724
62725         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62726         uses.
62727
62728 2006-10-19  Bruno Haible  <bruno@clisp.org>
62729
62730         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62731         for mingw.
62732
62733 2006-10-19  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62736         Needed for mingw.
62737
62738 2006-10-19  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62741
62742 2006-10-19  Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62745         it.
62746
62747 2006-10-19  Bruno Haible  <bruno@clisp.org>
62748
62749         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62750         invocation.
62751
62752 2006-10-19  Bruno Haible  <bruno@clisp.org>
62753
62754         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62755         mountlist by default.
62756
62757 2006-10-16  Bruno Haible  <bruno@clisp.org>
62758
62759         * lib/c-strstr.c: Include c-strstr.h.
62760
62761 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62762
62763         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62764         in a slash.
62765
62766 2006-10-18  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/lock.h [C++]: Wrap definitions in extern "C".
62769
62770 2006-10-18  Bruno Haible  <bruno@clisp.org>
62771
62772         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62773         gl_LIBOBJS list.
62774
62775 2006-10-18  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62778
62779 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * lib/xstrtol.h: Include gettext.h.
62782         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62783         Problem reported by Eric Blake.
62784         * modules/xstrtol (Depends-on): Add gettext-h.
62785
62786 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62787
62788         * lib/strftime.c (advance): New macro.
62789         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62790         incomplete type, so you can't add 0 to it.  Problem and patch
62791         reported by Eelco Dolstra for dietlibc.
62792
62793 2006-10-18  Jim Meyering  <jim@meyering.net>
62794
62795         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62796         type for a local, and rename it: s/up/user_proc/.
62797
62798 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62799
62800         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62801         READ_UTMP_USER_PROCESS.
62802         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62803
62804 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62807         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62808
62809 2006-10-17  Eric Blake  <ebb9@byu.net>
62810
62811         * lib/sigprocmask.c (sigprocmask): Fix typo.
62812
62813         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62814
62815         * modules/clean-temp (Makefile.am): Don't add to make output...
62816         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62817         config.h.
62818
62819 2006-10-17  Bruno Haible  <bruno@clisp.org>
62820
62821         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62822         differently if DEFAULT_TEXT_DOMAIN is set.
62823
62824 2006-10-16  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/clean-temp.c: Include fwriteerror.h.
62827
62828 2006-10-16  Bruno Haible  <bruno@clisp.org>
62829
62830         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62831
62832 2006-10-16  Bruno Haible  <bruno@clisp.org>
62833
62834         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62835         * lib/sigprocmask.h: Include <sys/types.h>.
62836         (sigset_t): Use the system's definition if present.
62837
62838 2006-10-17  Eric Blake  <ebb9@byu.net>
62839
62840         * lib/xvasprintf.c (includes): Assume config.h.
62841         * lib/xasprintf.c (includes): Likewise.
62842
62843 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62846         at least as wide as intmax_t.
62847
62848 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62849
62850         (Imported from Automake.)
62851         * build-aux/gnupload: Update to version 1.1 of directive file.
62852
62853 2006-10-16  Eric Blake  <ebb9@byu.net>
62854
62855         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62856         match Automake 1.10a.
62857
62858 2006-10-14  Bruno Haible  <bruno@clisp.org>
62859
62860         * modules/sigprocmask: New file.
62861         * lib/sigprocmask.h: New file.
62862         * lib/sigprocmask.c: New file.
62863         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62864         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62865         request sigprocmask.o.
62866         (gl_PREREQ_SIGPROCMASK): New macro.
62867         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62868         (Depends-on): Add sigprocmask.
62869         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62870         gt_SIGNALBLOCKING. Test for 'raise' only once.
62871         * lib/fatal-signal.c: Include sigprocmask.h.
62872         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62873         unblock_fatal_signals): Define always.
62874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62875         sigprocmask.
62876
62877 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62878
62879         Sync from Automake.
62880         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62881         which incorrectly sets the mode of an existing destination
62882         directory.  In some cases the unpatched install-sh could do the
62883         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62884         system.  We hope this is rare in practice, but it's clearly worth
62885         fixing.  Problem reported by Alex Unleashed in
62886         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62887         Also, don't bother to check for -m bugs unless we're using -m;
62888         suggested by Stepan Kasal.
62889
62890 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62891
62892         Sync from Automake.
62893         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62894         `-c' flag, so they appear at the same position as in %FASTDEP%
62895         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62896         which ignores unknown options only after the first non-option.
62897         Bug report against M4 by Nelson H. F. Beebe.
62898
62899 2006-10-13  Jim Meyering  <jim@meyering.net>
62900
62901         Fix a bug in yesterday's change.
62902         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62903         p->fts_statp->st_dev would be used uninitialized.
62904         Ensures that we always call fts_stat on the very first entry.
62905         Miklos Szeredi reported that find -xdev stopped working.
62906
62907 2006-10-12  Bruno Haible  <bruno@clisp.org>
62908
62909         * gnulib-tool (func_get_automake_snippet): Append an automatically
62910         computed EXTRA_DIST augmentation.
62911         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62912         * modules/alloca-opt (Makefile.am): Likewise.
62913         * modules/allocsa (Makefile.am): Likewise.
62914         * modules/arcfour (Makefile.am): Likewise.
62915         * modules/arctwo (Makefile.am): Likewise.
62916         * modules/argmatch (Makefile.am): Likewise.
62917         * modules/argz (Makefile.am): Likewise.
62918         * modules/atexit (Makefile.am): Likewise.
62919         * modules/backupfile (Makefile.am): Likewise.
62920         * modules/byteswap (Makefile.am): Likewise.
62921         * modules/c-strtod (Makefile.am): Likewise.
62922         * modules/c-strtold (Makefile.am): Likewise.
62923         * modules/calloc (Makefile.am): Likewise.
62924         * modules/canon-host (Makefile.am): Likewise.
62925         * modules/canonicalize (Makefile.am): Likewise.
62926         * modules/chdir-long (Makefile.am): Likewise.
62927         * modules/chdir-safer (Makefile.am): Likewise.
62928         * modules/check-version (Makefile.am): Likewise.
62929         * modules/chown (Makefile.am): Likewise.
62930         * modules/cloexec (Makefile.am): Likewise.
62931         * modules/close-stream (Makefile.am): Likewise.
62932         * modules/closeout (Makefile.am): Likewise.
62933         * modules/crc (Makefile.am): Likewise.
62934         * modules/csharpexec (Makefile.am): Likewise.
62935         * modules/cycle-check (Makefile.am): Likewise.
62936         * modules/des (Makefile.am): Likewise.
62937         * modules/dev-ino (Makefile.am): Likewise.
62938         * modules/dirfd (Makefile.am): Likewise.
62939         * modules/dirname (Makefile.am): Likewise.
62940         * modules/dup2 (Makefile.am): Likewise.
62941         * modules/eealloc (Makefile.am): Likewise.
62942         * modules/error (Makefile.am): Likewise.
62943         * modules/euidaccess (Makefile.am): Likewise.
62944         * modules/exclude (Makefile.am): Likewise.
62945         * modules/exitfail (Makefile.am): Likewise.
62946         * modules/fcntl-safer (Makefile.am): Likewise.
62947         * modules/fcntl (Makefile.am): Likewise.
62948         * modules/file-type (Makefile.am): Likewise.
62949         * modules/fileblocks (Makefile.am): Likewise.
62950         * modules/filemode (Makefile.am): Likewise.
62951         * modules/filenamecat (Makefile.am): Likewise.
62952         * modules/fnmatch (Makefile.am): Likewise.
62953         * modules/fopen-safer (Makefile.am): Likewise.
62954         * modules/fpending (Makefile.am): Likewise.
62955         * modules/fprintftime (Makefile.am): Likewise.
62956         * modules/free (Makefile.am): Likewise.
62957         * modules/fsusage (Makefile.am): Likewise.
62958         * modules/ftruncate (Makefile.am): Likewise.
62959         * modules/fts (Makefile.am): Likewise.
62960         * modules/gc-arcfour (Makefile.am): Likewise.
62961         * modules/gc-des (Makefile.am): Likewise.
62962         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62963         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62964         * modules/gc-md4 (Makefile.am): Likewise.
62965         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62966         * modules/gc-sha1 (Makefile.am): Likewise.
62967         * modules/gc (Makefile.am): Likewise.
62968         * modules/getaddrinfo (Makefile.am): Likewise.
62969         * modules/getcwd (Makefile.am): Likewise.
62970         * modules/getdelim (Makefile.am): Likewise.
62971         * modules/getdomainname (Makefile.am): Likewise.
62972         * modules/getgroups (Makefile.am): Likewise.
62973         * modules/gethostname (Makefile.am): Likewise.
62974         * modules/gethrxtime (Makefile.am): Likewise.
62975         * modules/getline (Makefile.am): Likewise.
62976         * modules/getloadavg (Makefile.am): Likewise.
62977         * modules/getlogin_r (Makefile.am): Likewise.
62978         * modules/getndelim2 (Makefile.am): Likewise.
62979         * modules/getopt (Makefile.am): Likewise.
62980         * modules/getpagesize (Makefile.am): Likewise.
62981         * modules/getpass-gnu (Makefile.am): Likewise.
62982         * modules/getpass (Makefile.am): Likewise.
62983         * modules/getsubopt (Makefile.am): Likewise.
62984         * modules/gettime (Makefile.am): Likewise.
62985         * modules/gettimeofday (Makefile.am): Likewise.
62986         * modules/getugroups (Makefile.am): Likewise.
62987         * modules/getusershell (Makefile.am): Likewise.
62988         * modules/glob (Makefile.am): Likewise.
62989         * modules/group-member (Makefile.am): Likewise.
62990         * modules/hard-locale (Makefile.am): Likewise.
62991         * modules/hash (Makefile.am): Likewise.
62992         * modules/hmac-md5 (Makefile.am): Likewise.
62993         * modules/hmac-sha1 (Makefile.am): Likewise.
62994         * modules/human (Makefile.am): Likewise.
62995         * modules/idcache (Makefile.am): Likewise.
62996         * modules/imaxabs (Makefile.am): Likewise.
62997         * modules/imaxdiv (Makefile.am): Likewise.
62998         * modules/inet_ntop (Makefile.am): Likewise.
62999         * modules/inet_pton (Makefile.am): Likewise.
63000         * modules/intprops (Makefile.am): Likewise.
63001         * modules/inttostr (Makefile.am): Likewise.
63002         * modules/inttypes (Makefile.am): Likewise.
63003         * modules/isapipe (Makefile.am): Likewise.
63004         * modules/javaversion (Makefile.am): Likewise.
63005         * modules/lchmod (Makefile.am): Likewise.
63006         * modules/lchown (Makefile.am): Likewise.
63007         * modules/localcharset (Makefile.am): Likewise.
63008         * modules/long-options (Makefile.am): Likewise.
63009         * modules/lstat (Makefile.am): Likewise.
63010         * modules/malloc (Makefile.am): Likewise.
63011         * modules/mathl (Makefile.am): Likewise.
63012         * modules/mbchar (Makefile.am): Likewise.
63013         * modules/md2 (Makefile.am): Likewise.
63014         * modules/md4 (Makefile.am): Likewise.
63015         * modules/md5 (Makefile.am): Likewise.
63016         * modules/memcasecmp (Makefile.am): Likewise.
63017         * modules/memchr (Makefile.am): Likewise.
63018         * modules/memcmp (Makefile.am): Likewise.
63019         * modules/memcoll (Makefile.am): Likewise.
63020         * modules/memcpy (Makefile.am): Likewise.
63021         * modules/memmem (Makefile.am): Likewise.
63022         * modules/memmove (Makefile.am): Likewise.
63023         * modules/mempcpy (Makefile.am): Likewise.
63024         * modules/memrchr (Makefile.am): Likewise.
63025         * modules/memset (Makefile.am): Likewise.
63026         * modules/memxor (Makefile.am): Likewise.
63027         * modules/mkancesdirs (Makefile.am): Likewise.
63028         * modules/mkdir-p (Makefile.am): Likewise.
63029         * modules/mkdir (Makefile.am): Likewise.
63030         * modules/mkdtemp (Makefile.am): Likewise.
63031         * modules/mkstemp (Makefile.am): Likewise.
63032         * modules/mktime (Makefile.am): Likewise.
63033         * modules/modechange (Makefile.am): Likewise.
63034         * modules/mountlist (Makefile.am): Likewise.
63035         * modules/nanosleep (Makefile.am): Likewise.
63036         * modules/obstack (Makefile.am): Likewise.
63037         * modules/openat (Makefile.am): Likewise.
63038         * modules/pagealign_alloc (Makefile.am): Likewise.
63039         * modules/pathmax (Makefile.am): Likewise.
63040         * modules/physmem (Makefile.am): Likewise.
63041         * modules/poll (Makefile.am): Likewise.
63042         * modules/posixtm (Makefile.am): Likewise.
63043         * modules/posixver (Makefile.am): Likewise.
63044         * modules/putenv (Makefile.am): Likewise.
63045         * modules/quote (Makefile.am): Likewise.
63046         * modules/quotearg (Makefile.am): Likewise.
63047         * modules/raise (Makefile.am): Likewise.
63048         * modules/read-file (Makefile.am): Likewise.
63049         * modules/readline (Makefile.am): Likewise.
63050         * modules/readlink (Makefile.am): Likewise.
63051         * modules/readtokens (Makefile.am): Likewise.
63052         * modules/readutmp (Makefile.am): Likewise.
63053         * modules/realloc (Makefile.am): Likewise.
63054         * modules/regex (Makefile.am): Likewise.
63055         * modules/rename-dest-slash (Makefile.am): Likewise.
63056         * modules/rename (Makefile.am): Likewise.
63057         * modules/rijndael (Makefile.am): Likewise.
63058         * modules/rmdir (Makefile.am): Likewise.
63059         * modules/rpmatch (Makefile.am): Likewise.
63060         * modules/safe-read (Makefile.am): Likewise.
63061         * modules/safe-write (Makefile.am): Likewise.
63062         * modules/same-inode (Makefile.am): Likewise.
63063         * modules/same (Makefile.am): Likewise.
63064         * modules/save-cwd (Makefile.am): Likewise.
63065         * modules/savedir (Makefile.am): Likewise.
63066         * modules/setenv (Makefile.am): Likewise.
63067         * modules/settime (Makefile.am): Likewise.
63068         * modules/sha1 (Makefile.am): Likewise.
63069         * modules/sig2str (Makefile.am): Likewise.
63070         * modules/snprintf (Makefile.am): Likewise.
63071         * modules/stat-macros (Makefile.am): Likewise.
63072         * modules/stat-time (Makefile.am): Likewise.
63073         * modules/stdbool (Makefile.am): Likewise.
63074         * modules/stdint (Makefile.am): Likewise.
63075         * modules/stdlib-safer (Makefile.am): Likewise.
63076         * modules/stpcpy (Makefile.am): Likewise.
63077         * modules/stpncpy (Makefile.am): Likewise.
63078         * modules/strcase (Makefile.am): Likewise.
63079         * modules/strcasestr (Makefile.am): Likewise.
63080         * modules/strchrnul (Makefile.am): Likewise.
63081         * modules/strcspn (Makefile.am): Likewise.
63082         * modules/strdup (Makefile.am): Likewise.
63083         * modules/strerror (Makefile.am): Likewise.
63084         * modules/strftime (Makefile.am): Likewise.
63085         * modules/strndup (Makefile.am): Likewise.
63086         * modules/strnlen (Makefile.am): Likewise.
63087         * modules/strpbrk (Makefile.am): Likewise.
63088         * modules/strsep (Makefile.am): Likewise.
63089         * modules/strstr (Makefile.am): Likewise.
63090         * modules/strtod (Makefile.am): Likewise.
63091         * modules/strtoimax (Makefile.am): Likewise.
63092         * modules/strtok_r (Makefile.am): Likewise.
63093         * modules/strtol (Makefile.am): Likewise.
63094         * modules/strtoll (Makefile.am): Likewise.
63095         * modules/strtoul (Makefile.am): Likewise.
63096         * modules/strtoull (Makefile.am): Likewise.
63097         * modules/strtoumax (Makefile.am): Likewise.
63098         * modules/strverscmp (Makefile.am): Likewise.
63099         * modules/sys_socket (Makefile.am): Likewise.
63100         * modules/sys_stat (Makefile.am): Likewise.
63101         * modules/sysexits (Makefile.am): Likewise.
63102         * modules/time_r (Makefile.am): Likewise.
63103         * modules/timegm (Makefile.am): Likewise.
63104         * modules/timespec (Makefile.am): Likewise.
63105         * modules/tmpfile-safer (Makefile.am): Likewise.
63106         * modules/trim (Makefile.am): Likewise.
63107         * modules/unistd-safer (Makefile.am): Likewise.
63108         * modules/unlinkdir (Makefile.am): Likewise.
63109         * modules/unlocked-io (Makefile.am): Likewise.
63110         * modules/userspec (Makefile.am): Likewise.
63111         * modules/utime (Makefile.am): Likewise.
63112         * modules/utimecmp (Makefile.am): Likewise.
63113         * modules/utimens (Makefile.am): Likewise.
63114         * modules/vasnprintf (Makefile.am): Likewise.
63115         * modules/vasprintf (Makefile.am): Likewise.
63116         * modules/vsnprintf (Makefile.am): Likewise.
63117         * modules/xalloc (Makefile.am): Likewise.
63118         * modules/xgetcwd (Makefile.am): Likewise.
63119         * modules/xnanosleep (Makefile.am): Likewise.
63120         * modules/xreadlink (Makefile.am): Likewise.
63121         * modules/xstrtod (Makefile.am): Likewise.
63122         * modules/xstrtol (Makefile.am): Likewise.
63123         * modules/xstrtold (Makefile.am): Likewise.
63124         * modules/yesno (Makefile.am): Likewise.
63125         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63126
63127 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63128
63129         * modules/error (Makefile.am): Distribute files through
63130         EXTRA_DIST, not lib_SOURCES.
63131
63132 2006-10-12  Eric Blake  <ebb9@byu.net>
63133
63134         * modules/error (Makefile.am): Distribute files in /lib.
63135         * modules/obstack (Makefile.am): Likewise.
63136
63137 2006-10-12  Bruno Haible  <bruno@clisp.org>
63138
63139         * modules/acl (Makefile.am): Distribute all files in lib/ through
63140         EXTRA_DIST.
63141         * modules/arcfour (Makefile.am): Likewise.
63142         * modules/arctwo (Makefile.am): Likewise.
63143         * modules/argmatch (Makefile.am): Likewise.
63144         * modules/argz (Makefile.am): Likewise.
63145         * modules/atexit (Makefile.am): Likewise.
63146         * modules/backupfile (Makefile.am): Likewise.
63147         * modules/c-strtod (Makefile.am): Likewise.
63148         * modules/c-strtold (Makefile.am): Likewise.
63149         * modules/calloc (Makefile.am): Likewise.
63150         * modules/canon-host (Makefile.am): Likewise.
63151         * modules/canonicalize (Makefile.am): Likewise.
63152         * modules/chdir-long (Makefile.am): Likewise.
63153         * modules/chdir-safer (Makefile.am): Likewise.
63154         * modules/check-version (Makefile.am): Likewise.
63155         * modules/chown (Makefile.am): Likewise.
63156         * modules/cloexec (Makefile.am): Likewise.
63157         * modules/close-stream (Makefile.am): Likewise.
63158         * modules/closeout (Makefile.am): Likewise.
63159         * modules/crc (Makefile.am): Likewise.
63160         * modules/cycle-check (Makefile.am): Likewise.
63161         * modules/des (Makefile.am): Likewise.
63162         * modules/dirfd (Makefile.am): Likewise.
63163         * modules/dirname (Makefile.am): Likewise.
63164         * modules/dup2 (Makefile.am): Likewise.
63165         * modules/euidaccess (Makefile.am): Likewise.
63166         * modules/exclude (Makefile.am): Likewise.
63167         * modules/exitfail (Makefile.am): Likewise.
63168         * modules/fcntl-safer (Makefile.am): Likewise.
63169         * modules/file-type (Makefile.am): Likewise.
63170         * modules/fileblocks (Makefile.am): Likewise.
63171         * modules/filemode (Makefile.am): Likewise.
63172         * modules/filenamecat (Makefile.am): Likewise.
63173         * modules/fnmatch (Makefile.am): Likewise.
63174         * modules/fopen-safer (Makefile.am): Likewise.
63175         * modules/fpending (Makefile.am): Likewise.
63176         * modules/fprintftime (Makefile.am): Likewise.
63177         * modules/free (Makefile.am): Likewise.
63178         * modules/fsusage (Makefile.am): Likewise.
63179         * modules/ftruncate (Makefile.am): Likewise.
63180         * modules/fts (Makefile.am): Likewise.
63181         * modules/gc (Makefile.am): Likewise.
63182         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63183         * modules/getaddrinfo (Makefile.am): Likewise.
63184         * modules/getcwd (Makefile.am): Likewise.
63185         * modules/getdelim (Makefile.am): Likewise.
63186         * modules/getdomainname (Makefile.am): Likewise.
63187         * modules/getgroups (Makefile.am): Likewise.
63188         * modules/gethostname (Makefile.am): Likewise.
63189         * modules/gethrxtime (Makefile.am): Likewise.
63190         * modules/getline (Makefile.am): Likewise.
63191         * modules/getloadavg (Makefile.am): Likewise.
63192         * modules/getlogin_r (Makefile.am): Likewise.
63193         * modules/getopt (Makefile.am): Likewise.
63194         * modules/getpass (Makefile.am): Likewise.
63195         * modules/getpass-gnu (Makefile.am): Likewise.
63196         * modules/getsubopt (Makefile.am): Likewise.
63197         * modules/gettime (Makefile.am): Likewise.
63198         * modules/gettimeofday (Makefile.am): Likewise.
63199         * modules/getugroups (Makefile.am): Likewise.
63200         * modules/getusershell (Makefile.am): Likewise.
63201         * modules/glob (Makefile.am): Likewise.
63202         * modules/group-member (Makefile.am): Likewise.
63203         * modules/hard-locale (Makefile.am): Likewise.
63204         * modules/hash (Makefile.am): Likewise.
63205         * modules/hmac-md5 (Makefile.am): Likewise.
63206         * modules/hmac-sha1 (Makefile.am): Likewise.
63207         * modules/human (Makefile.am): Likewise.
63208         * modules/idcache (Makefile.am): Likewise.
63209         * modules/imaxabs (Makefile.am): Likewise.
63210         * modules/imaxdiv (Makefile.am): Likewise.
63211         * modules/inet_ntop (Makefile.am): Likewise.
63212         * modules/inet_pton (Makefile.am): Likewise.
63213         * modules/inttostr (Makefile.am): Likewise.
63214         * modules/isapipe (Makefile.am): Likewise.
63215         * modules/lchown (Makefile.am): Likewise.
63216         * modules/long-options (Makefile.am): Likewise.
63217         * modules/lstat (Makefile.am): Likewise.
63218         * modules/malloc (Makefile.am): Likewise.
63219         * modules/mathl (Makefile.am): Likewise.
63220         * modules/mbchar (Makefile.am): Likewise.
63221         * modules/md2 (Makefile.am): Likewise.
63222         * modules/md4 (Makefile.am): Likewise.
63223         * modules/md5 (Makefile.am): Likewise.
63224         * modules/memcasecmp (Makefile.am): Likewise.
63225         * modules/memchr (Makefile.am): Likewise.
63226         * modules/memcmp (Makefile.am): Likewise.
63227         * modules/memcoll (Makefile.am): Likewise.
63228         * modules/memcpy (Makefile.am): Likewise.
63229         * modules/memmem (Makefile.am): Likewise.
63230         * modules/memmove (Makefile.am): Likewise.
63231         * modules/mempcpy (Makefile.am): Likewise.
63232         * modules/memrchr (Makefile.am): Likewise.
63233         * modules/memset (Makefile.am): Likewise.
63234         * modules/memxor (Makefile.am): Likewise.
63235         * modules/mkancesdirs (Makefile.am): Likewise.
63236         * modules/mkdir (Makefile.am): Likewise.
63237         * modules/mkdir-p (Makefile.am): Likewise.
63238         * modules/mkdtemp (Makefile.am): Likewise.
63239         * modules/mkstemp (Makefile.am): Likewise.
63240         * modules/mktime (Makefile.am): Likewise.
63241         * modules/modechange (Makefile.am): Likewise.
63242         * modules/mountlist (Makefile.am): Likewise.
63243         * modules/nanosleep (Makefile.am): Likewise.
63244         * modules/openat (Makefile.am): Likewise.
63245         * modules/pagealign_alloc (Makefile.am): Likewise.
63246         * modules/physmem (Makefile.am): Likewise.
63247         * modules/poll (Makefile.am): Likewise.
63248         * modules/posixtm (Makefile.am): Likewise.
63249         * modules/posixver (Makefile.am): Likewise.
63250         * modules/putenv (Makefile.am): Likewise.
63251         * modules/quote (Makefile.am): Likewise.
63252         * modules/quotearg (Makefile.am): Likewise.
63253         * modules/raise (Makefile.am): Likewise.
63254         * modules/read-file (Makefile.am): Likewise.
63255         * modules/readline (Makefile.am): Likewise.
63256         * modules/readlink (Makefile.am): Likewise.
63257         * modules/readtokens (Makefile.am): Likewise.
63258         * modules/readutmp (Makefile.am): Likewise.
63259         * modules/realloc (Makefile.am): Likewise.
63260         * modules/regex (Makefile.am): Likewise.
63261         * modules/rename (Makefile.am): Likewise.
63262         * modules/rename-dest-slash (Makefile.am): Likewise.
63263         * modules/rijndael (Makefile.am): Likewise.
63264         * modules/rmdir (Makefile.am): Likewise.
63265         * modules/rpmatch (Makefile.am): Likewise.
63266         * modules/safe-read (Makefile.am): Likewise.
63267         * modules/safe-write (Makefile.am): Likewise.
63268         * modules/same (Makefile.am): Likewise.
63269         * modules/save-cwd (Makefile.am): Likewise.
63270         * modules/savedir (Makefile.am): Likewise.
63271         * modules/setenv (Makefile.am): Likewise.
63272         * modules/settime (Makefile.am): Likewise.
63273         * modules/sha1 (Makefile.am): Likewise.
63274         * modules/sig2str (Makefile.am): Likewise.
63275         * modules/snprintf (Makefile.am): Likewise.
63276         * modules/stdlib-safer (Makefile.am): Likewise.
63277         * modules/stpcpy (Makefile.am): Likewise.
63278         * modules/stpncpy (Makefile.am): Likewise.
63279         * modules/strcase (Makefile.am): Likewise.
63280         * modules/strcasestr (Makefile.am): Likewise.
63281         * modules/strchrnul (Makefile.am): Likewise.
63282         * modules/strcspn (Makefile.am): Likewise.
63283         * modules/strdup (Makefile.am): Likewise.
63284         * modules/strerror (Makefile.am): Likewise.
63285         * modules/strftime (Makefile.am): Likewise.
63286         * modules/strndup (Makefile.am): Likewise.
63287         * modules/strnlen (Makefile.am): Likewise.
63288         * modules/strpbrk (Makefile.am): Likewise.
63289         * modules/strsep (Makefile.am): Likewise.
63290         * modules/strstr (Makefile.am): Likewise.
63291         * modules/strtod (Makefile.am): Likewise.
63292         * modules/strtoimax (Makefile.am): Likewise.
63293         * modules/strtok_r (Makefile.am): Likewise.
63294         * modules/strtol (Makefile.am): Likewise.
63295         * modules/strtoll (Makefile.am): Likewise.
63296         * modules/strtoul (Makefile.am): Likewise.
63297         * modules/strtoull (Makefile.am): Likewise.
63298         * modules/strtoumax (Makefile.am): Likewise.
63299         * modules/strverscmp (Makefile.am): Likewise.
63300         * modules/time_r (Makefile.am): Likewise.
63301         * modules/timegm (Makefile.am): Likewise.
63302         * modules/tmpfile-safer (Makefile.am): Likewise.
63303         * modules/unistd-safer (Makefile.am): Likewise.
63304         * modules/unlinkdir (Makefile.am): Likewise.
63305         * modules/userspec (Makefile.am): Likewise.
63306         * modules/utime (Makefile.am): Likewise.
63307         * modules/utimecmp (Makefile.am): Likewise.
63308         * modules/utimens (Makefile.am): Likewise.
63309         * modules/vasnprintf (Makefile.am): Likewise.
63310         * modules/vasprintf (Makefile.am): Likewise.
63311         * modules/vsnprintf (Makefile.am): Likewise.
63312         * modules/xalloc (Makefile.am): Likewise.
63313         * modules/xgetcwd (Makefile.am): Likewise.
63314         * modules/xnanosleep (Makefile.am): Likewise.
63315         * modules/xreadlink (Makefile.am): Likewise.
63316         * modules/xstrtod (Makefile.am): Likewise.
63317         * modules/xstrtol (Makefile.am): Likewise.
63318         * modules/xstrtold (Makefile.am): Likewise.
63319         * modules/yesno (Makefile.am): Likewise.
63320
63321 2006-10-12  Jim Meyering  <jim@meyering.net>
63322
63323         * m4/getloadavg.m4: Revert the change below.
63324
63325         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63326         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63327         fail with a symlink, which is what coreutils' ./bootstrap now
63328         creates by default.
63329
63330 2006-10-12  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63333         mingw.
63334         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63335         MSVC and mingw explicitly.
63336
63337 2006-10-11  Simon Josefsson  <jas@extundo.com>
63338             Bruno Haible  <bruno@clisp.org>
63339
63340         Add support for multiple gnulib-tool invocations in the scope of a
63341         single configure.ac file.
63342         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63343         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63344         with the same contents as the _LIBADD variable.
63345         (func_emit_initmacro_start, func_emit_initmacro_end,
63346         func_emit_initmacro_done): New functions.
63347         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63348         gl_LIBOBJS and gl_LTLIBOBJS.
63349
63350 2006-10-11  Bruno Haible  <bruno@clisp.org>
63351
63352         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63353         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63354         autoreconf. Instead, invoke autopoint explicitly but move back the
63355         *.m4 files from gnulib.
63356
63357 2006-10-11  Bruno Haible  <bruno@clisp.org>
63358
63359         * gnulib-tool (func_usage): Make module names after --create-testdir
63360         optional.
63361         (func_create_testdir): If no module was specified, use nearly all
63362         modules.
63363
63364 2006-10-12  Jim Meyering  <jim@meyering.net>
63365
63366         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63367         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63368         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63369         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63370         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63371         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63372         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63373         (fts_set_stat_required): New function.
63374         (fts_open): Defer the calls to fts_stat, if possible or requested.
63375         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63376         into fts_stat itself.
63377         (fts_read): Perform any required (deferred) fts_stat call.
63378         (fts_build): Likewise, for the directory we're about to open and read.
63379         In the readdir loop, carefully decide whether each entry will require
63380         an eventual call to fts_stat, using dirent.d_type info if available.
63381         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63382         a command line argument into this function.  Update all callers.
63383         Map a return value of FTS_DOT to FTS_D for a command line argument.
63384         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63385         Thanks to Miklos Szeredi for his tenacity and for the initial
63386         bug report about "find" failing on a FUSE-based file system.
63387
63388         * lib/fts.c (fts_open): Use consistent indentation.
63389
63390 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63393         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63394         reported by Jim Meyering.  All uses of cache variables renamed
63395         to match Autoconf's.
63396         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63397         the other one.
63398
63399         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63400         Fix misspelling in diagnostic.
63401
63402 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63405         defined.  Problem reported by Matthew Woehlke.
63406
63407         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63408         Add support for Tandem NonStop R series.
63409         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63410         Use new macro.
63411
63412         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63413         (has_trailing_slash): Omit size arg; all callers changed.
63414         Omit 'inline', since it doesn't help performance and we'd
63415         need to configure it.
63416         Don't count //, ///, etc. as having a trailing slash.
63417         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63418         (rpl_rename_dest_slash): On failure, use rename's errno rather
63419         than (in some cases) an incorrect or junk errno.
63420         Simplify code by removing need to compute length; this does
63421         cause it to make two passes instead of one over the file name,
63422         but it's worth it.
63423
63424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63425         change, since Autoconf's version may no longer be appropriate now
63426         that we are using CVS Autoconf's version.  Add support for Tandem.
63427
63428 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63429             Bruno Haible  <bruno@clisp.org>
63430
63431         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63432         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63433         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63434         gl_AC_TYPE_LONG_LONG.
63435
63436         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63437         instead of HAVE_LONG_LONG.
63438         * lib/printf-args.c (printf_fetchargs): Likewise.
63439         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63440         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63442         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63443         gl_AC_TYPE_LONG_LONG.
63444
63445 2006-10-11  Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/longlong.m4: Add comments.
63448         * m4/ulonglong.m4: Likewise.
63449
63450 2006-10-10  Bruno Haible  <bruno@clisp.org>
63451
63452         Make it possible to #define stpcpy, strdup to aliases.
63453         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63454         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63455
63456 2006-10-10  Bruno Haible  <bruno@clisp.org>
63457
63458         Make it possible to #define gcd to an alias.
63459         * lib/gcd.c: Include config.h.
63460
63461 2006-10-10  Bruno Haible  <bruno@clisp.org>
63462
63463         Make it possible to #define c_isascii to an alias.
63464         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63465         defined. Undefine the macros before defining them, to avoid gcc
63466         warnings.
63467         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63468         define NO_C_CTYPE_MACROS early.
63469
63470 2006-10-10  Bruno Haible  <bruno@clisp.org>
63471
63472         Make it possible to #define set_program_name to an alias.
63473         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63474         ENABLE_RELOCATABLE early.
63475
63476 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63479         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63480         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63481         More generally, don't assume that 64-bit signed int is available
63482         if unsigned int is, and vice versa.
63483         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63484         unsigned symbols, not on their signed counterparts.
63485         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63486         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63487         (UINT64_C, UINTMAX_C):
63488         Likewise.
63489         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63490         unsigned counterparts.
63491         (Have_long_long, Unsigned): New macros.
63492         (Int): Renamed from INT.
63493         (strtoimax): Use the new macros.
63494         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63495         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63496         * modules/inttypes (inttypes.h): Substitute
63497         HAVE_UNSIGNED_LONG_LONG_INT.
63498         * modules/stdint (stdint.h): Likewise.
63499         (Files): Add m4/ulonglong.m4.
63500
63501 2006-10-10  Bruno Haible  <bruno@clisp.org>
63502
63503         Fix a gcc -Wshadow warning.
63504         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63505         to 'bucket'.
63506         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63507         gl_linked_indexof_from_to): Likewise.
63508         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63509         Likewise.
63510         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63511         Likewise.
63512         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63513         Reported by Eric Blake.
63514
63515 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63518         for NetBSD.  Problem reported by Bruno Haible.
63519
63520 2006-10-09  Jim Meyering  <jim@meyering.net>
63521
63522         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63523         Patch from Bruno Haible.
63524
63525 2006-10-09  Jim Meyering  <jim@meyering.net>
63526
63527         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63528         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63529         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63530
63531 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         Don't include <config.h> twice; this doesn't work in some cases,
63534         e.g., when config.h has "#define intmax_t long long int" and
63535         we include <config.h>, <inttypes.h>, <config.h> in that order.
63536         Problem reported by Matthew Woehlke in:
63537         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63538         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63539         * lib/fts-cycle.c: Don't include config.h.
63540         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63541         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63542         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63543         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63544         inttypes.h.
63545         * lib/xstrtoumax.c: Likewise.
63546         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63547         __strtol and the like, so that this module is more like its siblings.
63548         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63549         Remove; no longer needed now that we assume gnulib inttypes.h.
63550
63551 2006-10-08  Bruno Haible  <bruno@clisp.org>
63552
63553         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63554         option.
63555
63556 2006-10-07  Jim Meyering  <jim@meyering.net>
63557
63558         * modules/inttypes (inttypes.h): Revert what seems to have been
63559         an inadvertent part of today's change: use "|", not "/" in the
63560         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63561
63562 2006-10-07  Bruno Haible  <bruno@clisp.org>
63563
63564         * modules/sublist: New file.
63565
63566 2006-10-07  Bruno Haible  <bruno@clisp.org>
63567
63568         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63569         * modules/argz (argz.h): Likewise.
63570         * modules/arpa_inet (arpa/inet.h): Likewise.
63571         * modules/byteswap (byteswap.h): Likewise.
63572         * modules/configmake (configmake.h): Likewise.
63573         * modules/fcntl (fcntl.h): Likewise.
63574         * modules/fnmatch (fnmatch.h): Likewise.
63575         * modules/getopt (getopt.h): Likewise.
63576         * modules/glob (glob.h): Likewise.
63577         * modules/inttypes (inttypes.h): Likewise.
63578         * modules/netinet_in (netinet/in.h): Likewise.
63579         * modules/poll (poll.h): Likewise.
63580         * modules/stdbool (stdbool.h): Likewise.
63581         * modules/stdint (stdint.h): Likewise.
63582         * modules/sys_select (sys/select.h): Likewise.
63583         * modules/sys_socket (sys/socket.h): Likewise.
63584         * modules/sys_stat (sys/stat.h): Likewise.
63585         * modules/sysexits (sysexits.h): Likewise.
63586         * modules/unistd (unistd.h): Likewise.
63587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63588         Add a "DO NOT EDIT" comment to the generated file.
63589         (func_import): Likewise for gnulib-comp.m4.
63590
63591 2006-10-07  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/gl_sublist.h: New file.
63594         * lib/gl_sublist.c: New file.
63595
63596 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63599         name (relative to the original working directory) and the file
63600         name component (relative to the temporary working directory).  All
63601         callers changed.
63602         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63603         * lib/mkdir-p.c (make_dir_parents): Likewise.
63604         * lib/mkdir-p.h (make_dir_parents): Likewise.
63605
63606 2006-10-06  Eric Blake  <ebb9@byu.net>
63607
63608         Define several macros for use by the clean-temp module.
63609         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63611         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63612
63613         * lib/clean-temp.h (close_stream_temp): New declaration.
63614         * lib/clean-temp.c (includes): Pull in headers according to what
63615         other modules are in use.
63616         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63617
63618 2006-10-06  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63621         instead of fopen, fwriteerror.
63622
63623 2006-10-06  Bruno Haible  <bruno@clisp.org>
63624
63625         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63626         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63627         int.
63628         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63629         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63630         Return an error indicator.
63631         Suggested by Eric Blake.
63632
63633 2006-10-06  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63636         Reported by Eric Blake.
63637
63638 2006-10-06  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/closeout (Description): Mention stderr too.
63641
63642 2006-10-06  Bruno Haible  <bruno@clisp.org>
63643         and Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * lib/closeout.c (close_stdout): Also close stderr.
63646         * lib/closeout.h: Update comment.
63647
63648 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63651         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63652         * lib/dirchownmod.c: Include lchown.h.
63653         * lib/lchown.c: Don't include files that lchown.h now includes.
63654         Don't declare chown, since lchown.h now does that.
63655         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63656         (lchown): Define to rpl_chown if lchown is declared but
63657         does not exist.  Declare using a prototype if lchown is not
63658         declared.  Add a copyright notice.
63659         * lib/mkstemp.h: Include <unistd.h>.
63660         * lib/openat.c: Include lchown.h.
63661
63662         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63663         we now test for that separately.
63664         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63665         rather than O_NOFOLLOW, when testing whether it's possible to
63666         avoid a race condition reliably.
63667         * lib/savewd.c (savewd_chdir): Likewise.
63668
63669         Remove macros that are no longer needed now that stdint.h is
63670         reliable.
63671         * lib/fsusage.c (UINTMAX_MAX): Remove.
63672         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63673         * lib/utimecmp.c (SIZE_MAX): Remove.
63674
63675         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63676
63677         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63678         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63679         O_NOATIME works.
63680
63681 2006-10-05  Bruno Haible  <bruno@clisp.org>
63682
63683         * lib/gl_list.h (gl_sortedlist_search_from_to,
63684         gl_sortedlist_indexof_from_to): New declarations.
63685         (gl_list_implementation): New fields sortedlist_search_from_to,
63686         sortedlist_indexof_from_to.
63687         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63688         inline functions.
63689         * lib/gl_list.c (gl_sortedlist_search_from_to,
63690         gl_sortedlist_indexof_from_to): New functions.
63691         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63692         function.
63693         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63694         (gl_array_sortedlist_search_from_to): New function.
63695         (gl_array_list_implementation): Update.
63696         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63697         function.
63698         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63699         (gl_carray_sortedlist_search_from_to): New function.
63700         (gl_carray_list_implementation): Update.
63701         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63702         gl_linked_sortedlist_indexof_from_to): New functions.
63703         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63704         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63705         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63706         gl_tree_sortedlist_indexof_from_to): New functions.
63707         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63708         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63709         Update.
63710         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63711         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63712         Update.
63713
63714 2006-10-05  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63717         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63718         (struct gl_list_implementation): Add fields search_from_to,
63719         indexof_from_to. Remove fields search, indexof.
63720         (gl_list_search): Use the search_from_to method.
63721         (gl_list_search_from, gl_list_search_from_to): New functions.
63722         (gl_list_indexof): Use the indexof_from_to method.
63723         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63724         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63725         (gl_list_search_from, gl_list_search_from_to): New functions.
63726         (gl_list_indexof): Use the indexof_from_to method.
63727         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63728         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63729         gl_array_indexof. Add start_index, end_index arguments.
63730         (gl_array_search_from_to): Renamed from gl_array_search. Add
63731         start_index, end_index arguments.
63732         (gl_array_remove, gl_array_list_implementation): Update.
63733         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63734         gl_carray_indexof. Add start_index, end_index arguments.
63735         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63736         start_index, end_index arguments.
63737         (gl_carray_remove, gl_carray_list_implementation): Update.
63738         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63739         gl_linked_search. Add start_index, end_index arguments.
63740         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63741         start_index, end_index arguments.
63742         (gl_linked_remove): Update.
63743         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63744         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63745         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63746         field to 'size_t'.
63747         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63748         gl_tree_search. Add start_index, end_index arguments.
63749         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63750         start_index, end_index arguments.
63751         (gl_tree_remove): Update.
63752         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63753         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63754         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63755         function.
63756         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63757         gl_tree_search. Add start_index, end_index arguments.
63758         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63759         start_index, end_index arguments.
63760         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63761         Update.
63762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63763
63764 2006-10-05  Bruno Haible  <bruno@clisp.org>
63765
63766         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63767
63768         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63769         fwriteerror_temp): New declarations.
63770         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63771         (descriptors): New variable.
63772         (cleanup): First, close the descriptors.
63773         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63774         fclose_temp, fwriteerror_temp): New functions.
63775
63776 2006-10-04  Jim Meyering  <jim@meyering.net>
63777
63778         * lib/fts.c (fts_open): Tiny comment change.
63779
63780 2006-10-04  Bruno Haible  <bruno@clisp.org>
63781
63782         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63783         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63784         gl_LOCK_BODY.
63785         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63786         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63787         gl_LOCK_EARLY_BODY.
63788         (gl_LOCK): Require gl_LOCK_BODY.
63789
63790 2006-10-04  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63793         (gl_oset_search_atleast): New declaration.
63794         (struct gl_oset_implementation): Add field 'search_atleast'.
63795         (gl_oset_search_atleast): New inline function.
63796         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63797         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63798         (gl_array_oset_implementation): Update.
63799         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63800         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63801         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63802
63803 2006-10-04  Bruno Haible  <bruno@clisp.org>
63804
63805         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63806
63807 2006-10-03  Bruno Haible  <bruno@clisp.org>
63808
63809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63810         from gl_avltreehash_list_implementation.
63811
63812 2006-10-03  Bruno Haible  <bruno@clisp.org>
63813
63814         * lib/gl_oset.c (gl_oset_add): Fix return type.
63815
63816 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63817
63818         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63819
63820 2006-10-02  Eric Blake  <ebb9@byu.net>
63821
63822         * modules/strnlen (Depends-on): Add extensions.
63823
63824 2006-10-02  Eric Blake  <ebb9@byu.net>
63825
63826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63827         definition in 2.60+.
63828
63829 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63830
63831         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63832         checks.
63833
63834 2006-10-02  Bruno Haible  <bruno@clisp.org>
63835
63836         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63837         to the AUTOMAKE_OPTIONS.
63838         Reported by Jim Meyering.
63839
63840 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63841
63842         Work around bug in Solaris 10 /proc file system:
63843         /proc/self/fd/NNN/.. isn't the parent directory of
63844         the directory whose file descriptor is NNN.  This needs to
63845         be worked around at run time, not compile time, since a
63846         program might be built on Solaris 8, where things work, and
63847         run on Solaris 10.
63848         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63849         to use the following interface instead:
63850         (OPENAT_BUFFER_SIZE): New macro.
63851         (openat_proc_name): New function.
63852         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63853         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63854         Likewise.
63855         * lib/openat-proc.c: New file.
63856         * modules/openat (Files): Add lib/openat-proc.c.
63857         (Depends-on): Add same-inode, stdbool.
63858         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63859
63860 2006-09-29  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63863         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63864         argument. Set stdout_closed before testing for ferror, not after.
63865         (fwriteerror, fwriteerror_no_ebadf): New functions.
63866
63867 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63868
63869         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63870
63871 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63872
63873         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63874         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63875
63876 2006-09-28  Jim Meyering  <jim@meyering.net>
63877
63878         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63879         Include <unistd.h>.
63880
63881 2006-09-28  Bruno Haible  <bruno@clisp.org>
63882
63883         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63884         * modules/linkedhash-list (Depends-on): Likewise.
63885         * modules/rbtreehash-list (Depends-on): Likewise.
63886
63887 2006-09-28  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/strndup.h: Simplify the redefinition of strndup.
63890         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63892
63893 2006-09-28  Bruno Haible  <bruno@clisp.org>
63894
63895         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63896         * lib/gl_linkedhash_list.c: Likewise.
63897         * lib/gl_rbtreehash_list.c: Likewise.
63898
63899 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63902         getaddrinfo.
63903
63904         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63905         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63906         it causes <stdio_ext.h> to cause a compile-time error.
63907         Problem reported by Nelson H. F. Beebe.
63908         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63909         of HAVE_DECL___PENDING.
63910
63911         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63913         declaration.
63914
63915 2006-09-27  Jim Meyering  <jim@meyering.net>
63916
63917         This file could end up with a definition for a function
63918         named __strndup, rather than rpl_strndup on a system with
63919         incomplete weak_alias support.
63920         * lib/strndup.c (strndup): Rename from __strndup.
63921         Remove #defines that used to map __strndup to strndup.
63922         Don't use K&R prototypes.
63923         Remove LIBC-related code, since this file is not sync'd with glibc.
63924         * lib/strndup.h: Revamp, accordingly.
63925         * m4/strndup.m4: Modernize.
63926
63927 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63928
63929         * modules/savewd (Depends-on): Add 'raise'.
63930         * lib/savewd.c: Include <signal.h>, for 'raise'.
63931
63932 2006-09-26  Jim Meyering  <jim@meyering.net>
63933
63934         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63935         when we detect Darwin 8.7.0's acl_get_file bug.
63936         Rearrange to perform the new (below) run-test while $LIBS
63937         contains any acl-related library.  Set USE_ACL at the end.
63938         (gl_ACL_GET_FILE): New function.
63939
63940 2006-09-26  Eric Blake  <ebb9@byu.net>
63941
63942         * lib/verror.c: Include <config.h> unconditionally.
63943
63944 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * modules/clock-time (Maintainer): Add self.
63947         * modules/getlogin_r (Depends-on): Add extensions.
63948
63949 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63950
63951         * modules/clock-time: New module.
63952         * modules/nanosleep (Depends-on): Add clock-time.
63953         * modules/gethrxtime (Depends-on): Likewise.
63954         * modules/gettime (Depends-on): Likewise.
63955         * modules/settime (Depends-on): Likewise.
63956
63957         * modules/fts-lgpl: Depend on openat.
63958         * modules/mkancesdirs: Depend on savewd.
63959         * modules/mkdir-p: Likewise.
63960
63961 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63962
63963         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63964
63965         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63966         `gl_have_arbitrary_file_name_length_limit' to
63967         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63968         actually works between configure runs.
63969
63970 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63971             Bruno Haible  <bruno@clisp.org>
63972
63973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63974
63975 2006-09-25  Jim Meyering  <jim@meyering.net>
63976
63977         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63978         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63979
63980 2006-09-25  Eric Blake  <ebb9@byu.net>
63981
63982         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63983         exec's in 2006-09-18 patch when shuffling fds.
63984
63985 2006-09-25  Bruno Haible  <bruno@clisp.org>
63986
63987         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63988         Reported by Jim Meyering.
63989
63990 2006-09-24  Jim Meyering  <jim@meyering.net>
63991
63992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63993         compare a pointer against a literal "0".  That caused failures with
63994         at least HP-UX's hpcc.
63995
63996 2006-09-22  Simon Josefsson  <jas@extundo.com>
63997
63998         * modules/gc-sha1:
63999         * modules/gc-md4:
64000         * modules/gc-hmac-sha1:
64001         * modules/gc-hmac-md5:
64002         * modules/gc-des:
64003         * modules/gc-arcfour: Distribute more files.
64004
64005 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64006
64007         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64008         (gl_linked_iterator_from_to): Initialize struct completely.
64009         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64010         (gl_tree_iterator_from_to): Likewise
64011         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64012         * lib/gl_array_list.c [lint] (gl_array_iterator)
64013         (gl_array_iterator_from_to): Likewise.
64014         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64015         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64016         (gl_carray_iterator_from_to): Likewise.
64017
64018         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64019         * lib/md4.c (md4_process_block): Remove unused variable.
64020         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64021         parentheses for clarity.
64022
64023 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64024
64025         * modules/bison-i18n (Depends-on): Add gettext.
64026
64027 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64028
64029         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64030         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64031         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64032         also add missing comma that caused broken test.
64033         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64034         stdlib.h, for `abort'.
64035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64036         variables.
64037         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64038         include unistd.h if present, for `rmdir'.
64039         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64040         variables.
64041         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64042         in the process include standard headers for prototypes.
64043         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64044         gets declared on GNU/Linux.
64045         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64046         unistd.h, for `rmdir'.
64047         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64048
64049         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64050         always true.
64051         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64052
64053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64054
64055 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64056
64057         * gnulib-tool (func_version): Create output all at once.  This
64058         may help avoid triggering unnecessary SIGPIPEs, and at any
64059         rate it doesn't hurt.
64060
64061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64062             Bruno Haible  <bruno@clisp.org>
64063
64064         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64065         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64066         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64067
64068         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64069         (gl_FUNC_VASPRINTF): Invoke it.
64070
64071 2006-09-22  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64074         getloadavg.c as first argument.
64075
64076 2006-09-22  Bruno Haible  <bruno@clisp.org>
64077
64078         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64079         at the beginning of the gl_INIT macro.
64080         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64081         gl_GETLOADAVG.
64082
64083 2006-09-22  Bruno Haible  <bruno@clisp.org>
64084
64085         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64086         module.
64087         Suggested by Ralf Wildenhues.
64088
64089 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64090
64091         Import this patch from libc:
64092
64093         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64094
64095         * lib/regex_internal.c (re_string_reconstruct): Handle
64096         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64097         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64098         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64099         re_string_context_at.
64100
64101         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64102         now requires it.
64103         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64104         gl_REGEX now does it for us.
64105         (gl_REGEX): Add test taken from
64106         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64107
64108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64109         Check that large offsets work.  Modernize Autoconf usages.
64110         Prefer "yes" to mean a good thing rather than a bad.
64111         Don't put "#define mkstemp" in config.h, as this might interfere
64112         with standard system headers that "#define mkstemp mkstemp64".
64113
64114         * modules/mkstemp (Depends-on): Add extensions, so that
64115         mkstemp is visible on some platforms.
64116         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64117         (Include): Change to "mkstemp.h" from <stdlib.h>.
64118         (Files): Add mkstemp.h.
64119
64120         * lib/mkstemp.h: New file, since some standard headers
64121         #define mkstemp.
64122         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64123         Include "mkstemp.h".
64124         Make the _LIBC code resemble glibc original more,
64125         e.g., use K&R style.
64126         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64127         (mkstemp): Remove, since mkstemp.h does this for us.
64128         * lib/stdlib--.h: Include mkstemp.h.
64129
64130         Import this patch from libc:
64131
64132         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64133
64134         * lib/tempname.c (__gen_tempname): Change attempts_min
64135         into a macro.  Use preprocessor to decide how to initialize
64136         attempts [Coverity CID 67].
64137
64138 2006-09-20  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/mkdtemp.c: Import from libc.
64141         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64142                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64143                 attempts_min into a macro.  Use preprocessor to decide how to
64144                 initialize attempts [Coverity CID 67].
64145         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64146                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64147                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64148
64149 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64150
64151         * gnulib-tool (func_exit): New function, to allow to pass the
64152         exit status portably through the trap.  Use everywhere.
64153         (--help, --version): Signal a write error.
64154         (trap): catch SIGPIPE, for write errors.
64155         Exit at the end of the trap, with the correct exit status.
64156
64157 2006-09-19  Karl Berry  <karl@gnu.org>
64158
64159         * doc/gnulib.texi: note about the license texinfo files.
64160
64161 2006-09-19  Eric Blake  <ebb9@byu.net>
64162
64163         * gnulib-tool: Avoid space-tab.
64164
64165 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64168         that prevented coreutils 6.1 from building.  Problem reported
64169         by Petter Reinholdtsen.
64170
64171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * gnulib-tool (avoidlist): Fix typo that broke options like
64174         --avoid=lock that are used by coreutils bootstrap.
64175
64176 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64177
64178         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64179         more systematically.
64180
64181 2006-09-18  Jim Meyering  <jim@meyering.net>
64182
64183         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64184
64185 2006-09-18  Bruno Haible  <bruno@clisp.org>
64186
64187         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64188
64189 2006-09-18  Bruno Haible  <bruno@clisp.org>
64190
64191         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64192         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64193         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64194         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64195         * m4/gettext.m4: Require autoconf >= 2.52.
64196         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64197         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64198         of gl_cv_header_inttypes_h.
64199
64200 2006-09-18  Bruno Haible  <bruno@clisp.org>
64201
64202         * lib/javaversion.c: Include configmake.h.
64203
64204 2006-09-18  Bruno Haible  <bruno@clisp.org>
64205
64206         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64207         avoid that the while loops be executed in a subshell.
64208
64209 2006-09-18  Bruno Haible  <bruno@clisp.org>
64210
64211         * MODULES.html.sh (func_module): Break long lines.
64212         Suggested by Bruce Korb <bkorb@gnu.org>.
64213
64214 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64215
64216         Speed up by a factor of 1.12.
64217         * gnulib-tool (nl): New variable.
64218         (func_import): Rewrite include directive extraction to only read each
64219         directive once.
64220
64221 2006-09-17  Bruno Haible  <bruno@clisp.org>
64222
64223         * modules/javaversion (Makefile.am): Remove DEFS setting.
64224         (Depends-on): Add configmake, for PKGDATADIR definition.
64225
64226 2006-09-17  Bruno Haible  <bruno@clisp.org>
64227
64228         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64229
64230 2006-09-17  Bruno Haible  <bruno@clisp.org>
64231
64232         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64233         (func_modules_transitive_closure, func_modules_add_dummy,
64234         func_modules_to_filelist, func_import, func_create_testdir,
64235         func_create_megatestdir, ...): Use it wherever possible.
64236         Suggested by Ralf Wildenhues.
64237
64238 2006-09-16  Karl Berry  <karl@gnu.org>
64239
64240         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64241         to avoid sectioning errors.
64242         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64243         [ifinfo]: blank line after @center-ed titles.
64244         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64245         Spell FSF address consistently with others.
64246         (These changes approved by rms.)
64247
64248 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64249
64250         Speed up by a factor of 1.61.
64251         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64252         already checked module names again.
64253
64254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64255
64256         Speed up by a factor of 1.13.
64257         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64258         for new_files, and the input to func_add_or_update.
64259
64260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64261
64262         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64263         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64264
64265 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         * modules/mkancesdirs (Depends-on): Add fcntl.
64268         * modules/savewd: New file.
64269         * MODULES.html.sh (File system functions): Add savewd.
64270
64271         * modules/configmake (Makefile.am): Add support for the
64272         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64273
64274 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * m4/savewd.m4: New file.
64277
64278 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64279
64280         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64281         (dirchownmod): New arg FD.  All callers changed.
64282         Use FD rather than opening the directory ourself, as opening is
64283         now the caller's responsibility.
64284         * lib/dirchownmod.h: Likewise.
64285         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64286         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64287         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64288         (test_dir): Remove.
64289         (mkancesdirs): Return length of prefix of FILE that has already
64290         been made, or -2 if there is a child doing the work.  Redo
64291         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64292         ".", and treat ".." specially since it might stray back into
64293         already-created areas.  Use a subprocess if necessary.  New arg
64294         WD; all users changed.  MAKE_DIR function should now return 1
64295         if it creates a directory that is not readable.  Return -2 if
64296         a child process is spun off.
64297         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64298         Adjust signature to match code.
64299         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64300         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64301         all users changed.
64302         * lib/savewd.c, lib/savewd.h: New files.
64303
64304 2006-09-15  Jim Meyering  <jim@meyering.net>
64305
64306         * modules/rename-dest-slash: New module.
64307         * MODULES.html.sh (posix_compat): Add it here.
64308
64309         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64310
64311 2006-09-15  Jim Meyering  <jim@meyering.net>
64312
64313         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64314         file.
64315
64316         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64317
64318 2006-09-15  Jim Meyering  <jim@meyering.net>
64319
64320         * lib/rename-dest-slash.c (has_trailing_slash): Use
64321         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64322         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64323         test before testing whether SRC is a directory.
64324         Suggestions from Bruno Haible.
64325
64326         Avoid a warning about an unused variable.
64327         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64328         into the #ifdef block where it's used.
64329
64330         * lib/rename-dest-slash.c: New file.
64331
64332 2006-09-14  Bruno Haible  <bruno@clisp.org>
64333
64334         * lib/allocsa.c: Include <config.h> unconditionally.
64335         * lib/asnprintf.c: Likewise.
64336         * lib/asprintf.c: Likewise.
64337         * lib/c-strcasecmp.c: Likewise.
64338         * lib/c-strcasestr.c: Likewise.
64339         * lib/c-strncasecmp.c: Likewise.
64340         * lib/c-strstr.c: Likewise.
64341         * lib/classpath.c: Likewise.
64342         * lib/clean-temp.c: Likewise.
64343         * lib/concatpath.c: Likewise.
64344         * lib/copy-file.c: Likewise.
64345         * lib/csharpcomp.c: Likewise.
64346         * lib/csharpexec.c: Likewise.
64347         * lib/execute.c: Likewise.
64348         * lib/fatal-signal.c: Likewise.
64349         * lib/findprog.c: Likewise.
64350         * lib/fwriteerror.c: Likewise.
64351         * lib/gl_array_list.c: Likewise.
64352         * lib/gl_array_oset.c: Likewise.
64353         * lib/gl_avltree_list.c: Likewise.
64354         * lib/gl_avltree_oset.c: Likewise.
64355         * lib/gl_avltreehash_list.c: Likewise.
64356         * lib/gl_carray_list.c: Likewise.
64357         * lib/gl_linked_list.c: Likewise.
64358         * lib/gl_linkedhash_list.c: Likewise.
64359         * lib/gl_list.c: Likewise.
64360         * lib/gl_oset.c: Likewise.
64361         * lib/gl_rbtree_list.c: Likewise.
64362         * lib/gl_rbtree_oset.c: Likewise.
64363         * lib/gl_rbtreehash_list.c: Likewise.
64364         * lib/imaxabs.c: Likewise.
64365         * lib/imaxdiv.c: Likewise.
64366         * lib/javacomp.c: Likewise.
64367         * lib/javaexec.c: Likewise.
64368         * lib/javaversion.c: Likewise.
64369         * lib/linebreak.c: Likewise.
64370         * lib/localcharset.c: Likewise.
64371         * lib/lock.c: Likewise.
64372         * lib/mbchar.c: Likewise.
64373         * lib/mbswidth.c: Likewise.
64374         * lib/mkdtemp.c: Likewise.
64375         * lib/pipe.c: Likewise.
64376         * lib/printf-args.c: Likewise.
64377         * lib/printf-parse.c: Likewise.
64378         * lib/progname.c: Likewise.
64379         * lib/progreloc.c: Likewise.
64380         * lib/readlink.c: Likewise.
64381         * lib/sh-quote.c: Likewise.
64382         * lib/stpcpy.c: Likewise.
64383         * lib/stpncpy.c: Likewise.
64384         * lib/strcasecmp.c: Likewise.
64385         * lib/strcasestr.c: Likewise.
64386         * lib/strcspn.c: Likewise.
64387         * lib/striconv.c: Likewise.
64388         * lib/strncasecmp.c: Likewise.
64389         * lib/strnlen1.c: Likewise.
64390         * lib/strstr.c: Likewise.
64391         * lib/strtok_r.c: Likewise.
64392         * lib/tls.c: Likewise.
64393         * lib/tmpdir.c: Likewise.
64394         * lib/unicodeio.c: Likewise.
64395         * lib/unsetenv.c: Likewise.
64396         * lib/vasnprintf.c: Likewise.
64397         * lib/vasprintf.c: Likewise.
64398         * lib/wait-process.c: Likewise.
64399         * lib/xallocsa.c: Likewise.
64400         * lib/xsetenv.c: Likewise.
64401         * lib/xstriconv.c: Likewise.
64402
64403 2006-09-13  Simon Josefsson  <jas@extundo.com>
64404
64405         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64406         that internally, suggested by Ralf Wildenhues
64407         <Ralf.Wildenhues@gmx.de>.
64408
64409 2006-09-13  Simon Josefsson  <jas@extundo.com>
64410
64411         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64412         @LIBOBJS@.
64413         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64414
64415 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64418         longer worry about uses that don't define HAVE_CONFIG_H.
64419         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64420         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64421         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64422         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64423         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64424         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64425         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64426         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64427         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64428         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64429         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64430         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64431         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64432         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64433         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64434         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64435         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64436         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64437         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64438         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64439         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64440         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64441         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64442         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64443         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64444         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64445         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64446         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64447         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64448         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64449         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64450         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64451         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64452         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64453         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64454         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64455         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64456         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64457         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64458         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64459         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64460         Likewise.
64461
64462 2006-09-13  Eric Blake  <ebb9@byu.net>
64463
64464         * lib/getopt.c: Fix typo in last commit.
64465
64466 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64467
64468         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64469         dgettext.
64470
64471 2006-09-12  Jim Meyering  <jim@meyering.net>
64472
64473         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64474         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64475         Reported by Nelson H. F. Beebe.
64476
64477 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64478
64479         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64480         program_invocation_name and program_invocation_short_name are
64481         initialized.
64482         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64483         and program_invocation_short_name to argp.h, so they are visible
64484         to user programs.
64485         * lib/argp.h: Likewise
64486
64487 2006-09-10  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64490         m4/inttypes_h.m4, m4/uintmax_t.m4.
64491
64492 2006-09-10  Bruno Haible  <bruno@clisp.org>
64493
64494         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64495         gl_AC_TYPE_UINTMAX_T.
64496
64497 2006-09-10  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64500
64501 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64502
64503         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64504         convention.  Text proposed by Bruno Haible.
64505         (struct argp_option): Document the use of N_() wrappers.
64506
64507         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64508         '\v', and translate the two parts separately, instead of feeding
64509         the whole string to gettext.  This allows to exclude
64510         '\v' from the strings visible to the translator by writing doc
64511         strings as N_("..") "\v" N_("..").
64512
64513 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * config/srclist.txt: Undo latest change; the bug was fixed.
64516
64517 2006-09-09  Bruno Haible  <bruno@clisp.org>
64518
64519         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64520         assignments if building a library without libtool.
64521         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64522         in func_emit_lib_Makefile_am.
64523         (func_import): When building a static library libfoo.a, arrange to
64524         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64525         (func_create_testdir): Likewise.
64526         * modules/gc (configure.ac, Makefile.am): If building statically,
64527         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64528         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64529         * modules/striconv (configure.ac, Makefile.am): Likewise.
64530         Based on a suggestion by Ralf Wildenhues.
64531
64532 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64535         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64536         Also:
64537
64538         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64539         Add year_2050_test to catch glibc bug 2821
64540         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64541
64542         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64543         Prefer #ifdef to #if.
64544
64545         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64546         Return from 'main' instead of calling 'exit'.
64547
64548 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64551         returned the maximum time_t value rather than (time_t) -1.
64552         Problem originally reported by William Bardwell
64553         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64554
64555         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64556         Moved to here ...
64557         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64558         ... from here.
64559
64560 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64563         2821 is fixed.
64564
64565 2006-09-08  Jim Meyering  <jim@meyering.net>
64566
64567         Don't make generated files read-only.  That would bother too many
64568         people.  However, do retain the ability to work when targets are
64569         read-only: remove the destination and temporary files before writing
64570         them (when generated via sed or echo), or by using the -f option for
64571         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64572         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64573         * modules/byteswap, modules/configmake, modules/fcntl:
64574         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64575         * modules/localcharset, modules/netinet_in, modules/poll:
64576         * modules/stdbool, modules/stdint, modules/sys_select:
64577         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64578
64579 2006-09-08  Jim Meyering  <jim@meyering.net>
64580
64581         Avoid new build failure on FreeBSD 6.0.
64582         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64583         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64584         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64585
64586 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64587
64588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64589
64590 2006-09-07  Jim Meyering  <jim@meyering.net>
64591
64592         Fix global typo in last change: use chmod u-w, not chmod u-x.
64593         Spotted by Paul Eggert and Bruce Korb.
64594         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64595         * modules/byteswap, modules/configmake, modules/fcntl:
64596         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64597         * modules/localcharset, modules/netinet_in, modules/poll:
64598         * modules/stdbool, modules/stdint, modules/sys_select:
64599         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64600
64601 2006-09-06  Jim Meyering  <jim@meyering.net>
64602
64603         Make generated files be read-only.
64604         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64605         Ensure that each generated file is now read-only.
64606         * modules/argz: Likewise.
64607         * modules/arpa_inet: Likewise.
64608         * modules/byteswap: Likewise.
64609         * modules/configmake: Likewise.
64610         * modules/fcntl: Likewise.
64611         * modules/fnmatch: Likewise.
64612         * modules/getopt: Likewise.
64613         * modules/glob: Likewise.
64614         * modules/inttypes: Likewise.
64615         * modules/netinet_in: Likewise.
64616         * modules/poll: Likewise.
64617         * modules/stdbool: Likewise.
64618         * modules/stdint: Likewise.
64619         * modules/sys_select: Likewise.
64620         * modules/sys_socket: Likewise.
64621         * modules/sys_stat: Likewise.
64622         * modules/sysexits: Likewise.
64623         * modules/localcharset: Same as above, but continue using temporary
64624         file named "t-$@" (why different?) rather than the "$@-t" used
64625         everywhere else.
64626
64627         * modules/sysexits (Makefile.am): Replace literal occurrences
64628         of "sysexit.h" more readable, and more consistent, "$@".
64629
64630 2006-09-06  Bruno Haible  <bruno@clisp.org>
64631
64632         * modules/striconv: New file.
64633         * modules/xstriconv: New file.
64634         * MODULES.html.sh (Internationalization functions): Add striconv,
64635         xstriconv.
64636
64637 2006-09-06  Bruno Haible  <bruno@clisp.org>
64638
64639         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64640         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64641         not using libtool correctly.
64642
64643 2006-09-06  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/striconv.h: New file.
64646         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64647         iconvstring.c.
64648         * lib/xstriconv.h: New file.
64649         * lib/xstriconv.c: New file.
64650
64651 2006-09-06  Bruno Haible  <bruno@clisp.org>
64652
64653         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64654         lib_..._LDFLAGS.
64655
64656 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64657
64658         * lib/argz_.h: Sync from Libtool.
64659
64660         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64661                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64662
64663         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64664
64665 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64666
64667         * modules/trim: New file.
64668
64669 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64670
64671         * lib/trim.h: New file.
64672         * lib/trim.c: New file.
64673
64674 2006-09-05  Bruno Haible  <bruno@clisp.org>
64675
64676         * MODULES.html.sh (String handling): Add trim.
64677
64678 2006-09-04  Karl Berry  <karl@gnu.org>
64679
64680         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64681         until next release.
64682
64683 2006-09-03  Bruno Haible  <bruno@clisp.org>
64684
64685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64686         correctly.
64687
64688 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64691         not gl_GETLOADAVG.  Omit unneeded semicolons.
64692         Problems reported by Ralf Wildenhues in
64693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64694         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64695         at the end, which is the usual gnulib style.
64696
64697         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64698         of doing all the work ourselves.
64699         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64700         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64701
64702 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64703
64704         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64705         Problem reported by Ralf Wildenhues in
64706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64707
64708         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64709         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64710
64711 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64714         yesterday's patch by changing test -n to test -z.
64715
64716 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64719         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64720         the former is now obsolescent.
64721
64722         * modules/chdir-long (Depends-on): Add fcntl.
64723
64724 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64727         obsolescent, and programs should use gnulib instead.
64728         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64729         but with prefixes changed.
64730
64731 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64734         or stdbool.h, because they might not exist while configuring.
64735
64736         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64737         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64738         does that for us.
64739         (O_DIRECTORY): Remove.
64740
64741 2006-08-31  Eric Blake  <ebb9@byu.net>
64742
64743         * gnulib-tool: Don't let emacs change spaces to TAB.
64744
64745 2006-08-31  Bruno Haible  <bruno@clisp.org>
64746
64747         * gnulib-tool: When calling func_import more than once, do it in a
64748         subshell.
64749         Reported by Eric Blake <ebb9@byu.net>.
64750
64751 2006-08-31  Bruno Haible  <bruno@clisp.org>
64752
64753         * gnulib-tool (nl): Remove variable.
64754         (sed_transform_lib_file): Use more robust test for config-h module.
64755         (func_import): Fix typo in 2006-08-25 patch.
64756
64757 2006-08-31  Bruno Haible  <bruno@clisp.org>
64758
64759         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64760         specified, augment Makefile.am variables instead of assigning them.
64761
64762 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         Work around a bug in both the Linux and SunOS 64-bit kernels:
64765         nanosleep mishandles sleeps for longer than 2**31 seconds.
64766         Problem reported by Frank v Waveren in
64767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64769         Check for nanosleep bug.
64770         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64771
64772 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         Work around a bug in both the Linux and SunOS 64-bit kernels:
64775         nanosleep mishandles sleeps for longer than 2**31 seconds.
64776         Problem reported by Frank v Waveren in
64777         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64778         * lib/nanosleep.c (BILLION): New constant.
64779         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64780         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64781         implementation.
64782
64783 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * modules/nanosleep (Depends-on): Add gettime.
64786
64787 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64788         and Simon Josefsson  <jas@extundo.com>
64789         and Oskar Liljeblad  <oskar@osk.mine.nu>
64790
64791         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64792         * gnulib-tool (func_import): New license type 'unmodifiable license
64793         text'.
64794         * modules/fdl: Use it.  Longer description.
64795         * module/gpl, module/lgpl: New files.
64796
64797 2006-08-30  Jim Meyering  <jim@meyering.net>
64798
64799         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64800         shadowing the parameter.
64801
64802 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64803
64804         Sync from Libtool:
64805
64806         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64807
64808         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64809         sharing with gnulib.  Report by Eric Blake.
64810
64811 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * modules/isapipe: New file.
64814         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64815
64816 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * modules/configmake (Makefile.am): Add a comment, and omit
64819         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64820         by Bruno Haible.
64821
64822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64823
64824         * m4/isapipe.m4: New file.
64825
64826 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64827
64828         * lib/isapipe.c, lib/isapipe.h: New files.
64829
64830 2006-08-29  Jim Meyering  <jim@meyering.net>
64831
64832         * modules/configmake (Makefile.am): Make configmake.h depend on
64833         Makefile.  Otherwise, a stale configmake.h could hang around.
64834
64835 2006-08-29  Eric Blake  <ebb9@byu.net>
64836
64837         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64838         resolution of upstream bug 3044.
64839
64840 2006-08-29  Bruno Haible  <bruno@clisp.org>
64841
64842         * modules/localcharset (Depends-on): Add configmake.
64843         (Makefile.am): Remove setting of LIBDIR through DEFS.
64844
64845 2006-08-29  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64848         defined.
64849
64850 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         * modules/fcntl: New file.
64853         * modules/chdir-safer (Depends-on): Add fcntl.
64854         * modules/fts: Likewise.
64855         * modules/mkdir-p: Likewise.
64856
64857         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64858         This undoes the most recent change, since we're now addressing the
64859         problem in a different way.
64860
64861         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64862         into output, since the output might be called Makefile.am even
64863         if $makefile_name is something different.
64864         (func_import): Use $makefile_am rather than
64865         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64866         empty.
64867
64868         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64869
64870 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64873         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64874         recent change to stdint.m4, since we're now addressing the problem in a
64875         different way.
64876
64877 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * m4/fcntl_h.m4: New file.
64880
64881 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64882
64883         * lib/fcntl_.h: New file.
64884         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64885         the fcntl module.
64886         * lib/dirchownmod.c: Likewise.
64887         * lib/fts.c: Likewise.
64888
64889         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64890         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64891         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64892         just before including <inttypes.h>, to avoid circular inclusion.
64893
64894 2006-08-28  Jim Meyering  <jim@meyering.net>
64895
64896         * doc/visibility.texi: Actually read and correct the grammar of the
64897         sentence affected by yesterday's change.
64898
64899 2006-08-28  Eric Blake  <ebb9@byu.net>
64900
64901         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64902         needs wrapper.
64903
64904 2006-08-28  Eric Blake  <ebb9@byu.net>
64905
64906         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64907
64908 2006-08-28  Eric Blake  <ebb9@byu.net>
64909
64910         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64911
64912 2006-08-28  Bruno Haible  <bruno@clisp.org>
64913
64914         * modules/c-strstr: New file, from GNU gettext.
64915         * MODULES.html.sh (String handling): Add c-strstr.
64916
64917 2006-08-28  Bruno Haible  <bruno@clisp.org>
64918
64919         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64920         macros.
64921         Reported by Eric Blake.
64922
64923 2006-08-28  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64926         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64927         * lib/vasprintf.c: Include errno.h, limits.h.
64928         (EOVERFLOW): New fallback definition.
64929         (vasprintf): Test here whether the string length is > INT_MAX.
64930         * lib/vsnprintf.c: Include errno.h, limits.h.
64931         (EOVERFLOW): New fallback definition.
64932         (vsnprintf): Fix bug when generated string was too long for the buffer.
64933         Test here whether the string length is > INT_MAX.
64934
64935 2006-08-28  Bruno Haible  <bruno@clisp.org>
64936
64937         * lib/inttypes_.h (SCNX*): Remove definitions.
64938         Reported by Eric Blake.
64939
64940 2006-08-28  Bruno Haible  <bruno@clisp.org>
64941
64942         * lib/c-strstr.h: New file, from GNU gettext.
64943         * lib/c-strstr.c: New file, from GNU gettext.
64944
64945 2006-08-28  Bruno Haible  <bruno@clisp.org>
64946
64947         * gnulib-tool: Reorder some statements.
64948
64949 2006-08-28  Bruno Haible  <bruno@clisp.org>
64950
64951         * gnulib-tool: New option --makefile-name.
64952         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64953         $makefile_name.
64954         (func_import): Write $makefile_name to the cache file, and read it from
64955         there unless explicitly specified. Use $makefile_name as file name
64956         instead of Makefile.am. Adjust the recommendations accordingly.
64957
64958 2006-08-28  Bruno Haible  <bruno@clisp.org>
64959
64960         * gnulib-tool (func_verify_module): Check against misapplying patch.
64961
64962 2006-08-28  Bruno Haible  <bruno@clisp.org>
64963
64964         * gnulib-tool (func_relativize, func_relconcat): New functions.
64965         Give an error if --local-dir is given with --update.
64966         Remove trailing slashes from $local_gnulib_dir.
64967         (func_import): Store the relativized $local_gnulib_dir in
64968         gnulib-cache.m4, and read it from there if not specified explicitly.
64969
64970 2006-08-28  Bruno Haible  <bruno@clisp.org>
64971
64972         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64973         is the current directory. Respect also $local_gnulib_dir.
64974
64975 2006-08-28  Bruno Haible  <bruno@clisp.org>
64976             Simon Josefsson  <jas@extundo.com>
64977
64978         BeOS portability.
64979         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64980
64981 2006-08-27  Jim Meyering  <jim@meyering.net>
64982
64983         * doc/visibility.texi: Remove duplicate word: "pointer".
64984
64985 2006-08-26  Bruno Haible  <bruno@clisp.org>
64986
64987         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64988         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64989         (Makefile.am): Create inttypes.h from inttypes_.h.
64990         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64991
64992         * modules/imaxabs: New file.
64993
64994         * modules/imaxdiv: New file.
64995
64996 2006-08-26  Bruno Haible  <bruno@clisp.org>
64997
64998         * m4/inttypes.m4: New file.
64999         * m4/_inttypes_h.m4: Remove file.
65000         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65001         PRI_MACROS_BROKEN.
65002         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65003
65004         * m4/imaxabs.m4: New file.
65005
65006         * m4/imaxdiv.m4: New file.
65007
65008 2006-08-26  Bruno Haible  <bruno@clisp.org>
65009
65010         * lib/inttypes_.h: New file.
65011         * lib/inttypes.h: Remove file.
65012         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65013
65014         * lib/imaxabs.c: New file.
65015
65016         * lib/imaxdiv.c: New file.
65017
65018 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         New config-h module, so that "make" output needn't be cluttered
65021         by -DHAVE_CONFIG_H.
65022         * MODULES.html.sh (Support for building libraries and executables):
65023         Add config-h.
65024         * modules/config-h: New file.
65025         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65026         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65027         the config-h module is used.
65028
65029         New configmake module, so that "make" output needn't be cluttered
65030         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65031         * MODULES.html.sh (Support for building libraries and executables):
65032         Add configmake.
65033         * modules/configmake: New file.
65034
65035 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65036
65037         * m4/config-h.m4: New file.
65038
65039 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65040
65041         * config/srclist.txt: Add elisp-comp.
65042
65043 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         * MODULES.html.sh (Support for building libraries and executables):
65046         Add elisp-comp.
65047         * build-aux/elisp-comp: New file.
65048         * modules/elisp-comp: New file.
65049
65050 2006-08-24  Bruno Haible  <bruno@clisp.org>
65051
65052         * gnulib-tool (func_create_testdir): Use non-default values of
65053         sourcebase and m4base.
65054
65055 2006-08-24  Bruno Haible  <bruno@clisp.org>
65056
65057         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65058         HTML structure.
65059
65060 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * modules/openat (Depends-on): Add lchown.
65063
65064 2006-08-23  Bruno Haible  <bruno@clisp.org>
65065
65066         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65067         of gl_LOCK_EARLY instead of gl_LOCK.
65068
65069 2006-08-23  Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65072         on OSF/1 to no.
65073         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65074
65075 2006-08-23  Bruno Haible  <bruno@clisp.org>
65076
65077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65078         as unusable.
65079
65080         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65081         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65082         (gl_LOCK): New macro.
65083
65084 2006-08-22  Simon Josefsson  <jas@extundo.com>
65085
65086         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65087         to md5 module.
65088
65089 2006-08-22  Simon Josefsson  <jas@extundo.com>
65090
65091         * MODULES.html.sh: Add "Support for maintaining and release
65092         projects".
65093
65094         * build-aux/gnupload: New file, from coreutils.
65095
65096 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65097
65098         Avoid the need for AC_LIBSOURCES in m4 macros.
65099         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65100         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65101         * modules/check-version (EXTRA_DIST): Add check-version.h.
65102         * modules/crc (EXTRA_DIST): Add crc.h.
65103         * modules/des (EXTRA_DIST): Add des.h.
65104         * modules/gc (EXTRA_DIST): Add gc.h.
65105         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65106         * modules/getline (EXTRA_DIST): Add getline.h.
65107         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65108         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65109         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65110         * modules/md2 (EXTRA_DIST): Add md2.h.
65111         * modules/md4 (EXTRA_DIST): Add md4.h.
65112         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65113         * modules/read-file (EXTRA_DIST): Add read-file.h.
65114         * modules/readline (EXTRA_DIST): Add readline.h.
65115         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65116         rijndael-api-fst.h.
65117
65118 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * m4/rijndael.m4 (gl_ARCFOUR):
65121         * m4/arctwo.m4 (gl_ARCTWO):
65122         * m4/check-version.m4 (gl_CHECK_VERSION):
65123         * m4/crc.m4 (gl_CRC):
65124         * m4/des.m4 (gl_DES):
65125         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65126         * m4/gc.m4 (gl_GC):
65127         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65128         * m4/getline.m4 (gl_FUNC_GETLINE):
65129         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65130         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65131         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65132         * m4/md2.m4 (gl_MD2):
65133         * m4/md4.m4 (gl_MD4):
65134         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65135         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65136         * m4/readline.m4 (gl_FUNC_READLINE):
65137         * m4/rijndael.m4 (gl_RIJNDAEL):
65138         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65139         to get the necessary .h files and whatnot.
65140
65141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65144         gnulib rather than the other way around.
65145         * config/srclistvars.sh (COREUTILS): Remove.
65146
65147 2006-08-22  Jim Meyering  <jim@meyering.net>
65148
65149         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65150
65151         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65152
65153 2006-08-22  Eric Blake  <ebb9@byu.net>
65154
65155         * modules/regexprops-generic: New file.
65156         * MODULES.html.sh (Support for building documentation): List it.
65157
65158 2006-08-22  Eric Blake  <ebb9@byu.net>
65159
65160         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65161         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65163         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65164
65165 2006-08-22  Bruno Haible  <bruno@clisp.org>
65166
65167         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65168         and lib_LTLIBRARIES like the other lib_* variables.
65169
65170 2006-08-22  Bruno Haible  <bruno@clisp.org>
65171
65172         * build-aux/x-to-1.in: New file, from GNU gettext.
65173
65174 2006-08-22  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65177         <utmpx.h> exists.
65178
65179 2006-08-22  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65182         <utmpx.h> exists.
65183
65184 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         BeOS portability.
65187         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65188         exist.
65189         Problem reported by Bruno Haible.
65190
65191 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65192
65193         Avoid the need for AC_LIBSOURCES in m4 macros.
65194         * modules/acl (EXTRA_DIST): Add acl.h.
65195         * modules/argmatch (Files): Add m4/argmatch.m4.
65196         (configure.ac): Add gl_ARGMATCH.
65197         (EXTRA_DIST): Renamed from lib_SOURCES, for
65198         consistency with the other modules.  Remove argmatch.c.
65199         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65200         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65201         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65202         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65203         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65204         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65205         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65206         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65207         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65208         * modules/closeout (EXTRA_DIST): Add closeout.h.
65209         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65210         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65211         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65212         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65213         dirname.h; remove basename.c and stripslash.c.
65214         * modules/exclude (EXTRA_DIST): Add exclude.h.
65215         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65216         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65217         * modules/file-type (EXTRA_DIST): Add file-type.h.
65218         * modules/filemode (EXTRA_DIST): Add filemode.h.
65219         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65220         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65221         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65222         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65223         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65224         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65225         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65226         * modules/getdate (EXTRA_DIST): Add getdate.c.
65227         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65228         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65229         * modules/getpass (EXTRA_DIST): Add getpass.h.
65230         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65231         * modules/group-member (EXTRA_DIST): Add group-member.h.
65232         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65233         * modules/hash (EXTRA_DIST): Add hash.h.
65234         * modules/human (EXTRA_DIST): Add human.h.
65235         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65236         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65237         * modules/lchown (EXTRA_DIST): Add lchown.h.
65238         * modules/long-options (EXTRA_DIST): Add long-options.h.
65239         * modules/lstat (EXTRA_DIST): Add lstat.h.
65240         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65241         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65242         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65243         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65244         * modules/memxor (EXTRA_DIST): Add memxor.h.
65245         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65246         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65247         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65248         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65249         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65250         * modules/physmem (EXTRA_DIST): Add physmem.h.
65251         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65252         * modules/posixver (EXTRA_DIST): Add posixver.h.
65253         * modules/quote (EXTRA_DIST): Add quote.h.
65254         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65255         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65256         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65257         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65258         regex_internal.h regexec.c.
65259         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65260         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65261         * modules/same (EXTRA_DIST): Add same.h.
65262         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65263         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65264         * modules/savedir (EXTRA_DIST): Add savedir.h.
65265         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65266         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65267         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65268         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65269         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65270         * modules/strdup (EXTRA_DIST): Add strdup.h.
65271         * modules/strftime (EXTRA_DIST): Add strftime.h.
65272         * modules/strndup (EXTRA_DIST): Add strndup.h.
65273         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65274         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65275         * modules/time_r (EXTRA_DIST): Add time_r.h.
65276         * modules/timespec (EXTRA_DIST): Add timespec.h.
65277         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65278         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65279         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65280         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65281         * modules/userspec (EXTRA_DIST): Add userspec.h.
65282         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65283         * modules/utimens (EXTRA_DIST): Add utimens.h.
65284         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65285         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65286         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65287         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65288         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65289         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65290         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65291         * modules/yesno (EXTRA_DIST): Add yesno.h.
65292
65293 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65294
65295         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65296
65297         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65298         * m4/dev-ino.m4, same-inode.m4: Remove.
65299
65300         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65301         * m4/acl.m4 (AC_FUNC_ACL):
65302         * m4/backupfile.m4 (gl_BACKUPFILE):
65303         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65304         * m4/canon-host.m4 (gl_CANON_HOST):
65305         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65306         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65307         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65308         * m4/cloexec.m4 (gl_CLOEXEC):
65309         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65310         * m4/closeout.m4 (gl_CLOSEOUT):
65311         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65312         * m4/dirname.m4 (gl_DIRNAME):
65313         * m4/exclude.m4 (gl_EXCLUDE):
65314         * m4/exitfail.m4 (gl_EXITFAIL):
65315         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65316         * m4/file-type.m4 (gl_FILE_TYPE):
65317         * m4/filemode.m4 (gl_FILEMODE):
65318         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65319         * m4/fpending.m4 (gl_FUNC_FPENDING):
65320         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65321         * m4/fts.m4 (gl_FUNC_FTS):
65322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65323         * m4/getdate.m4 (gl_GETDATE):
65324         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65325         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65326         * m4/getpass.m4 (gl_FUNC_GETPASS):
65327         * m4/gettime.m4 (gl_GETTIME):
65328         * m4/getugroups.m4 (gl_GETUGROUPS):
65329         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65330         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65331         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65332         * m4/hash.m4 (gl_HASH):
65333         * m4/idcache.m4 (gl_IDCACHE):
65334         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65335         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65336         * m4/long-options.m4 (gl_LONG_OPTIONS):
65337         * m4/lstat.m4 (gl_FUNC_LSTAT):
65338         * m4/md5.m4 (gl_MD5):
65339         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65340         * m4/memcoll.m4 (gl_MEMCOLL):
65341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65343         * m4/memxor.m4 (gl_MEMXOR):
65344         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65345         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65346         * m4/modechange.m4 (gl_MODECHANGE):
65347         * m4/mountlist.m4 (gl_MOUNTLIST):
65348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65349         * m4/openat.m4 (gl_FUNC_OPENAT):
65350         * m4/pathmax.m4 (gl_PATHMAX):
65351         * m4/physmem.m4 (gl_PHYSMEM):
65352         * m4/posixtm.m4 (gl_POSIXTM):
65353         * m4/posixver.m4 (gl_POSIXVER):
65354         * m4/quote.m4 (gl_QUOTE):
65355         * m4/quotearg.m4 (gl_QUOTEARG):
65356         * m4/readtokens.m4 (gl_READTOKENS):
65357         * m4/readutmp.m4 (gl_READUTMP):
65358         * m4/regex.m4 (gl_REGEX):
65359         * m4/safe-read.m4 (gl_SAFE_READ):
65360         * m4/safe-write.m4 (gl_SAFE_WRITE):
65361         * m4/same.m4 (gl_SAME):
65362         * m4/save-cwd.m4 (gl_SAVE_CWD):
65363         * m4/savedir.m4 (gl_SAVEDIR):
65364         * m4/settime.m4 (gl_SETTIME):
65365         * m4/sha1.m4 (gl_SHA1):
65366         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65367         * m4/stat-macros.m4 (gl_STAT_MACROS):
65368         * m4/stat-time.m4 (gl_STAT_TIME):
65369         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65370         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65371         * m4/strdup.m4 (gl_FUNC_STRDUP):
65372         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65373         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65374         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65375         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65376         * m4/time_r.m4 (gl_TIME_R):
65377         * m4/timespec.m4 (gl_TIMESPEC):
65378         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65379         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65380         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65381         * m4/userspec.m4 (gl_USERSPEC):
65382         * m4/utimecmp.m4 (gl_UTIMECMP):
65383         * m4/utimens.m4 (gl_UTIMENS):
65384         * m4/xalloc.m4 (gl_XALLOC):
65385         * m4/xgetcwd.m4 (gl_XGETCWD):
65386         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65387         * m4/xreadlink.m4 (gl_XREADLINK):
65388         * m4/xstrtod.m4 (gl_XSTRTOD):
65389         * m4/yesno.m4 (gl_YESNO):
65390         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65391         to get the necessary .h files and whatnot.
65392
65393 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65394             Bruno Haible  <bruno@clisp.org>
65395
65396         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65397         /bin/sh understanding of '!' conditional negation.
65398
65399 2006-08-21  Jim Meyering  <jim@meyering.net>
65400
65401         * modules/openat (Depends-on): Really alphabetize.
65402
65403         * modules/acl (Depends-on): Add error and quote.
65404
65405         * check-module (find_included_lib_files): Add at-func.c to the
65406         ok-to-include-more-than-once white list.
65407
65408         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65409
65410 2006-08-21  Bruno Haible  <bruno@clisp.org>
65411
65412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65413         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65414         Reported by Martin Lambers <marlam@marlam.de>.
65415
65416 2006-08-21  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65419         specify an installation location, don't emit a noinst_LIBRARIES or
65420         noinst_LTLIBRARIES assignment.
65421
65422 2006-08-21  Bruno Haible  <bruno@clisp.org>
65423
65424         BeOS portability.
65425         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65426         BeOS has mbrtowc() but no <wctype.h>.
65427
65428 2006-08-21  Bruno Haible  <bruno@clisp.org>
65429
65430         BeOS portability.
65431         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65432         exist.
65433
65434 2006-08-21  Bruno Haible  <bruno@clisp.org>
65435
65436         BeOS portability.
65437         * lib/mbchar.h: Include <wctype.h> only if it exists.
65438
65439 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         Remove files that are no longer needed by their respective modules.
65442         * m4/obstack.m4: Remove.
65443         * m4/strerror_r.m4: Remove.
65444         * m4/uint32_t.m4: Remove.
65445         * m4/uintptr_t.m4: Remove.
65446         * m4/ullong_max.m4: Remove.
65447         * m4/xstrtoimax.m4: Remove.
65448         * m4/xstrtoumax.m4: Remove.
65449
65450         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65451         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65452         dependencies now capture this.
65453
65454         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65455         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65456         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65457         * m4/human.m4 (gl_HUMAN): Likewise.
65458         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65459         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65460
65461         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65462
65463         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65464         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65465         stdint.
65466         * m4/human.m4 (gl_HUMAN): Likewise.
65467         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65468         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65469         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65470         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65471         * m4/xstrtol (gl_XSTRTOL): Likewise.
65472
65473         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65474         AC_TYPE_LONG_LONG_INT.
65475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65476         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65477         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65478         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65479
65480         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65481         on stdbool.
65482
65483         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65484         (gl_PREREQ_XSTRTOUL): Remove.
65485
65486         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65487
65488         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65489         mode.
65490
65491 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         Add and change modules to make it easier for coreutils to use
65494         gnulib-tool.
65495         * modules/backupfile (Files): Remove m4/d-ino.m4.
65496         (Depends-on): Add d-ino.
65497         * modules/cycle-check (Depends-on): Add stdint.
65498         (lib_SOURCES): Add cycle-check.h.
65499         * modules/d-ino: New module.
65500         * modules/d-type: New module.
65501         * modules/error (Files): Remove m4/strerror_r.m4.
65502         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65503         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65504         m4/inttypes_h.m4, m4/uintmax_t.m4.
65505         (Depends-on): Add stdint.
65506         (lib_SOURCES): Add fsusage.h.
65507         * modules/getcwd (Files): Remove d-ino.m4.
65508         (Depends-on): Add d-ino.
65509         * modules/getndelim2 (Depends-on): Add stdint.
65510         * modules/glob (Files): Remove m4/d-type.m4.
65511         (Depends-on): Add d-type.
65512         * modules/host-os: New module.
65513         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65514         m4/inttypes_h.m4, m4/uintmax_t.m4.
65515         * Depends-on: Add stdint.
65516         (lib_SOURCES): Add human.h.
65517         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65518         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65519         m4/uintmax_t.m4, m4/ulonglong.m4.
65520         (Depends-on): Add stdint.
65521         (EXTRA_DIST): Add inttostr.h.
65522         * modules/lchmod: New module.
65523         * modules/link-follow: New module.
65524         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65525         (Depends-on): Add lchmod.
65526         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65527         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65528         (Depends-on): Add stdint.
65529         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65530         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65531         (Depends-on): Add stdint.
65532         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65533         * modules/perl: New module.
65534         * modules/regex (Depends-on): Add stdint.
65535         * modules/rmdir-errno: New module.
65536         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65537         m4/intmax_t.m4.
65538         (Depends-on): Add stdint.
65539         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65540         m4/uintmax_t.m4.
65541         (Depends-on): Add stdint.
65542         * modules/unlink-busy: New module.
65543         * modules/utimecmp (Depends-on): Add stdint.
65544         * modules/uptime: New module.
65545         * modules/winsz-ioctl: New module.
65546         * modules/winsz-termios: New module.
65547         * modules/xnanosleep (Depends-on): Add nanosleep.
65548         * modules/ullong_max: Remove.
65549         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65550         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65551         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65552         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65553         (Depends-on): Add inttypes.
65554         (lib_SOURCES): Add xstrtol.h.
65555         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65556         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65557         * MODULES.html.sh: Move 'assert' into the assert section.
65558         Move 'dummy' into the linking section.
65559         Remove ullong_max.
65560         Add section for compatibility checks for POSIX:2001 functions,
65561         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65562         winsz-ioctl, and winsz-termios into it.
65563         Add lchmod.
65564         Add top-level Misc section and put host-os, perl, and uptime
65565         into it.
65566
65567 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65570         now assume the stdint module.  Do not include inttypes.h.
65571         * lib/fsusage.h: Likewise.
65572         * lib/getndelim2.c: Likewise.
65573         * lib/human.h: Likewise.
65574         * lib/inttostr.h: Likewise.
65575         * lib/obstack.c: Likewise.
65576         * lib/regex_internal.h: Likewise.
65577         * lib/tempname.c: Likewise.
65578         * lib/utimecmp.c: Likewise.
65579         * lib/xstrtol.h: Likewise.
65580
65581         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65582
65583         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65584         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65585         * lib/xtime.h: Likewise.
65586
65587 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * modules/openat (Files): Add lib/fchmodat.c.
65590         Fixes problem reported by Jay Youngman.
65591
65592 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65593
65594         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65595         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65596
65597 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65598             Bruno Haible  <bruno@clisp.org>
65599
65600         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65601         and is a script that invokes bison. Tighten the code. Add comments.
65602
65603 2006-08-18  Jim Meyering  <jim@meyering.net>
65604
65605         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65606         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65607         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65608         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65609
65610 2006-08-18  Bruno Haible  <bruno@clisp.org>
65611
65612         * modules/bison-i18n: New file.
65613         * MODULES.html.sh (Internationalization functions): Add it.
65614
65615 2006-08-18  Bruno Haible  <bruno@clisp.org>
65616
65617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65618         sys/statvfs.h. When getmntinfo was found, check its declaration and
65619         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65620
65621 2006-08-18  Bruno Haible  <bruno@clisp.org>
65622
65623         * m4/bison-i18n.m4: New file, from bison.
65624
65625 2006-08-18  Bruno Haible  <bruno@clisp.org>
65626
65627         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65628         (ME_DUMMY): Treat "kernfs" as a dummy.
65629         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65630
65631 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         Update from coreutils.
65634
65635         2006-08-15  Jim Meyering  <jim@meyering.net>
65636
65637         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65638
65639         2006-01-17  Jim Meyering  <jim@meyering.net>
65640
65641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65642
65643         2006-01-11  Jim Meyering  <jim@meyering.net>
65644
65645         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65646         Check for the lchmod function.
65647
65648 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65649
65650         Update from coreutils.
65651
65652         * lib/__fpending.h: Add copyright notice.
65653         * lib/fprintftime.h: Likewise.
65654         * lib/savedir.c: Use (C) in copyright notice.
65655         * lib/savedir.h: Likewise.
65656
65657         2006-08-15  Jim Meyering  <jim@meyering.net>
65658
65659         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65660         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65661         in support of the EXPECTED_ERRNO macro.
65662         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65663         definitions.  Instead, define the appropriate symbols and include
65664         "at-func.c".
65665         * lib/mkdirat.c (mkdirat): Likewise.
65666         * lib/fchmodat.c (fchmodat): Likewise.
65667         (ENOSYS): Remove definition.
65668         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65669         it.  Don't include "unistd--.h" -- it wasn't ever used.
65670
65671         2006-01-17  Jim Meyering  <jim@meyering.net>
65672
65673         Rewrite fts.c not to change the current working directory,
65674         by using openat, fstatat, fdopendir, etc..
65675
65676         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65677         (HAVE_OPENAT_SUPPORT): Define.
65678         [_LIBC] (fchdir): Don't undef or define; no longer used.
65679         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65680         Now, this `function' always succeeds, and consumes its file descriptor
65681         parameter -- so callers must not close such FDs.  Update callers.
65682         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65683         (diropen): Add parameter, SP.  Adjust all callers.
65684         Implement using diropen_fd, rather than open.
65685         (fts_open): Initialize new member, fts_cwd_fd.
65686         Remove fts_rft-setting code.
65687         (fts_close): Close fts_cwd_fd, if necessary.
65688         (__opendir2): Define in terms of opendir or opendirat,
65689         depending on whether the FST_NOCHDIR flag is set.
65690         (fts_build): Since fts_safe_changedir consumes its FD, and since
65691         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65692         and close the dup'd file descriptor upon failure.
65693         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65694         (fts_safe_changedir): Tweak semantics to reflect that this function
65695         now calls cwd_advance_fd and hence consumes its FD argument.
65696         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65697         [struct FTS] (fts_rft): Remove now-unused member.
65698         [struct FTS] (fts_cycle.state): Improve comment.
65699
65700         * lib/openat.c (openat_needs_fchdir): New function.
65701         * lib/openat.h (openat_needs_fchdir): Declare it.
65702
65703 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65706         Problem and fix reported by Pádraig Brady in
65707         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65708
65709 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65712
65713 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65714
65715         * lib/memcoll.c (memcoll): Optimize for the common case where the
65716         arguments are bytewise equal.
65717
65718 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65719
65720         * doc/regexprops-generic.texi: Add a copyright notice.
65721
65722 2006-08-15  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/tmpdir (License): Change to LGPL.
65725
65726 2006-08-15  Bruno Haible  <bruno@clisp.org>
65727
65728         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65729         module.
65730
65731 2006-08-14  Simon Josefsson  <jas@extundo.com>
65732
65733         * config/srclist.txt: Add gnupload.
65734
65735 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         Change copyright notice from LGPL 2 to GPL 2, since that's the
65738         standard form used in the gnulib repository.
65739         * tests/test-lock.c: Likewise.
65740         * tests/test-stdint.c: Likewise.
65741         * tests/test-tls.c: Likewise.
65742
65743         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65744         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65745         Add copyright notice.
65746
65747         * check-module: Add copyright notice.  Output a copyright
65748         notice if "--version" is specified.
65749         * modules/COPYING: New file.
65750         * tests/test-getaddrinfo.c: Add copyright notice.
65751         * tests/test-verify.c: Likewise.
65752
65753 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         Change copyright notice from LGPL 2 to GPL 2, since that's the
65756         standard form used in the gnulib repository.
65757         * lib/lock.c: LGPL -> GPL.
65758         * lib/lock.h: Likewise.
65759         * lib/strnlen1.c: Likewise.
65760         * lib/strnlen1.h: Likewise.
65761         * lib/tls.c: Likewise.
65762         * lib/tls.h: Likewise.
65763         * lib/tmpdir.c: Likewise.
65764
65765         * lib/TODO: Remove; this belongs only in coreutils.
65766
65767 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         Add copyright notices to long-enough files that lack them, since
65770         otherwise the files aren't clearly free.  Use the same notice that
65771         getdate.texi already uses.
65772         * doc/alloca-opt.texi: Add copyright notice.
65773         * doc/alloca.texi: Likewise.
65774         * doc/ctime.texi: Likewise.
65775         * doc/functions.texi: Likewise.
65776         * doc/gcd.texi: Likewise.
65777         * doc/gnulib-tool.texi: Likewise.
65778         * doc/inet_ntoa.texi: Likewise.
65779         * doc/visibility.texi: Likewise.
65780
65781         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65782         * doc/quote.texi: Add copyright notice.
65783
65784         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65785         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65786         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65787         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65788         is now obsolete, and give a pointer to the Sun list.
65789         Add copyright notice.
65790
65791 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * config/srclistvars.sh: Add copyright notice.
65794
65795 2006-08-14  Eric Blake  <ebb9@byu.net>
65796
65797         Import the following change from libc:
65798
65799         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65800
65801         Upstream bug 2997.
65802         * lib/misc/error.c: Add space between program name and message if file
65803         name is missing.
65804
65805 2006-08-12  Karl Berry  <karl@gnu.org>
65806
65807         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65808         remove, these originate in gnulib now.
65809
65810 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65811
65812         * doc/Makefile (standards.info standards.html standards.dvi):
65813         Also depend on make-stds.texi.
65814
65815 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65818         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65819
65820         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65821         in wchar_t.  Problem reported by Eric Blake.
65822
65823         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65824         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65825         Also, help the compiler to keep LEN in a register.
65826
65827 2006-08-11  Eric Blake  <ebb9@byu.net>
65828
65829         * users.txt: Sort.  Add tar.
65830
65831 2006-08-11  Bruno Haible  <bruno@clisp.org>
65832
65833         * users.txt: New file.
65834
65835 2006-08-11  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65838         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65839
65840 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * modules/snprintf (Depends-on): Remove minmax.
65843         (Maintainer): Add self and Bruno.
65844
65845 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65848         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65849         (EOVERFLOW): Define if the system does not.
65850         Do not include "minmax.h"; it wasn't used.
65851         (snprintf): Don't assume size_t promotes to an unsigned type.
65852         Fix bug when generated string was too long for the buffer: the
65853         buffer's contents are supposed to be the initial prefix of the
65854         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65855         exceeds INT_MAX; do the check ourselves.
65856
65857         Import the following changes from libc:
65858
65859         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65860
65861         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65862         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65863         set wc to the byte which couldn't be converted.
65864         (re_string_reconstruct): Don't clear valid_raw_len before calling
65865         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65866         tip_context using re_string_context_at.
65867
65868         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65869
65870         * lib/posix/regex.h: g++ still cannot handled [restrict].
65871
65872         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65873
65874         * lib/posix/regex.h: Remove special handling for VMS.
65875
65876 2006-08-10  Jim Meyering  <jim@meyering.net>
65877
65878         * modules/same-inode: New module.
65879         * modules/dev-ino: New module.
65880         * modules/cycle-check: Depend on these modules, rather than simply
65881         including their .h files.
65882         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65883         required via m4/cycle-check.m4.
65884         * modules/same: Depend on new same-inode module, rather than
65885         including same-inode.h.
65886         * modules/chdir-safer: New file.
65887
65888         * modules/chown (Depends-on): Add stat-macros.
65889
65890 2006-08-10  Jim Meyering  <jim@meyering.net>
65891
65892         * m4/cycle-check.m4: New file.
65893         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65894         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65895
65896 2006-08-10  Eric Blake  <ebb9@byu.net>
65897
65898         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65899         in from original proposal.
65900
65901 2006-08-10  Eric Blake  <ebb9@byu.net>
65902         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65903
65904         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65905         namespace.
65906
65907 2006-08-10  Bruno Haible  <bruno@clisp.org>
65908
65909         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65910         as well.
65911
65912 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65913
65914         Sync from coreutils.
65915
65916         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65917
65918         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65919         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65920
65921 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * modules/restrict: Remove; no longer needed now that we assume
65924         Autoconf 2.59 or later.
65925         * MODULES.html.sh: Remove 'restrict'.
65926         * modules/argp (Depends-on): Remove 'restrict'.
65927         * modules/base64 (Depends-on): Likewise.
65928         * modules/gc (Depends-on): Likewise.
65929         * modules/getaddrinfo (Depends-on): Likewise.
65930         * modules/glob (Depends-on): Likewise.
65931         * modules/inet_ntop (Depends-on): Likewise.
65932         * modules/inet_pton (Depends-on): Likewise.
65933         * modules/memxor (Depends-on): Likewise.
65934         * modules/regex (Depends-on): Likewise.
65935         * modules/strtok_r (Depends-on): Likewise.
65936         * modules/time_r (Depends-on): Likewise.
65937
65938 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65941         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65942         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65943         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65944         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65945         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65946         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65947         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65948
65949         Merge from coreutils.
65950         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65951         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65952         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65953         * m4/time_r.m4 (gl_TIME_R): Likewise.
65954
65955 2006-08-09  Karl Berry  <karl@gnu.org>
65956
65957         * config/srclist.txt: no more gettext-tools, per Bruno.
65958
65959 2006-08-08  Eric Blake  <ebb9@byu.net>
65960
65961         * modules/verror: New module.
65962         * MODULES.html.sh: Document it.
65963
65964 2006-08-08  Eric Blake  <ebb9@byu.net>
65965
65966         * lib/verror.h, lib/verror.c: New files.
65967
65968 2006-08-08  Eric Blake  <ebb9@byu.net>
65969
65970         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65971         verror_at_line output complies with GNU Coding Standards even when
65972         file is NULL.
65973
65974 2006-08-07  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65977         versions of AIX.
65978         Reported by Ralf Wildenhues.
65979
65980 2006-08-07  Bruno Haible  <bruno@clisp.org>
65981
65982         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65983         in an AC_DEFUN. Needed so that the autoconf snippets can use
65984         AC_REQUIRE.
65985
65986 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65987
65988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65989         Initialize pkgdata_DATA.
65990         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65991         overriding it.
65992
65993 2006-08-06  Eric Blake  <ebb9@byu.net>
65994
65995         * lib/error.h: Fold in some upstream changes from glibc.
65996         * lib/error.c: Likewise.
65997
65998 2006-08-04  Bruno Haible  <bruno@clisp.org>
65999
66000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66001         Make the mostlyclean-local rule depend on mostlyclean-generic.
66002         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66003
66004 2006-07-31  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66007         <stdlib.h>, <string.h>.
66008
66009 2006-07-30  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/readlink (License): Change to LGPL.
66012
66013 2006-07-30  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66016         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66017         set PKGDATADIR to point to it.
66018
66019 2006-07-30  Bruno Haible  <bruno@clisp.org>
66020
66021         * modules/csharpexec (configure.ac): Comment out macro invocation.
66022         * modules/javaexec (configure.ac): Likewise.
66023         * modules/javacomp-script (configure.ac): Likewise.
66024
66025         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66026
66027 2006-07-30  Bruno Haible  <bruno@clisp.org>
66028
66029         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66030         linked-list.
66031
66032 2006-07-30  Bruno Haible  <bruno@clisp.org>
66033
66034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66035
66036 2006-07-30  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66039         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66040         get removed.
66041
66042 2006-07-29  Bruno Haible  <bruno@clisp.org>
66043
66044         Make it possible for gnulib-tool to work with locally modified or
66045         augmented gnulib repositories.
66046         * gnulib-tool (func_usage): Document --local-dir option.
66047         (local_gnulib_dir): New variable.
66048         Handle --local-dir option.
66049         (func_lookup_file): New function.
66050         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66051         (func_get_description, func_get_filelist, func_get_description,
66052         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66053         func_get_automake_snippet, func_get_include_directive,
66054         func_get_license, func_get_maintainer): Use func_lookup_file.
66055         (func_import, func_create_testdir): Use func_lookup_file.
66056
66057 2006-07-29  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/setenv (Depends-on): Add unistd.
66060
66061 2006-07-29  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66064
66065 2006-07-29  Bruno Haible  <bruno@clisp.org>
66066
66067         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66068
66069 2006-07-29  Bruno Haible  <bruno@clisp.org>
66070
66071         * gnulib-tool (import, update): If there is no Makefile.am, look at
66072         aclocal.m4, instead of bailing out.
66073
66074 2006-07-29  Bruno Haible  <bruno@clisp.org>
66075
66076         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66077         Categorize the options by when they are useful.
66078
66079 2006-07-29  Bruno Haible  <bruno@clisp.org>
66080
66081         * gnulib-tool (func_usage): Document option --no-libtool.
66082         Handle option --no-libtool.
66083         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66084         for changed semantics of $libtool variable.
66085         (func_import): Likewise. If libtool is not used, show this through
66086         an option --no-libtool.
66087         (func_create_testdir): Update.
66088
66089 2006-07-29  Bruno Haible  <bruno@clisp.org>
66090
66091         * gnulib-tool (func_import): Extend error message about missing
66092         --doc-base.
66093
66094 2006-07-29  Bruno Haible  <bruno@clisp.org>
66095
66096         * gnulib-tool (func_import): Don't create the $docbase directory if
66097         there is no file to store there.
66098
66099 2006-07-29  Bruno Haible  <bruno@clisp.org>
66100
66101         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66102         relevant, look for configure.ac there, not in the current directory.
66103         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66104
66105 2006-07-29  Bruno Haible  <bruno@clisp.org>
66106
66107         * gnulib-tool (SORT): New variable.
66108         (func_usage): Undocument --assume-autoconf option.
66109         Remove --assume-autoconf option handling.
66110         (autoconf_minversion): Determine from the contents of configure.ac.
66111         (func_import): Remove autoconf_minversion handling.
66112         Suggested by Eric Blake.
66113
66114 2006-07-29  Bruno Haible  <bruno@clisp.org>
66115
66116         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66117
66118 2006-07-29  Bruno Haible  <bruno@clisp.org>
66119
66120         * config/srclist.txt (*setenv.[ch]): Remove rules.
66121
66122 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66123
66124         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66125
66126 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66127
66128         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66129         arpa/inet.h.
66130
66131 2006-07-28  Simon Josefsson  <jas@extundo.com>
66132
66133         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66134         * modules/inet_pton (Depends-on): Likewise.
66135
66136 2006-07-28  Simon Josefsson  <jas@extundo.com>
66137
66138         * m4/netinet_in_h.m4: New file.
66139
66140 2006-07-28  Simon Josefsson  <jas@extundo.com>
66141
66142         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66143         #include's.
66144
66145 2006-07-28  Simon Josefsson  <jas@extundo.com>
66146
66147         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66148         #include's.
66149
66150 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66153         setgid on directories only if they set these bits.
66154         * lib/modechange.h: Remove obsolete comment about masks.
66155
66156 2006-07-28  Eric Blake  <ebb9@byu.net>
66157
66158         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66159         macro expansion.
66160
66161 2006-07-28  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66164
66165 2006-07-28  Bruno Haible  <bruno@clisp.org>
66166
66167         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66168
66169 2006-07-28  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66172         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66173         Define fallbacks.
66174         Avoids link error on FreeBSD 4.x.
66175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66176
66177         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66178         encoding.
66179         * lib/mbswidth.c (iswcntrl): Likewise.
66180
66181 2006-07-27  Bruno Haible  <bruno@clisp.org>
66182
66183         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66184         test.
66185
66186 2006-07-27  Bruno Haible  <bruno@clisp.org>
66187
66188         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66189         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66190         defined.
66191
66192 2006-07-26  Eric Blake  <ebb9@byu.net>
66193
66194         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66195
66196 2006-07-26  Eric Blake  <ebb9@byu.net>
66197
66198         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66199         like mingw that lack mkstemp.
66200         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66201         avoid compilation warning on mingw.
66202
66203 2006-07-26  Bruno Haible  <bruno@clisp.org>
66204
66205         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66206         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66207         INT_FAST*_MIN, INTPTR_MIN.
66208
66209 2006-07-25  Bruno Haible  <bruno@clisp.org>
66210
66211         * modules/version-etc (Depends-on): Add stdarg.
66212
66213 2006-07-25  Bruno Haible  <bruno@clisp.org>
66214
66215         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66216         complex commands.
66217
66218 2006-07-25  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66221         defined in <stdarg.h> or config.h.
66222
66223 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66226         (gl_STDIO_SAFER): Remove.
66227
66228 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * MODULES.html.sh (File stream based Input/Output):
66231         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66232         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66233         * modules/fopen-safer, modules/tmpfile-safer: New files.
66234         * modules/stdio-safer: Remove.
66235
66236 2006-07-24  Bruno Haible  <bruno@clisp.org>
66237
66238         * modules/tmpdir: New file.
66239         * MODULES.html.sh (File system functions): Add it.
66240
66241 2006-07-24  Bruno Haible  <bruno@clisp.org>
66242
66243         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66244         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66245
66246 2006-07-24  Bruno Haible  <bruno@clisp.org>
66247
66248         * modules/clean-temp: New file.
66249
66250 2006-07-24  Bruno Haible  <bruno@clisp.org>
66251
66252         * m4/tmpdir.m4: New file, from GNU gettext.
66253
66254 2006-07-24  Bruno Haible  <bruno@clisp.org>
66255
66256         * lib/tmpdir.h: New file, from GNU gettext.
66257         * lib/tmpdir.c: New file, from GNU gettext.
66258
66259 2006-07-24  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/clean-temp.h: New file, from GNU gettext.
66262         * lib/clean-temp.c: New file, from GNU gettext.
66263
66264 2006-07-23  Eric Blake  <ebb9@byu.net>
66265
66266         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66267         (Depends-on): Add binary-io.
66268
66269 2006-07-23  Eric Blake  <ebb9@byu.net>
66270
66271         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66272
66273 2006-07-23  Eric Blake  <ebb9@byu.net>
66274
66275         * lib/tmpfile-safer.c: New file.
66276         * lib/stdio-safer.h (fopen_safer): Add prototype.
66277         * lib/stdio--.h (tmpfile): Make safer.
66278
66279 2006-07-23  Bruno Haible  <bruno@clisp.org>
66280
66281         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66282         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66283         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66284         gl_linked_remove_at): Use it.
66285
66286 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66287         and Simon Josefsson <jas@extundo.com>
66288
66289         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66290
66291         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66292
66293 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66294
66295         * modules/close-stream: New file.
66296         * modules/closeout (Description): Make it clear that it exits
66297         with a diagnostic on error.
66298         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66299         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66300
66301 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * m4/close-stream.m4: New file.
66304
66305 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * lib/close-stream.c, lib/close-stream.h: New files.
66308
66309 2006-07-22  Bruno Haible  <bruno@clisp.org>
66310
66311         Merge from GNU gettext 0.15.
66312
66313         2006-05-01  Bruno Haible  <bruno@clisp.org>
66314
66315                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66316
66317         2006-07-22  Bruno Haible  <bruno@clisp.org>
66318
66319                 * modules/javaversion: New file.
66320                 * MODULES.html.sh (Java): Add javaversion.
66321
66322         2006-03-12  Bruno Haible  <bruno@clisp.org>
66323
66324                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66325
66326         2005-12-04  Bruno Haible  <bruno@clisp.org>
66327
66328                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66329                 (untested).
66330
66331         2006-06-21  Bruno Haible  <bruno@clisp.org>
66332
66333                 Avoid warnings from recent versions of mcs.
66334                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66335                 -o, -L, -r any more. Use options documented since mcs-1.0
66336                 instead. Similarly for -g.
66337
66338         2005-12-04  Bruno Haible  <bruno@clisp.org>
66339
66340                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66341                 .resources, not .resource.
66342
66343         2005-07-09  Bruno Haible  <bruno@clisp.org>
66344
66345                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66346                 add a .dll suffix.
66347                 Reported by Mark Junker <mjscod@gmx.de>.
66348
66349         2006-07-22  Bruno Haible  <bruno@clisp.org>
66350
66351                 * modules/gettext: Upgrade to gettext-0.15.
66352                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66353                 m4/visibility.m4.
66354                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66355
66356 2006-07-22  Bruno Haible  <bruno@clisp.org>
66357
66358         Merge from GNU gettext 0.15.
66359
66360         2006-03-25  Bruno Haible  <bruno@clisp.org>
66361
66362                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66363
66364         2006-07-21  Bruno Haible  <bruno@clisp.org>
66365
66366                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66367                 "1.1".
66368
66369         2006-05-09  Bruno Haible  <bruno@clisp.org>
66370
66371                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66372                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66373                 for the conftestver execution.
66374
66375         2006-05-01  Bruno Haible  <bruno@clisp.org>
66376
66377                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66378                 optional target-version argument. Verify that the compiler
66379                 groks source of the specified source-version, or add -source
66380                 option as necessary. Verify that the compiler produces
66381                 bytecode in the specified target-version, or add -target and
66382                 -source options as necessary. Make the result of the test
66383                 available as variable CONF_JAVAC. Also log error output in
66384                 config.log.
66385
66386         2006-03-11  Bruno Haible  <bruno@clisp.org>
66387
66388                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66389
66390         2006-05-09  Bruno Haible  <bruno@clisp.org>
66391
66392                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66393                 CLASSPATH_SEPARATOR to a semicolon.
66394
66395         2006-03-12  Bruno Haible  <bruno@clisp.org>
66396
66397                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66398                 available as variable CONF_JAVA, for subsequent autoconf
66399                 tests. Also log error output in config.log.
66400
66401         2006-07-19  Bruno Haible  <bruno@clisp.org>
66402
66403                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66404                 that getline works on glibc2 systems. Needed to avoid trouble
66405                 in relocatable.c.
66406                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66407
66408         2005-12-04  Bruno Haible  <bruno@clisp.org>
66409
66410                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66411                 launcher (untested).
66412
66413         2005-12-04  Bruno Haible  <bruno@clisp.org>
66414
66415                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66416
66417         2006-07-22  Bruno Haible  <bruno@clisp.org>
66418
66419                 * gettext.m4: Update from GNU gettext-0.15.
66420                 * nls.m4: Likewise.
66421                 * po.m4: Likewise.
66422                 * inttypes-pri.m4: Likewise.
66423                 * inttypes-h.m4: Renamed from inttypes.m4.
66424                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66425
66426 2006-07-22  Bruno Haible  <bruno@clisp.org>
66427
66428         Merge from GNU gettext 0.15.
66429
66430         2005-07-05  Bruno Haible  <bruno@clisp.org>
66431
66432                 * printf-args.c (printf_fetchargs): Work around broken
66433                 definition of wint_t on mingw.
66434
66435         2005-02-12  Bruno Haible  <bruno@clisp.org>
66436
66437                 * xallocsa.h: Add extern "C" for C++.
66438
66439         2006-05-17  Bruno Haible  <bruno@clisp.org>
66440
66441                 Cygwin portability.
66442                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66443
66444         2006-04-30  Bruno Haible  <bruno@clisp.org>
66445
66446                 * progreloc.c: Include <mach-o/dyld.h> if available.
66447                 (find_executable): Use _NSGetExecutablePath when possible.
66448
66449         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66450
66451                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66452                 function.
66453
66454         2005-12-29  Bruno Haible  <bruno@clisp.org>
66455
66456                 * progreloc.c (set_program_name_and_installdir): Fix
66457                 compilation error.
66458
66459         2005-12-04  Bruno Haible  <bruno@clisp.org>
66460
66461                 Cygwin portability.
66462                 * progreloc.c: Include <windows.h> also on Cygwin.
66463                 (find_executable): Add support for Cygwin.
66464                 (set_program_name_and_installdir): Handle also platforms with
66465                 nonempty EXEEXT.
66466
66467         2006-07-11  Bruno Haible  <bruno@clisp.org>
66468
66469                 * javacomp.c: Fix a comment.
66470                 Reported by Jim Meyering.
66471
66472         2006-04-30  Bruno Haible  <bruno@clisp.org>
66473
66474                 * javacomp.h (compile_java_class): Add source_version,
66475                 target_version arguments.
66476                 * javacomp.c: Rewritten to choose only a compiler that
66477                 respects the specified source_version and target_version.
66478
66479         2006-06-27  Bruno Haible  <bruno@clisp.org>
66480
66481                 Assume correct S_ISDIR macro.
66482                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66483
66484         2006-07-22  Bruno Haible  <bruno@clisp.org>
66485
66486                 * javaversion.h: New file, from GNU gettext.
66487                 * javaversion.c: New file, from GNU gettext.
66488                 * javaversion.java: New file, from GNU gettext.
66489                 * javaversion.class: New file, from GNU gettext.
66490
66491         2006-05-17  Bruno Haible  <bruno@clisp.org>
66492
66493                 Cygwin portability.
66494                 * javaexec.c (execute_java_class): Test for jview program
66495                 also on Cygwin.
66496
66497         2006-04-09  Bruno Haible  <bruno@clisp.org>
66498
66499                 * fatal-signal.c: Don't include string.h.
66500                 (at_fatal_signal): Use a copying loop instead of memcpy.
66501
66502         2005-12-04  Bruno Haible  <bruno@clisp.org>
66503
66504                 * csharpexec.c: Add support for 'clix' launcher (untested).
66505                 (execute_csharp_using_sscli): New function.
66506                 (execute_csharp_program): Call it.
66507
66508         2006-06-21  Bruno Haible  <bruno@clisp.org>
66509
66510                 Avoid warnings from recent versions of mcs.
66511                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66512                 -o, -L, -r any more. Use options documented since mcs-1.0
66513                 instead. Similarly for -g.
66514
66515         2005-07-09  Bruno Haible  <bruno@clisp.org>
66516
66517                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66518                 add a .dll suffix.
66519                 Reported by Mark Junker <mjscod@gmx.de>.
66520
66521         2006-06-17  Bruno Haible  <bruno@clisp.org>
66522
66523                 * config.charset: Update for NetBSD 3.0.
66524
66525         2006-05-17  Bruno Haible  <bruno@clisp.org>
66526
66527                 Cygwin portability.
66528                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66529
66530         2006-05-16  Bruno Haible  <bruno@clisp.org>
66531
66532                 * localcharset.c [CYGWIN]: Include <windows.h>.
66533                 (get_charset_aliases): For Cygwin, return the same CPxxx
66534                 aliases list as under WIN32.
66535                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66536                 the environment variables. Fall back to GetACP().
66537
66538         2006-04-05  Bruno Haible  <bruno@clisp.org>
66539
66540                 * config.charset: Update Juan Manuel Guerrero's address.
66541
66542         2005-02-12  Bruno Haible  <bruno@clisp.org>
66543
66544                 * allocsa.h: Add extern "C" for C++.
66545
66546         2005-02-10  Bruno Haible  <bruno@clisp.org>
66547
66548                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66549                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66550
66551         2006-07-22  Bruno Haible  <bruno@clisp.org>
66552
66553                 * gettext.h: Update to GNU gettext-0.15.
66554
66555 2006-07-22  Bruno Haible  <bruno@clisp.org>
66556
66557         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66558         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66559         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66560
66561 2006-07-21  Eric Blake  <ebb9@byu.net>
66562
66563         * modules/stdlib-safer: New file.
66564         * MODULES.html.sh (File stream based Input/Output): Add
66565         stdlib-safer.
66566
66567 2006-07-21  Eric Blake  <ebb9@byu.net>
66568
66569         * lib/stdlib-safer.h: New file from coreutils, required by
66570         stdlib--.h.
66571
66572 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66575
66576 2006-07-20  Bruno Haible  <bruno@clisp.org>
66577
66578         * gnulib-tool: Recognize new option --assume-autoconf.
66579         (autoconf_minversion): New variable.
66580         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66581
66582 2006-07-20  Bruno Haible  <bruno@clisp.org>
66583
66584         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66585
66586 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66587
66588         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66589         Reindent and repaginate.
66590
66591 2006-07-19  Derek Price  <derek@ximbiot.com>
66592
66593         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66594         Correct grammar.
66595
66596 2006-07-17  Bruno Haible  <bruno@clisp.org>
66597
66598         * modules/list: New file.
66599         * modules/array-list: New file.
66600         * modules/carray-list, modules/carray-list-tests: New files.
66601         * modules/linked-list, modules/linked-list-tests: New files.
66602         * modules/avltree-list, modules/avltree-list-tests: New files.
66603         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66604         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66605         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66606         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66607         * modules/oset: New file.
66608         * modules/array-oset: New file.
66609         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66610         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66611         * tests/test-carray_list.c: New file.
66612         * tests/test-linked_list.c: New file.
66613         * tests/test-avltree_list.c: New file.
66614         * tests/test-rbtree_list.c: New file.
66615         * tests/test-linkedhash_list.c: New file.
66616         * tests/test-avltreehash_list.c: New file.
66617         * tests/test-rbtreehash_list.c: New file.
66618         * tests/test-avltree_oset.c: New file.
66619         * tests/test-rbtree_oset.c: New file.
66620         * MODULES.html.sh (Container data structures): New section.
66621
66622 2006-07-17  Bruno Haible  <bruno@clisp.org>
66623
66624         * m4/gl_list.m4: New file.
66625
66626 2006-07-17  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/gl_list.h: New file.
66629         * lib/gl_list.c: New file.
66630         * lib/gl_array_list.h: New file.
66631         * lib/gl_array_list.c: New file.
66632         * lib/gl_carray_list.h: New file.
66633         * lib/gl_carray_list.c: New file.
66634         * lib/gl_linked_list.h: New file.
66635         * lib/gl_linked_list.c: New file.
66636         * lib/gl_anylinked_list1.h: New file.
66637         * lib/gl_anylinked_list2.h: New file.
66638         * lib/gl_avltree_list.h: New file.
66639         * lib/gl_avltree_list.c: New file.
66640         * lib/gl_anyavltree_list1.h: New file.
66641         * lib/gl_anyavltree_list2.h: New file.
66642         * lib/gl_rbtree_list.h: New file.
66643         * lib/gl_rbtree_list.c: New file.
66644         * lib/gl_anyrbtree_list1.h: New file.
66645         * lib/gl_anyrbtree_list2.h: New file.
66646         * lib/gl_anytree_list1.h: New file.
66647         * lib/gl_anytree_list2.h: New file.
66648         * lib/gl_linkedhash_list.h: New file.
66649         * lib/gl_linkedhash_list.c: New file.
66650         * lib/gl_anyhash_list1.h: New file.
66651         * lib/gl_anyhash_list2.h: New file.
66652         * lib/gl_avltreehash_list.h: New file.
66653         * lib/gl_avltreehash_list.c: New file.
66654         * lib/gl_rbtreehash_list.h: New file.
66655         * lib/gl_rbtreehash_list.c: New file.
66656         * lib/gl_anytreehash_list1.h: New file.
66657         * lib/gl_anytreehash_list2.h: New file.
66658
66659         * lib/gl_oset.h: New file.
66660         * lib/gl_oset.c: New file.
66661         * lib/gl_array_oset.h: New file.
66662         * lib/gl_array_oset.c: New file.
66663         * lib/gl_avltree_oset.h: New file.
66664         * lib/gl_avltree_oset.c: New file.
66665         * lib/gl_rbtree_oset.h: New file.
66666         * lib/gl_rbtree_oset.c: New file.
66667         * lib/gl_anytree_oset.h: New file.
66668
66669 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * m4/mkancesdirs.m4: New file.
66672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66673         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66674         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66675         it.
66676
66677 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66680         * lib/mkancesdirs.h: New files.
66681         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66682         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66683         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66684         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66685         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66686         callers changed.  Revamp internals significantly, by not
66687         attempting to create directories that are temporarily more
66688         permissive than the final results.  Do not attempt to use
66689         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66690         This removes some race conditions, fixes some bugs, and simplifies
66691         things.  Use new dirchownmod function to do owner and mode changes.
66692         * lib/mkdir-p.h: Likewise.
66693         * lib/modechange.c (octal_to_mode): New function.
66694         (struct mode_change): New member mentioned.
66695         (make_node_op_equals): New arg mentioned.  All callers changed.
66696         (mode_compile): Keep track of which mode bits the user has explicitly
66697         mentioned.
66698         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66699         New arg PMODE_BITS, to keep track of which mode bits the user
66700         mentioned; it treats S_ISUID and S_ISGID speciall.
66701         All callers changed.
66702         * lib/modechange.h: Likewise.
66703
66704 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * MODULES.html.sh: Add mkancestors.
66707         * modules/mkancesdirs: New module.
66708         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66709         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66710         The chdir-safer and afs files are now orphans; I'll remove them
66711         unless someone speaks up.
66712         Add lib/dirchownmod.c, lib/dirchownmod.h.
66713         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66714         Add lchown, mkancesdirs.
66715         (Maintainer): Add self.
66716
66717 2006-07-15  Karl Berry  <karl@gnu.org>
66718
66719         * gnulib-tool: help message wording/arrangement.
66720
66721 2006-07-14  Simon Josefsson  <jas@extundo.com>
66722
66723         * doc/gnulib.texi (Libtool and Windows): New section.
66724
66725 2006-07-12  Simon Josefsson  <jas@extundo.com>
66726
66727         * modules/gendocs (License): Fix license, approved by Karl.
66728
66729 2006-07-12  Eric Blake  <ebb9@byu.net>
66730
66731         * MODULES.html.sh: Add gendocs.
66732
66733 2006-07-11  Eric Blake  <ebb9@byu.net>
66734
66735         * modules/fdl: New module, to install doc/fdl.texi.
66736         * MODULES.html.sh: Add new section for documentation modules.
66737         * gnulib-tool: Avoid space-tab.
66738         (--doc-base): New option, to manage files from doc.
66739
66740 2006-07-11  Eric Blake  <ebb9@byu.net>
66741
66742         * m4/absolute-header.m4: Fix comments to match recent change.
66743
66744 2006-07-11  Eric Blake  <ebb9@byu.net>
66745
66746         * gnulib-tool: List --doc-base before --tests-base.
66747
66748 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66749
66750         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66751
66752 2006-07-11  Bruno Haible  <bruno@clisp.org>
66753
66754         * README: Mention where to put documentation.
66755
66756 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66757
66758         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66759
66760 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66763         to stdint.m4.
66764
66765 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66766
66767         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66768         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66769         "no/such/file/stdint.h" when there is no such file, so that
66770         the resulting C code can be parsed by dodgy compilers.
66771         Problems reported by Bob Proulx.
66772
66773 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66774
66775         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66776         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66777         macros into the GNU _D_EXACT_NAMLEN.
66778         * lib/savedir.c:  Likewise.
66779         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66780
66781 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66782         and Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66785         * m4/savedir.m4:
66786         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66787         macros into the GNU _D_EXACT_NAMLEN.
66788
66789 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66792         around the absolute name, to work around a problem with the HP-UX
66793         11.23 native C compiler, reported by Bob Proulx.
66794
66795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66796
66797         * doc/maintain.texi, make-stds.texi: Sync from
66798         <http://savannah.gnu.org/projects/gnustandards>.
66799
66800 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66803
66804 2006-07-09  Jim Meyering  <jim@meyering.net>
66805
66806         * m4/glob.m4: Remove a doubled word in a comment.
66807
66808 2006-07-09  Jim Meyering  <jim@meyering.net>
66809
66810         * lib/argp-pv.c: Remove a doubled word in a comment.
66811         * lib/check-version.c (check_version): Likewise.
66812         * lib/javacomp.c (compile_java_class): Likewise.
66813
66814 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66817         for the benefit of people using Autoconf 2.60.  If you want to
66818         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66819         (or m4/onceonly.m4, if pre-2.57) manually.
66820
66821 2006-07-08  Jim Meyering  <jim@meyering.net>
66822
66823         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66824         comment.
66825         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66826         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66827         comment.
66828
66829 2006-07-08  Jim Meyering  <jim@meyering.net>
66830
66831         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66832
66833 2006-07-07  Simon Josefsson  <jas@extundo.com>
66834
66835         * tests/test-crc.c: Change expected crc value, the test vector
66836         were probably computed using the old broken crc.c?
66837
66838 2006-07-06  Simon Josefsson  <jas@extundo.com>
66839
66840         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66841         now the canonical place for the M4 file).
66842
66843         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66844         from the sys_socket dependency now.
66845
66846         * modules/inet_pton (Files): Ditto.
66847
66848         * modules/inet_ntop (Files): Ditto.
66849
66850 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66851
66852         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66853         not gl_PREREQ_GETUSERSHELL.
66854
66855 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66856
66857         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66858         with only one argument, for Autoconf 2.60.
66859         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66860         expand to nothing, so add a shell command to avoid syntax error.
66861         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66862
66863 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66864
66865         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66866
66867 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66870         no longer needed.  Check for isblank decl.
66871         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66872         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66873         of existence.
66874
66875 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         * lib/getloadavg.c: Use __VMS, not VMS.
66878         * lib/getopt.c: Likewise.
66879         * lib/getpagesize.h: Likewise.
66880         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66881         and probably does not work.
66882
66883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * lib/.cppi-disable: Add wcwidth.
66886         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66887         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66888         (ISGRAPH): Remove.  All uses changed to isgraph.
66889         (FOLD) [!defined _LIBC]: Remove special case.
66890         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66891         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66892         HAVE_ISBLANK.
66893         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66894         case.
66895
66896 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66897
66898         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66899         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66900         brackets.  Other minor changes to suppress some compiler
66901         warnings.
66902
66903 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66904         and Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66907         of invoking obsolescent AC_HEADER_DIRENT macro.
66908         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66909         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66910         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66912         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66913         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66914         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66915         * m4/readdir.m4: Remove; no longer needed.
66916
66917 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66918         and Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66921         Don't worry about this obsolete case any more.
66922         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66923         directories.
66924         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66925         worry about this obsolete case any more.
66926         * lib/fts.c: Likewise.
66927         * lib/getcwd.c: Likewise.
66928         * lib/glob.h: Likewise.
66929         * lib/savedir.c: Likewise.
66930
66931 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66934         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66935         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66936         needed.
66937         All uses removed.
66938         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66939         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66940         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66941         needed.
66942         * m4/getdate.m4 (gl_GETDATE): Likewise.
66943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66944         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66945         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66946         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66947         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66948         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66949         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66950         needed.
66951
66952 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * lib/memcasecmp.c: Include <limits.h>.
66955         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66956         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66957         Don't assume isdigit succeeds only on '0' through '9'.
66958
66959 2006-07-05  Eric Blake  <ebb9@byu.net>
66960
66961         * modules/getaddrinfo (Depends-on): Add snprintf.
66962
66963 2006-07-05  Eric Blake  <ebb9@byu.net>
66964
66965         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66966         to avoid 'header present but could not be compiled' on cygwin.
66967
66968 2006-07-05  Eric Blake  <ebb9@byu.net>
66969
66970         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66971         missing from netdb.h.
66972         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66973
66974 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66975
66976         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66977         no longer needed.
66978         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66979         * m4/getdate.m4 (gl_GETDATE): Likewise.
66980         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66981         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66982         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66983         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66985
66986 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66987
66988         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66989         All uses of is_space replaced by isspace.
66990         * lib/exit.h: Don't talk about STDC_HEADERS.
66991         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66992         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66993         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66994         replaced by isprint etc.
66995         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66996         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66997         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66998         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66999         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67000         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67001
67002 2006-07-05  Bruno Haible  <bruno@clisp.org>
67003
67004         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67005         the function exists, before testing against AIX.
67006         Reported by Martin Lambers <marlam@marlam.de>.
67007
67008 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67011         From Mark D. Baushke.
67012
67013 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67016         to the absolute name, not just one, to bypass Sun C 5.8's
67017         "warning: #include of /usr/include/... may be non-portable".
67018
67019 2006-07-04  Eric Blake  <ebb9@byu.net>
67020
67021         * modules/dirname-tests: New test module.
67022         * tests/test-dirname.c: New file, replacing dirname.c
67023         TEST_DIRNAME section that was recently deleted.
67024
67025 2006-07-04  Bruno Haible  <bruno@clisp.org>
67026
67027         Assume ANSI C header files and <ctype.h> functions.
67028         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67029         (mbsnwidth): Use isprint, iscntrl instead.
67030
67031 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67032
67033         Merge from coreutils.
67034         * MODULES.html.sh: Add xstrtold.
67035         * modules/xstrtold: New file.
67036         * modules/cycle-check (Files): Add lib/same-inode.h.
67037         * modules/dirname (Files): Add m4/double-slash-root.m4.
67038         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67039         * modules/mkdir-p (Files): Add lib/same-inode.h.
67040         * modules/same (Files): Add lib/same-inode.h.
67041
67042 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67045         This is to keep the terminology clean; POSIX talks about
67046         "absolute pathnames", not "full pathnames", but the GNU
67047         Coding Standards say to use "path" for something else;
67048         so use "absolute" to keep both sides happy.
67049         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67050         Set gl_absolute_header, not gl_full_header_path.
67051         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67052         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67053         All uses changed.
67054
67055         Merge from coreutils.
67056
67057         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67060         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67061         want to require the building of c-strtod.o.
67062         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67063         needs -lm directly.
67064         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67065
67066         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67069         --as-needed option if available.  Problem reported by Albert Chin in
67070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67071         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67072         cc merely issues a bunch of annoying warnings for --as-needed
67073         (this problem was reported by Bob Proulx).  Also, try linking with
67074         -lm to detect a bug in binutils 2.16 (this problem was reported
67075         by Ralf Wildenhues).
67076
67077         2006-06-18  Jim Meyering  <jim@meyering.net>
67078
67079         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67080         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67081         macro.
67082         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67083         also check for glibc-2.4's abort-inducing bug.
67084
67085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67086         Low-probability clean-up should be to use rmdir to get rid of
67087         the just-created directory, not unlink.
67088
67089         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67090         configure fail, and request a bug report to inform us about it.
67091         Add a comment that, barring reports to the contrary, in 2007 we'll
67092         assume ftruncate is universally available.
67093
67094         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67095
67096         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67097
67098         2006-03-12  Jim Meyering  <jim@meyering.net>
67099
67100         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67101         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67102         * m4/same.m4 (gl_SAME): Likewise.
67103         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67104
67105         2006-03-11  Eric Blake  <ebb9@byu.net>
67106
67107         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67108         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67109         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67110         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67111
67112 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67115         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67116         reported by Mark D. Baushke, one in
67117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67118
67119         Merge from coreutils.
67120
67121         * lib/.cppi-disable: Add stdint_.h.
67122         * lib/.cvsignore: Add stdint.h.
67123
67124         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67127         both double and long double versions.
67128         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67129         * lib/xstrtold.c: New file.
67130         * lib/xstrtod.h (xstrtold): New decl.
67131
67132         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67133
67134         * lib/filemode.c (setst): Remove.
67135         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67136         (arguably) clearer, and the generated code is a bit smaller on my
67137         Debian GNU/Linux stable x86 host.
67138
67139         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67142         Assume that filemode.h includes sys/types.h and sys/stat.h.
67143         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67144         (ftypelet): Reorder to put common cases first, for efficiency.
67145         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67146         to do 'M'.
67147         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67148         of 10, for compatibility with FreeBSD.  All callers changed.
67149         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67150         types that can't be deduced solely from st_mode.  First arg is now a
67151         const pointer.
67152         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67153         (strmode): Renamed from mode_string.
67154         (filemodestring): New decl.
67155         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67156         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67157         needed.
67158         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67159
67160         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67163         fsusage.h now does that.  Include fsusage.h first, to test interface.
67164         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67165         at most one method (the old code could have generated decls that
67166         didn't conform to C89, not that this was ever exercised).
67167         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67168
67169         2006-03-19  Jim Meyering  <jim@meyering.net>
67170
67171         Work even in a chroot where d_ino values for entries in "/"
67172         don't match the stat.st_ino values for the same names.
67173         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67174         number, iterate through all entries again, using lstat instead.
67175         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67176         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67177
67178         * lib/getcwd.c (__getcwd): Clarify a comment.
67179         Use memcpy in place of a call to strcpy.
67180
67181         2006-03-12  Jim Meyering  <jim@meyering.net>
67182
67183         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67184         matches that of the current directory (which we're about to chdir ".."
67185         out of), then save the dev-ino of the parent, instead.
67186
67187         * lib/same-inode.h (SAME_INODE): New file/macro.
67188         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67189         Include "same-inode.h", instead.
67190         * lib/same.c: Likewise.
67191         * lib/cycle-check.h: Include "same-inode.h".
67192         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67193         * lib/cycle-check.c (SAME_INODE): Remove definition.
67194         * lib/root-dev-ino.h: Include "same-inode.h".
67195
67196         2006-03-11  Eric Blake  <ebb9@byu.net>
67197
67198         * lib/same.c (same_name): s/base_name/last_component/
67199         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67200         * lib/filenamecat.c (file_name_concat): Likewise.
67201
67202         2006-03-11  Eric Blake  <ebb9@byu.net>,
67203                     Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67206         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67207         drive prefix.
67208         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67209         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67210         (last_component): New method.
67211         * lib/dirname.c (dir_len): Determine when drive letters need a
67212         subsequent slash.  Preserve // when it is special.
67213         (dir_name): Don't append dot when drive letter is absolute.
67214         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67215         * lib/basename.c (base_name): New semantics - malloc the result.
67216         Preserve // when it is special.  Preserve relative files that look
67217         like drive letters.
67218         (base_len): Preserve // when it is special.
67219         (last_component): New method, similar to old base_name semantics.
67220         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67221         base_name.  Strip redundant slashes from ///.
67222
67223 2006-07-03  Jim Meyering  <jim@meyering.net>
67224
67225         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67226         macro is used before the first cycle_check call.
67227
67228 2006-07-03  Eric Blake  <ebb9@byu.net>
67229
67230         * modules/dirname (Depends-on): Add xstrndup.
67231
67232 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67235         test cases, so that config.log is a bit easier to follow.
67236
67237 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67238
67239         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67240         both are 64 bits, since this seems to be the tradition, and this
67241         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67242         we ever run into a host that prefers long long to long in this
67243         case, we'll need another configure-time test.  Problem reported by
67244         Jim Meyering.
67245
67246 2006-07-02  Eric Blake  <ebb9@byu.net>
67247
67248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67249
67250 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * modules/inttypes (Depends-on): No longer depends on stdint.
67253         * modules/stdint (Description): Say more about assumptions.
67254         Say that the fast types might differ.  Say macros are used.
67255         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67256         (Makefile.am): Revise list of substituted symbols to match
67257         new stdint.m4.
67258         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67259         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67260         * tests/test-stdint.c (verify_same_types)
67261         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67262         the code conforms to C99/C89.
67263         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67264         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67265
67266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67269         but fix a bug, by requiring at least 64 bits.
67270         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67271         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67272         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67273         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67274
67275         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67276         changes.  Make 2.59 a prerequisite.  Check and substitute for
67277         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67278         inttypes.h.  Do not use special include files; just use the
67279         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67280         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67281         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67282         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67283         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67284         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67285         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67286         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67287         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67288         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67289         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67290         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67291         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67292         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67293         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67294         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67295         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67296         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67297         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67298         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67299         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67300         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67301         not check for things that C99 does not require, e.g., int8_t.  If
67302         a test isn't needed unless <stdint.h> isn't working, and is
67303         unlikely to be needed for any other reason, then don't do it
67304         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67305         size_t, since we assume C89 freestanding at least.  Do not check
67306         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67307         the right thing even if the types are not defined.  Instead use:
67308         (gl_STDINT_TYPE_PROPERTIES): New macro.
67309         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67310         testing whether <sys/types.h> clashes, as Autoconf does this for
67311         us now.  All uses removed.
67312         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67313         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67314         (gl_CHECK_TYPE_SAME):
67315         Remove; no longer needed.
67316         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67317         exists, since we'll return 0 anyway in that case.
67318         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67319
67320 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67323         possible collision with system files.
67324         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67325         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67326         WCHAR_MIN and WCHAR_MAX in this case.
67327         (<stddef.h>): Do not include; no longer needed.
67328         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67329         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67330         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67331         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67332         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67333         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67334         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67335         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67336         !defined(__c99))]: Include in this case too, since it's harmless
67337         now.
67338         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67339         dangerous to do so.
67340         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67341         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67342         (_STDINT_MIN, _STDINT_MAX): New macros.
67343         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67344         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67345         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67346         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67347         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67348         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67349         macros, not typedefs; this simplifies things quite a bit.
67350         Use long int for all types narrower than int64_t.
67351         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67352         Define in terms of long long int or int64_t or long int,
67353         not int64_t or int32_t.  This saves some compile-time testing.
67354         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67355         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67356         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67357         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67358         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67359         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67360         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67361         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67362         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67363         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67364         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67365         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67366         undef any previous version and define our own version, for
67367         simplicity and consistency with the new macros for types.
67368         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67369         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67370         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67371         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67372         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67373         @WINT_T_SUFFIX@ to keep things simple here.
67374         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67375         Simplify by assuming typical 8/16/32/64 host, since we're
67376         already doing that elsewhere anyway.
67377         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67378         and assume long long int is 64 bits if available.  This
67379         speeds up 'configure'.
67380
67381 2006-07-01  Eric Blake  <ebb9@byu.net>
67382
67383         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67384         Reported by Andreas Buening.
67385
67386 2006-07-01  Eric Blake  <ebb9@byu.net>
67387
67388         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67389
67390 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67391
67392         * lib/getaddrinfo.c: fixed typo
67393
67394 2006-06-29  Jim Meyering  <jim@meyering.net>
67395
67396         * modules/strftime (Maintainer): Add my name, since with the
67397         FPRINTFTIME changes strftime.c has forked from glibc.
67398
67399 2006-06-29  Eric Blake  <ebb9@byu.net>
67400
67401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67402
67403 2006-06-29  Eric Blake  <ebb9@byu.net>
67404
67405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67406
67407 2006-06-29  Eric Blake  <ebb9@byu.net>
67408
67409         * lib/stat_.h: New file.
67410
67411 2006-06-29  Eric Blake  <ebb9@byu.net>
67412
67413         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67414         unused static function.
67415
67416 2006-06-29  Eric Blake  <ebb9@byu.net>
67417
67418         * doc/functions.texi (Function Portability): Document missing lstat
67419         on mingw.
67420
67421 2006-06-29  Eric Blake  <ebb9@byu.net>
67422
67423         * MODULES.html.sh: Add sys_stat.
67424         * modules/sys_stat: New module.
67425         * modules/mkstemp (Depends-on): Add sys_stat.
67426
67427 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67428
67429         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67430
67431 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67432
67433         * m4/c-bs-a.m4: Removed.
67434
67435 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67436
67437         * lib/strftime.c: Assume strftime() exists.
67438
67439 2006-06-29  Derek Price  <derek@ximbiot.com>
67440
67441         * modules/c-bs-a: Removed - \a is C89.
67442         * MODULES.html.sh: Remove c-bs-a.
67443
67444 2006-06-29  Bruno Haible  <bruno@clisp.org>
67445
67446         * modules/wcwidth (License): Change to LGPL.
67447
67448 2006-06-28  Simon Josefsson  <jas@extundo.com>
67449
67450         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67451         on _WIN32.
67452
67453         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67454         getnameinfo.
67455
67456 2006-06-28  Simon Josefsson  <jas@extundo.com>
67457
67458         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67459
67460 2006-06-28  Simon Josefsson  <jas@extundo.com>
67461
67462         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67463         functions there.  It will succeed on Windows XP, but on Windows
67464         2000 and (presumably) earlier, it will fail, and use the internal
67465         re-implementation.
67466         (use_win32_p): New function.
67467         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67468         Support AI_NUMERICSERV to disable getservbyname.
67469         (getnameinfo): New function, only supports
67470         NI_NUMERICHOST|NI_NUMERICSERV for now.
67471
67472         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67473         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67474         getnameinfo.
67475
67476 2006-06-28  Eric Blake  <ebb9@byu.net>
67477
67478         * modules/wcwidth: New file.
67479         * modules/mbchar (Depends-on): Add wcwidth.
67480         * modules/mbswidth (Depends-on): Add wcwidth.
67481         * MODULES.html.sh: Add wcwidth.
67482
67483 2006-06-28  Eric Blake  <ebb9@byu.net>
67484
67485         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67487
67488 2006-06-28  Eric Blake  <ebb9@byu.net>
67489
67490         * lib/xvasprintf.h: Fix comments.
67491
67492 2006-06-28  Eric Blake  <ebb9@byu.net>
67493
67494         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67495         * lib/mbswidth.c (wcwidth): Move from here...
67496         * lib/wcwidth.h: ...to this new file.
67497
67498 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67499
67500         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67501
67502         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67503         it's obsolete.
67504         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67505
67506 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67507
67508         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67509         Autoconf 2.60 says this stuff was obsolete.
67510
67511 2006-06-28  Bruno Haible  <bruno@clisp.org>
67512
67513         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67514
67515 2006-06-28  Bruno Haible  <bruno@clisp.org>
67516
67517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67518         gt_TYPE_WCHAR_T.
67519
67520 2006-06-28  Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67523         declaration for wcwidth.
67524         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67525
67526 2006-06-28  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67529         (mkdir): Define using _mkdir.
67530
67531 2006-06-28  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/getaddrinfo.h: Fix POSIX URL.
67534         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67535         _WIN32.
67536         (use_win32_p): Make static.
67537         (getaddrinfo): Reject service name if it is empty or does not consist
67538         solely of decimal digits, or if its value is > 65535.
67539         (getnameinfo): Remove useless casts.
67540
67541 2006-06-27  Simon Josefsson  <jas@extundo.com>
67542
67543         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67544         Eggert and Martin Lambers.
67545
67546 2006-06-27  Simon Josefsson  <jas@extundo.com>
67547
67548         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67549         Eggert and Martin Lambers.
67550
67551 2006-06-27  Bruno Haible  <bruno@clisp.org>
67552
67553         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67554         result to 0, not to empty.
67555         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67556
67557 2006-06-27  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67560
67561 2006-06-26  Simon Josefsson  <jas@extundo.com>
67562
67563         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67564         present.
67565
67566 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67567
67568         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67569         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67571
67572 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67573
67574         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67575
67576 2006-06-26  Bruno Haible  <bruno@clisp.org>
67577
67578         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67579
67580 2006-06-26  Bruno Haible  <bruno@clisp.org>
67581
67582         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67583
67584 2006-06-26  Bruno Haible  <bruno@clisp.org>
67585
67586         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67587         SGI C compiler in pre-C99 mode.
67588         Suggested by Mark D. Baushke and Larry Jones.
67589
67590 2006-06-26  Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67593         WCHAR_MAX.
67594         Reported by Mark D. Baushke and Larry Jones.
67595
67596 2006-06-26  Bruno Haible  <bruno@clisp.org>
67597
67598         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67599         in pre-C99 mode.
67600         Suggested by Mark D. Baushke and Larry Jones.
67601
67602 2006-06-23  Simon Josefsson  <jas@extundo.com>
67603             Bruno Haible  <bruno@clisp.org>
67604
67605         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67606         Emit mostlyclean-local rule.
67607         (func_emit_tests_Makefile_am): Likewise.
67608         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67609
67610 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67611
67612         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67613
67614 2006-06-23  Bruno Haible  <bruno@clisp.org>
67615
67616         * tests/test-stdint.c: Update to match ISO C 99 Technical
67617         Corrigendum 1.
67618
67619 2006-06-23  Bruno Haible  <bruno@clisp.org>
67620
67621         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67622
67623 2006-06-23  Bruno Haible  <bruno@clisp.org>
67624
67625         * lib/stdint_.h: Treat IRIX like OpenBSD.
67626
67627 2006-06-23  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67630         ISO C 99 Technical Corrigendum 1.
67631
67632 2006-06-22  Simon Josefsson  <jas@extundo.com>
67633
67634         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67635         MinGW.
67636
67637 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67640         needed.  Some compiler complained about some of them.  Problem reported
67641         by Larry Jones in
67642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67643
67644 2006-06-21  Simon Josefsson  <jas@extundo.com>
67645
67646         * tests/test-getaddrinfo.c: New file.
67647
67648         * modules/getaddrinfo-tests: New file.
67649
67650         * MODULES.html.sh: Add inet_pton.
67651
67652         * modules/inet_pton: New file.
67653
67654 2006-06-21  Simon Josefsson  <jas@extundo.com>
67655
67656         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67657         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67658         of using the (limited) gnulib implementation on Windows XP.
67659
67660         * m4/inet_pton.m4: New file.
67661
67662 2006-06-21  Simon Josefsson  <jas@extundo.com>
67663
67664         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67665         variable.
67666
67667         * lib/socket_.h: Don't define WINVER.
67668
67669         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67670         slightly modified to work in gnulib.
67671
67672 2006-06-21  Simon Josefsson  <jas@extundo.com>
67673
67674         * doc/gnulib.texi (Windows sockets): Add.
67675
67676 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * lib/read-file.c (fread_file): Start with buffer allocation of
67679         0 bytes rather than 1 byte; this simplifies the code.
67680         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67681         code to free buffer and save/restore errno.
67682         (internal_read_file): Remove unused local.
67683
67684 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67687         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67688         Problem reported by Denis Excoffier in
67689         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67690
67691 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67692
67693         * modules/sys_socket, modules/socklen: Include sys/types since
67694         FreeBSD 4.x's sys/socket.h needs it.
67695
67696 2006-06-19  Simon Josefsson  <jas@extundo.com>
67697
67698         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67699
67700 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67703
67704 2006-06-19  Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67707         and FULL_PATH_INTTYPES_H in angle brackets.
67708         Reported by Mark D. Baushke <mdb@gnu.org>.
67709
67710 2006-06-17  Eric Blake  <ebb9@byu.net>
67711
67712         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67713         errno.
67714
67715 2006-06-17  Bruno Haible  <bruno@clisp.org>
67716
67717         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67718         <sys/inttypes.h>.
67719
67720 2006-06-17  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67723         whether errno is declared. Assume <errno.h> declares errno.
67724
67725 2006-06-17  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67728
67729 2006-06-17  Bruno Haible  <bruno@clisp.org>
67730
67731         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67732         problem on Solaris 2.5.1.
67733
67734 2006-06-16  Eric Blake  <ebb9@byu.net>
67735
67736         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67737         * lib/unicodeio.c [!defined errno]: Likewise.
67738         * lib/strtol.c [!defined errno]: Likewise.
67739         * lib/strtod.c [!defined errno]: Likewise.
67740
67741 2006-06-15  Eric Blake  <ebb9@byu.net>
67742
67743         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67744
67745 2006-06-15  Eric Blake  <ebb9@byu.net>
67746
67747         * config/srclist.txt (ssize_t.m4): Lose sync.
67748
67749 2006-06-15  Bruno Haible  <bruno@clisp.org>
67750
67751         * modules/stdint (Files): Include m4/full-header-path.m4,
67752         m4/size_max.m4, m4/wchar_t.m4.
67753         (Makefile.am): Many more substitutions.
67754         * modules/stdint-tests: New file.
67755         * tests/test-stdint.c: New file.
67756
67757 2006-06-15  Bruno Haible  <bruno@clisp.org>
67758
67759         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67760         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67761         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67762         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67763         gl_CHECK_TYPE_SAME): New macros.
67764
67765 2006-06-15  Bruno Haible  <bruno@clisp.org>
67766
67767         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67768
67769 2006-06-15  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/stdint_.h: Rewritten to be fully auto-configured.
67772         Fixes bug on HP-UX/IA64.
67773
67774 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * lib/getdate.y (__attribute__): Don't define if already defined.
67777         Problem reported by Larry Jones.
67778         * lib/utimens.c (__attribute__): Likewise.
67779
67780 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67783         reported by Andreas Schwab.
67784
67785 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67786             Bruno Haible  <bruno@clisp.org>
67787
67788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67789         check for the declaration of strnlen and a run test that exposes the
67790         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67791         rpl_strndup.
67792
67793 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67794             Bruno Haible  <bruno@clisp.org>
67795
67796         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67797
67798 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67799
67800         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67801         compile test, for Tru64 4.0D.
67802
67803 2006-05-28  Karl Berry  <karl@gnu.org>
67804
67805         * config/srclist.txt (printf-args.c): lose sync.
67806
67807 2006-05-26  Martin Lambers  <marlam@marlam.de>
67808
67809         * lib/getpass.c: Updates the test for the native W32 API, and adds
67810         missing includes, thus fixing compilation warnings.
67811
67812 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67813
67814         * lib/exclude.c (exclude_fnmatch): New function.
67815         (excluded_file_name): Call exclude_fnmatch.
67816         * lib/exclude.h (excluded_file_name): New prototype
67817
67818 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         * lib/tempname.c (small_open, large_open): New macros.
67821         (__open, __open64) [!_LIBC]: Remove.
67822         (__gen_tempname): Use small_open and large_open instead of __open
67823         and __open64.  This fixes a portability bug on HP-UX 11.11i
67824         reported by Simon Wing-Tang in
67825         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67826
67827 2006-05-24  Bruno Haible  <bruno@clisp.org>
67828
67829         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67830         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67831         Reported by Thorsten Maerz <torte@netztorte.de> via
67832         Aaron Stone <aaron@serendipity.cx>.
67833
67834 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67837         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67838         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67839         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67840         not really conditional on the cache.
67841         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67842
67843 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67846         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67847         (my_usleep): Don't mishandle maximum value.
67848
67849 2006-05-19  Jim Meyering  <jim@meyering.net>
67850
67851         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67852
67853 2006-05-17  Bruno Haible  <bruno@clisp.org>
67854
67855         Cygwin portability.
67856         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67857
67858 2006-05-17  Bruno Haible  <bruno@clisp.org>
67859
67860         * lib/stdint_.h: Fix recognition of Cygwin.
67861
67862 2006-05-15  Bruno Haible  <bruno@clisp.org>
67863
67864         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67865         on libtool patch by Ralf Wildenhues.
67866
67867 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67870         test for C99 conformance; (bool) 0.5 is an integer constant
67871         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67872         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67873
67874 2006-05-11  Simon Josefsson  <jas@extundo.com>
67875
67876         * m4/xvasprintf.m4: Fix obvious typo.
67877
67878 2006-05-11  Jim Meyering  <jim@meyering.net>
67879
67880         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67881         James Lemley.
67882
67883 2006-05-10  Simon Josefsson  <jas@extundo.com>
67884
67885         * lib/md4.c: Typo fix, update copyright years.
67886         (K1, K2): Don't use L because it turn computations into 64-bit on
67887         64-bit platforms.
67888
67889 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67892         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67893         unwanted sign propagation, e.g., on hosts with 64-bit int.
67894         There still are some problems with reeelly weird theoretical hosts
67895         (e.g., 33-bit int) but it's not worth worrying about now.
67896         * lib/sha1.c (rol): Likewise.
67897         (K1, K2, K3, K4): Remove unnecessary L suffix.
67898
67899 2006-05-10  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/des.c: Cast to avoid warnings.
67902
67903 2006-05-09  Bruno Haible  <bruno@clisp.org>
67904
67905         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67906         (Depends-on): Depend also on xsize, stdarg.
67907         (configure.ac): Add gl_XVASPRINTF.
67908
67909 2006-05-09  Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/xvasprintf.m4: New file.
67912
67913 2006-05-09  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67916         (EOVERFLOW): Define fallback value.
67917         (xstrcat): New function.
67918         (xvasprintf): Recognize the special case of a string concatenation.
67919
67920 2006-05-08  Eric Blake  <ebb9@byu.net>
67921
67922         * gnulib-tool (func_version): Base copyright year on CVS date.
67923         (func_emit_copyright_notice): New function.
67924         (func_emit_lib_Makefile_am): Use it.
67925         (func_emit_tests_Makefile_am): Likewise.
67926         (func_import): Likewise.
67927
67928 2006-05-08  Bruno Haible  <bruno@clisp.org>
67929
67930         * modules/stdarg: New file.
67931         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67932
67933 2006-05-08  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/stdarg.m4: New file, from GNU gettext.
67936
67937 2006-05-08  Bruno Haible  <bruno@clisp.org>
67938
67939         * config/srclist.txt (build-aux/config.rpath): different from latest
67940         release.
67941
67942 2006-05-08  Bruno Haible  <bruno@clisp.org>
67943
67944         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67945
67946 2006-05-05  Jim Meyering  <jim@meyering.net>
67947
67948         * m4/warning.m4: New file, derived from bison's file by the same name.
67949
67950 2006-05-03  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/stdint_.h: Shorter URL.
67953         * lib/inttypes.h: Likewise.
67954
67955 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67958
67959 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/verify.h: Document the internals better.  Most of this change
67962         was written by Bruno Haible.
67963
67964 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * doc/verify.texi: New file, partly based on a proposal by
67967         Bruno Haible.
67968
67969 2006-05-02  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67972         test from here...
67973         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67974
67975 2006-04-29  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67978         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67979
67980 2006-04-29  Bruno Haible  <bruno@clisp.org>
67981
67982         * gnulib-tool: Make --update option actually work.
67983
67984 2006-04-29  Bruno Haible  <bruno@clisp.org>
67985
67986         * doc/gcd.texi: New file.
67987         * doc/gnulib.texi: Include it.
67988
67989 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * lib/getdate.y (get_date): When adding relative date, start with the
67992         initial time, not with the result of the first mktime call.
67993
67994 2006-04-25  Bruno Haible  <bruno@clisp.org>
67995
67996         * gnulib-tool (func_import): Output the include directives in three
67997         blocks, sorted separately.
67998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67999
68000 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68003         to define main with arguments, for C++.  Reported by Eric Blake.
68004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68005         Prefer 'int main ()' to 'int main (void)', for C++.
68006         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68007         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68008         for 'main', for C99 and C++.
68009
68010 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68013         Don't assume that exit status -1 is valid.
68014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68015         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68016         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68017         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68018         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68019         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68020         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68021         functions can be used without declaring them, or that you can
68022         exit with status -1.
68023         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68024
68025 2006-04-24  Karl Berry  <karl@gnu.org>
68026
68027         * config/srclist.txt (longdouble.m4): sync lost.
68028
68029 2006-04-24  Eric Blake  <ebb9@byu.net>
68030
68031         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68032
68033 2006-04-24  Bruno Haible  <bruno@clisp.org>
68034
68035         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68036         poll() implementation in AIX.
68037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68038
68039 2006-04-24  Bruno Haible  <bruno@clisp.org>
68040
68041         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68042         assigned exactly once.
68043
68044 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68045             Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68048         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68049         for AM_CPPFLAGS.
68050
68051 2006-04-23  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/copy-file: Depend on unistd.
68054         * modules/execute: Likewise.
68055         * modules/fatal-signal: Likewise.
68056         * modules/findprog: Likewise.
68057         * modules/mkdtemp : Likewise.
68058         * modules/pipe: Likewise.
68059         * modules/wait-process: Likewise.
68060
68061 2006-04-23  Bruno Haible  <bruno@clisp.org>
68062
68063         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68064         condition was already detected.
68065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68066
68067 2006-04-23  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/copy-file.c: Include <unistd.h> unconditionally.
68070         * lib/execute.c: Likewise.
68071         * lib/fatal-signal.c: Likewise.
68072         * lib/findprog.c: Likewise.
68073         * lib/mkdtemp.c: Likewise.
68074         * lib/pipe.h: Likewise.
68075         * lib/pipe.c: Likewise.
68076         * lib/wait-process.h: Likewise.
68077
68078 2006-04-23  Bruno Haible  <bruno@clisp.org>
68079
68080         * gnulib-tool (func_usage): Fix --import description. Document
68081         --update.
68082         (func_import): Create temporary file in a temporary directory, if
68083         --dry-run is specified. Silence errors from 'grep' when there are no
68084         m4 files in $m4dir.
68085         (func_create_testdir): Silence errors from 'grep' when there are no
68086         m4 files in $m4dir.
68087         Reported by Karl Berry <karl@freefriends.org>.
68088
68089 2006-04-20  Bruno Haible  <bruno@clisp.org>
68090
68091         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68092         one argument, so that the code will be portable to Autoconf 2.60.
68093         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68094         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68095         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68096
68097 2006-04-19  Derek Price  <derek@ximbiot.com>
68098             Eric Blake  <ebb9@byu.net>
68099
68100         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68101         rather than "/full/path.h".  Update comment to match.  Shorten &
68102         generalize m4_translit call via AS_TR_CPP.
68103
68104 2006-04-19  Derek Price  <derek@ximbiot.com>
68105             Eric Blake  <ebb9@byu.net>
68106
68107         * lib/inttypes.h: Correct grammar in comment.
68108
68109 2006-04-18  Derek Price  <derek@ximbiot.com>
68110             Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * modules/inttypes: New file.
68113         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68114
68115 2006-04-18  Derek Price  <derek@ximbiot.com>
68116             Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68119         New files.
68120
68121 2006-04-18  Derek Price  <derek@ximbiot.com>
68122             Paul Eggert  <eggert@cs.ucla.edu>
68123
68124         * lib/inttypes.h: New file.
68125         * lib/strtoimax.c: Assume <inttypes.h>.
68126
68127 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68130         isn't mounted.  Problem reported by Kir Kolyshkin.
68131
68132 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68135         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68136         Derek R. Price.
68137         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68138         implementation.
68139
68140 2006-04-12  Eric Blake  <ebb9@byu.net>
68141
68142         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68143         is now done automatically by the corresponding Autoconf macro.
68144
68145 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68148         time_r.h.
68149
68150 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68151
68152         Merge regex changes from libc, removing some of our
68153         POSIX-conformance changes that were rejected and redoing them in a
68154         less-intrusive way.
68155
68156         * lib/regcomp.c (re_compile_internal, init_dfa):
68157         Length arg is now size_t, not Idx.  All uses changed.
68158         (peek_token): Forward decl now says internal_function.
68159         (__re_error_msgid, __re_error_msgid_idx):
68160         Now static rather than extern with attribute_hidden.
68161         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68162         For some reason libc prefers K&R style defns for external functions.
68163         (regerror) [!defined _LIBC]: Likewise.
68164         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68165         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68166         (build_range_exp, build_collating_symbol):
68167         Use K&R-style defn.
68168         (re_compile_fastmap): Use '\0' to memset, not 0.
68169         (utf8_sb_map): Make the calculations more obvious.
68170         (init_dfa, parse_bracket_exp, build_charclass_op):
68171         Call calloc and cast result, as glibc does.
68172         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68173         (build_range_exp, build_collating_symbol):
68174         Now internal functions.
68175
68176         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68177
68178         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68179         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68180         Don't depend on VMS; depend on __VMS instead, for POSIX
68181         namespace cleanness.
68182         (regoff_t): Define to ssize_t, not long int.
68183
68184         Remove the REG_ macros named below.  Instead, make the old names
68185         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68186         __USE_GNU_REGEX.
68187         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68188         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68189         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68190         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68191         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68192         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68193         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68194         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68195         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68196         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68197         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68198         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68199         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68200         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68201         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68202         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68203         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68204         (REG_NREGS):
68205         Remove.  All uses replaced by the old RE_* names.
68206         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68207         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68208         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68209         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68210         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68211         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68212         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68213         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68214         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68215         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68216         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68217         Don't bother having these macros be independent of each others'
68218         values, since they no longer exist in the POSIX name space.
68219
68220         Rename the following member names back to their old names,
68221         unless !__USE_GNU_REGEX.  All uses changed back.
68222         (buffer): Renamed from re_buffer.
68223         (allocated): Renamed from re_allocated.
68224         (used): Renamed from re_used.
68225         (syntax): Renamed from re_syntax.
68226         (fastmap): Renamed from re_fastmap.
68227         (translate): Renamed from re_translate.
68228         (can_be_null): Renamed from re_can_be_null.
68229         (regs_allocated): Renamed from re_regs_allocated.
68230         (fastmap_accurate): Renamed from re_fastmap_accurate.
68231         (no_sub): Renamed from re_no_sub.
68232         (not_bol): Renamed from re_not_bol.
68233         (not_eol): Renamed from re_not_eol.
68234         (newline_anchor): Renamed from re_newline_anchor.
68235         (num_regs): Renamed from rm_num_regs.
68236         (start): Renamed from rm_start.
68237         (end): Renamed from rm_end.
68238
68239         (free_state): Move up a bit.
68240
68241         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68242         #define to be empty.
68243         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68244         when that is what is intended.
68245         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68246         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68247         (MAX): New macro.
68248         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68249         All uses changed back to re_malloc, etc.  It's now the caller's
68250         responsibility to check for overflow; all callers changed.
68251         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68252         (re_x2nrealloc): Remove.
68253         (free_state): Remove decl.
68254
68255         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68256         (re_set_registers, re_exec):
68257         Use K&R-style defn.
68258
68259         2006-01-31  Roland McGrath  <roland@redhat.com>
68260
68261         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68262         Reported by Mike Frysinger <vapier@gentoo.org>.
68263
68264         2006-01-15  Andreas Jaeger  <aj@suse.de>
68265
68266         [BZ #1950]
68267         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68268         build_wcs_upper_buffer change.
68269         (build_wcs_upper_buffer): Change return type.
68270
68271         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68272
68273         * lib/regex_internal.h: Include <stdint.h> if available.
68274
68275         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68276
68277         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68278
68279         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68280
68281         * lib/regcomp.c: Adjust for changed secondary hash function.
68282
68283         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68284
68285         * lib/regex.h: Pretty printing.
68286         Clean up namespace a bit.
68287
68288         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68289
68290         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68291         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68292
68293         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68294                     Ulrich Drepper  <drepper@redhat.com>
68295
68296         [BZ #1302]
68297         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68298         changed.
68299         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68300
68301         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68302
68303         [BZ #281]
68304         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68305         * lib/regcomp.c: Remove unnecessary uses of
68306         unsigned RE_TRANSLATE_TYPE.
68307         * lib/regex_internal.h: Likewise.
68308         * lib/regex_internal.c: Likewise.
68309         * lib/regexec.c: Likewise.
68310         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68311
68312         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68313
68314         * lib/regexec.c (find_recover_state): Remove unnecessary
68315         initialization.
68316         (transit_state_bkref): Make DFA a const pointer.
68317         (get_subexp): Likewise.
68318         (check_arrival): Likewise.
68319         (update_cur_sifted_state): Likewise.
68320         (re_search_internal): Likewise.
68321         (prune_impossible_nodes): Likewise.
68322         (acquire_init_state_context): Likewise.
68323         (proceed_next_node): Likewise.
68324         (set_regs): Likewise.
68325         (free_fail_stack_return): Likewise.
68326         (check_arrival_expand_ecl): Mark DFA parameter as const.
68327         (check_arrival_expand_ecl_sub): Likewise.
68328         (check_subexp_limits): Likewise.
68329         (sub_epsilon_src_nodes):  Likewise.
68330         (add_epsilon_src_nodes):  Likewise.
68331         (merge_state_array): Likewise.
68332         (update_regs): Likewise.
68333         (build_trtable): Likewise.
68334         (sift_states_backward): Mark MCTX parameter as const.
68335         (build_sifted_states): Likewise.
68336         (update_cur_sifted_state): Likewise.
68337         (sift_states_mkref): Likewise.
68338         (check_arrival_expand_ecl): Mark eclosure as const.
68339         (check_dst_limits_calc_pos_1): Likewise.
68340         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68341         pointer.
68342
68343         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68344
68345         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68346         (transit_state_sb): Likewise.
68347         (transit_state_mb): Likewise.
68348         (sift_states_iter_mb): Likewise.
68349         (check_arrival_add_next_nodes): Likewise.
68350         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68351         [_LIBC] (re_search_2_stub): Use mempcpy.
68352
68353         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68354         mbrtowc for very simple UTF-8 case.
68355
68356         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68357         a pointer-to-const.
68358         (re_acquire_state_context): Likewise.
68359         * lib/regex_internal.h: Adjust prototypes.
68360
68361         * lib/regex.c: Prevent using C++ compilers.
68362
68363         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68364         (re_acquire_state_context): Likewise.
68365
68366 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * modules/regex (Depends-on): Add ssize_t.
68369
68370 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68373         translation table.
68374
68375 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68378
68379 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68380             Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68383         <sys/types.h> and <inttypes.h>.
68384
68385 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68386
68387         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68388         `__error_t_defined', so argp.h will not typedef the former.
68389
68390 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68393         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68394         glibc names.  Even if glibc is changed to conform to POSIX, the
68395         traditional names will be available anyway, since regex depends on
68396         the extensions module.  Also, fix a longstanding typo in the
68397         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68398         reported by Emanuele Giaquinta.  Also, change sense of cached
68399         variable, so that the message makes sense.
68400
68401 2006-03-24  Simon Josefsson  <jas@extundo.com>
68402
68403         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68404         including some doc fixes.
68405         (base64_encode_alloc): Fix +1 bug on allocation failures.
68406
68407 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68408
68409         * lib/base64.c (base64_encode): Do not read past end of array with
68410         unsanitized input on systems with CHAR_BIT > 8.
68411
68412 2006-03-24  Eric Blake  <ebb9@byu.net>
68413
68414         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68415
68416 2006-03-22  Karl Berry  <karl@gnu.org>
68417
68418         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68419         * config/srclistvars.sh (COREUTILS): new var.
68420
68421 2006-03-17  Jim Meyering  <jim@meyering.net>
68422
68423         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68424         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68425
68426 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68429         no longer needs it.  Instead, check that regoff_t is as least
68430         as wide as ptrdiff_t.
68431
68432         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68433         so that our regex.h stays compatible with the installed regex.
68434         This is helpful for installers who configure --without-included-regex.
68435         Problem reported by Emanuele Giaquinta.
68436
68437 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68440         Typedef to long int, not to off_, as POSIX will likely change
68441         in that direction.
68442
68443 2006-03-15  Eric Blake  <ebb9@byu.net>
68444
68445         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68446
68447 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68448
68449         * lib/argp-help.c (validate_uparams): Fix typo
68450         * lib/argp-parse.c (argp_default_options): Consistently begin help
68451         messages with a lowercase letter.
68452
68453 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68456         overrun buffers and shouldn't be used (much as gets shouldn't be
68457         used).
68458         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68459
68460 2006-03-08  Simon Josefsson  <jas@extundo.com>
68461
68462         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68463         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68464
68465 2006-03-08  Simon Josefsson  <jas@extundo.com>
68466
68467         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68468         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68469
68470 2006-03-08  Simon Josefsson  <jas@extundo.com>
68471
68472         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68473         signal that configure disabled the device.
68474
68475 2006-03-08  Simon Josefsson  <jas@extundo.com>
68476
68477         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68478         languages.
68479
68480 2006-03-07  Simon Josefsson  <jas@extundo.com>
68481
68482         * modules/getopt (Depends-on): Add unistd.
68483
68484         * modules/unistd: New file.
68485
68486 2006-03-07  Simon Josefsson  <jas@extundo.com>
68487
68488         * modules/gc-random: New file.
68489
68490 2006-03-07  Simon Josefsson  <jas@extundo.com>
68491
68492         * m4/unistd_h.m4: New file.
68493
68494 2006-03-07  Simon Josefsson  <jas@extundo.com>
68495
68496         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68497         test to be side-effect free by storing the result in the cache
68498         variable gl_cv_lib_readline, and moving the assignment of
68499         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68500         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68501
68502 2006-03-07  Simon Josefsson  <jas@extundo.com>
68503
68504         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68505         error on missing devices (the functions will return an error).
68506
68507         * m4/gc.m4: Move random stuff to gc-random.m4
68508
68509 2006-03-07  Simon Josefsson  <jas@extundo.com>
68510
68511         * lib/unistd_.h: New file.
68512
68513 2006-03-07  Simon Josefsson  <jas@extundo.com>
68514
68515         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68516
68517 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68520         Problem reported by Juan Manuel Guerrero.
68521
68522 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68525         the unistd module.
68526         * lib/getlogin_r.c: Likewise.
68527         * lib/getlogin_r.h: Likewise.
68528         * lib/glob.c: Likewise.
68529         * lib/pagealign_alloc.c: Likewise.
68530         * lib/unistd_.h: Remove; no longer needed.
68531
68532 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68535         Add unistd.
68536         * modules/c-stack (Depends-on): Add unistd.
68537         * modules/getlogin_r: Likewise.
68538         * modules/glob: Likewise.
68539         * modules/pagealign_alloc: Likewise.
68540         * modules/unistd (Files): Remove lib/unistd_.h.
68541         (EXTRA_DIST): Remove.
68542         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68543         need unistd_.h.
68544         (MOSTLYCLEANFILES): Remove unistd.h-t.
68545
68546 2006-03-03  Simon Josefsson  <jas@extundo.com>
68547
68548         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68549
68550 2006-03-03  Simon Josefsson  <jas@extundo.com>
68551
68552         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68553         libidn and bison.
68554
68555 2006-03-03  Simon Josefsson  <jas@extundo.com>
68556
68557         * build-aux/maint.mk: Add indent target.
68558
68559 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68560
68561         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68562         our replacement poll.h in any case, to avoid a differing
68563         declaration from a system header.  Seen on AIX.
68564
68565 2006-03-01  Simon Josefsson  <jas@extundo.com>
68566
68567         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68568         <kasal@ucw.cz>.
68569
68570 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * modules/gettime (Depends-on): Add extensions module.
68573         * modules/nanosleep (Depends-on): Likewise.
68574         * modules/settime (Depends-on): Likewise.
68575
68576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68579         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68580         pedantically.
68581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68582         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68583
68584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68585         not "==".  Reported by Ralf Wildenhues.
68586
68587 2006-03-01  Karl Berry  <karl@gnu.org>
68588
68589         * doc/Copyright/request-*: new files, synced from gnuorg.
68590
68591 2006-03-01  Karl Berry  <karl@gnu.org>
68592
68593         * config/srclist.txt (Copyright/*): new entries.
68594
68595 2006-02-28  Simon Josefsson  <jas@extundo.com>
68596
68597         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68598
68599 2006-02-27  Simon Josefsson  <jas@extundo.com>
68600
68601         * lib/base64.h: Indent #define's.  From Jim Meyering
68602         <jim@meyering.net>.
68603
68604 2006-02-27  Jim Meyering  <jim@meyering.net>
68605
68606         Revert the change of 2006-02-24, so these files can continue
68607         to be sync'd from gettext.
68608         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68609         of `config.h'.
68610
68611 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * modules/intprops: New file.
68614         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68615         Add intprops.
68616         * modules/getloadavg (Files): Remove lib/intprops.h.
68617         (Depends-on): Add intprops.
68618         * modules/human: Likewise.
68619         * modules/inttostr: Likewise.
68620         * modules/openat: Likewise.
68621         * modules/sig2str: Likewise.
68622         * modules/userspec: Likewise.
68623         * modules/utimecmp: Likewise.
68624         * modules/xnanosleep: Likewise.
68625         * modules/xstrtol: Likewise.
68626
68627 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68628
68629         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68630         * modules/lock-tests (TESTS): Use $(EXEEXT).
68631         * modules/tls-tests: Likewise.
68632         * modules/argp-tests: Likewise.
68633         (check_PROGRAMS): New var, replacing...
68634         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68635
68636 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68637
68638         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68639         `config.h'.
68640
68641 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68644
68645 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68646
68647         Sync from coreutils.
68648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68649         gl_CHDIR_SAFER.
68650
68651 2006-02-22  Jim Meyering  <jim@meyering.net>
68652
68653         Sync from coreutils.
68654         * m4/chdir-safer.m4: New file.
68655
68656 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68659         AT_FDCWD exceeds INT_MAX.
68660         * lib/openat.h (AT_FDCWD): Likewise.
68661
68662 2006-02-17  Eric Blake  <address@hidden>
68663
68664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68665
68666 2006-02-16  Simon Josefsson  <jas@extundo.com>
68667
68668         * modules/getaddrinfo (Depends-on): Add sys_socket.
68669
68670 2006-02-15  Simon Josefsson  <jas@extundo.com>
68671
68672         * build-aux/maint.mk: Add dsyntax-check rule.
68673
68674 2006-02-15  Eric Blake  <ebb9@byu.net>
68675
68676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68677         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68678         'present but cannot compile' warnings on cygwin.
68679         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68680         use ws2tcpip.h if sys/socket.h works.
68681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68682         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68683
68684 2006-02-14  Simon Josefsson  <jas@extundo.com>
68685
68686         * modules/maintainer-makefile (Files): Rename.
68687
68688         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68689         and (the local) Makefile.cfg to maint-cfg.mk.
68690
68691         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68692         to the latter.
68693
68694         * modules/maintainer-makefile: New module.
68695
68696         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68697         severaly stripped to make it possible to build it up from scratch
68698         with reliable tests.
68699
68700         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68701         fixes to permit overriding the default actions when configure and
68702         makefile are not available.
68703
68704 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         Sync from coreutils.
68707         * modules/lstat (Depends-on): Don't depend on xalloc.
68708         (License): Change from GPL to LGPL, since this is now simply a
68709         replacement for a libc function.
68710
68711 2006-02-14  Jim Meyering  <jim@meyering.net>
68712
68713         Sync from coreutils.
68714
68715         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68716         failure on deficient systems, and simplify gnulib lgpl dependencies.
68717         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68718         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68719
68720         * lib/xalloc-die.c: Remove unused definition of N_.
68721
68722 2006-02-14  Jim Meyering  <jim@meyering.net>
68723
68724         Sync from coreutils.
68725         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68726         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68727         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68728         double-quote uses of that variable, to accommodate the rare case in
68729         which getmntent is available in none of the libraries checked.  This
68730         happens at least on FreeBSD 5.0.
68731
68732 2006-02-13  Simon Josefsson  <jas@extundo.com>
68733
68734         * gnulib-tool (Usage): Fix --import, from
68735         karl@freefriends.org (Karl Berry).
68736
68737 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68738
68739         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68740
68741 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68742
68743         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68744         "autoupdate" on 2005-12-12.
68745
68746 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * modules/closeout (Depends-on): Remove atexit.
68749
68750 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68753         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68754
68755 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68758         __EXTENSIONS__ if this causes compilation to fail.  Problem
68759         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68760         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68761
68762 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68765         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68767         All uses changed.
68768
68769 2006-01-26  Simon Josefsson  <jas@extundo.com>
68770
68771         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68772         prototype is visible on mingw32.
68773
68774         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68775         for mingw32.
68776
68777         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68778         mingw32).
68779
68780 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68783         attempt to open for write; this always fails, at least on POSIX
68784         hosts.  This reinstates the 2006-01-09 change, which was
68785         inadvertently removed.
68786
68787 2006-01-26  Bruno Haible  <bruno@clisp.org>
68788
68789         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68790         Reported by Paul Eggert.
68791
68792 2006-01-26  Bruno Haible  <bruno@clisp.org>
68793             Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/stdbool_.h (_Bool)
68796         [(! (defined __cplusplus || defined __BEOS__)
68797           && !defined __GNUC__
68798           && !(defined __HP_cc || defined __xlc__
68799                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68800                || defined __sgi))]:
68801         #define to signed char in these cases too; this simplifies
68802         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68803         etc., separately) and makes it more conservative.
68804
68805 2006-01-25  Simon Josefsson  <jas@extundo.com>
68806
68807         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68808         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68809         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68810
68811 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68812
68813         * lib/argp-namefrob.h: Bugfix. Remove stray #
68814
68815 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68816
68817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68818         so that we test the test.
68819         Check for yet another HP-UX cc bug involving *bool |= bool.
68820
68821 2006-01-25  Karl Berry  <karl@gnu.org>
68822
68823         * config/srclist.txt (vasnprintf.c): sync lost.
68824
68825 2006-01-25  Jim Meyering  <jim@meyering.net>
68826
68827         Sync from the stable (b5) branch of coreutils:
68828
68829         * lib/fts.c (fts_children): Don't let close() clobber errno from
68830         failed fchdir().
68831
68832         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68833         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68834         a dangling symlink.  That can also happen at least for ELOOP.
68835         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68836         FYI, this bug predates the inclusion of fts.c in coreutils.
68837
68838         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68839         in their own block, so pre-c99 compilers don't object.
68840
68841         Avoid the double-free (first in fts_read, second in fts_close) that
68842         would occur when an `active' directory is made inaccessible (e.g.,
68843         via chmod a-x) during a traversal.
68844         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68845         before returning.  Reproduce this failure by
68846         mkdir -p a/b; cd a; chmod a-x . b
68847         Reported by Stavros Passas.
68848
68849 2006-01-25  Jim Meyering  <jim@meyering.net>
68850
68851         * lib/fileblocks.c: Remove more useless parentheses.
68852         * lib/readutmp.h: Likewise.
68853
68854 2006-01-25  Bruno Haible  <bruno@clisp.org>
68855
68856         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68857         warnings.
68858         Reported by Paul Eggert.
68859
68860 2006-01-25  Bruno Haible  <bruno@clisp.org>
68861
68862         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68863         rid of a trap command. For Solaris sh.
68864         Reported by Mark D. Baushke <mdb@gnu.org>.
68865
68866 2006-01-24  Simon Josefsson  <jas@extundo.com>
68867
68868         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68869         Bruno.
68870
68871 2006-01-24  Karl Berry  <karl@gnu.org>
68872
68873         * config/srclist.txt (argp-namefrob.h): sync lost.
68874
68875 2006-01-24  Jim Meyering  <jim@meyering.net>
68876
68877         * modules/openat (Files): Add lib/intprops.h.
68878         From Mark D. Baushke.
68879
68880 2006-01-24  Jim Meyering  <jim@meyering.net>
68881
68882         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68883         Reported by Mark D. Baushke.
68884
68885 2006-01-24  Jim Meyering  <jim@meyering.net>
68886
68887         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68888
68889 2006-01-24  Bruno Haible  <bruno@clisp.org>
68890
68891         * modules/strnlen (Maintainer): Change from glibc to all.
68892
68893 2006-01-24  Bruno Haible  <bruno@clisp.org>
68894
68895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68896         Patch by Paul Eggert.
68897
68898 2006-01-24  Bruno Haible  <bruno@clisp.org>
68899
68900         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68901         already has it.
68902         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68903         2005-11-26.
68904
68905         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68906         'signed char' to avoid problems with the built-in _Bool type.
68907         Reported by Paul Eggert on 2005-11-26.
68908
68909 2006-01-24  Bruno Haible  <bruno@clisp.org>
68910
68911         * gnulib-tool (func_import): Avoid constructing complicated sed
68912         expressions inside backquote.
68913         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68914
68915 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68916
68917         These changes imported from libc.
68918         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68919         test and two separate function calls.
68920         * lib/strndup.c (__strndup): Add libc_hidden_def.
68921
68922 2006-01-23  Simon Josefsson  <jas@extundo.com>
68923
68924         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68925         Remove the test_*_SOURCES variable: automake infers it by default.
68926         * modules/tls-tests: Likewise.
68927
68928 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         Work around porting bugs reported by Dieter in
68931         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68932         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68933         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68934         Include "getopt.h" first, to check interface.
68935         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68936         !HAVE_DECL_GETENV.
68937         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68938         (__strndup): Revert to K&R-style function dfns, the glibc style.
68939         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68940         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68941         Include strnlen.h first, to get prototype properly.
68942         (strnlen): Renamed from __strnlen.
68943         Remove weak alias.
68944
68945 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68948
68949 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * config/srclist.txt: Adjust to reflect glibc reorganization.
68952         This affects only comments.
68953
68954 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68955
68956          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68957          Reported by Bruce Korb <bkorb@gnu.org>.
68958
68959 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68962         to pacify gcc -Wswitch-default.
68963
68964 2006-01-22  Bruno Haible  <bruno@clisp.org>
68965
68966         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68967         temporary buffer for sprintf, take into account the precision also
68968         for 'd', 'i', 'u', 'o', 'x', 'X'.
68969
68970 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68971
68972         * modules/argp-tests: New module
68973         * tests/test-argp.c: New file
68974         * tests/test-argp-2.sh: New file
68975
68976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68977
68978         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68979         (__argp_base_name): Removed
68980         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68981         typo.
68982         (__argp_base_name): Provide macro definition or extern declaration
68983         depending on the configuration
68984
68985 2006-01-20  Simon Josefsson  <jas@extundo.com>
68986
68987         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68988
68989 2006-01-20  Simon Josefsson  <jas@extundo.com>
68990
68991         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68992
68993 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68994
68995         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68996         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68997         Suggested by Bruno Haible.
68998
68999 2006-01-20  Karl Berry  <karl@gnu.org>
69000
69001         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69002         until changes propagate, I guess.
69003
69004 2006-01-19  Simon Josefsson  <jas@extundo.com>
69005
69006         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69007
69008 2006-01-19  Simon Josefsson  <jas@extundo.com>
69009
69010         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69011
69012 2006-01-19  Simon Josefsson  <jas@extundo.com>
69013
69014         * gnulib-tool: Set check_PROGRAMS.
69015
69016         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69017         modules/des-tests, modules/gc-arcfour-tests,
69018         modules/gc-arctwo-tests, modules/gc-des-tests,
69019         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69020         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69021         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69022         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69023         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69024         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69025         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69026         test_*_SOURCES.
69027
69028 2006-01-18  Simon Josefsson  <jas@extundo.com>
69029
69030         * modules/socklen (Depends-on): Depend on sys_socket.
69031
69032 2006-01-18  Simon Josefsson  <jas@extundo.com>
69033
69034         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69035         modules/des-tests, modules/gc-arcfour-tests,
69036         modules/gc-arctwo-tests, modules/gc-des-tests,
69037         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69038         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69039         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69040         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69041         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69042         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69043         $(EXEEXT) to automake TESTS variable, for mingw32.
69044
69045 2006-01-17  Simon Josefsson  <jas@extundo.com>
69046
69047         * modules/socklen (Include): Need sys/socket.h.
69048
69049 2006-01-17  Bruno Haible  <bruno@clisp.org>
69050
69051         * modules/ssize_t (Include): Add <sys/types.h>.
69052
69053 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69056         it's not portable and it doesn't work with cross-compiles.
69057         Problem reported by Bruno Haible.  Fix missing-$ typo in
69058         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69059         -zignore from being used with Sun's C compiler.
69060
69061 2006-01-12  Simon Josefsson  <jas@extundo.com>
69062
69063         * lib/base64.c: Fix warning, reported by Bruno Haible
69064         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69065
69066 2006-01-12  Bruno Haible  <bruno@clisp.org>
69067
69068         * modules/ldd: New file.
69069         * build-aux/ldd.sh.in: New file.
69070         * MODULES.html.sh (Support for building libraries and executables): Add
69071         ldd.
69072
69073 2006-01-12  Bruno Haible  <bruno@clisp.org>
69074
69075         * m4/ldd.m4: New file.
69076
69077 2006-01-12  Bruno Haible  <bruno@clisp.org>
69078
69079         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69080         endless loop while replacing $auxdir with build-aux.
69081
69082 2006-01-11  Simon Josefsson  <jas@extundo.com>
69083
69084         * lib/stdint_.h (SIZE_MAX): Add missing (.
69085
69086 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         Sync from coreutils.
69089         * lib/md5.c: Fix commentary typos.
69090         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69091         * lib/md5.h (__attribute__): Remove; unused.
69092         * lib/sha1.c: Fix commentary to match md5 better.
69093         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69094         so that we don't need to worry about alignment.  All uses changed.
69095         This merges the 2005-10-28 md5 change into sha1.
69096
69097 2006-01-11  Jim Meyering  <jim@meyering.net>
69098
69099         Sync from coreutils.
69100         * lib/md5.c (OP): Fix spacing.
69101
69102 2006-01-11  Bruno Haible  <bruno@clisp.org>
69103
69104         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69105         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69106         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69107
69108 2006-01-11  Bruno Haible  <bruno@clisp.org>
69109
69110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69111         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69112         the "early" section as well.
69113
69114 2006-01-11  Bruno Haible  <bruno@clisp.org>
69115
69116         Avoid "ar: no archive members specified" error on MacOS X.
69117         * gnulib-tool (func_modules_add_dummy): New function.
69118         (func_import, func_create_testdir): Invoke it.
69119
69120 2006-01-11  Bruno Haible  <bruno@clisp.org>
69121
69122         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69123         with $auxdir in AC_CONFIG_FILES statements.
69124
69125 2006-01-11  Bruno Haible  <bruno@clisp.org>
69126
69127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69128         Initialize also noinst_HEADERS to empty.
69129
69130 2006-01-11  Bruno Haible  <bruno@clisp.org>
69131
69132         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69133         variables.
69134         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69135         autoreconf.
69136
69137 2006-01-11  Bruno Haible  <bruno@clisp.org>
69138
69139         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69140         overridable by the user.
69141         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69142
69143 2006-01-10  Simon Josefsson  <jas@extundo.com>
69144
69145         * modules/sys_socket: New file.
69146
69147 2006-01-10  Simon Josefsson  <jas@extundo.com>
69148
69149         * m4/sys_socket_h.m4: New file.
69150
69151 2006-01-10  Simon Josefsson  <jas@extundo.com>
69152
69153         * lib/socket_.h: New file.
69154
69155 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * modules/readutmp (Maintainer): Add myself.
69158
69159 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69162         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69163         People who are still concerned with buggy memcmp implementations
69164         can invoke gl_FUNC_MEMCMP themselves.
69165
69166 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * lib/regex_internal.h (BITSET_WORD_BITS):
69169         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69170         preprocessor mishandles large unsigned values as if they were signed.
69171         Problem reported by Claudio Fontana in
69172         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69173
69174 2006-01-10  Jim Meyering  <jim@meyering.net>
69175
69176         Avoid the double-free (first in fts_read, second in fts_close) that
69177         would occur when an `active' directory is made inaccessible (e.g.,
69178         via chmod a-x) during a traversal.
69179         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69180         before returning.  Reproduce this failure by
69181         mkdir -p a/b; cd a; chmod a-x . b
69182         Reported by Stavros Passas.
69183
69184         Sync from coreutils.
69185         * lib/sha1.c: Tweak grammar in a comment.
69186
69187 2006-01-10  Jim Meyering  <jim@meyering.net>
69188
69189         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69190         Patch by Joerg Sonnenberger.
69191
69192 2006-01-10  Bruno Haible  <bruno@clisp.org>
69193
69194         * modules/readutmp: Depend on module free.
69195         * modules/strtok_r: Depend on module restrict.
69196
69197 2006-01-10  Bruno Haible  <bruno@clisp.org>
69198
69199         * modules/gettext (configure.ac): Add an invocation of
69200         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69201
69202 2006-01-10  Bruno Haible  <bruno@clisp.org>
69203
69204         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69205         Reported by Werner Lemberg <wl@gnu.org>.
69206
69207 2006-01-10  Bruno Haible  <bruno@clisp.org>
69208
69209         * lib/localcharset.c: Update from GNU gettext.
69210
69211 2006-01-10  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/argp.h (__const): Remove macro. Use const instead.
69214         * lib/argp-fmtstream.h (__const): Likewise.
69215         * lib/glob_.h (__const): Remove macro.
69216         * lib/glob-libc.h: Use const instead of __const.
69217
69218 2006-01-10  Bruno Haible  <bruno@clisp.org>
69219
69220         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69221         variable.
69222         Needed to avoid an automake error regarding the 'gettext' module.
69223
69224 2006-01-09  Simon Josefsson  <jas@extundo.com>
69225
69226         * modules/inet_ntop (Depends-on): Add restrict.
69227
69228 2006-01-09  Simon Josefsson  <jas@extundo.com>
69229
69230         * modules/gc-rijndael-tests (License): Put under LGPL.
69231
69232         * modules/gc-des-tests (License): Likewise.
69233
69234         * modules/gc-arcfour-tests (License): Likewise.
69235
69236         * modules/gc-arctwo-tests (License): Likewise.
69237
69238         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69239
69240         * modules/gc-hmac-sha1-tests (Files): Likewise.
69241
69242         * modules/gc-hmac-md5-tests (License): Likewise.
69243
69244         * modules/gc-sha1-tests (License): Likewise.
69245
69246         * modules/gc-md5-tests (License): Likewise.
69247
69248         * modules/gc-md4-tests (License): Likewise.
69249
69250         * modules/gc-md2-tests (License): Likewise.
69251
69252         * modules/gc-tests (License): Likewise.
69253
69254         * modules/des-tests (License): Likewise.
69255
69256         * modules/md4-tests (License): Likewise.
69257
69258         * modules/md2-tests (License): Likewise.
69259
69260 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         Sync from coreutils:
69263
69264         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69265         * modules/lib-ignore: New file.
69266         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69267         chdir-safer.m4, lchmod.m4.
69268         * modules/openat: Add mkdirat.c, openat-priv.h.
69269
69270 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         Sync from coreutils.
69273         * m4/lib-ignore.m4: New file.
69274         * m4/lchmod.m4: New file.
69275
69276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         Sync from coreutils.
69279         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69280         for write access: POSIX says that must fail.
69281         * lib/fts.c (diropen): Likewise.
69282         * lib/save-cwd.c (save_cwd): Likewise.
69283         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69284         well, for minor improvements on hosts that lack O_DIRECTORY.
69285         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69286         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69287         Fall back on chown if open failed with EACCES.
69288
69289         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69290         Report an error at compile-time if only a 1-second nominal clock
69291         resolution is found.
69292
69293         * lib/lchmod.h: New file.
69294         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69295         (make_dir_parents): Use lchown rather than chown, and
69296         lchmod rather than chmod.
69297
69298         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69299         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69300         "proc" reported by n0dalus.
69301
69302         * lib/mountlist.c: Include <limits.h>.
69303         (dev_from_mount_options)
69304         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69305         New function.  It no longer assumes "dev=" has the System V meaning
69306         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69307         (read_file_system_list)
69308         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69309         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69310         dev= in that case.
69311
69312         * lib/posixtm.h (PDS_PRE_2000): New macro.
69313         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69314         allow_century.  All usages changed.  Reject dates outside the range
69315         1969-1999 if PDS_PRE_2000 is used.
69316
69317 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         Sync from coreutils.
69320         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69321         (Time of day items): Mention the possibility of leap seconds.
69322         Problem reported by Dr. David Alan Gilbert.
69323
69324 2006-01-09  Jim Meyering  <jim@meyering.net>
69325
69326         Sync from coreutils.
69327
69328         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69329
69330         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69331
69332         * lib/modechange.c (mode_compile): Reject an invalid mode string
69333         that starts with an octal digit.  From Andreas Gruenbacher.
69334
69335         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69336         and dup to open_safer and dup_safer, respectively.
69337         (openat_permissive): Fix typo in comment.
69338
69339         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69340         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69341         (_): Remove; no longer needed.
69342         (openat): Renamed from rpl_openat; no need for rpl_openat
69343         since openat.h renames openat for us.
69344         Replace most of the body with a call to openat_permissive,
69345         to avoid duplicate code.
69346         Port to (probably hypothetical) environments were mode_t is
69347         wider than int.
69348         (openat_permissive): Require mode arg, so that we can check
69349         types better.  Put it just after flags.  Change cwd failure
69350         indicator from pointer-to-bool to pointer-to-errno-value.
69351         All callers changed.
69352         Invoke openat_save_fail and/or openat_restore_fail if
69353         cwd_errno is null, so that openat can call us.
69354         (openat_permissive, fdopendir, fstatat, unlinkat):
69355         Simplify errno handling to avoid some duplicate code,
69356         as it's OK to set errno on success.
69357         * lib/openat.h: Revamp code so that function macros depend on
69358         __OPENAT_PREFIX only, not also on AT_FDCWD.
69359         (openat_ro): Remove.  Caller changed to use openat_permissive.
69360         (openat_permissive): Now a macro, if not a function.
69361         (openat_restore_fail, openat_save_fail): Now always functions,
69362         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69363
69364         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69365         and openat.c.
69366         * lib/mkdirat.c: Include openat-priv.h.
69367         Remove definitions of macros defined therein.
69368         * lib/openat.c: Likewise.
69369
69370         * lib/mkdirat.c (mkdirat): New file and function.
69371         * lib/openat.h (mkdirat): Declare.
69372
69373         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69374
69375         * lib/openat.h (openat_permissive): Declare.
69376         (openat_ro): Define.
69377
69378         * lib/openat.c (EXPECTED_ERRNO): New macro.
69379         (openat_permissive): New function -- used in remove.c rewrite.
69380         (all functions): Set errno just before returning, only if there
69381         was an actual failure.
69382         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69383
69384         Emulate openat-family functions using Linux's procfs, if possible.
69385         Idea and some code based on Ulrich Drepper's glibc changes.
69386
69387         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69388         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69389         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69390         before falling back on save_cwd and restore_cwd.
69391         (fdopendir, fstatat, unlinkat): Likewise.
69392
69393         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69394         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69395
69396         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69397         as second argument to va_arg.  Otherwise, some versions of gcc
69398         warn that `if this code is reached, the program will abort'.
69399
69400 2006-01-09  Jim Meyering  <jim@meyering.net>
69401
69402         Sync from coreutils.
69403         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69404         Require openat-priv.h.
69405
69406 2006-01-09  Bruno Haible  <bruno@clisp.org>
69407
69408         * modules/strnlen (Include): Use strnlen.h.
69409
69410 2006-01-09  Bruno Haible  <bruno@clisp.org>
69411
69412         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69413
69414 2006-01-09  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/sysexit_.h (EX_OK): New macro.
69417         Suggested by Martin Lambers <marlam@marlam.de>.
69418
69419 2006-01-09  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69422         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69423
69424 2006-01-09  Bruno Haible  <bruno@clisp.org>
69425
69426         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69427         numbers.
69428
69429 2006-01-09  Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69432         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69433         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69434         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69435
69436 2006-01-09  Bruno Haible  <bruno@clisp.org>
69437
69438         * build-aux/javacomp.sh.in: New file, moved from lib/.
69439         * modules/javacomp-script (Files): Update.
69440         (configure.ac): Add AC_CONFIG_FILES invocation.
69441         (EXTRA_DIST): Remove variable.
69442
69443         * build-aux/javaexec.sh.in: New file, moved from lib/.
69444         * modules/javaexec (Files): Update.
69445         (configure.ac): Add AC_CONFIG_FILES invocation.
69446         (EXTRA_DIST): Remove javaexec.sh.in.
69447
69448         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69449         * modules/csharpcomp-script (Files): Update.
69450         (configure.ac): Add AC_CONFIG_FILES invocation.
69451         (EXTRA_DIST): Remove variable.
69452
69453         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69454         * modules/csharpexec (Files): Update.
69455         (configure.ac): Add AC_CONFIG_FILES invocation.
69456         (EXTRA_DIST): Remove csharpexec.sh.in.
69457
69458 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69459
69460         Sync from coreutils.
69461
69462         Add POSIX ACL support
69463         * lib/acl.h (copy_acl, set_acl): Add declarations.
69464         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69465         systems other than Linux.
69466         (chmod_or_fchmod): New function: use fchmod when possible,
69467         and chmod otherwise.
69468         (file_has_acl): Add a POSIX ACL implementation, with a
69469         Linux-specific subcase.
69470         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69471         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69472         acls are unsupported.
69473         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69474         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69475         are unsupported.
69476
69477 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69478
69479         Sync from coreutils.
69480         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69481
69482 2006-01-07  Bruno Haible  <bruno@clisp.org>
69483
69484         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69485         gl_EARLY.
69486
69487 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69488
69489         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69490         Problem reported for Mingw by Mark Junker.
69491
69492 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * README: Gnulib normally doesn't generate a tarball.
69495
69496 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69499         long int, not int, for nanosecond counts, so that people who are
69500         used to POSIX struct timespec won't be surprised.  Reported by Jim
69501         Meyering.
69502
69503 2005-12-28  Bruno Haible  <bruno@clisp.org>
69504
69505         * build-aux/config.rpath: Update from GNU gettext.
69506
69507 2005-12-16  Jim Meyering  <jim@meyering.net>
69508
69509         * modules/fprintftime: New module.
69510         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69511
69512 2005-12-16  Jim Meyering  <jim@meyering.net>
69513
69514         * m4/fprintftime.m4: New file.
69515
69516 2005-12-16  Jim Meyering  <jim@meyering.net>
69517
69518         * lib/fprintftime.c, lib/fprintftime.h: New files.
69519
69520 2005-12-15  Simon Josefsson  <jas@extundo.com>
69521
69522         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69523         new m4/socklen.m4.
69524
69525 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69526
69527         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69528         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69529
69530 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69531
69532         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69533         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69534         struct uparams is valid. Fall back to the default values if it is
69535         not.
69536
69537 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69538
69539         * modules/argp (Files): Add argp-pin.c
69540         (Depends-on): dirname
69541         (lib_SOURCES): Add argp-pin.c
69542
69543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69544
69545         * m4/argp.m4:  Check if program_invocation_name and
69546         program_invocation_short_name are declared and define appropriate
69547         macros if they are not.
69548
69549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69550
69551         * lib/argp-help.c (__argp_base_name): New function
69552         (__argp_short_program_name): Rewrite using __argp_base_name
69553         * lib/argp-namefrob.h: Define program_invocation_name and
69554         program_invocation_short_name if requested
69555         (__argp_base_name): Add prototype
69556         * lib/argp-parse.c (argp_def): Use gettext wrappers
69557         (argp_default_parser): Use __argp_base_name
69558         * lib/argp-pin.c: New file. Defines program_invocation_name and
69559         program_invocation_short_name on systems that lack them.
69560
69561 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69564         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69565         porting problem reported by Georg Schwarz in
69566         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69567
69568 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69571         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69572         porting problem reported by Georg Schwarz in
69573         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69574
69575 2005-12-05  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69578         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69579         Reported by Mark Junker <mjscod@gmx.de>.
69580
69581 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69584         Use implementation from Albert Chin, with some
69585         comments/corrections by Stepan Kasal and myself.
69586
69587 2005-12-02  Bruno Haible  <bruno@clisp.org>
69588
69589         * gnulib-tool (func_import): Accept GPLed build tool modules when
69590         --lgpl is given.
69591         * modules/csharpcomp-script: New file.
69592         * modules/csharpcomp: Depend on it.
69593         * modules/javacomp-script: New file.
69594         * modules/javacomp: Depend on it.
69595         Suggested by Simon Josefsson.
69596
69597 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69600         statement, to work around an HP-UX 10.20 compiler bug reported by
69601         Peter O'Gorman.
69602
69603 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69604
69605         * modules/savedir (Depends-on): Add openat.
69606
69607 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69610         (uintmax_t) [defined uintmax_t]: Do not declare.
69611         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69612         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69613         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69614         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69615         sake of portability to weird hosts that C allows (though we don't
69616         know of any practical examples).
69617
69618         * lib/savedir.h (fdsavedir): New decl.
69619         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69620         contains most of the former guts of savedir.
69621         (savedir): Use savedirstream.
69622         Include "openat.h".
69623
69624 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         * modules/obstack (Files): Add m4/ulonglong.m4.
69627         Problem reported by Davide Angelocola.
69628
69629 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69632         coreutils no longer futzes with rounding modes.
69633
69634 2005-11-14  Jim Meyering  <jim@meyering.net>
69635
69636         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69637         replacement of mkstemp.
69638
69639 2005-11-10  Simon Josefsson  <jas@extundo.com>
69640
69641         * lib/readline.c: Remove EOL.
69642
69643 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * modules/gethrxtime (Depends-on): Add gettime.
69646
69647 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69650         or gettimeofday; no longer needed.
69651
69652 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69655         time business.
69656         (gethrxtime) [! (HAVE_NANOUPTIME
69657         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69658         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69659         our own approximation.
69660
69661 2005-11-08  Eric Blake  <ebb9@byu.net>
69662
69663         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69664
69665 2005-11-08  Eric Blake  <ebb9@byu.net>
69666
69667         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69668
69669 2005-11-04  Bruno Haible  <bruno@clisp.org>
69670
69671         * gnulib-tool: Implement --update mode.
69672
69673 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69674
69675         Fix porting problem reported by Theodoros V. Kalamatianos.
69676         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69677         Don't assume that futimes failing means we must fail.
69678
69679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69680
69681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69682         variables to suggest the intended function of the PATH_MAX check.
69683
69684 2005-10-30  Kean Johnston  <jkj@sco.com>
69685
69686         Trivial changes to support SCO systems.
69687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69688         as PATH_MAX.
69689         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69690         where __ptr is null when no I/O is pending.
69691
69692 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69695         leave errno alone.  Problem reported by Dmitry V. Levin.
69696
69697 2005-10-28  Simon Josefsson  <jas@extundo.com>
69698
69699         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69700         Test more.
69701
69702         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69703
69704         * modules/md2, modules/md2-tests: New files.
69705
69706 2005-10-28  Simon Josefsson  <jas@extundo.com>
69707
69708         * m4/inet_ntop.m4: More tests.
69709
69710         * m4/gc-md2.m4, md2.m4: New file.
69711
69712 2005-10-28  Simon Josefsson  <jas@extundo.com>
69713
69714         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69715         "restrict" keywords, as per POSIX.  Protect the function
69716         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69717         Don't use K&R prototypes.  Check the sprintf return values.
69718         Re-define EAFNOSUPPORT if not present.  Indent.
69719
69720         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69721         suggested by Bruno Haible <bruno@clisp.org>.
69722
69723         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69724
69725         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69726
69727         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69728         libgcrypt).
69729
69730         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69731
69732         * lib/md2.h, lib/md2.c: New files.
69733
69734 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69737         errno alone.  Problem reported by Frederic Jolliton.
69738
69739 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * modules/verify (License): Change from GPL to LGPL.  This is a
69742         tiny module and there are apparently near-equivalents that are
69743         under the BSD license.
69744
69745 2005-10-24  Simon Josefsson  <jas@extundo.com>
69746
69747         * modules/sha1: Relicense to LGPL.
69748
69749 2005-10-24  Simon Josefsson  <jas@extundo.com>
69750
69751         * lib/md4.h: Shrink buffer size, now that we changed the type.
69752
69753 2005-10-23  Simon Josefsson  <jas@extundo.com>
69754
69755         * gnulib-tool (func_import): Fix --tests-base.
69756
69757 2005-10-22  Simon Josefsson  <jas@extundo.com>
69758
69759         * modules/arcfour (Depends-on): Need stdint.
69760
69761 2005-10-22  Simon Josefsson  <jas@extundo.com>
69762
69763         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69764         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69765
69766 2005-10-22  Simon Josefsson  <jas@extundo.com>
69767
69768         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69769         suggested by Bruno Haible <bruno@clisp.org>.
69770
69771 2005-10-22  Simon Josefsson  <jas@extundo.com>
69772
69773         * lib/crc.h: Include stddef.h, for size_t.
69774
69775 2005-10-22  Simon Josefsson  <jas@extundo.com>
69776
69777         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69778         arcfour_context struct (simplify test vector testing in GNU
69779         Shishi).
69780
69781 2005-10-21  Simon Josefsson  <jas@extundo.com>
69782
69783         * modules/des, modules/des-tests: New files.
69784
69785         * modules/gc-des, modules/gc-des-tests: New files.
69786
69787         * tests/test-des.c, tests/test-gc-des.c: New file.
69788
69789 2005-10-21  Simon Josefsson  <jas@extundo.com>
69790
69791         * modules/arctwo, modules/arctwo-tests: New files.
69792
69793         * tests/test-arctwo.c: New file.
69794
69795         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69796
69797         * tests/test-gc-arctwo.c: New file.
69798
69799 2005-10-21  Simon Josefsson  <jas@extundo.com>
69800
69801         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69802         Bruno Haible <bruno@clisp.org>.
69803
69804         * m4/gc-des.m4: New file.
69805
69806 2005-10-21  Simon Josefsson  <jas@extundo.com>
69807
69808         * m4/arctwo.m4: New file.
69809
69810         * m4/gc-arctwo.m4: New file.
69811
69812 2005-10-21  Simon Josefsson  <jas@extundo.com>
69813
69814         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69815         block.
69816
69817 2005-10-21  Simon Josefsson  <jas@extundo.com>
69818
69819         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69820         <bruno@clisp.org>.
69821
69822         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69823
69824         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69825         Bruno Haible <bruno@clisp.org>.
69826
69827         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69828         <bruno@clisp.org>.
69829
69830 2005-10-21  Simon Josefsson  <jas@extundo.com>
69831
69832         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69833
69834 2005-10-21  Simon Josefsson  <jas@extundo.com>
69835
69836         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69837
69838 2005-10-21  Simon Josefsson  <jas@extundo.com>
69839
69840         * lib/des.h, lib/des.c: New files.
69841
69842         * lib/gc-gnulib.c: Support DES.c
69843
69844 2005-10-21  Simon Josefsson  <jas@extundo.com>
69845
69846         * lib/arctwo.h, lib/arctwo.c: New files.
69847
69848         * lib/gc-gnulib.c: Support ARCTWO.
69849
69850 2005-10-21  Simon Josefsson  <jas@extundo.com>
69851
69852         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69853         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69854
69855 2005-10-21  Simon Josefsson  <jas@extundo.com>
69856
69857         * gnulib-tool (func_import, func_create_testdir): Define automake
69858         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69859         Makefile.am snippet),
69860         suggested by Bruno Haible <bruno@clisp.org>.
69861
69862         * modules/gc (Makefile.am): Use it.
69863
69864 2005-10-21  Bruno Haible  <bruno@clisp.org>
69865
69866         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69867         patch.
69868
69869 2005-10-19  Simon Josefsson  <jas@extundo.com>
69870
69871         * tests/test-gc-rijndael.c: New file.
69872
69873         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69874
69875 2005-10-19  Simon Josefsson  <jas@extundo.com>
69876
69877         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69878         interface too.
69879
69880 2005-10-19  Simon Josefsson  <jas@extundo.com>
69881
69882         * tests/test-gc-arcfour.c: New file.
69883
69884         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69885
69886 2005-10-19  Simon Josefsson  <jas@extundo.com>
69887
69888         * modules/gc-md4, modules/gc-md4-tests: New file.
69889
69890         * tests/test-gc-md4.c: New file.
69891
69892 2005-10-19  Simon Josefsson  <jas@extundo.com>
69893
69894         * m4/gc-md4.m4: New file.
69895
69896 2005-10-19  Simon Josefsson  <jas@extundo.com>
69897
69898         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69899         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69900         <kasal@ucw.cz>.
69901
69902 2005-10-19  Simon Josefsson  <jas@extundo.com>
69903
69904         * m4/gc-arcfour.m4: New file.
69905
69906         * m4/gc-rijndael.m4: New file.
69907
69908 2005-10-19  Simon Josefsson  <jas@extundo.com>
69909
69910         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69911
69912 2005-10-19  Simon Josefsson  <jas@extundo.com>
69913
69914         * lib/gc-gnulib.c: Support ARCFOUR.
69915
69916 2005-10-19  Simon Josefsson  <jas@extundo.com>
69917
69918         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69919         support.
69920
69921         * lib/gc.h: Add ECB enum type.
69922
69923         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69924
69925 2005-10-18  Simon Josefsson  <jas@extundo.com>
69926
69927         * tests/test-md5.c: New file.
69928
69929         * modules/md5-tests: New file.
69930
69931 2005-10-18  Simon Josefsson  <jas@extundo.com>
69932
69933         * tests/test-md4.c: New file.
69934
69935         * modules/md4, modules/md4-tests: New files.
69936
69937 2005-10-18  Simon Josefsson  <jas@extundo.com>
69938
69939         * m4/md4.m4: New file.
69940
69941 2005-10-18  Simon Josefsson  <jas@extundo.com>
69942
69943         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69944
69945 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69946
69947         * gnulib-tool (func_create_testdir): Omit the second check whether
69948         BUILT_SOURCES in nonempty.
69949
69950 2005-10-17  Simon Josefsson  <jas@extundo.com>
69951
69952         * tests/test-rijndael.c: New file.
69953
69954 2005-10-17  Simon Josefsson  <jas@extundo.com>
69955
69956         * modules/sha1: Depend on stdint instead of md5.
69957
69958         * modules/md5: Depend on stdint, remove uint32_t.
69959
69960 2005-10-17  Simon Josefsson  <jas@extundo.com>
69961
69962         * modules/gc-sha1-tests: New file.
69963
69964         * tests/test-gc-sha1.c: New file.
69965
69966 2005-10-17  Simon Josefsson  <jas@extundo.com>
69967
69968         * m4/md5.m4: Remove call to uint32_t.m4.
69969
69970 2005-10-17  Simon Josefsson  <jas@extundo.com>
69971
69972         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69973
69974         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69975         md5.h.
69976
69977         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69978
69979         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69980
69981 2005-10-17  Simon Josefsson  <jas@extundo.com>
69982
69983         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69984
69985 2005-10-17  Simon Josefsson  <jas@extundo.com>
69986
69987         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69988
69989 2005-10-17  Simon Josefsson  <jas@extundo.com>
69990
69991         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69992
69993         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69994
69995 2005-10-17  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69998         that it can also be used in a test.
69999
70000 2005-10-16  Bruno Haible  <bruno@clisp.org>
70001
70002         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70003         TESTS_ENVIRONMENT, so that individual tests can augment it.
70004
70005         * gnulib-tool (func_create_testdir): Use an intermediate target for
70006         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70007         macros, like $(ALLOCA_H), which cannot be passed through the command
70008         line.
70009
70010 2005-10-15  Simon Josefsson  <jas@extundo.com>
70011
70012         * modules/rijndael-tests: New file.
70013
70014         * modules/rijndael: New file.
70015
70016 2005-10-15  Simon Josefsson  <jas@extundo.com>
70017
70018         * m4/rijndael.m4: New file.
70019
70020 2005-10-15  Simon Josefsson  <jas@extundo.com>
70021
70022         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70023
70024         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70025
70026 2005-10-14  Simon Josefsson  <jas@extundo.com>
70027
70028         * tests/test-arcfour.c: New file.
70029
70030         * modules/arcfour, modules/arcfour-tests: New files.
70031
70032 2005-10-14  Simon Josefsson  <jas@extundo.com>
70033
70034         * m4/arcfour.m4: New file.
70035
70036 2005-10-14  Simon Josefsson  <jas@extundo.com>
70037
70038         * lib/arcfour.h, lib/arcfour.c: New files.
70039
70040 2005-10-14  Roland McGrath  <roland@redhat.com>
70041
70042         Import from libc.  [BZ #1331]
70043         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70044         macro argument.
70045         Reported by Matej Vela <vela@debian.org>.
70046
70047 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70050         include <wchar.h>; no longer needed.
70051
70052 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70055
70056 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70057         and  Ulrich Drepper  <drepper@redhat.com>
70058
70059         Import from libc.
70060         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70061         instead of inline stream orientation test and two separate
70062         function calls.  Pay no attention to USE_IN_LIBIO.
70063
70064 2005-10-13  Simon Josefsson  <jas@extundo.com>
70065
70066         * modules/gc-hmac-md5-tests: New file.
70067
70068         * tests/test-gc-hmac-sha1.c: New file.
70069
70070         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70071
70072         * modules/gc-hmac-md5-tests: New file.
70073
70074         * tests/test-gc-md5.c: New file.
70075
70076         * modules/gc-md5-tests: New file.
70077
70078 2005-10-13  Simon Josefsson  <jas@extundo.com>
70079
70080         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70081         Move memory allocation outside of loop.
70082
70083 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70086         intermediate directory is in a read-only file system.  Problem
70087         reported by Eric Blake.
70088
70089 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70090
70091         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70092
70093 2005-10-12  Simon Josefsson  <jas@extundo.com>
70094
70095         * tests/test-hmac-sha1.c: New file.
70096
70097         * modules/hmac-sha1-tests: New file.
70098
70099         * modules/hmac-sha1: New file.
70100
70101 2005-10-12  Simon Josefsson  <jas@extundo.com>
70102
70103         * modules/gc-sha1: New file.
70104
70105 2005-10-12  Simon Josefsson  <jas@extundo.com>
70106
70107         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70108
70109         * tests/test-gc-pbkdf2-sha1.c: New file.
70110
70111 2005-10-12  Simon Josefsson  <jas@extundo.com>
70112
70113         * modules/gc-md5, modules/gc-hmac-md5: New files.
70114
70115         * modules/gc (Files): Remove md5, memxor and hmac files.
70116
70117 2005-10-12  Simon Josefsson  <jas@extundo.com>
70118
70119         * m4/gc-pbkdf2-sha1.m4: New file.
70120
70121         * m4/gc-hmac-sha1.m4: New file.
70122
70123         * m4/gc-sha1: New file.
70124
70125         * m4/hmac-sha1.m4: New file.
70126
70127 2005-10-12  Simon Josefsson  <jas@extundo.com>
70128
70129         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70130
70131         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70132
70133 2005-10-12  Simon Josefsson  <jas@extundo.com>
70134
70135         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70136         suggested by Bruno Haible <bruno@clisp.org>.
70137
70138 2005-10-12  Simon Josefsson  <jas@extundo.com>
70139
70140         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70141
70142 2005-10-12  Simon Josefsson  <jas@extundo.com>
70143
70144         * lib/gc-pbkdf2-sha1.c: New file.
70145
70146         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70147
70148 2005-10-12  Simon Josefsson  <jas@extundo.com>
70149
70150         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70151
70152         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70153
70154 2005-10-12  Simon Josefsson  <jas@extundo.com>
70155
70156         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70157         GC_USE_HMAC_MD5, respectively.
70158
70159         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70160         (gc_md5): Fix typo.
70161
70162         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70163
70164         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70165
70166         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70167
70168 2005-10-12  Bruno Haible  <bruno@clisp.org>
70169
70170         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70171         Reported by Stepan Kasal <kasal@ucw.cz>.
70172
70173 2005-10-11  Simon Josefsson  <jas@extundo.com>
70174
70175         * tests/test-crc.c: New file.
70176
70177         * modules/crc, modules/crc-tests: New files.
70178
70179 2005-10-11  Simon Josefsson  <jas@extundo.com>
70180
70181         * m4/crc.m4: New file.
70182
70183 2005-10-11  Simon Josefsson  <jas@extundo.com>
70184
70185         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70186
70187         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70188
70189         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70190
70191 2005-10-11  Simon Josefsson  <jas@extundo.com>
70192
70193         * lib/crc.h, lib/crc.c: New files.
70194
70195         * lib/gc.h (gc_hash_buffer): Add doc.
70196
70197 2005-10-11  Bruno Haible  <bruno@clisp.org>
70198
70199         * modules/c-strcasestr: New file.
70200         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70201
70202 2005-10-11  Bruno Haible  <bruno@clisp.org>
70203
70204         * modules/c-strcase: New file.
70205         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70206
70207 2005-10-11  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/strcasecmp.c: Include limits.h.
70210         (strcasecmp): Avoid integer overflow on exotic platforms.
70211         * lib/strncasecmp.c: Include limits.h.
70212         (strncasecmp): Avoid integer overflow on exotic platforms.
70213         Reported by Paul Eggert.
70214
70215 2005-10-11  Bruno Haible  <bruno@clisp.org>
70216
70217         * lib/c-strcasestr.h: New file, from GNU gettext.
70218         * lib/c-strcasestr.c: New file, from GNU gettext.
70219
70220 2005-10-11  Bruno Haible  <bruno@clisp.org>
70221
70222         * lib/c-strcase.h: New file, from GNU gettext.
70223         * lib/c-strcasecmp.c: New file, from GNU gettext.
70224         * lib/c-strncasecmp.c: New file, from GNU gettext.
70225
70226 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * modules/mempcpy (License): GPL -> LGPL.
70229         * modules/strchrnul (License): Likewise.
70230         * modules/sysexits (License): Likewise.
70231
70232 2005-10-08  Simon Josefsson  <jas@extundo.com>
70233
70234         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70235
70236 2005-10-07  Simon Josefsson  <jas@extundo.com>
70237
70238         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70239
70240 2005-10-06  Simon Josefsson  <jas@extundo.com>
70241
70242         * tests/test-hmac-md5.c: New file.
70243
70244         * modules/hmac-md5-tests: New file.
70245
70246         * modules/hmac-md5: New file.
70247
70248 2005-10-06  Simon Josefsson  <jas@extundo.com>
70249
70250         * m4/hmac-md5.m4: New file.
70251
70252         * m4/memxor.m4: Require gl_C_RESTRICT.
70253
70254 2005-10-06  Simon Josefsson  <jas@extundo.com>
70255
70256         * lib/memxor.c (memxor): Avoid casts and warnings.
70257
70258 2005-10-06  Simon Josefsson  <jas@extundo.com>
70259
70260         * lib/hmac-md5.c: New file.
70261
70262         * lib/hmac.h: New file.
70263
70264 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70265
70266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70267         promotes to int, not unsigned int, to catch the AIX 5.3
70268         compiler bug.
70269
70270 2005-10-05  Simon Josefsson  <jas@extundo.com>
70271
70272         * modules/memxor: New file.
70273
70274         * modules/iconv (Files): Move config.rpath to havelib, it is used
70275         there.
70276
70277         * modules/havelib (Files): Add config.rpath.
70278
70279 2005-10-05  Simon Josefsson  <jas@extundo.com>
70280
70281         * m4/memxor.m4: New file.
70282
70283 2005-10-05  Simon Josefsson  <jas@extundo.com>
70284
70285         * lib/memxor.c (memxor): Fix compiler error.
70286
70287         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70288         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70289
70290         * lib/memxor.h, lib/memxor.c: New files.
70291
70292         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70293         we assume all systems have it, suggested by Jim Meyering
70294         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70295         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70296         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70297         same reasons.
70298
70299 2005-10-05  Simon Josefsson  <jas@extundo.com>
70300
70301         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70302
70303 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70306         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70307         needed, since the source code now assumes these .h files.
70308
70309 2005-10-05  Derek Price  <derek@ximbiot.com>
70310
70311         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70312
70313 2005-10-05  Bruno Haible  <bruno@clisp.org>
70314
70315         * modules/stdint (License): Change to LGPL.
70316
70317 2005-10-04  Simon Josefsson  <jas@extundo.com>
70318
70319         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70320         D. Baushke" <mdb@gnu.org>.
70321
70322 2005-10-04  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/verify.h (verify_true): Provide alternative definition for C++.
70325
70326 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70329         (SSIZE_MAX): New macro, if not already defined.
70330         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70331         than 2 GiB.
70332
70333 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         Sync from coreutils.
70336         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70337         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70338         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70339         ULLONG_MAX doesn't work with 2.7.2.1.
70340
70341 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70344         From Ben Pfaff.
70345
70346         * modules/exclude (Depends-on): Depend on verify.
70347         * modules/strtoimax (Depends-on): Likewise.
70348         * modules/utimecmp (Depends-on): Likewise.
70349
70350 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         * lib/exclude.c: Include verify.h.
70353         (verify): Remove.  All callers changed to use verify.h's version.
70354         * lib/strtoimax.c: Likewise.
70355         * lib/utimecmp.c: Likewis.e
70356
70357         Sync from coreutils.
70358         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70359         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70360         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70361         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70362         bother returning ENOSYS if settimeofday or stime fails; just let
70363         them return whatever errno they want to return.
70364         * lib/utimens.c: Include unistd.h, for dup2.
70365         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70366         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70367
70368 2005-10-02  Jim Meyering  <jim@meyering.net>
70369
70370         Sync from coreutils.
70371         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70372         from glibc-2.2.5 that fails for read-only files.
70373
70374 2005-10-02  Jim Meyering  <jim@meyering.net>
70375
70376         Sync from coreutils.
70377         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70378         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70379         `#if HAVE_CONFIG_H'.
70380         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70381         Remove AT_FDCWD test.
70382         Do not consume the fd unless successful.
70383         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70384         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70385         block, so that we don't even try to compile it if settimeofday is
70386         available.  This works around a compilation failure on OSF1 V5.1,
70387         due to stime requiring a `long int*' while tv_sec is `int'.
70388
70389 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70390
70391         Sync from coreutils.
70392         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70393         against `yes', rather than just testing for nonempty.
70394
70395 2005-10-01  Simon Josefsson  <jas@extundo.com>
70396
70397         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70398         and Darwin.
70399
70400         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70401         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70402         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70403         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70404         Check if struct addrinfo is declared.
70405
70406 2005-10-01  Simon Josefsson  <jas@extundo.com>
70407
70408         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70409         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70410         AI_* and EAI_* definitions.  Protect function declarations.
70411
70412 2005-10-01  Jim Meyering  <jim@meyering.net>
70413
70414         Sync from coreutils.
70415
70416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70417         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70418         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70420         in the inet and nsl libraries.  Required on Solaris 5.7.
70421
70422 2005-10-01  Jim Meyering  <jim@meyering.net>
70423
70424         Sync from coreutils.
70425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70426         in the inet and nsl libraries.  Required on Solaris 5.7.
70427
70428 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70429
70430         * lib/getdelim.c (getdelim): Remove unused variables.
70431
70432 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70433
70434         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70435         so that the code works even with ancient cpp.  Portability problem
70436         with GCC 2.7.2.1 reported by Thomas M.Ott.
70437
70438 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * modules/regex (Depends-on): Add strcase.
70441
70442         * modules/gethostname (Licence): Change from GPL to LGPL, since
70443         gethostname.c is a trivial implementation of a standard library
70444         function.
70445         * modules/poll (License): Change from GPL to LGPL, since it's
70446         derived from LGPL code.
70447
70448 2005-09-27  Jim Meyering  <jim@meyering.net>
70449
70450         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70451         HAVE_CONFIG_H.
70452
70453         * lib/intprops.h (signed_type_or_expr__): Define.
70454         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70455         for unsigned types.
70456
70457 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * lib/verify.h (verify_expr): Remove, replacing with:
70460         (verify_true): New macro that returns true instead of void.
70461         (verify_type__): Remove.
70462         (verify): Use verify_true rather than verify_type__.
70463
70464 2005-09-26  Bruno Haible  <bruno@clisp.org>
70465
70466         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70467         is necessary.
70468         (lib_SOURCES): Remove mbchar.c.
70469         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70470         (Files): Add m4/mbrtowc.m4.
70471         * modules/mbiter: Likewise.
70472         * modules/mbuiter: Likewise.
70473
70474 2005-09-26  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70477         compile mbchar.c if they are not both present.
70478         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70479         * m4/mbiter.m4 (gl_MBITER): Likewise.
70480         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70481         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70482         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70483
70484 2005-09-25  Jim Meyering  <jim@meyering.net>
70485
70486         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70487         also uses socklen_t.
70488
70489 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * lib/utimens.c (ENOSYS): Define if not already defined.
70492         (futimens): Support having a null PATH if the file descriptor
70493         is nonnegative.
70494
70495         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70496         Remove.
70497         (__attribute): Define to empty unless GCC 3.1 or later.
70498         This works around a core dump on OpenBSD 3.4, which has GCC
70499         2.95.3, which dumps core when given __attribute__(()).  It also
70500         simplifies other tests, since we really don't want to bother with
70501         worrying about which ancient version of GCC supported what.
70502         Original problem reported by Yoann Vandoorselaere, with part of
70503         the fix suggested by Derek Price.
70504
70505 2005-09-24  Jim Meyering  <jim@meyering.net>
70506
70507         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70508         so we can once again use a positive bitfield width of 1 -- now we
70509         don't have to explain why we were using a bitfield width of 2.
70510
70511 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70514         and similarly for the other external symbols.  Problem reported
70515         by James Gallager.
70516
70517         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70518         bug reported by Jim Meyering.
70519
70520         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70522         not needed, since socklen is a prerequisite module.
70523
70524 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70527         Problem reported by Eric Blake.
70528         (getaddrinfo): Initialize se so that it's not garbage.
70529         Redo internal storage allocation so that it doesn't make unportable
70530         assumptions about alignment.
70531         Fix a memory leak.
70532
70533         * lib/utimens.c (futimens): Use futimesat if available.
70534         Prefer it to futimes since it doesn't have the futimes bug.
70535
70536         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70537         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70538         Instead, declare a function that returns a pointer to an array,
70539         and use verify_type__ to declare the size of the array.
70540         Problem and germ of a solution reported by Bruno Haible.
70541         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70542         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70543
70544 2005-09-23  Jim Meyering  <jim@meyering.net>
70545
70546         Sync from coreutils.
70547         Correct build failure (socklen_t not defined) on at least
70548         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70550
70551 2005-09-23  Jim Meyering  <jim@meyering.net>
70552
70553         * modules/getaddrinfo (Depends-on): Add socklen.
70554
70555 2005-09-23  Bruno Haible  <bruno@clisp.org>
70556
70557         * tests/test-verify.c: New file.
70558
70559 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         Sync from coreutils.
70562
70563         * modules/argmatch (Depends-on): Add verify.
70564         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70565         unistd-safer.
70566         * modules/save-cwd (Depends-on): Likewise.
70567
70568         * modules/openat (Files): Add lib/openat-die.c.
70569         (Depends-on): Remove error, exitfail.
70570         Add dirname.
70571
70572         * modules/verify: New file.
70573         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70574         with "verify" module.
70575
70576 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70577
70578         Sync from coreutils.
70579
70580         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70581         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70582         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70583         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70584         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70585         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70586         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70587         Don't bother checking for string.h, stdlib.h, unistd.h.
70588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70590         module's job.
70591         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70592         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70593
70594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70595         (gl_GETDATE): Use it.
70596
70597         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70598
70599 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         Sync from coreutils.
70602
70603         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70604         stat-time.h.
70605         * lib/argmatch.h: Include verify.h
70606         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70607         (ARGMATCH_ASSERT): Remove; unused.
70608         * lib/canonicalize.c: Assume STDC_HEADERS.
70609         * lib/exclude.c: Include "strcase.h".
70610         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70611         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70612         and stdio-safer.h.
70613         (getusershell): Call fopen, not fopen_safer.
70614         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70615         Do not include unistd-safer.h.
70616         (save_cwd): Don't call fd_safer; no longer needed
70617         now that we include fcntl--.h.
70618
70619         * lib/getdate.y (relative_time): New type.
70620         (RELATIVE_TIME_0): New constant.
70621         (parser_control): Use relative_time instead of doing it ourselves.
70622         (%union): Add new relative_time rel member.
70623         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70624         Now typeless.
70625         (relunit, relunit_snumber): Now of type rel.
70626         (zone, rel, relunit, get_date): Adjust to above changes.
70627
70628         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70629         Do not include unistd-safer.h.
70630         (getloadavg): Don't call fd_safer; no longer needed
70631         now that we include fcntl--.h.
70632
70633         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70634         (make_dir_parents): Treat ENOSYS like EEXIST.
70635
70636         Improve quality of diagnostics on restore_cwd failure.
70637         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70638         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70639         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70640         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70641         each time through the loop.  Do not diagnose restore_cwd failure;
70642         that is the caller's job (and perhaps the caller does not care).
70643
70644         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70645         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70646         If the file already exists but is not a directory, don't bother
70647         to try to make its parents.
70648         Close potential file descriptor leak if we can't chdir("/") (!).
70649         Don't always return true if chdir($PWD) fails; return true only
70650         if the requested action was done successfully (except for the
70651         chdir($PWD)).
70652         Don't log final directory unless we actually made it.
70653         Refactor to avoid duplicate code to fix up permissions.
70654         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70655
70656         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70657         to make it a bit faster and (I hope) clearer.
70658         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70659         Fix bug in formats like %2N.
70660
70661         * lib/verify.h: New file.
70662
70663 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         Sync from coreutils.
70666         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70667
70668 2005-09-22  Jim Meyering  <jim@meyering.net>
70669
70670         Sync from coreutils.
70671
70672         * m4/lstat.m4 (gl_FUNC_LSTAT):
70673         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70674         Remove obsolete comment.
70675         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70676         * m4/xstrtod.m4: Likewise.
70677
70678         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70679
70680 2005-09-22  Jim Meyering  <jim@meyering.net>
70681
70682         Sync from coreutils.
70683
70684         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70685
70686         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70687         the .tm_year member, since otherwise gcc-4.0 would now warn about
70688         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70689
70690         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70691         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70692
70693         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70694         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70695         when run in a time zone for which daylight savings time is in effect
70696         for the starting date.
70697
70698         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70699         stop us from restricting permissions of just-created absolute-named
70700         directories.
70701         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70702         to restore initial working directory.
70703         * lib/mkdir-p.c (make_dir_parents): New parameter:
70704         different_working_dir, to tell caller if/when we change the working
70705         directory and are unable to return to the initial one.
70706         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70707         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70708         `return false'.  This fixes a bug introduced on 2004-07-30.
70709
70710         * lib/openat.c (fdopendir): Be sure to close the supplied
70711         file descriptor before returning.  This makes our replacement
70712         implementation a little closer to Solaris's, where fdopendir
70713         ties the file descriptor to the returned DIR* pointer.
70714         * lib/openat.c (unlinkat): New function.
70715         * lib/openat.h (unlinkat): Add prototype.
70716         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70717         (openat_restore_fail): Rename from openat_restore_die.
70718         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70719
70720         Provide an alternative to exiting immediately upon save_cwd or
70721         restore_cwd failure.  Now, an application can arrange e.g.,
70722         to perform a longjump in that case.
70723         * lib/openat.c: Include dirname.h.
70724         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70725         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70726         and openat_restore_die rather than calling error directly.
70727         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70728
70729         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70730         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70731         define.
70732
70733         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70734         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70735                             int utc, int nanoseconds);
70736         Background:
70737         date should not have to allocate a megabyte of virtual memory to
70738         handle a format argument like +%1048575T.  When implemented with
70739         strftime, it must allocate such a buffer, use strftime to fill it
70740         in, print it, then free it.
70741         With fprintftime, it simply prints everything and exits.
70742         With no need for memory allocation, that's one fewer way to fail.
70743         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70744         optional field width, not before, so we accept %9:z, not %:9z.
70745         (my_strftime): Be sure to use L_('x') for literals.
70746
70747         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70748         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70749         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70750         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70751         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70752         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70753         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70754         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70755         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70756         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70757         * lib/xgethostname.c, lib/xreadlink.c:
70758         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70759
70760         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70761         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70762         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70763         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70764         and don't include <sys/file.h>).
70765
70766 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70767
70768         Sync from coreutils.
70769
70770         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70771         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70772         [!LDAV_DONE]: Avoid unused variable warning.
70773
70774 2005-09-21  Bruno Haible  <bruno@clisp.org>
70775
70776         * lib/unicodeio.h (unicode_to_mb): New declaration.
70777
70778 2005-09-20  Derek Price  <derek@ximbiot.com>
70779
70780         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70781         getaddrinfo.h.
70782
70783 2005-09-20  Bruno Haible  <bruno@clisp.org>
70784
70785         * gnulib-tool: Remove trailing slashes from the values specified for
70786         --source-base, --m4-base, --tests-base, --aux-dir.
70787         Suggested by Simon Josefsson <jas@extundo.com>.
70788
70789 2005-09-20  Bruno Haible  <bruno@clisp.org>
70790
70791         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70792         func_modules_to_filelist, func_import, func_create_testdir): Make all
70793         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70794         change when gnulib-tool is invoked in a different locale.
70795
70796 2005-09-19  Simon Josefsson  <jas@extundo.com>
70797
70798         * m4/socklen.m4: Fix typo.
70799
70800 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70801
70802         Use a consistent style for including <config.h>.
70803         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70804         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70805         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70806         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70807         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70808         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70809         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70810         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70811         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70812         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70813         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70814         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70815         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70816         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70817         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70818         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70819         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70820         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70821         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70822         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70823         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70824         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70825         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70826         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70827         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70828         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70829         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70830         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70831         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70832         lib/xstrtoumax.c, lib/yesno.c:
70833         Standardize inclusion of config.h.
70834         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70835         lib/inttostr.h:  Removed inclusion of config.h from header files.
70836         * lib/inttostr.c:  Adjusted in-tree users.
70837         * lib/timespec.h: Remove superfluous warning to include config.h.
70838         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70839         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70840         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70841         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70842         config.h with HAVE_CONFIG_H.
70843
70844 2005-09-19  Jim Meyering  <jim@meyering.net>
70845
70846         * modules/pathmax (License): Change to LGPL.
70847
70848 2005-09-19  Derek Price  <derek@ximbiot.com>
70849
70850         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70851
70852 2005-09-19  Bruno Haible  <bruno@clisp.org>
70853
70854         * gnulib-tool (import): Provide default for --tests-base.
70855
70856 2005-09-19  Bruno Haible  <bruno@clisp.org>
70857
70858         * doc/quote.texi: New file, extracted from gnulib.texi.
70859         * doc/ctime.texi: New file, extracted from gnulib.texi.
70860         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70861         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70862         * doc/gnulib.texi: Include them.
70863
70864 2005-09-18  Bruno Haible  <bruno@clisp.org>
70865
70866         Portability fix.
70867         * gnulib-tool (func_readlink): New function.
70868         (func_ln_if_changed): Use it.
70869
70870 2005-09-18  Bruno Haible  <bruno@clisp.org>
70871
70872         * gnulib-tool: Support --with-tests also with --import.
70873         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70874         (func_import): Use variables $testsbase and $inctests. Emit a
70875         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70876         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70877         SUBDIRS += $testsdir.
70878         (func_create_testdir): Update.
70879
70880 2005-09-18  Bruno Haible  <bruno@clisp.org>
70881
70882         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70883         instead of $dry_run.
70884         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70885         (func_ln_if_changed): Don't handle dry-run here.
70886         (func_import): In dry-run mode, detect more precisely which actions
70887         would be performed, and don't use "...ing" verbs.
70888
70889 2005-09-18  Bruno Haible  <bruno@clisp.org>
70890
70891         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70892         (func_import): Use join on two temporary files instead of three nested
70893         loops, in order to determine which files are new or old.
70894
70895 2005-09-18  Bruno Haible  <bruno@clisp.org>
70896
70897         * gnulib-tool (func_import): Comment out code that spits out the
70898         new files with --dry-run.
70899
70900 2005-09-18  Bruno Haible  <bruno@clisp.org>
70901
70902         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70903
70904 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * lib/stat-time.h: New file.
70907         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70908         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70909         in a different way.
70910         (timespec_cmp): New function.
70911         * lib/utimecmp.c: Include stat-time.h.
70912         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70913         members exist, not on the obsolescent ST_MTIM_NSEC.
70914         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70915
70916 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70919
70920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * MODULES.html.sh (File system functions): Add stat-time.
70923         * modules/stat-time: New file.
70924         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70925         is now done in a different way, by the stat-time module.
70926         * modules/utimecmp (Depends-on): Add stat-time.
70927
70928 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * m4/st_mtim.m4: Remove.  Superseded by...
70931         * m4/stat-time.m4: New file.
70932         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70933         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70934
70935 2005-09-15  Derek Price  <derek@ximbiot.com>
70936
70937         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70938
70939 2005-09-15  Derek Price  <derek@ximbiot.com>
70940
70941         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70942         * lib/regex_internal.c: Ditto, using this...
70943         (__GNUC_PREREQ): ...new macro.
70944         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70945         using...
70946         (__GNUC_PREREQ): ...this new macro.
70947
70948         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70949
70950 2005-09-15  Derek Price  <derek@ximbiot.com>
70951             Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70954         changes, consolidating in...
70955         * lib/regex_internal.h: ...this file.
70956
70957 2005-09-13  Jim Meyering  <jim@meyering.net>
70958
70959         * lib/canon-host.c: Filter through gnu indent and reword comments
70960         slightly.
70961         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70962
70963 2005-09-13  Derek Price  <derek@ximbiot.com>
70964
70965         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70966         failure.
70967         Reported by Jim Meyering  <jim@meyering.net>.
70968
70969 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70970
70971         * lib/base64.c: Typo.
70972         (base64_encode): Put b64str in initialized data section.
70973
70974 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         Merge glibc and coreutils changes into gnulib, plus a few
70977         extra fixes.
70978         * lib/md5.c: Use #error rather than a string.
70979         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70980         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70981         (__attribute__): Define to empty for non recent-GCC.
70982         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70983         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70984         Renamed from their non-__ counterparts, with new macros replacing
70985         them if not _LIBC.  Add __THROW attribute.
70986         (rol): Remove.
70987         (struct md5_ctx): Align buffer if using GCC.
70988         * lib/sha1.h (struct sha1_ctx): Likewise.
70989         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70990         The old name was backwards.
70991         (NOTSWAP): Remove; not used.
70992         (rol): New macro, moved here from md5.h.
70993         (sha1_process_block): Remove a FIXME that doesn't make sense.
70994
70995 2005-09-12  Derek Price  <derek@ximbiot.com>
70996
70997         Return usable errors from canon-host.
70998         * lib/canon-host.h: New file.
70999         * lib/canon-host.c (canon_host): Wrap...
71000         (canon_host_r): ...this new function, which now relies exclusively on
71001         getaddrinfo.
71002         (ch_strerror): New function.
71003         (last_cherror): New global.
71004         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71005         interface.
71006         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71007         void *.
71008         (freeaddrinfo): Free ai->ai_canonname when set.
71009
71010 2005-09-12  Derek Price  <derek@ximbiot.com>
71011
71012         Make canon-host require getaddrinfo.
71013         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71014         AC_LIBSOURCE canon-host.h.  Call...
71015         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71016         gl_GETADDRINFO.
71017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71018
71019 2005-09-12  Derek Price  <derek@ximbiot.com>
71020
71021         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71022         LGPL.
71023         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71024
71025 2005-09-12  Derek Price  <derek@ximbiot.com>
71026
71027         * lib/gai_strerror.c: Include config.h when available.  Include
71028         getaddrinfo.h before other headers to test interface.
71029         Reported by Larry Jones <lawrence.jones@ugs.com>.
71030
71031 2005-09-12  Derek Price  <derek@ximbiot.com>
71032             Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         * modules/glob (Files): Add glob-libc.h.
71035
71036 2005-09-12  Derek Price  <derek@ximbiot.com>
71037             Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71040         glob_.h, glob-libc.h.
71041         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71042
71043 2005-09-12  Derek Price  <derek@ximbiot.com>
71044             Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71047         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71048         protecting things that should be done only in gnulib contexts.
71049         * lib/glob_.h: New file, containing only the glob things needed for
71050         gnulib.
71051         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71052         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71053         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71054         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71055         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71056         and to respect the namespace rules better.
71057
71058 2005-09-08  Simon Josefsson  <jas@extundo.com>
71059
71060         * modules/socklen: New file.
71061
71062 2005-09-08  Simon Josefsson  <jas@extundo.com>
71063
71064         * m4/socklen.m4: New file.
71065
71066 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * modules/utimens (Files): Add m4/utimbuf.m4, since
71069         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71070         Reported by Sergey Poznyakoff.
71071
71072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71075         definitions, since that's the preferred style in glibc.
71076         Fix a minor spacing issue, and update copyright notice to match
71077         glibc's.
71078
71079 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71082
71083 2005-09-06  Simon Josefsson  <jas@extundo.com>
71084
71085         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71086         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71087
71088 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71091         warning.
71092
71093 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * config/srclist.txt: Add glibc bug 1302.
71096
71097 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         Change bitset word type from unsigned int to unsigned long int,
71100         as this has better performance on typical 64-bit hosts.
71101         Port bitset code to hosts with unusual word sizes.
71102         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71103         (build_collating_symbol):
71104         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71105         argument is a bitset.  This is merely a style issue, but it makes
71106         it clearer that an entire array is expected.
71107         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71108         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71109         Port to the case where bitset_word is not the same as unsigned int.
71110         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71111         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71112         Likewise.
71113         * lib/regexec.c (check_dst_limits_calc_pos_1,
71114         check_subexp_matching_top):
71115         (build_trtable, group_nodes_into_DFAstates):
71116         Likewise.
71117         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71118         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71119         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71120         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71121         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71122         * lib/regcomp.c (optimize_subexps, lower_subexp):
71123         Work even if bitset_word has holes in its bitwise representation.
71124         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71125         * lib/regexec.c (check_dst_limits_calc_pos_1,
71126         check_subexp_matching_top):
71127         Likewise.
71128         * lib/regex_internal.c (re_string_reconstruct):
71129         Don't assume UCHAR_MAX == 255.
71130         * lib/regex_internal.h (bitset_set_all): Likewise.
71131         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71132         All uses changed.
71133         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71134         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71135         All uses changed.
71136         (BITSET_WORD_MAX): New macro.
71137         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71138         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71139         (bitset_empty, bitset_copy):
71140         Prefer sizeof (bitset) to multiplying it out ourselves.
71141         (bitset_not_merge): Remove; unused.
71142         (bitset_contain): Return bool, not unsigned int with one bit on.
71143         All callers changed.
71144         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71145         alignment than re_node_set; do this by defining a new internal
71146         type struct dests_alloc and using it to allocate memory.
71147
71148 2005-09-05  Bruno Haible  <bruno@clisp.org>
71149
71150         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71151         links.
71152
71153 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71154
71155         * modules/size_max (Makefile.am): Add size_max.h
71156
71157 2005-09-04  Derek Price  <derek@ximbiot.com>
71158
71159         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71160
71161 2005-09-03  Simon Josefsson  <jas@extundo.com>
71162
71163         * gnulib-tool: Fix typo.
71164
71165 2005-09-03  Simon Josefsson  <jas@extundo.com>
71166
71167         * config/srclist.txt: Add glibc bug 1293.
71168
71169 2005-09-03  Derek Price  <derek@ximbiot.com>
71170
71171         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71172         From Larry Jones <lawrence.jones@ugs.com>.
71173
71174 2005-09-02  Simon Josefsson  <jas@extundo.com>
71175
71176         * modules/socklen: New file.
71177
71178 2005-09-02  Simon Josefsson  <jas@extundo.com>
71179
71180         * modules/havelib: New module.
71181
71182         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71183         Use havelib.
71184
71185 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         Check for arithmetic overflow when calculating sizes, to prevent
71188         some buffer-overflow issues.  These patches are conservative, in the
71189         sense that when I couldn't determine whether an overflow was possible,
71190         I inserted a run-time check.
71191         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71192         macros.
71193         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71194         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71195         (re_xnrealloc, re_x2nrealloc): New inline functions.
71196         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71197         parse_bracket_exp):
71198         (build_equiv_class, build_charclass): Check for arithmetic overflow
71199         in size expression calculations.
71200         * lib/regex_internal.c (re_string_realloc_buffers):
71201         (build_wcs_upper_buffer, re_node_set_add_intersect):
71202         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71203         (re_dfa_add_node, register_state): Likewise.
71204         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71205         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71206         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71207         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71208
71209 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71212         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71213
71214 2005-09-02  Bruno Haible  <bruno@clisp.org>
71215
71216         Support for lib vs. lib64 distinction on biarch platforms.
71217         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71218         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71219         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71220
71221 2005-09-02  Bruno Haible  <bruno@clisp.org>
71222
71223         * gnulib-tool (import): In the other first-use case, provide defaults
71224         as well.
71225
71226 2005-09-02  Bruno Haible  <bruno@clisp.org>
71227
71228         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71229         patches not yet found in the latest gettext release.
71230
71231 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71234         to avoid a collision with bits/local_lim.h in glibc.
71235         All uses changed.  Problem reported by Dmitry V. Levin in
71236         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71237
71238         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71239         bugs in int versus size_t comparisons.
71240         (re_string_context_at): Fix bug where the code assumed that
71241         Idx is signed.
71242
71243         Use bool where appropriate.
71244         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71245         All callers changed.
71246         (calc_eclosure_iter): Likewise, for ROOT arg.
71247         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71248         (build_charclass_op): Likewise, for NON_MATCH arg.
71249         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71250         (re_string_construct_common): Likewise, for ICASE arg.
71251         * lib/regexec.c (re_search_2_stub, re_search_stub):
71252         Likewise, for RET_LEN arg.
71253         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71254         (set_regs): Likewise, for FL_BACKTRACK arg.
71255         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71256         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71257         (calc_eclosure_iter, parse_bracket_exp):
71258         Use bool for internal variables that are booleans.
71259         * lib/regexec.c (re_search_internal, check_matching,
71260         proceed_next_node):
71261         (set_regs, build_sifted_states, sift_states_bkref):
71262         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71263         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71264         (find_collation_sequence_value):
71265         Likewise.
71266         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71267         (re_node_set_compare):
71268         Return bool, not int. All callers changed.
71269         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71270         (build_trtable, check_node_accept): Likewise.
71271         * lib/regex_internal.h: Include stdbool.h.
71272
71273         Fix bugs uncovered when converting to bool.
71274         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71275         failure instead of charging ahead blindly.
71276         * lib/regex_internal.c (register_state): Likewise.
71277         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71278         for freeing internal storage.
71279         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71280         bitset pieces used as boolean, to avoid undefined behavior
71281         on hosts that do int overflow checking.
71282
71283 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * config/srclist.txt: Add glibc bugs 1285-1287.
71286
71287 2005-09-01  Jim Meyering  <jim@meyering.net>
71288
71289         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71290         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71291         Require gl_STAT_MACROS, too.
71292
71293 2005-09-01  Bruno Haible  <bruno@clisp.org>
71294
71295         * gnulib-tool (import): In the first-use case, provide defaults.
71296
71297 2005-09-01  Bruno Haible  <bruno@clisp.org>
71298
71299         * gnulib-tool (func_import): Remove the .tmp files.
71300
71301 2005-09-01  Bruno Haible  <bruno@clisp.org>
71302
71303         * gnulib-tool (func_import): Fix handling of symbolic links.
71304
71305 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71308         old glibc regex code mishandles strings longer than 2**31 bytes.
71309         This patch fixes this when the regex code is used in gnulib
71310         (i.e., outside glibc).
71311
71312         This patch should not affect the use of the regex code inside
71313         glibc.  No doubt this problem also needs to be handled for glibc
71314         as well, but the result will be an incompatible change to the
71315         glibc ABI, and the old ABI will have to be supported too.  That
71316         can be the the subject for another patch.
71317
71318         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71319         governing whether the rest of this patch is active.  By default,
71320         the macro is disabled and the patch has no effect.
71321         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71322         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71323         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71324         (re_match_2, re_set_registers): Use the new types.
71325         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71326         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71327         New macros.
71328         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71329         (re_string_context_at, bin_tree_t, re_dfastate_t):
71330         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71331         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71332         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71333         (re_string_char_size_at, re_string_wchar_at):
71334         (re_string_elem_size_at):
71335         Use the new types and macros to port to 64-bit hosts.
71336         Use unsigned types for internal values, so that the code
71337         mostly works even for arrays larger than SSIZE_MAX.
71338         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71339         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71340         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71341         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71342         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71343         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71344         (calc_inveclosure, parse_dup_op, build_range_exp):
71345         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71346         (fetch_number, create_token_tree, mark_opt_subexp):
71347         Likewise.
71348         * lib/regex_internal.c (re_string_construct_common,
71349         create_ci_newstate):
71350         (create_cd_newstate, re_string_allocate, re_string_construct):
71351         (re_string_realloc_buffers, build_wcs_upper_buffer):
71352         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71353         (re_string_reconstruct, re_string_peek_byte_case):
71354         (re_string_fetch_byte_case, re_string_context_at):
71355         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71356         (re_node_set_init_copy, re_node_set_add_intersect):
71357         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71358         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71359         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71360         (re_acquire_state, re_acquire_state_context, register_state):
71361         Likewise.
71362         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71363         search_cur_bkref_entry):
71364         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71365         (re_search_internal, re_search_2_stub, re_search_stub)
71366         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71367         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71368         (update_cur_sifted_state, check_dst_limits):
71369         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71370         (check_subexp_limits, sift_states_bkref, merge_state_array):
71371         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71372         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71373         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71374         (expand_bkref_cache, check_node_accept_bytes):
71375         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71376         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71377         (acquire_init_state_context, check_halt_node_context):
71378         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71379         (sift_states_backward, clean_state_log_if_needed):
71380         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71381         (find_recover_state, transit_state_sb, transit_state_mb):
71382         (transit_state_bkref, build_trtable, match_ctx_clean):
71383         Likewise.
71384         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71385         to work around an assumption that REG_MISSING is negative.
71386
71387         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71388         (seek_collating_symbol_entry) [defined _LIBC]:
71389         (lookup_collation_sequence_value) [defined _LIBC]:
71390         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71391         Use prototypes rather than old-style function definitions.
71392         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71393         (transit_state_sb) [0]:
71394         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71395
71396         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71397         rm_eo.
71398
71399         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71400         (optimize_subexps, lower_subexp):
71401         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71402         since the signed shift might overflow.  Use 1u<<31 instead.
71403         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71404         Likewise.
71405         * lib/regexec.c (check_dst_limits_calc_pos_1,
71406         check_subexp_matching_top): Likewise.
71407
71408         * lib/regcomp.c (optimize_subexps, lower_subexp):
71409         Use CHAR_BIT rather than 8, for clarity.
71410         * lib/regexec.c (check_dst_limits_calc_pos_1):
71411         (check_subexp_matching_top): Likewise.
71412         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71413         have to worry about portability issues when shifting it left.
71414         Remove no-longer-needed test for table_size > 0.
71415         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71416         in a word, as the resulting behavior is undefined.
71417         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71418         in one case, a <= should have been an <, and in another case the
71419         whole test was missing.
71420         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71421         the standard name CHAR_BIT.
71422         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71423         this is not true on one's complement and signed-magnitude hosts.
71424
71425         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71426         next_last_offset.
71427         (struct re_dfa_t): Remove unused member states_alloc.
71428         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71429
71430 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71433         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71434         and large-file glibc and in 32-bit large-file Solaris.
71435
71436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71439         lengths fit in regoff_t; this isn't true if regoff_t is the same
71440         width as size_t.
71441         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71442         (= START + RANGE) instead of RANGE.  This avoids overflow
71443         problems when regoff_t is the same width as size_t.
71444         All callers changed.
71445         (re_search_2_stub): Check for overflow when adding the
71446         sizes of the two strings.
71447         (re_search_stub): Check for overflow when adding START
71448         to RANGE; if it occurs, substitute the extreme value.
71449
71450 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71453
71454 2005-08-31  Jim Meyering  <jim@meyering.net>
71455
71456         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71457         a pointer-to-const.
71458         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71459         (register_state): Likewise.
71460         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71461         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71462         (group_nodes_into_DFAstates): Likewise.
71463
71464 2005-08-31  Jim Meyering  <jim@meyering.net>
71465
71466         * check-module: Add a FIXME comment.
71467
71468 2005-08-31  Eric Blake  <ebb9@byu.net>
71469
71470         * modules/unistd-safer (Files): Add unistd--.h.
71471         * modules/stdio-safer (Files): Add stdio--.h.
71472
71473 2005-08-31  Derek Price  <derek@ximbiot.com>
71474
71475         * lib/getdelim.c (getdelim): Return EOF on EOF.
71476         Reported by Larry Jones <lawrence.jones@ugs.com>.
71477
71478 2005-08-31  Bruno Haible  <bruno@clisp.org>
71479
71480         Avoid unnecessary diffs in the generated lib/Makefile.am.
71481         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71482         the generated files.
71483         (func_import): Don't set cmd.
71484
71485 2005-08-31  Bruno Haible  <bruno@clisp.org>
71486
71487         * lib/strstr.c: Include <stddef.h>, for NULL.
71488         * lib/strcasestr.c: Likewise.
71489         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71490
71491 2005-08-31  Bruno Haible  <bruno@clisp.org>
71492
71493         * gnulib-tool: New option --macro-prefix.
71494         (func_import): Use macro_prefix.
71495         (import): Handle option --macro-prefix.
71496
71497 2005-08-31  Bruno Haible  <bruno@clisp.org>
71498
71499         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71500         Also use new variables cached_lgpl, cached_libtool.
71501
71502 2005-08-31  Bruno Haible  <bruno@clisp.org>
71503
71504         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71505         always instantiating them.
71506
71507 2005-08-31  Bruno Haible  <bruno@clisp.org>
71508
71509         * gnulib-tool (func_import): Read the previous cached settings
71510         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71511         earlier added by gnulib but are now dropped. Warn when a gnulib file
71512         overwrites a non-gnulib file.
71513
71514 2005-08-31  Bruno Haible  <bruno@clisp.org>
71515
71516         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71517         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71518         projects that don't keep autogenerated files in CVS. Put into
71519         actioncmd only the specified modules, not the transitive closure.
71520
71521 2005-08-31  Bruno Haible  <bruno@clisp.org>
71522
71523         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71524         Create directories that shall be filled.
71525         (import): Don't look for gl_* macros in configure.ac. Recurse across
71526         all directories containing a gnulib-cache.m4 files, if meaningful.
71527
71528 2005-08-31  Bruno Haible  <bruno@clisp.org>
71529
71530         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71531         (import): Set seen_libtool when we see gl_LIBTOOL.
71532
71533 2005-08-31  Bruno Haible  <bruno@clisp.org>
71534
71535         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71536         declaration macro definitions from generated gnulib.m4.
71537
71538 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71539
71540         * lib/iconvme.h: Add prototype for iconv_alloc.
71541
71542 2005-08-29  Simon Josefsson  <jas@extundo.com>
71543
71544         * lib/iconvme.c: Fix errno.
71545
71546 2005-08-29  Bruno Haible  <bruno@clisp.org>
71547
71548         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71549         that it works when the directory contains spaces.
71550
71551 2005-08-29  Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71554
71555 2005-08-29  Bruno Haible  <bruno@clisp.org>
71556
71557         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71558         Emit more advice.
71559
71560 2005-08-29  Bruno Haible  <bruno@clisp.org>
71561         and Stepan Kasal  <kasal@ucw.cz>
71562
71563         * check-module: If more parameters are given, check each of them
71564         separately; add more exceptions, as noted by Jim Meyering.
71565         (check_module): New procedure.
71566         (%exempt_header): Now contains all exceptions.
71567
71568 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71569
71570         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71571
71572 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71573
71574         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71575
71576 2005-08-28  Bruno Haible  <bruno@clisp.org>
71577
71578         * m4/gnulib-tool.m4: New file.
71579
71580 2005-08-27  Jim Meyering  <jim@meyering.net>
71581
71582         * modules/unistd-safer (Files): Add pipe-safer.c.
71583         * modules/fcntl-safer (Files): Add creat-safer.c.
71584
71585 2005-08-27  Jim Meyering  <jim@meyering.net>
71586
71587         * m4/stdlib-safer.m4: New file.  From coreutils.
71588         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71589         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71590         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71591         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71592         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71593
71594 2005-08-27  Jim Meyering  <jim@meyering.net>
71595
71596         * lib/fopen-safer.c: Merge minor changes from coreutils.
71597         * lib/dup-safer.c: Likewise.
71598         * lib/fd-safer.c: Likewise.
71599
71600         Merge from coreutils.
71601         * lib/stdio--.h: New file.
71602         * lib/stdlib--.h: New file.
71603         * lib/mkstemp-safer.c: New file.
71604
71605         GNU tar needs these.
71606         * lib/pipe-safer.c: New file.
71607         * lib/creat-safer.c: New file.
71608         * lib/fcntl--.h (creat): Define to creat_safer.
71609         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71610         * lib/unistd--.h (pipe): Define to pipe_safer.
71611         * lib/unistd-safer.h: Declare pipe_safer.
71612
71613 2005-08-26  Simon Josefsson  <jas@extundo.com>
71614
71615         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71616         Haible <bruno@clisp.org>.
71617
71618 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * lib/regex_internal.h: Remove all references to
71621         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71622         or better.
71623         (bitset_not, bitset_merge, bitset_not_merge):
71624         (bitset_mask, re_string_allocate, re_string_construct):
71625         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71626         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71627         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71628         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71629         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71630         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71631         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71632         (re_acquire_state_context):
71633         Remove unnecessary forward decls.
71634         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71635         Put __attribute at function definition,
71636         now that the function decl has been removed.
71637         * lib/regex_internal.c (re_string_peek_byte_case):
71638         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71639         Likewise.
71640
71641 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71642
71643         * m4/regex.m4: Add AC_PREREQ(2.50).
71644         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71645
71646 2005-08-25  Simon Josefsson  <jas@extundo.com>
71647
71648         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71649         __fsetlocking.
71650
71651 2005-08-25  Simon Josefsson  <jas@extundo.com>
71652
71653         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71654         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71655         GLIBC specific code.
71656
71657 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         Make regex safe for g++.  This fixes one real bug (an "err"
71660         that should have been "*err").  g++ problem reported by
71661         Sam Steingold.
71662         * lib/regex_internal.h (re_calloc): New macro, consistent with
71663         re_malloc etc.  All callers of calloc changed to use re_calloc.
71664         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71665         not int.  All callers changed.
71666         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71667         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71668         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71669         (find_recover_state): Change "err" to "*err"; this fixes what
71670         appears to be a real bug.
71671         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71672         versus int.
71673
71674 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * modules/regex (Depends-on): Add malloc, since the code
71677         assumes that !malloc(0) means failure.
71678
71679 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71682
71683         alloca modernization/simplification for regex.
71684         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71685         needs to be at the start of the file, and can be moved into
71686         regex_internal.h and simplified.
71687         * lib/regex_internal.h: Include <alloca.h>.
71688         (__libc_use_alloca) [!defined _LIBC]: New macro.
71689         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71690         now works outside glibc.
71691
71692 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * config/srclist.txt: Add glibc bugs 1241, 1245.
71695
71696 2005-08-25  Jim Meyering  <jim@meyering.net>
71697
71698         * lib/open-safer.c: Include <config.h>.
71699         Otherwise, we'd lose LARGEFILE support in any file using
71700         e.g. "fcntl--.h"
71701
71702 2005-08-25  Bruno Haible  <bruno@clisp.org>
71703
71704         * m4/minmax.m4: Require autoconf 2.52.
71705         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71706         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71707         alternatives of translit over the alphabet.
71708         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71709
71710 2005-08-24  Simon Josefsson  <jas@extundo.com>
71711
71712         * tests/test-getpass.c: New file.
71713
71714 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71717         for GNU regex features.
71718
71719 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71722         * lib/regex.h (regerror): Likewise.
71723
71724         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71725         requires this.  (The code never needed it.)
71726
71727         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71728         All uses of recently-renamed identifiers changed to use the new,
71729         POSIX-compliant names.  The code will build and run just fine
71730         without these changes, but it's better to eat our own dog food
71731         and use the standard-conforming names.
71732
71733         * lib/regex.h: Fix a multitude of POSIX name space violations.
71734         These changes have an effect only for programs that define
71735         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71736         do not change anything for programs compiled in the normal way.
71737         Also, there is no effect on the ABI.
71738
71739         (_REGEX_SOURCE): New macro.
71740         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71741         defined and _GNU_SOURCE is not; this fixes a name space violation.
71742
71743         Rename the following macros to obey POSIX requirements.
71744         The old names are still visible as macros if _REGEX_SOURCE is defined.
71745         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71746         RE_BACKSLASH_ESCAPE_IN_LISTS.
71747         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71748         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71749         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71750         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71751         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71752         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71753         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71754         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71755         (REG_INTERVALS): renamed from RE_INTERVALS.
71756         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71757         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71758         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71759         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71760         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71761         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71762         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71763         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71764         RE_UNMATCHED_RIGHT_PAREN_ORD.
71765         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71766         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71767         (REG_DEBUG): renamed from RE_DEBUG.
71768         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71769         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71770         unusual, since we can't clash with the POSIX REG_ICASE.
71771         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71772         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71773         (REG_NO_SUB): renamed from RE_NO_SUB.
71774         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71775         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71776         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71777         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71778         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71779         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71780         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71781         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71782         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71783         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71784         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71785         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71786         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71787         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71788         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71789         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71790         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71791         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71792         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71793         (REG_FIXED): Renamed from REGS_FIXED.
71794         (REG_NREGS): Renamed from RE_NREGS.
71795
71796         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71797         of other REG_* macros, since POSIX says the user is allowed to
71798         #undef these macros selectively.
71799
71800         (reg_errcode_t): Update comment stating what other tables need
71801         to be consistent.
71802
71803         Rename the following enum values to obey POSIX requirements.
71804         The old names are still visible as macros.
71805         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71806         is not defined, since GNU is supposed to be a superset of POSIX as
71807         much as possible, and since we want reg_errcode_t to be a signed
71808         type for implementation consistency.
71809         (_REG_NOERROR): Renamed from REG_NOERROR.
71810         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71811         (_REG_BADPAT): Renamed from REG_BADPAT.
71812         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71813         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71814         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71815         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71816         (_REG_EBRACK): Renamed from REG_EBRACK.
71817         (_REG_EPAREN): Renamed from REG_EPAREN.
71818         (_REG_EBRACE): Renamed from REG_EBRACE.
71819         (_REG_BADBR): Renamed from REG_BADBR.
71820         (_REG_ERANGE): Renamed from REG_ERANGE.
71821         (_REG_ESPACE): Renamed from REG_ESPACE.
71822         (_REG_BADRPT): Renamed from REG_BADRPT.
71823         (_REG_EEND): Renamed from REG_EEND.
71824         (_REG_ESIZE): Renamed from REG_ESIZE.
71825         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71826         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71827         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71828         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71829         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71830
71831         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71832         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71833         changed.  But support the old name if the new one is not defined
71834         and if _REGEX_SOURCE.
71835
71836         Change the following member names in struct re_pattern_buffer.
71837         The old names are still supported if !_REGEX_SOURCE.
71838         The new names are always supported, regardless of _REGEX_SOURCE.
71839         (re_buffer): Renamed from buffer.
71840         (re_allocated): Renamed from allocated.
71841         (re_used): Renamed from used.
71842         (re_syntax): Renamed from syntax.
71843         (re_fastmap): Renamed from fastmap.
71844         (re_translate): Renamed from translate.
71845         (re_can_be_null): Renamed from can_be_null.
71846         (re_regs_allocated): Renamed from regs_allocated.
71847         (re_fastmap_accurate): Renamed from fastmap_accurate.
71848         (re_no_sub): Renamed from no_sub.
71849         (re_not_bol): Renamed from not_bol.
71850         (re_not_eol): Renamed from not_eol.
71851         (re_newline_anchor): Renamed from newline_anchor.
71852
71853         Change the following member names in struct re_registers.
71854         The old names are still supported if !_REGEX_SOURCE.
71855         The new names are always supported, regardless of _REGEX_SOURCE.
71856         (rm_num_regs): Renamed from num_regs.
71857         (rm_start): Renamed from start.
71858         (rm_end): Renamed from end.
71859
71860         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71861         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71862         Prepend __ to parameter names.
71863
71864         Undo yesterday's changes.
71865
71866 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71867
71868         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71869         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71870         lib/regex.c.
71871
71872 2005-08-24  Jim Meyering  <jim@meyering.net>
71873
71874         Sync from coreutils.
71875         * m4/fcntl-safer.m4: New file.
71876
71877         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71878         and object files for this module.
71879
71880 2005-08-24  Jim Meyering  <jim@meyering.net>
71881
71882         Sync from coreutils.
71883         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71884
71885 2005-08-24  Jim Meyering  <jim@meyering.net>
71886
71887         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71888         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71889
71890 2005-08-24  Jim Meyering  <jim@meyering.net>
71891
71892         * modules/fcntl-safer: New module.
71893         * modules/fts (Depends-on): Add fcntl-safer.
71894         * MODULES.html.sh (File descriptor based Input/Output):
71895         Add fcntl-safer.
71896
71897 2005-08-24  Bruno Haible  <bruno@clisp.org>
71898
71899         Support for unit test modules.
71900         * modules/README: Mention tests modules.
71901         * modules/TEMPLATE-TESTS: New file.
71902         * gnulib-tool: New options --extract-tests-module, --with-tests and
71903         --tests-base (unused for the moment).
71904         (testsbase, inctests): New variables.
71905         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71906         (func_verify_module): Exclude TEMPLATE-TESTS.
71907         (func_verify_nontests_module, func_verify_tests_module): New functions.
71908         (func_get_dependencies): Add implicit dependency for tests modules.
71909         (func_get_tests_module): New function.
71910         (func_modules_transitive_closure): When --with-tests was specified,
71911         include the unit tests as well, unless explicitly avoided.
71912         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71913         (func_emit_tests_Makefile_am): New function.
71914         (func_create_testdir): When --with-tests was specified, emit a
71915         tests/ directory.
71916         * MODULES.html.sh (Future developments): Update.
71917
71918 2005-08-24  Bruno Haible  <bruno@clisp.org>
71919
71920         * modules/tls-tests: New file.
71921         * tests/test-tls.c: New file, from GNU gettext.
71922
71923 2005-08-24  Bruno Haible  <bruno@clisp.org>
71924
71925         * modules/lock-tests: New file.
71926         * tests/test-lock.c: New file, from GNU gettext.
71927
71928 2005-08-24  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/lock.h: Add multiple inclusion guard.
71931         * lib/tls.h: Add multiple inclusion guard.
71932
71933 2005-08-24  Bruno Haible  <bruno@clisp.org>
71934
71935         * gnulib-tool: Add support for the --aux-dir option to
71936         --create-testdir, --create-megatestdir, --test, --megatest.
71937         (func_create_testdir, func_create_megatestdir): Optionally emit a
71938         AC_CONFIG_AUX_DIR directive.
71939         (create-testdir, create-megatestdir, test, megatest): Provide a
71940         default value for $auxdir.
71941
71942 2005-08-24  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (import): Use compound statement instead of subshell
71945         where possible.
71946
71947 2005-08-24  Bruno Haible  <bruno@clisp.org>
71948
71949         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71950
71951 2005-08-24  Bruno Haible  <bruno@clisp.org>
71952
71953         * gnulib-tool (func_version): Update.
71954
71955 2005-08-24  Bruno Haible  <bruno@clisp.org>
71956
71957         * gnulib-tool (func_import, func_create_testdir,
71958         func_create_megatestdir): Quote all autoconf macro arguments.
71959
71960 2005-08-24  Bruno Haible  <bruno@clisp.org>
71961
71962         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71963         option --force, because --force causes the aclocal.m4 of each
71964         subdirectory to be newer than the corresponding config.h.in.
71965
71966 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71969         All contents moved to gl_REGEX.
71970         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71971         assume that it does.
71972
71973 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/regex.h (REG_NOSYS)
71976         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71977         Define, since POSIX requires it as of 2001.
71978         (_REG_ENOSYS)
71979         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71980         New private symbol, used to keep the enum signed in all cases.
71981         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71982         Youngman in
71983         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71984
71985         * lib/regex_internal.c (re_string_skip_chars, register_state):
71986         (calc_state_hash):
71987         Remove forward decls; no longer needed now that we use prototypes.
71988         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71989         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71990         (clean_state_log_if_needed): Likewise.
71991
71992 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * config/srclist.txt: Add glibc bugs 1231-1233.
71995
71996 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         Fix problems reported by Sam Steingold in
71999         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72000         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72001         assumed that reg_errcode_t is a signed type, which is not
72002         necessarily true if _XOPEN_SOURCE is not defined.
72003         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72004         since some compilers warn about it otherwise.
72005
72006 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72009         (init_word_char, create_initial_state, duplicate_node_closure):
72010         (fetch_token, peek_token_bracket, build_range_exp):
72011         (build_collating_symbol): Remove forward decls; no longer needed
72012         now that we use prototypes.
72013
72014         * lib/regcomp.c:
72015         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72016         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72017         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72018         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72019         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72020         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72021         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72022         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72023         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72024         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72025         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72026         (build_charclass, build_charclass_op, fetch_number, create_tree):
72027         (create_token_tree, mark_opt_subexp, duplicate_tree):
72028         Use prototypes rather than old-style definitions.
72029
72030         * lib/regex_internal.c:
72031         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72032         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72033         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72034         (re_string_reconstruct, re_string_peek_byte_case):
72035         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72036         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72037         (re_node_set_init_copy, re_node_set_add_intersect):
72038         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72039         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72040         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72041         (re_acquire_state, re_acquire_state_context, register_state):
72042         (create_ci_newstate, create_cd_newstate, free_state):
72043         Likewise.
72044         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72045         re_search_2):
72046         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72047         (re_search_internal, prune_impossible_nodes):
72048         (acquire_init_state_context, check_matching, static):
72049         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72050         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72051         (update_regs, sift_states_backward, build_sifted_states):
72052         (clean_state_log_if_needed, merge_state_array):
72053         (update_cur_sifted_state, add_epsilon_src_nodes):
72054         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72055         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72056         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72057         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72058         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72059         (check_arrival, check_arrival_add_next_nodes):
72060         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72061         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72062         (check_node_accept_bytes, check_node_accept, extend_buffers):
72063         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72064         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72065         (sift_ctx_init):
72066         Likewise.
72067
72068         * lib/regex_internal.h:
72069         (re_string_allocate, re_string_construct, re_string_reconstruct):
72070         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72071         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72072         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72073         (re_string_context_at, re_string_peek_byte_case):
72074         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72075         is defined, since we now use prototypes always.
72076
72077         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72078         C89 or better.  All uses removed.
72079
72080 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * config/srclist.txt: Add glibc bugs 1220-1227.
72083
72084 2005-08-20  Jim Meyering  <jim@meyering.net>
72085
72086         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72087         of unused local, dfa.
72088
72089 2005-08-20  Bruno Haible  <bruno@clisp.org>
72090
72091         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72092
72093 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72096         (re_node_set_insert_last, re_dfa_add_node):
72097         Rename local variables to avoid GCC shadowing warnings.
72098
72099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72102         [defined lint]: Suppress bogus uninitialized-variable warnings.
72103
72104         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72105         and let the caller return REG_ESPACE if out of space.  This
72106         removes an uninitialied-variable warning with GCC 4.0.1, and also
72107         avoids taking the address of a local variable.  All callers
72108         changed.
72109
72110 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72113         $LIBCSRC/posix/regexec.c.
72114         Add glibc bug 1217 for regcomp.c.
72115
72116 2005-08-19  Jim Meyering  <jim@meyering.net>
72117
72118         * lib/regexec.c (proceed_next_node): Redo local variables to
72119         avoid GCC shadowing warnings.
72120
72121 2005-08-18  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/strstr.c (strstr): Fix return value in multibyte case.
72124         * lib/strcasestr.c (strcasestr): Likewise.
72125
72126 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72129
72130 2005-08-17  Jim Meyering  <jim@meyering.net>
72131
72132         Make the %s format (seconds since the epoch) work for a negative
72133         number and when used with a zero-padded field width, e.g. %015s.
72134
72135         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72136         label so that it precedes the code to set `digits'.  Otherwise,
72137         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72138         print `00-22'.  Now, it prints `-0022', as it should.
72139
72140 2005-08-17  Bruno Haible  <bruno@clisp.org>
72141
72142         * modules/strstr (Files): Add m4/mbrtowc.m4.
72143         (Depends-on): Add mbuiter.
72144
72145 2005-08-17  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/strcasestr: New file.
72148         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72149         strcasestr.
72150
72151 2005-08-17  Bruno Haible  <bruno@clisp.org>
72152
72153         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72154
72155 2005-08-17  Bruno Haible  <bruno@clisp.org>
72156
72157         * modules/mbuiter: New file.
72158         * MODULES.html.sh (Extended multibyte and wide character utilities):
72159         Add mbuiter.
72160
72161 2005-08-17  Bruno Haible  <bruno@clisp.org>
72162
72163         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72164         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72165
72166 2005-08-17  Bruno Haible  <bruno@clisp.org>
72167
72168         * m4/strcasestr.m4: New file.
72169
72170 2005-08-17  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72173         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72174
72175 2005-08-17  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/strcasestr.h: New file.
72178         * lib/strcasestr.c: New file.
72179
72180 2005-08-17  Bruno Haible  <bruno@clisp.org>
72181
72182         * lib/strcasecmp.c: Use mbuiter.h.
72183
72184 2005-08-17  Bruno Haible  <bruno@clisp.org>
72185
72186         * lib/mbuiter.h: New file.
72187
72188 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72191         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72192         and gl_GETOPT are both invoked via different paths (as happens
72193         with GNU tar CVS because it uses both argp and getopt), the former
72194         wins.
72195
72196 2005-08-16  Bruno Haible  <bruno@clisp.org>
72197
72198         * modules/tls: New file.
72199         * MODULES.html.sh (Multithreading): Add tls.
72200
72201 2005-08-16  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/strnlen1: New file.
72204         * MODULES.html.sh (String handling): Add strnlen1.
72205
72206 2005-08-16  Bruno Haible  <bruno@clisp.org>
72207
72208         * modules/strcase (Files): Add m4/mbrtowc.m4.
72209         (Depends-on): Add strnlen1, mbchar.
72210
72211 2005-08-16  Bruno Haible  <bruno@clisp.org>
72212
72213         * modules/mbiter: New file.
72214         * MODULES.html.sh (Extended multibyte and wide character utilities):
72215         Add mbiter.
72216
72217 2005-08-16  Bruno Haible  <bruno@clisp.org>
72218
72219         * modules/mbfile: New file.
72220         * MODULES.html.sh (Extended multibyte and wide character utilities):
72221         Add mbfile.
72222
72223 2005-08-16  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/mbchar: New file.
72226         * MODULES.html.sh (Extended multibyte and wide character utilities):
72227         New section.
72228
72229 2005-08-16  Bruno Haible  <bruno@clisp.org>
72230
72231         * m4/tls.m4: New file, from GNU gettext.
72232
72233 2005-08-16  Bruno Haible  <bruno@clisp.org>
72234
72235         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72236         always.
72237         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72238
72239 2005-08-16  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/mbiter.m4: New file.
72242
72243 2005-08-16  Bruno Haible  <bruno@clisp.org>
72244
72245         * m4/mbfile.m4: New file.
72246
72247 2005-08-16  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/mbchar.m4: New file.
72250
72251 2005-08-16  Bruno Haible  <bruno@clisp.org>
72252
72253         * lib/tls.h: New file, from GNU gettext.
72254         * lib/tls.c: New file, from GNU gettext.
72255
72256 2005-08-16  Bruno Haible  <bruno@clisp.org>
72257
72258         * lib/strnlen1.h: New file.
72259         * lib/strnlen1.c: New file.
72260
72261 2005-08-16  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72264         (mbi_init): Update.
72265         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72266         NUL byte, not after it.
72267
72268 2005-08-16  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/strcase.h (strcasecmp): Add note in comments.
72271         * lib/strncasecmp.c: Use code from strcasecmp.c.
72272         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72273         (strcasecmp): Work correctly in multibyte locales.
72274
72275 2005-08-16  Bruno Haible  <bruno@clisp.org>
72276
72277         * lib/mbiter.h: New file.
72278
72279 2005-08-16  Bruno Haible  <bruno@clisp.org>
72280
72281         * lib/mbfile.h: New file.
72282
72283 2005-08-16  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/mbchar.h: New file.
72286         * lib/mbchar.c: New file.
72287
72288 2005-08-16  Bruno Haible  <bruno@clisp.org>
72289
72290         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72291         the valid ones. Makes the comparison operations transitive:
72292         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72293         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72294
72295 2005-08-15  Simon Josefsson  <jas@extundo.com>
72296
72297         * modules/ssize_t (License): Change to 'unlimited'.
72298
72299         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72300
72301 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72304         Add comments for each pending glibc patch.
72305
72306 2005-08-15  Bruno Haible  <bruno@clisp.org>
72307
72308         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72309         __cplusplus is defined.
72310
72311 2005-08-14  Jim Meyering  <jim@meyering.net>
72312
72313         Sync from coreutils.
72314
72315         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72316         Use the hash-table-based cycle-detection code not just when
72317         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72318         Reported by James Youngman in
72319         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72320         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72321         FTS_TIGHT_CYCLE_CHECK.
72322         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72323         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72324         once again.
72325         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72326         * lib/fts.c (fd_safer): Remove decl.
72327         Include fcntl--.h rather than unistd-safer.h
72328         (fts_safe_changedir): Don't call fd_safer; no longer needed
72329         now that we include fcntl--.h.
72330
72331 2005-08-12  Simon Josefsson  <jas@extundo.com>
72332
72333         * modules/getndelim2: Use ssize_t module.
72334         * modules/getnline: Likewise.
72335         * modules/safe-read: Likewise.
72336         * modules/xreadlink: Likewise.
72337
72338         * modules/ssize_t: New file.
72339
72340 2005-08-12  Simon Josefsson  <jas@extundo.com>
72341
72342         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72343
72344 2005-08-12  Simon Josefsson  <jas@extundo.com>
72345
72346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72347         ssize_t.
72348
72349 2005-08-12  Simon Josefsson  <jas@extundo.com>
72350
72351         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72352         readline, getdelim and check_version.
72353         (Support for systems lacking ISO C 99: Sizes of integer types):
72354         Add size_max.
72355
72356 2005-08-12  Bruno Haible  <bruno@clisp.org>
72357
72358         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72359
72360 2005-08-11  Simon Josefsson  <jas@extundo.com>
72361
72362         * modules/readline: New file.
72363
72364         * modules/strnlen (Files): Add strnlen.h.
72365
72366 2005-08-11  Simon Josefsson  <jas@extundo.com>
72367
72368         * m4/readline.m4: New file.
72369
72370 2005-08-11  Simon Josefsson  <jas@extundo.com>
72371
72372         * lib/readline.h, readline.c: New file.
72373
72374 2005-08-11  Simon Josefsson  <jas@extundo.com>
72375
72376         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72377         gl_AVOID.
72378
72379 2005-08-11  Bruno Haible  <bruno@clisp.org>
72380
72381         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72382
72383 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72384
72385         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72386
72387 2005-08-10  Simon Josefsson  <jas@extundo.com>
72388
72389         * tests/test-iconvme.c: New file.
72390
72391 2005-08-10  Simon Josefsson  <jas@extundo.com>
72392
72393         * m4/strnlen.m4: New file.
72394
72395         * m4/strndup.m4: Don't check for strnlen declaration, done in
72396         strnlen.m4.
72397
72398 2005-08-10  Simon Josefsson  <jas@extundo.com>
72399
72400         * lib/strndup.c: Use strnlen.h.
72401
72402         * lib/strnlen.h: New file.
72403
72404 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72405
72406         * README: Typos.
72407
72408 2005-08-02  Simon Josefsson  <jas@extundo.com>
72409
72410         * modules/readline: New file.
72411
72412 2005-08-02  Simon Josefsson  <jas@extundo.com>
72413
72414         * modules/getdelim: New file.
72415
72416         * modules/getline: Rewrite, don't use getndelim2.
72417
72418 2005-08-02  Simon Josefsson  <jas@extundo.com>
72419
72420         * m4/getline.m4: Separate out getdelim stuff into separate module.
72421
72422         * m4/getdelim.m4: New file.
72423
72424 2005-08-02  Simon Josefsson  <jas@extundo.com>
72425
72426         * lib/getline.h, getline.c: Rewrite.
72427
72428         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72429
72430 2005-07-31  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/lock.h (gl_lock_initializer): New macro.
72433         (gl_lock_define_initialized): Use it.
72434         (gl_rwlock_initializer): New macro.
72435         (gl_rwlock_define_initialized): Use it.
72436         (gl_recursive_lock_initializer): New macro.
72437         (gl_recursive_lock_define_initialized): Use it.
72438
72439 2005-07-30  Karl Berry  <karl@gnu.org>
72440
72441         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72442         Report from Ben Pfaff, regarding getopt.
72443
72444 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72447         normal way.
72448         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72449         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72450         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72451         (gl_GETOPT): Use the new macros.  Most of the implementation
72452         is moved to the new macros.  This is for programs like Emacs
72453         that don't want all the functionality of gl_GETOPT.
72454
72455 2005-07-26  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/lock.m4: Update from GNU gettext.
72458
72459 2005-07-26  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/lock.h: Update from GNU gettext.
72462         * lib/lock.c: Update from GNU gettext.
72463
72464 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72467         obsolescent AC_TRY_RUN.  Include the default includes files, for
72468         'exit'.
72469
72470 2005-07-24  Bruno Haible  <bruno@clisp.org>
72471
72472         * modules/visibility: New file.
72473         * MODULES.html.sh (Misc): Add visibility.
72474
72475 2005-07-24  Bruno Haible  <bruno@clisp.org>
72476
72477         * m4/visibility.m4: New file.
72478
72479 2005-07-24  Bruno Haible  <bruno@clisp.org>
72480
72481         * doc/visibility.texi: New file.
72482
72483 2005-07-22  Bruno Haible  <bruno@clisp.org>
72484
72485         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72486         $(ALLOCA_H), redundant through BUILT_SOURCES.
72487         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72488         redundant through BUILT_SOURCES.
72489         * modules/byteswap (Makefile.am): Remove explicit dependency on
72490         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72491         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72492         $(FNMATCH_H), redundant through BUILT_SOURCES.
72493         * modules/getopt (Makefile.am): Remove explicit dependency on
72494         $(GETOPT_H), redundant through BUILT_SOURCES.
72495         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72496         redundant through BUILT_SOURCES.
72497         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72498         redundant through BUILT_SOURCES.
72499         * modules/stdbool (Makefile.am): Remove explicit dependency on
72500         $(STDBOOL_H), redundant through BUILT_SOURCES.
72501         * modules/stdint (Makefile.am): Remove explicit dependency on
72502         $(STDINT_H), redundant through BUILT_SOURCES.
72503         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72504         Remove explicit dependency on $(SYSEXITS_H).
72505         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72506
72507 2005-07-18  Simon Josefsson  <jas@extundo.com>
72508
72509         * lib/check-version.c (check_version): Accept identical versions too.
72510
72511 2005-07-18  Bruno Haible  <bruno@clisp.org>
72512
72513         * modules/lock: New file.
72514         * MODULES.html.sh (Multithreading): New section.
72515
72516 2005-07-18  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/lock.m4: New file, from GNU gettext.
72519
72520 2005-07-18  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/lock.h: New file, from GNU gettext.
72523         * lib/lock.c: New file, from GNU gettext.
72524
72525 2005-07-18  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/lock.h (gl_once_t): New type.
72528         (gl_once_define, gl_once): New macros.
72529         * lib/lock.c (fresh_once): New variable.
72530         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72531         functions.
72532
72533 2005-07-16  Simon Josefsson  <jas@extundo.com>
72534
72535         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72536         workaround, suggested by Bruno.
72537
72538 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * modules/xalloc (Depends-on): Add xalloc-die.
72541         * modules/xvasprintf (Depends-on): Add xalloc-die.
72542
72543 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72546         with a minor change.
72547
72548 2005-07-15  Bruno Haible  <bruno@clisp.org>
72549
72550         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72551         When using lib/poll.c, define poll as rpl_poll.
72552
72553 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * modules/argp (Depends-on): Remove unlocked-io.
72556
72557 2005-07-14  Derek Price  <derek@ximbiot.com>
72558
72559         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72560         for glob symlink bug.
72561
72562 2005-07-14  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72565         Instead, test for *_unlocked function declarations directly.
72566
72567 2005-07-11  Simon Josefsson  <jas@extundo.com>
72568
72569         * modules/size_max: New file.
72570
72571         * modules/xsize: Depend on size_max module for size_max.m4.
72572
72573 2005-07-11  Simon Josefsson  <jas@extundo.com>
72574
72575         * lib/size_max.h: New file.
72576
72577 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72580         copyright symbol and the year.
72581         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72582         (version_etc_va): Use parameterized copyright notice.
72583         Reword to conform to the current GNU coding standards.
72584
72585 2005-07-11  Karl Berry  <karl@gnu.org>
72586
72587         * doc/gnulib.texi (Quoting): new node.
72588         (Initial import): more info, from Patrice.
72589
72590 2005-07-11  Bruno Haible  <bruno@clisp.org>
72591
72592         * gnulib-tool (func_usage): Document option --avoid.
72593         (Command line options): Handle --avoid.
72594         (func_acceptable): New function.
72595         (func_modules_transitive_closure): Use it.
72596
72597 2005-07-11  Bruno Haible  <bruno@clisp.org>
72598
72599         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72600         Reported by Jim Meyering.
72601
72602 2005-07-10  Bruno Haible  <bruno@clisp.org>
72603
72604         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72605         Needed when size_t is smaller than 'unsigned int'.
72606         Reported by Paul Eggert.
72607
72608 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72609
72610         * modules/argp (Depends-on): Add unlocked-io
72611
72612 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72613
72614         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72615         block of defines.
72616
72617 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72618
72619         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72620         fix now.
72621
72622 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72623         and Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72626         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72627
72628 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         * modules/regex (Files): Add lib/regex_internal.c,
72631         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72632         (Depends-on): Add extensions.
72633         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72634
72635 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72638         pathconf.
72639         * m4/same.m4 (gl_SAME): Likewise.
72640         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72641
72642         * m4/regex.m4: Adjust to new libc regex implementation.
72643         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72644         all the .c and .h parts of (the new) regex.
72645         Quote the m4 stuff better.
72646         Check for RE_ICASE bug of old gnulib.
72647         Check for REG_STARTEND of recent libc.
72648         Rename local variables from jm_* to gl_*.
72649         Quote operand of "test -f".
72650         Say "recent enough" version of libc, not "version 2".
72651         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72652         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72653         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72654         Remove check for btowc, isascii.
72655         Require AM_LANGINFO_CODESET.
72656
72657 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * lib/regex.c, regex.h: Sync from libc.
72660         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72661         * lib/regexec.c:
72662         New files, synced from libc, except that regex_internal.h
72663         currently has a small porting fix.
72664
72665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72668         regex_internal.c, regexec.c.
72669         Add regex_internal.h too, but as a comment, since the libc version
72670         is currently broken in gnulib mode.
72671
72672 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         Support programs like Emacs that use gnulib but not gettext.
72675         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72676         * modules/gettext-h: New file.
72677         * modules/gettext (Files): Remove lib/gettext.h.
72678         (Depends-on): Add gettext-h.
72679         (Makefile.am): Remove lib_SOURCES.
72680         * modules/argmatch, modules/c-stack, modules/closeout:
72681         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72682         * modules/execute, modules/file-type, modules/getaddrinfo:
72683         * modules/getopt, modules/human, modules/javacomp:
72684         * modules/javaexec, modules/mkdir-p, modules/obstack:
72685         * modules/openat, modules/pagealign_alloc, modules/pipe:
72686         * modules/quotearg, modules/regex, modules/rpmatch:
72687         * modules/unicodeio, modules/userspec, modules/version-etc:
72688         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72689         * modules/xsetenv:
72690         Depend on gettext-h, not gettext.
72691
72692 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * gnulib-tool (func_import): Add support for 'public domain' license.
72695         * modules/alloca, modules/atexit, modules/memmove:
72696         Now public domain, not GPL.
72697         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72698         * modules/realloc, modules/strerror, modules/strtod:
72699         Now LGPL, not GPL.
72700
72701 2005-07-05  Bruno Haible  <bruno@clisp.org>
72702
72703         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72704         autoconf CVS. Needed for mingw.
72705
72706 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         Remove the dependency of the strftime module on the tzset module.
72709         * modules/strftime (Depends-on): Remove dependency on tzset.
72710
72711 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         Remove the dependency of the strftime module on the tzset module.
72714         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72715         gl_FUNC_TZSET_CLOBBER.
72716
72717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         Remove the dependency of the strftime module on the tzset module.
72720         * lib/strftime.c (my_strftime)
72721         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72722         Copy the input structure, to work around some of the bug with
72723         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72724         Solaris releases, you should also use the tzset module, but we won't
72725         require it as a dependency any more since we don't want LGPLed code
72726         to depend on GPLed code.
72727
72728 2005-07-02  Jim Meyering  <jim@meyering.net>
72729
72730         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72731         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72732         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72733         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72734
72735 2005-07-02  Jim Meyering  <jim@meyering.net>
72736
72737         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72738
72739 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72742         declares only 'struct timespec;' (!).
72743
72744 2005-07-01  Jim Meyering  <jim@meyering.net>
72745
72746         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72747         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72748         * lib/save-cwd.c, tempname.c:
72749         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72750         and don't include <sys/file.h>).
72751
72752 2005-06-29  Jim Meyering  <jim@meyering.net>
72753
72754         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72755         type name.  Use the variable name instead.
72756         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72757         Likewise.
72758
72759 2005-06-28  Simon Josefsson  <jas@extundo.com>
72760
72761         * modules/check-version (Files): Add check-version.m4.
72762
72763 2005-06-28  Simon Josefsson  <jas@extundo.com>
72764
72765         * m4/check-version.m4: New file, suggested by Jim Meyering
72766         <jim@meyering.net>.
72767
72768 2005-06-28  Simon Josefsson  <jas@extundo.com>
72769
72770         * lib/check-version.h, lib/check-version.c: New files.
72771
72772 2005-06-28  Simon Josefsson  <jas@extundo.com>
72773
72774         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72775         collision with global variable.  Better indentation.  Don't
72776         increment buffer pointer beyond buffer end.  Based on comments
72777         from Paul Eggert <eggert@cs.ucla.edu>.
72778
72779         * lib/base64.h: Indent.
72780
72781 2005-06-28  Simon Josefsson  <jas@extundo.com>
72782
72783         * doc/gnulib.texi (Library version handling): New section.
72784
72785 2005-06-28  Jim Meyering  <jim@meyering.net>
72786
72787         * check-module (find_included_lib_files): Hard-code another
72788         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72789         but modules/fts-lgpl (correctly) does not list those files.
72790
72791         * modules/canonicalize (Files): Add lib/pathmax.h.
72792
72793 2005-06-25  Simon Josefsson  <jas@extundo.com>
72794
72795         * modules/check-version: New file.
72796
72797 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72800         initializer of struct addrinfo, as an indication that we don't
72801         care how many members the structure has.
72802
72803 2005-06-24  Derek Price  <derek@ximbiot.com>
72804         and Bruno Haible  <bruno@clisp.org>
72805
72806         Remove stat module & update lstat.
72807         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72808         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72809         * m4/stat.m4: Remove this file.
72810
72811 2005-06-24  Derek Price  <derek@ximbiot.com>
72812         and Bruno Haible  <bruno@clisp.org>
72813
72814         Remove stat module & update lstat.
72815         * lib/stat.c: Remove this file...
72816         (slash_aware_lstat): ...moving this content and its support...
72817         * lib/lstat.c (rpl_lstat): ...into here.
72818         * lib/lstat.h: New file.
72819
72820 2005-06-24  Derek Price  <derek@ximbiot.com>
72821         and Bruno Haible  <bruno@clisp.org>
72822
72823         Remove stat module & update lstat.
72824         * config/srclist.txt (libc sources): Remove stat.
72825
72826 2005-06-24  Derek Price  <derek@ximbiot.com>
72827         and Bruno Haible  <bruno@clisp.org>
72828
72829         Remove stat module & update lstat.
72830         * MODULES.html.sh (stat): Remove.
72831         * MODULES.html: Regenerated.
72832         * modules/lstat (Description): Correct function name.
72833         (Files): Add "lstat.h".
72834         (Depends-on): Remove stat, add xalloc, stat-macros.
72835         * modules/stat: Remove this file.
72836         (Include): Add "lstat.h", remove <sys/stat.h>.
72837
72838 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72841         (ranged_convert): Don't save conversion in a temporary struct.
72842         This causes a warning with GCC 4.0.0, and anyway in the typical
72843         case it's not worth the extra 100 bytes or so of code.
72844         (ranged_convert, __mktime_internal): When calling a function via a
72845         pointer P, use P () rather than (*P) (), as we now assume C89 or
72846         better.
72847
72848 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72851         "who -r" failed to give output.  Problem reported by Tim Waugh.
72852
72853         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72854         (xcalloc): Use it to avoid needless tests.
72855         Problem reported by Jim Meyering.
72856
72857 2005-06-20  Derek Price  <derek@ximbiot.com>
72858
72859         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72860         unnecessary for Autoconfs > 2.59c.
72861
72862 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72863
72864         * lib/argp.h (__option_is_short): Check upper limit of
72865         __key. Isprint() requires its argument to have the value
72866         of an unsigned char or EOF.
72867
72868 2005-06-16  Jim Meyering  <jim@meyering.net>
72869
72870         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72871         when either N or S is zero.
72872
72873 2005-06-16  Derek Price  <derek@ximbiot.com>
72874
72875         * m4/bison.m4: Declare YACC & YFLAGS precious.
72876
72877 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72880         multibyte string or pattern, fall back on unibyte matching.
72881         Problem reported by James Youngman.
72882
72883 2005-06-08  Bruno Haible  <bruno@clisp.org>
72884
72885         * modules/csharpcomp: New file.
72886         * MODULES.html.sh (C#): Add csharpcomp.
72887
72888 2005-06-08  Bruno Haible  <bruno@clisp.org>
72889
72890         * m4/csharpcomp.m4: New file, from GNU gettext.
72891
72892 2005-06-08  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/csharpcomp.h: New file, from GNU gettext.
72895         * lib/csharpcomp.c: New file, from GNU gettext.
72896         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72897
72898 2005-06-08  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72901         warning on mingw.
72902
72903 2005-06-07  Derek Price  <derek@ximbiot.com>
72904
72905         Sync from CVS.
72906         * lib/glob_.h: Indent nested #ifdef.
72907
72908 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         Sync from coreutils.
72911         Use "file name" when talking about file names, instead of "filename"
72912         or "path", as per the GNU coding standards.
72913         * lib/mkdir-p.c: Renamed from makepath.c.
72914         (make_dir_parents): Renamed from make_path.  All callers changed.
72915         * lib/mkdir-p.h: Likewise.  All includers changed.
72916         * lib/filenamecat.c: Renamed from path-concat.c.
72917         (file_name_concat): Renamed from path_concat.  All callers changed.
72918         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72919         * lib/filenamecat.h: Likewise.  All includers changed.
72920         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72921         in comments or local variable names.
72922         * lib/basename.c: Likewise.
72923         * lib/canonicalize.c, canonicalize.h: Likewise.
72924         * lib/dirname.c, dirname.h: Likewise.
72925         * lib/euidaccess.c: Likewise.
72926         * lib/exclude.c: Likewise
72927         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72928         * lib/fsusage.c, fsuage.h: Likewise.
72929         * lib/fts.c, fts_.h: Likewise.
72930         * lib/getcwd.c: Likewise.
72931         * lib/getloadavg.c: Likewise.
72932         * lib/mkstemp.c: Likewise.
72933         * lib/mountlist.c, mountlist.h: Likewise.
72934         * lib/openat.c, openat.h: Likewise.
72935         * lib/readlink-stub.c: Likewise.
72936         * lib/readutmp.c, readutmp.h: Likewise.
72937         * lib/rename.c: Likewise.
72938         * lib/rmdir.c: Likewise.
72939         * lib/same.c: Likewise.
72940         * lib/savedir.c: Likewise.
72941         * lib/stripslash.c: Likewise.
72942         * lib/tempname.c: Likewise.
72943         * lib/xreadlink.c: Likewise.
72944         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72945         All uses changed.
72946         * lib/exclude.h: Likewise.
72947
72948         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72949         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72950         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72951         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72952         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72953         files have been getting away with it for years (MORE/BSD 4.3
72954         is extinct now).
72955         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72956         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72957
72958         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72959         Define to 256, not 255, as per modern POSIX.
72960
72961 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         Sync from coreutils.
72964         Use "file name" when talking about file names, instead of "filename"
72965         or "path", as per the GNU coding standards.
72966         * MODULES.html.sh: mkdir-p renamed from makepath.
72967         filenamecat renamed from path-concat.
72968         * modules/filenamecat: Renamed from modules/path-concat.
72969         (Files): filenamecat.h and filenamecat.c renamed from
72970         path-concat.h and path-concat.c.
72971         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72972         (Include): filenamecat.h, not path-concat.h.
72973         * modules/mkdir-p: Renamed from modules/makepath.
72974         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72975         makepath.c.
72976         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72977         (Include): mkdir-p.h, not makepath.h.
72978
72979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         Sync from coreutils.
72982         * m4/mkdir-p.m4: Renamed from makepath.m4.
72983         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72984         Rename files from makepath.c to mkdir-p.c, and from
72985         makepath.h to mkdir-p.h.
72986         * m4/filenamecat.m4: Renamed from path-concat.m4.
72987         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72988         Rename files from path-concat.c to filenamecat.c,
72989         and from path-concat.h to filenamecat.h.
72990         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72991         "file name" in local variables or comments.
72992         * m4/rename.m4: Likewise.
72993
72994 2005-06-01  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/csharpexec: New file.
72997         * MODULES.html.sh (C#): New section.
72998
72999 2005-06-01  Bruno Haible  <bruno@clisp.org>
73000
73001         * m4/csharp.m4: New file, from GNU gettext.
73002         * m4/csharpexec.m4: New file, from GNU gettext.
73003
73004 2005-06-01  Bruno Haible  <bruno@clisp.org>
73005
73006         * lib/csharpexec.h: New file, from GNU gettext.
73007         * lib/csharpexec.c: New file, from GNU gettext.
73008         * lib/csharpexec.sh.in: New file, from GNU gettext.
73009
73010 2005-05-31  Derek Price  <derek@ximbiot.com>
73011             Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         Sync from cvs.
73014         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73015
73016 2005-05-31  Derek Price  <derek@ximbiot.com>
73017             Paul Eggert  <eggert@cs.ucla.edu>
73018
73019         Sync from cvs.
73020         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73021
73022 2005-05-29  Derek Price  <derek@ximbiot.com>
73023
73024         * config/srclist.txt (glob_.h, glob.c): Add these files.
73025
73026 2005-05-29  Derek Price  <derek@ximbiot.com>
73027
73028         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73029         * modules/glob: New file.
73030         * modules/getlogin_r: Add link to POSIX spec in description.
73031
73032 2005-05-29  Derek Price  <derek@ximbiot.com>
73033             Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * m4/glob.m4: New file.
73036
73037 2005-05-29  Derek Price  <derek@ximbiot.com>
73038             Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * lib/glob_.h, lib/glob.c: New files.
73041
73042 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73045         * modules/fts-lgpl (Depends-on): Remove gettext.
73046
73047 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73050         and don't require gt_INTTYPES_PRI.
73051
73052 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73055
73056         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73057         the configuration hassle isn't worth it.
73058         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73059         (LONGEST_MODIFIER, PRIuMAX): Remove.
73060
73061 2005-05-27  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73064
73065 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73068         _POSIX_PTHREAD_SEMANTICS for Solaris.
73069
73070 2005-05-25  Derek Price  <derek@ximbiot.com>
73071
73072         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73073
73074 2005-05-25  Derek Price  <derek@ximbiot.com>
73075             Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73078         * lib/getlogin_r.c, getlogin_r.h: New files.
73079
73080 2005-05-25  Bruno Haible  <bruno@clisp.org>
73081             Derek Price  <derek@ximbiot.com>
73082
73083         * lib/getlogin_r.h: Simplify API documentation.
73084
73085 2005-05-23  Derek Price  <derek@ximbiot.com>
73086
73087         * modules/minmax (Files): Add m4/minmax.m4.
73088         (configure.ac): Add gl_MINMAX.
73089
73090 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73093         so that unistd-safer.h (GPL'ed code) need not be included.
73094
73095 2005-05-22  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/minmax.m4: New file.
73098         Based on a patch by Derek Price <derek@ximbiot.com>.
73099
73100 2005-05-22  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73103         (INT64_MIN): Fix definition.
73104         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73105
73106         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73107         NEED_SIGNED_INT_TYPES.
73108
73109         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73110         HAVE_SYSTEM_INTTYPES.
73111
73112 2005-05-22  Bruno Haible  <bruno@clisp.org>
73113
73114         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73115         Also include <sys/param.h> if it defines MIN, MAX.
73116         Based on a patch by Derek Price <derek@ximbiot.com>.
73117
73118 2005-05-21  Jim Meyering  <jim@meyering.net>
73119
73120         * modules/fts (Files): Add m4/inttypes-pri.m4.
73121         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73122
73123 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         New fts module.
73126         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73127         (setup_dir, free_dir): New functions.
73128         (enter_dir, leave_dir): Define trivial
73129         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73130         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73131         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73132         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73133         Move to fts-cycle.c.
73134         (fts_open): Use setup_dir.
73135         (fts_close): Use free_dir.
73136         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73137         This adds a label and some gotos, but the alternatives were messier.
73138         Check for memory allocation failure when entering a dir.
73139         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73140         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73141         (FTS): New member fts_cycle, that is a union that contains the
73142         old active_dir_ht and cycle_state.  All uses changed to mention
73143         fts_cycle.ht and fts_cycle.state.
73144         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73145         fts.c, with the following changes:
73146         (setup_dir, free_dir): New functions.
73147         (enter_dir): Now returns bool.  Return true if successful, false
73148         if memory exhausted.  All callers changed.
73149         Do not bother partly cleaning up on
73150         memory allocation failure; that is free_dir's job.
73151         However, free ad if hash_insert fails, to avoid memory leak.
73152         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73153         fts->fts_options to see which union member to use.
73154
73155 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73158         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73159
73160 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73163
73164 2005-05-20  Jim Meyering  <jim@meyering.net>
73165
73166         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73167         Now a macro, to pacify GCC.
73168
73169 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73170
73171         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73172         of -1.
73173
73174 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73175
73176         * lib/chown.c (rpl_chown): Return -1 on failure.
73177
73178 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73181         Don't check for stddef.h.
73182         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73183         don't use its results.
73184         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73185         since we include them unconditionally.  Don't require
73186         AM_STDBOOL_H, since stdbool is a prerequisite.
73187         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73188         since we assume C89 or better.
73189         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73190         as we don't use their results.
73191         Don't check for fchdir, memmove, memset, strrchr, as we use
73192         them unconditionally.
73193         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73194         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73195
73196 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73199         Include <stddef.h> unconditionally, since we assume C89 now.
73200         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73201         * lib/fts.c: Include fts_.h first, to check interface.
73202         Do not include intprops.h; no longer needed.
73203         Include cycle-check.h and hash.h, since fts_.h no longer does.
73204         Remove unnecessary casts of closedir to void.
73205         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73206         decide whether to decrement nlinks.
73207         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73208         (FTS): Use struct hash_table * instead of Hash_table, so that
73209         we no longer need to include hash.h here.
73210
73211 2005-05-18  Jim Meyering  <jim@meyering.net>
73212
73213         * modules/dirfd (License): Change to LGPL.  Most of the code
73214         is already in the public domain.
73215
73216 2005-05-18  Jim Meyering  <jim@meyering.net>
73217
73218         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73219         Reported by Yoann Vandoorselaere.
73220
73221 2005-05-17  Jim Meyering  <jim@meyering.net>
73222
73223         * m4/fts.m4: New file, from coreutils.
73224
73225 2005-05-17  Jim Meyering  <jim@meyering.net>
73226
73227         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73228
73229 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         Sync from coreutils.
73232         * m4/unlinkdir.m4: New file.
73233
73234 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         Sync from coreutils.
73237         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73238         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73239         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73240         White space changes only.
73241         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73242         special.
73243         * lib/yesno.c: Include getline.h, not ctype.h.
73244         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73245         Use getline to remove arbitrary restriction on response length.
73246
73247 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * config/srclist-update: Spell out "Street" in FSF postal
73250         mail address; this is the style the FSF seems to prefer.
73251
73252         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73253         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73254         this updates FSF postal mail address.
73255
73256         Sync from coreutils.
73257         * modules/unlinkdir: New file.
73258         * modules/yesno (Depends-on): Add getline.
73259         * MODULES.html.sh (File system functions): Add unlinkdir.
73260
73261 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73264         lib/strsep.h:
73265         Change the initial comment to refer to GPL, not LGPL.
73266         gnulib-tool will change it to LGPL as needed.
73267
73268         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73269         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73270         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73271         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73272         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73273         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73274         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73275         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73276         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73277         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73278         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73279         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73280         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73281         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73282         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73283         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73284         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73285         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73286         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73287         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73288         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73289         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73290         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73291         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73292         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73293         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73294         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73295         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73296         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73297         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73298         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73299         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73300         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73301         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73302         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73303         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73304         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73305         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73306         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73307         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73308         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73309         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73310         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73311         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73312         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73313         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73314         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73315         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73316         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73317         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73318         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73319         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73320         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73321         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73322         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73323         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73324         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73325         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73326         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73327         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73328         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73329         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73330         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73331         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73332         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73333         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73334         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73335         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73336         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73337         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73338         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73339         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73340         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73341         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73342         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73343         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73344         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73345         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73346         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73347         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73348         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73349         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73350         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73351         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73352         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73353         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73354         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73355         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73356         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73357         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73358         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73359         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73360         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73361         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73362         lib/yesno.c, lib/yesno.h:
73363         Update FSF postal mail address.
73364
73365 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73368         tests/test-memmem.c, tests/test-stpncpy.c:
73369         Update FSF postal mail address.
73370
73371 2005-05-13  Bruno Haible  <bruno@clisp.org>
73372
73373         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73374         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73375         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73376         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73377         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73378         Add support for 64-bit integers in the MSVC compiler.
73379
73380 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73381
73382         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73383
73384 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73385
73386         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73387
73388 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * doc/getdate.texi (General date syntax): Don't say that date
73391         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73392         Problem reported by Nic Ferrier.
73393
73394 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73395
73396         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73397         specified in ai_socktype. Fix invalid ai_protocol
73398         check. ai_protocol is usually set to 0 or depending on
73399         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73400         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73401         ai_socktype / ai_protocol in the returned addrinfo structure.
73402
73403 2005-05-10  Simon Josefsson  <jas@extundo.com>
73404
73405         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73406         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73407
73408 2005-05-10  Karl Berry  <karl@gnu.org>
73409
73410         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73411         (from http://www.gnu.org/licenses).
73412         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73413         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73414         fdl.texi suffices.
73415
73416 2005-05-10  Karl Berry  <karl@gnu.org>
73417
73418         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73419         (COPYING.DOC): remove.
73420
73421         * config/srclist-update: new FSF address.
73422
73423 2005-05-10  Derek Price  <derek@ximbiot.com>
73424
73425         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73426         possible.
73427
73428 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73429             Bruno Haible  <bruno@clisp.org>
73430
73431         * modules/inet_ntop: New file.
73432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73433         inet_ntop.
73434
73435 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73436             Bruno Haible  <bruno@clisp.org>
73437
73438         * m4/inet_ntop.m4: New file.
73439
73440 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73441             Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/inet_ntop.h: New file.
73444         * lib/inet_ntop.c: New file, from glibc with modifications.
73445
73446 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * modules/time_r (License): Change to LGPL.
73449         * modules/extensions (License): Change to LGPL.  Actually,
73450         the license is more permissive than that, but currently gnulib-tool
73451         doesn't know how to handle more-permissive licenses.
73452
73453         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73454         Problem reported by Dave Love.
73455
73456 2005-05-08  Jim Meyering  <jim@meyering.net>
73457
73458         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73459         blank.
73460
73461 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * modules/argmatch (Depends-on): Add stdbool.
73464         * modules/backupfile (Depends-on): Likewise.
73465         * modules/chdir-long (Depends-on): Likewise.
73466         * modules/closeout (Depends-on): Likewise.
73467         * modules/cycle-check (Depends-on): Likewise.
73468         * modules/dirname (Depends-on): Likewise.
73469         * modules/fnmatch (Depends-on): Likewise.
73470         * modules/fsusage (Depends-on): Likewise.
73471         * modules/fwriteerror (Depends-on): Likewise.
73472         * modules/getcwd (Depends-on): Likewise.
73473         * modules/getloadavg (Depends-on): Likewise.
73474         * modules/hard-locale (Depends-on): Likewise.
73475         * modules/makepath (Depends-on): Likewise.
73476         * modules/mountlist (Depends-on): Likewise.
73477         * modules/nanosleep (Depends-on): Likewise.
73478         * modules/posixtm (Depends-on): Likewise.
73479         * modules/quotearg (Depends-on): Likewise.
73480         * modules/readtokens (Depends-on): Likewise.
73481         * modules/readtokens0 (Depends-on): Likewise.
73482         * modules/readutmp (Depends-on): Likewise.
73483         * modules/save-cwd (Depends-on): Likewise.
73484         * modules/strftime (Depends-on): Likewise.
73485         * modules/userspec (Depends-on): Likewise.
73486         * modules/utimecmp (Depends-on): Likewise.
73487         * modules/xgetcwd (Depends-on): Likewise.
73488         * modules/xnanosleep (Depends-on): Likewise.
73489         * modules/xstrtod (Depends-on): Likewise.
73490         * modules/yesno (Depends-on): Likewise.
73491
73492 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73495         needless checks.
73496
73497 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         Merge from coreutils.  Among other things,
73500         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73501         * lib/fd-safer.c: New file.
73502         * lib/fcntl-safer.h, open-safer.c: Remove.
73503         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73504         * lib/dup-safer.c: Include unistd-safer.h first.
73505         Don't include errno.h.
73506         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73507         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73508         * lib/file-type.c: Rely on file-type.h change.
73509         * lib/getloadavg.c: Include unistd-safer.h.
73510         (getloadavg): Use safer open.
73511         * lib/getusershell.c: Include "stdio-safer.h".
73512         (getusershell): Use safer fopen.
73513         * lib/long-options.c (long_options): Use NULL rather than 0.
73514         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73515         'free'.
73516         * lib/modechange.c: Likewise.
73517         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73518         (MODE_DONE): New constant.
73519         (struct mode_change): Remove 'next' member.
73520         (make_node_op_equals): New function; like the old one of the
73521         same name, except it allocates an array.
73522         (mode_compile, mode_create_from_ref): Use it.
73523         (mode_compile): Allocate result as an array, not a linked list.
73524         Parse octal string ourself, so that we catch mistakes like "+0".
73525         (mode_adjust): Arg is an array, not a linked list.
73526         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73527         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73528         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73529         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73530         Remove.  This is now stat-macros.h's job.
73531         (talloc): Remove.  All callers replaced by xalloc, so that
73532         our invokers don't have to worry about reporting memory failures.
73533         (make_node_op_equals): Remove.
73534         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73535         New constants.
73536         (struct mode_change): Moved here from modechange.h.
73537         (mode_append_entry): Remove.
73538         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73539         apps to have incorrect behavior.  Use simpler algorithm for head
73540         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73541         Detect more invalid usages rather than having somewhat-random behavior.
73542         Don't insert an "a=" action, as that leads to incorrect behavior.
73543         (mode_compile, mode_create_from_ref): Return NULL on error instead
73544         of an enum, since now there's only one way to have an error.  All
73545         callers changed.
73546         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73547         at the correct time.  Simplify calculation of "+u" and its ilk.
73548         Don't mishandle "+X".
73549         (mode_free): Remove "register" and localize decls.
73550         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73551         (struct mode_change): Move to modechange.c; callers don't
73552         need to see this stuff.
73553         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73554         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73555         (mode_change, mode_adjust): Reflect the new signatures noted above.
73556         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73557         that might redefine system include files.
73558         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73559         (my_usleep): Use NULL rather than (void *) 0.
73560         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73561         Use siginterrupt to specify that system calls should be interrupted.
73562         (rpl_nanosleep): Move initialization of suspended closer to call of
73563         my_usleep.
73564         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73565         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73566         (desirable_utmp_entry): New function.
73567         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73568         using x2nrealloc, to simplify logic.
73569         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73570         size calculation.  Do not assume utmp file is a regular file.
73571         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73572         (READ_UTMP_CHECK_PIDS): New constant.
73573         * lib/save-cwd.c: Include unistd-safer.h.
73574         (save_cwd): Use fd_safer.
73575         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73576         [!_LIBC] Include "stat-macros.h" instead.
73577         * lib/unistd-safer.h (fd_safer): New decl.
73578
73579 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * modules/getloadavg (Depends-on): Add unistd-safer.
73582         * modules/getusershell (Depends-on): Add stdio-safer.
73583         * modules/lstat (Depends-on): Remove xalloc.
73584         * modules/mkstemp (Depends-on): Add stat-macros.
73585         * modules/modechange (Depends-on): Remove xstrtol.
73586         Add stat-macros, xalloc.
73587         * modules/save-cwd (Depends-on): Add unistd-safer.
73588         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73589         * modules/unistd-safer (Files): Add lib/fd-safer.c
73590         (Makefile.am): Remove lib_SOURCES.
73591
73592         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73593         Remove fcntl-safer; unistd-safer supersedes it.
73594
73595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73598         AC_HEADER_STAT.
73599         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73600         (gl_PREREQ_CHOWN): Remove.
73601         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73602         it.  Don't require AC_HEADER_STAT.
73603         (gl_PREREQ_LSTAT): Remove.
73604         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73605         Don't require AC_HEADER_STAT.
73606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73607         (gl_PREREQ_RMDIR): Remove.
73608         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73609         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73610         the stat-macros module a prerequisite.
73611         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73612         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73613         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73614         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73615         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73616         variable names.
73617         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73618         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73619         variable prefixes.
73620         * m4/fcntl-safer.m4: Remove.
73621         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73622         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73623         Invoke gl_PREREQ_FD_SAFER.
73624         (gl_PREREQ_FD_SAFER): New macro.
73625         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73626         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73627         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73628         Remove duplicate call to AC_LIBOBJ(readutmp).
73629         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73630
73631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73632         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73633
73634 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * MODULES.html.sh (Misc): Add byteswap.
73637
73638 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73639
73640         * modules/getcwd (Depends-on): Add extensions.
73641         * modules/openat (Depends-on): Likewise.
73642
73643 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73644
73645         * modules/byteswap: New file.
73646
73647 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73648
73649         * m4/byteswap.m4: New file.
73650
73651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73652
73653         * lib/byteswap_.h: New file.
73654
73655 2005-04-25  Karl Berry  <karl@gnu.org>
73656
73657         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73658
73659 2005-04-25  Albert Chin  <china@thewrittenword.com>
73660
73661         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73662         Toolkit C bug.
73663
73664 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73665
73666         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73667         (func_ln_if_changed): Remove forcibly for no error message
73668         in case file does not exist.
73669
73670 2005-04-19  Simon Josefsson  <jas@extundo.com>
73671
73672         * gnulib-tool (Options): Make --symlink mean --symbolic.
73673
73674 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73675
73676         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73677
73678 2005-04-16  Simon Josefsson  <jas@extundo.com>
73679
73680         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73681
73682 2005-04-15  Simon Josefsson  <jas@extundo.com>
73683
73684         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73685
73686 2005-04-15  Simon Josefsson  <jas@extundo.com>
73687
73688         * gnulib-tool: Rename --symlink to --symbolic.
73689
73690 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73691
73692         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73693         symbolic links to files instead of copying/moving.  Add --aux-dir,
73694         specifying directory relative --dir where auxiliary build tools
73695         are placed.
73696
73697 2005-04-14  Bruno Haible  <bruno@clisp.org>
73698
73699         * modules/allocsa (License): Change to LGPL.
73700         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73701
73702 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73705         that "UTC +1 second" continues to work.  Problem reported
73706         by Dmitry V. Levin.
73707         (relunit_snumber): New rule.
73708         (relunit): Use it.
73709
73710 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/getdate.y (universal_time_zone_table): New constant.
73713         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73714         universal_time_zone_table.
73715         (lookup_zone): Prefer universal_time_zone_table to
73716         local_time_zone_table, so that "GMT" time stamps are allowed in
73717         London during the summer.  Problem reported by Ian Abbott.
73718
73719 2005-04-12  Jim Meyering  <jim@meyering.net>
73720
73721         * lib/human.c (humblock): Set *options even when returning due to
73722         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73723         warning from gcc-4.
73724
73725 2005-04-09  Jim Meyering  <jim@meyering.net>
73726
73727         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73728         -Wuninitialized: initialize tm0.tm_year.
73729
73730 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73733         count, since there's no maximum.  All uses changed.
73734         Add member dsts_seen.
73735         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73736         not being INT_MAX.
73737         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73738         Use pc_rels_seen to decide whther a date is absolute.
73739
73740         * lib/getdate.y (number): Don't overwrite year.
73741         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73742         check.
73743
73744 2005-04-02  Simon Josefsson  <jas@extundo.com>
73745
73746         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73747         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73748
73749 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73750
73751         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73752         where no absolute path name can be longer than PATH_MAX.
73753
73754 2005-03-27  Jim Meyering  <jim@meyering.net>
73755
73756         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73757
73758 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73759
73760         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73761         "one's complement" -> "ones' complement" in comment, as per Knuth.
73762         "value of type" -> "type or expression" in comment.
73763         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73764
73765 2005-03-26  Jim Meyering  <jim@meyering.net>
73766
73767         Comment nits.
73768         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73769         Correct typos: s/or/of/.
73770
73771 2005-03-26  Jim Meyering  <jim@meyering.net>
73772
73773         * modules/check-include-files: Move to ../ and rename to...
73774         * check-module: ...this.
73775
73776 2005-03-25  Jim Meyering  <jim@meyering.net>
73777
73778         * modules/xvasprintf (Files): Add xalloc.h.
73779
73780 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * modules/gettext (Files): config/config.rpath ->
73783         build-aux/config.rpath
73784         * modules/iconv (Files): Likewise.
73785         Problem reported by Oskar Liljeblad.
73786
73787 2005-03-23  Jim Meyering  <jim@meyering.net>
73788
73789         * modules/check-include-files: New script to check for
73790         missing dependencies, multiple includes, etc.
73791
73792         * modules/c-strtold (Depends-on): Add xalloc.
73793         * modules/c-strtod (Depends-on): Add xalloc.
73794         * modules/hash (Depends-on): Add xalloc.
73795         (Files): Remove lib/xalloc.h.
73796
73797         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73798         * modules/userspec (Files): Add lib/inttostr.h.
73799
73800 2005-03-23  Jim Meyering  <jim@meyering.net>
73801
73802         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73803
73804 2005-03-22  Jim Meyering  <jim@meyering.net>
73805
73806         * modules/stat-macros: New module.
73807         * modules/canonicalize, modules/euidaccess, modules/file-type,
73808         * modules/filemode, modules/lchown, modules/makepath,
73809         * modules/rmdir, modules/stat: Depend on new stat-macros module
73810         rather than listing lib/stat-macros.h manually.
73811         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73812
73813 2005-03-22  Jim Meyering  <jim@meyering.net>
73814
73815         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73816
73817 2005-03-22  Bruno Haible  <bruno@clisp.org>
73818
73819         * config/srclist.txt: Replace target directory 'config' with
73820         'build-aux'.
73821         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73822         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73823         ../build-aux/.
73824
73825 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * modules/chdir-long (Depends-on): Add mempcpy.
73828
73829         * modules/acl, modules/backupfile, modules/c-strtod,
73830         modules/c-strtold, modules/canon-host, modules/canonicalize,
73831         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73832         modules/exclude, modules/exitfail, modules/file-type,
73833         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73834         modules/getdate, modules/getline, modules/getpagesize,
73835         modules/getpass, modules/getugroups, modules/group-member,
73836         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73837         modules/inttostr, modules/long-options, modules/makepath,
73838         modules/md5, modules/memcasecmp, modules/memcoll,
73839         modules/modechange, modules/mountlist, modules/path-concat,
73840         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73841         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73842         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73843         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73844         modules/strftime, modules/strndup, modules/strverscmp,
73845         modules/timespec, modules/unlocked-io, modules/userspec,
73846         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73847         modules/yesno:
73848         Remove lib_SOURCES line from Makefile.am section, as this is now
73849         done automatically by the corresponding Autoconf macro.
73850
73851 2005-03-21  Jim Meyering  <jim@meyering.net>
73852
73853         Changes imported from coreutils.
73854
73855         * lib/cycle-check.c: Don't include xalloc.h.
73856
73857         * lib/path-concat.c: Don't include assert.h.
73858         (path_concat): Remove assertion that would have triggered
73859         for ABASE starting with more than one slash.
73860         Reported by Andreas Schwab.
73861
73862         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73863         properly when ABASE is an absolute file name.
73864         Correct the description of this function.
73865         Include <assert.h>.
73866         Add an assertion and a test driver.
73867         This fixes a bug introduced on 2004-07-02.
73868         Andreas Schwab reported the resulting failure of cp --parents:
73869         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73870
73871 2005-03-21  Jim Meyering  <jim@meyering.net>
73872
73873         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73874         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73875
73876 2005-03-21  Jim Meyering  <jim@meyering.net>
73877         and  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73880         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73881         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73882         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73883         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73884         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73885         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73886         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73887         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73888         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73889         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73890         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73891         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73892         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73893         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73894         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73895         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73896         for these modules.
73897
73898 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73901         (which shouldn't happen), generate nothing instead of returning 0
73902         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73903
73904 2005-03-16  Bruno Haible  <bruno@clisp.org>
73905
73906         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73907         HAVE_LONGLONG_64BIT.
73908
73909 2005-03-16  Bruno Haible  <bruno@clisp.org>
73910
73911         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73912         HAVE_LONGLONG_64BIT.
73913
73914 2005-03-16  Bruno Haible  <bruno@clisp.org>
73915
73916         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73917         HAVE_LONGLONG_64BIT.
73918
73919 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73922         reliably distinguish strftime failure from empty output on POSIX
73923         hosts.
73924
73925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73928         (iconv_string): Don't guess a size-zero buffer, as that might cause
73929         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73930         result would be 'too large', where 'too large' is (heuristically)
73931         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73932         overflow concerns.  This will prevent some unwanted malloc failures
73933         when the inputs are very large.
73934
73935 2005-03-15  Karl Berry  <karl@gnu.org>
73936
73937         * config/srclist.txt (config.rpath): from gettext.
73938         * config/config.rpath: update.
73939
73940 2005-03-15  Bruno Haible  <bruno@clisp.org>
73941
73942         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73943         to 'negate'.
73944
73945         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73946         variable.
73947
73948         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73949         results.
73950
73951 2005-03-14  Simon Josefsson  <jas@extundo.com>
73952
73953         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73954         <fx@gnu.org>.
73955
73956 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73959         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73960         intprops.h.
73961         * lib/strtol.c: Likewise.
73962
73963 2005-03-14  Jim Meyering  <jim@meyering.net>
73964
73965         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73966         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73967         to be nonzero so that we (and caller) can detect the difference
73968         between a valid zero-length expansion and an error return, even
73969         when the underlying strftime fails before writing anything into
73970         that location.
73971
73972 2005-03-14  Bruno Haible  <bruno@clisp.org>
73973
73974         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73975         Update from GNU gettext 0.14.3.
73976
73977 2005-03-10  Jim Meyering  <jim@meyering.net>
73978
73979         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73980
73981 2005-03-10  Jim Meyering  <jim@meyering.net>
73982
73983         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73984         so that this module works on systems without fchdir.
73985
73986 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         Factor int-properties macros into a single file, except for
73989         glibc-related files.
73990         * lib/intprops.h: New file.
73991         * lib/getloadavg.c: Include it instead of limits.h.
73992         (INT_STRLEN_BOUND): Remove.
73993         * lib/human.c: Include intprops.h.
73994         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73995         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73996         302/1000.
73997         * lib/inttostr.h: Include intprops.h instead of limits.h.
73998         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73999         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74000         for consistency with intprops.h.
74001         (time_t_is_integer, twos_complement_arithmetic): Use them.
74002         * lib/sig2str.h: Include <signal.h>, intprops.h.
74003         (INT_STRLEN_BOUND): Remove.
74004         * lib/strftime.c (TYPE_SIGNED): Remove.
74005         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74006         * lib/strtol.c: Adjust comments to match intprops.h.
74007         * lib/userspec.c: Include intprops.h.
74008         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74009         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74010         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74011         instead of rolling our own expressions.
74012         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74013
74014         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74015         instead of int.
74016         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74017         the right thing even if adding 1900 would overflow.  Similarly
74018         for tm_mon + 1 and tm_yday + 1.
74019         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74020         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74021         (DO_SIGNED_NUMBER): New macro.
74022         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74023
74024 2005-03-07  Bruno Haible  <bruno@clisp.org>
74025
74026         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74027
74028 2005-03-07  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74031
74032 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74033
74034         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74035         (func_import): Only replace files via --import when they have actually
74036         changed.
74037
74038 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74039
74040         * m4/mmap-anon.m4: New file.
74041         * m4/pagealign_alloc.m4: New file.
74042
74043 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74044             Bruno Haible  <bruno@clisp.org>
74045
74046         * modules/pagealign_alloc: New file.
74047         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74048
74049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74050             Bruno Haible  <bruno@clisp.org>
74051
74052         * lib/pagealign_alloc.h: New file.
74053         * lib/pagealign_alloc.c: New file.
74054
74055 2005-03-03  Bruno Haible  <bruno@clisp.org>
74056
74057         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74058         Use an all-permissive copyright notice, recommended by RMS.
74059
74060 2005-03-02  Bruno Haible  <bruno@clisp.org>
74061
74062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74063         of AIX, the replacement has to be done only after <string.h> is
74064         included, therefore not in config.h. stpncpy.h does the replacement,
74065         and stpncpy.c uses it.
74066
74067 2005-03-02  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74070         stpncpy.c uses it.
74071
74072 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74075         The workaround isn't strictly needed for POSIX conformance, and
74076         it's too much of a pain to configure and maintain.  We'll ask
74077         people to fix their kernels instead.
74078         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74079         (NANOSLEEP_BUG_WORKAROUND): Remove.
74080         (xnanosleep): Remove the workaround.
74081
74082 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74083
74084         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74085         Reported by Derek Price.
74086         (Include): Add "timespec.h".
74087
74088         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74089
74090 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74093         to detect nanosleep bug.
74094
74095 2005-03-01  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74098
74099 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * modules/gethrxtime: New file.
74102         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74103         (Depends-on): Add gethrxtime.
74104         (configure.ac): Add gl_XNANOSLEEP.
74105         (Makefile.am): Remove lib_SOURCES line.
74106
74107 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74110         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74111
74112 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74115         * lib/timespec.h (gettime): Return void, since it always
74116         succeeds now.  All uses changed.
74117         * lib/gettime.c (gettime): Likewise.
74118         [HAVE_NANOTIME]: Prefer nanotime.
74119         Assume gettimeofday succeeds, as POSIX requires.
74120         Assime time () succeeds, since other code already does.
74121         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74122         (timespec_subtract): Remove.
74123         (NANOSLEEP_BUG_WORKAROUND): New constant.
74124         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74125         things considerably.  Use it only on GNU/Linux hosts, since the
74126         workaround shouldn't be needed elsewhere.
74127
74128 2005-02-24  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/gettext (Files): Add m4/glibc2.m4.
74131
74132 2005-02-24  Bruno Haible  <bruno@clisp.org>
74133
74134         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74135         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74136         * m4/progtest.m4:
74137         Update from GNU gettext 0.14.2.
74138         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74139
74140 2005-02-24  Bruno Haible  <bruno@clisp.org>
74141
74142         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74143         * lib/config.charset: Update from GNU gettext 0.14.2.
74144
74145 2005-02-24  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/gettext.h: Update from GNU gettext 0.14.2.
74148
74149 2005-02-23  Simon Josefsson  <jas@extundo.com>
74150
74151         * m4/iconvme.m4: New file.
74152
74153 2005-02-23  Jim Meyering  <jim@meyering.net>
74154
74155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74156         change.
74157         Thanks to Bruno Haible for catching it.
74158
74159 2005-02-22  Simon Josefsson  <jas@extundo.com>
74160
74161         * modules/iconvme: New file.
74162
74163         * MODULES.html.sh: Add iconvme.
74164
74165 2005-02-22  Simon Josefsson  <jas@extundo.com>
74166
74167         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74168
74169 2005-02-22  Simon Josefsson  <jas@extundo.com>
74170
74171         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74172
74173 2005-02-22  Jim Meyering  <jim@meyering.net>
74174
74175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74176         s/ifndef/ifdef/.
74177
74178 2005-02-20  Neil Conway  <neilc@samurai.com>
74179
74180         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74181         returned by OSX/Darwin if the specified buffer is not large
74182         enough for the hostname.
74183
74184 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74185
74186         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74187         pass it to _help, otherwise the latter coredumps trying to
74188         dereference state.root_argp.
74189
74190 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         * modules/chdir-long (Depends-on): Add memrchr.
74193         * modules/memrchr (Files): Add lib/memrchr.h.
74194         (Include): "memrchr.h".
74195
74196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74197
74198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74199
74200 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         * lib/memrchr.h: New file.
74203         * lib/chdir-long.c: Include it.
74204         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74205         Don't bother including stddef.h.
74206
74207 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74210         inclusion.
74211         Include <sys/types.h>, for dev_t.
74212         (ME_DUMMY, ME_REMOTE): Move from here....
74213         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74214         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74215         Dmitry V. Levin.
74216         Include mountlist.h first, to test the interface.
74217
74218 2005-01-29  Bruno Haible  <bruno@clisp.org>
74219
74220         * lib/progname.c (program_name): Initialize.
74221         Needed when linking statically on MacOS X.
74222
74223 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         Sync from coreutils.
74226         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74227         (Depends-on): Add c-strtod.
74228         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74229
74230 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         Sync from coreutils.
74233         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74234
74235         Remove files that are specific to coreutils.
74236         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74237
74238 2005-01-28  Bruno Haible  <bruno@clisp.org>
74239
74240         * modules/javacomp: New file.
74241         * MODULES.html.sh (Java): Add javacomp.
74242
74243 2005-01-28  Bruno Haible  <bruno@clisp.org>
74244
74245         * m4/javacomp.m4: New file, from GNU gettext.
74246
74247 2005-01-28  Bruno Haible  <bruno@clisp.org>
74248
74249         * lib/javacomp.sh.in: New file, from GNU gettext.
74250         * lib/javacomp.h: New file, from GNU gettext.
74251         * lib/javacomp.c: New file, from GNU gettext.
74252
74253 2005-01-26  Simon Josefsson  <jas@extundo.com>
74254
74255         * lib/gai_strerror.c: Use GPL in header.
74256
74257 2005-01-26  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/javaexec: New file.
74260         * MODULES.html.sh (Java): Add javaexec.
74261
74262 2005-01-26  Bruno Haible  <bruno@clisp.org>
74263
74264         * m4/javaexec.m4: New file, from GNU gettext.
74265
74266 2005-01-26  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/javaexec.sh.in: New file, from GNU gettext.
74269         * lib/javaexec.h: New file, from GNU gettext.
74270         * lib/javaexec.c: New file, from GNU gettext.
74271
74272 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74273
74274         * modules/lchown (Depends-on): Remove lchown.h
74275
74276 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74277
74278         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74279         must be defined if the header file was not found, in order
74280         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74281
74282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74283
74284         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74285         initializers for struct pentry_state.
74286         (__argp_error): Check return value of __asprintf
74287         (__argp_failure): Translate error message
74288
74289         * lib/argp-parse.c: Removed braces around the expansion of N_()
74290
74291 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74294         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74295         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74296         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74297         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74298         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74299         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74300         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74301         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74302         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74303         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74304         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74305         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74306         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74307         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74308         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74309         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74310         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74311         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74312         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74313         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74314         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74315         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74316         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74317         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74318         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74319         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74320         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74321         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74322         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74323         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74324         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74325         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74326         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74327         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74328         Use an all-permissive copyright notice, recommended by RMS.
74329
74330 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * modules/chdir-long (Depends-on): Remove mempcpy.
74333
74334 2005-01-21  Jim Meyering  <jim@meyering.net>
74335
74336         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74337         same value as for Solaris 9.
74338
74339         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74340         component length.  This included changing the parameter to be
74341         of type `char *' rather than `char const *'.
74342         * lib/chdir-long.h (chdir_long): Update prototype.
74343
74344         * lib/openat.c (fdopendir, fstatat): New functions.
74345         * lib/openat.h: Include headers required for use of DIR and struct
74346         stat.
74347         [AT_SYMLINK_NOFOLLOW]: Define.
74348         (fdopendir, fstatat): Add prototypes.
74349
74350 2005-01-21  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/classpath: New file.
74353         * MODULES.html.sh (Java): Add classpath.
74354
74355 2005-01-21  Bruno Haible  <bruno@clisp.org>
74356
74357         * lib/classpath.h: New file, from GNU gettext.
74358         * lib/classpath.c: New file, from GNU gettext.
74359
74360 2005-01-20  Simon Josefsson  <jas@extundo.com>
74361
74362         * modules/version-etc-fsf: New file.
74363
74364 2005-01-20  Simon Josefsson  <jas@extundo.com>
74365
74366         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74367         * lib/version-etc.c: Remove version_etc_copyright.
74368         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74369         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74370
74371 2005-01-20  Simon Josefsson  <jas@extundo.com>
74372
74373         * lib/base64.h (isbase64): Add.
74374
74375         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74376         using a unsigned prototype, don't inline.
74377         (base64_decode): Use it.
74378
74379 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74382         it.
74383
74384 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74385
74386         * lib/save-cwd.c (save_cwd): Remove code to support the case
74387         where fchdir is missing or flaky.
74388
74389 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74392
74393 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74396         AC_LIBSOURCES now does this.
74397         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74398         with new ullong_max module.
74399
74400 2005-01-19  Bruno Haible  <bruno@clisp.org>
74401
74402         * modules/sh-quote: New file.
74403         * MODULES.html.sh (Executing programs): Add sh-quote.
74404
74405 2005-01-19  Bruno Haible  <bruno@clisp.org>
74406
74407         * lib/sh-quote.h: New file, from GNU gettext.
74408         * lib/sh-quote.c: New file, from GNU gettext.
74409
74410 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74411
74412         Merge from coreutils.
74413         * m4/ullong_max.m4: New file.
74414         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74415         (gl_MACROS): Assume localeconv exists.
74416
74417 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         Merge changes from coreutils, as described below in several
74420         changelogs dated today.
74421
74422         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74423         (O_DIRECTORY): Remove; not needed here, since "." must be
74424         a directory.  All uses removed.
74425         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74426         universal on Suns, and we also need to test for IRIX.
74427         Revamp code to use 'if' rather than '#if'.
74428         Avoid unnecessary comparison of cwd->desc to 0.
74429
74430         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74431         for known valid error numbers rather than observed invalid ones.
74432
74433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * modules/ullong_max: New file.
74436
74437         * modules/chdir-long, modules/openat: New files.
74438         * modules/save-cwd (Depends-on): Depend on chdir-long.
74439         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74440
74441 2005-01-18  Jim Meyering  <jim@meyering.net>
74442
74443         Merge from coreutils.
74444         * m4/chdir-long.m4, m4/openat.m4: New files.
74445         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74446         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74447         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74448         is sane and DOES follow symlinks.  Besides, testing 20 different
74449         systems found no broken chown implementations.
74450         Prompted by a change in rsync's copy of this macro.
74451         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74452
74453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74454
74455         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74456         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74457         NULL-means-set-to-current-time semantics.
74458         Remove temporary file immediately, rather than waiting
74459         for configure's at-exit trap code to do it.
74460
74461 2005-01-18  Jim Meyering  <jim@meyering.net>
74462
74463         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74464
74465         * lib/utimens.c (futimens): Account for the fact that futimes
74466         can also fail with errno == ENOSYS or errno == ENOENT.
74467         Patch from Dmitry V. Levin.
74468
74469         Change the name of the robust chdir function from chdir to chdir_long.
74470         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74471         (restore_cwd): Use chdir_long, not chdir.
74472         * lib/chdir-long.c: Renamed from chdir.c.
74473         * lib/chdir-long.h: Renamed from chdir.h.
74474         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74475         Hurd.
74476
74477 2005-01-18  Bruno Haible  <bruno@clisp.org>
74478
74479         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74480         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74481         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74482         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74483         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74484         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74485         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74486         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74487         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74488         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74489         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74490         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74491         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74492         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74493         Use an all-permissive copyright notice, recommended by RMS.
74494
74495 2005-01-18  Bob Proulx  <bob@proulx.com>
74496
74497         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74498         simplify offsetof() macro construct to avoid compile failure with
74499         native HP-UX 11.0 ANSI C compiler.
74500
74501 2005-01-17  Bruno Haible  <bruno@clisp.org>
74502
74503         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74504         redundant because stpncpy.m4 takes care of it.
74505
74506 2005-01-17  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74509
74510 2005-01-17  Bruno Haible  <bruno@clisp.org>
74511
74512         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74513         used.
74514
74515 2005-01-17  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/fwriteerror.h (fwriteerror): Change specification to include
74518         fclose.
74519         * lib/fwriteerror.c: Include <stdbool.h>.
74520         (fwriteerror): At the end, close the file stream. Record whether
74521         stdout was already closed.
74522
74523 2005-01-17  Bruno Haible  <bruno@clisp.org>
74524
74525         * lib/execute.c (environ): Declare if needed.
74526         * lib/pipe.c (environ): Likewise.
74527         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74528
74529 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74530
74531         * modules/argp: Depend on vsnprintf
74532
74533 2005-01-10  Jim Meyering  <jim@meyering.net>
74534
74535         * modules/closeout (Depends-on): Add atexit.
74536
74537 2005-01-06  Bruno Haible  <bruno@clisp.org>
74538
74539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74540
74541 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74544         definitions to be after all include files, to avoid collisions.
74545         Problem reported by Bob Proulx.
74546
74547 2005-01-04  Jim Meyering  <jim@meyering.net>
74548
74549         Changes imported from coreutils.
74550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74551         as the mkstemp template, use a temporary directory and an
74552         8.3-friendly template to avoid trouble on systems like DJGPP.
74553         Reported by Juan M. Guerrero via Stepan Kasal.
74554         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74555         close. Remove the temporary directory right away, rather than waiting
74556         for configure's at-exit trap code to do it.
74557         Suggestion from Stepan Kasal.
74558
74559 2005-01-01  Simon Josefsson  <jas@extundo.com>
74560
74561         * gnulib-tool: Print #include directives when --import'ing.
74562
74563 2004-12-28  Simon Josefsson  <jas@extundo.com>
74564
74565         * tests/test-base64.c: Include required header files.  Remove
74566         unused variables.
74567
74568 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * modules/error (Depends-on): Remove gettext.
74571
74572 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74575         not needed.  This removes a dependency on the gettext module.
74576         [defined _LIBC]: Do not include <libintl.h>; not needed.
74577
74578 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74581         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74582
74583 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74586         HAVE_DECL_STRTOLD.
74587
74588 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * modules/getdate (Depends-on): Remove alloca-opt.
74591
74592 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74595
74596 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         * lib/argp-parse.c: Include <stddef.h>.
74599         (alignof, alignto): New macros.
74600         (parser_init): Don't assume that void * is aligned sufficiently
74601         for struct option.
74602
74603         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74604         need to extend the stack.
74605         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74606         large.
74607
74608 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74609
74610         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74611
74612 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74615         (2004-10-24) change.  Apparently this was a false alarm.
74616
74617         * modules/getdate: Depend on alloca-opt, not alloca.
74618
74619 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74622         Remove now-obsolete comment about AIX.
74623         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74624         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74625         (YYMAXDEPTH): New macro.
74626
74627 2004-12-18  Simon Josefsson  <jas@extundo.com>
74628
74629         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74630
74631 2004-12-18  Bruno Haible  <bruno@clisp.org>
74632
74633         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74634
74635 2004-12-18  Bruno Haible  <bruno@clisp.org>
74636
74637         * lib/fatal-signal.c (fatal_signals): Make non-const.
74638         (init_fatal_signals): New function.
74639         (uninstall_handlers, install_handlers): Ignore signals that were set to
74640         SIG_IGN.
74641         (at_fatal_signal): Call init_fatal_signals.
74642         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74643         SIG_IGN.
74644         Reported by Paul Eggert.
74645
74646 2004-12-18  Bruno Haible  <bruno@clisp.org>
74647
74648         * doc/alloca.texi: New file.
74649         * doc/alloca-opt.texi: New file.
74650
74651 2004-12-17  Jim Meyering  <jim@meyering.net>
74652
74653         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74654         Otherwise, install-sh could exit with improper exit status when
74655         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74656
74657 2004-12-16  Simon Josefsson  <jas@extundo.com>
74658
74659         * tests/test-base64.c: Add license.
74660
74661 2004-12-15  Stepan Kasal  <address@hidden>
74662
74663         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74664
74665 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * modules/getcwd (Files): Add m4/d-ino.m4.
74668         Suggested by Mark D. Baushke.
74669
74670 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * lib/getdate.y (textint): New member "negative".
74673         (time_zone_hhmm): New function.
74674         Expect 14 shift-reduce conflicts, not 13.
74675         (o_colon_minutes): New rule.
74676         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74677         (yylex): Set the "negative" member of signed numbers.
74678
74679 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * doc/getdate.texi (Time of day items, Time zone items):
74682         Describe new formats +00:00, UTC+00:00.
74683
74684 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74687         spurious "-l"s.  Problem reported by Stepan Kasal.
74688
74689 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74690
74691         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74692         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74693
74694 2004-12-04  Simon Josefsson  <jas@extundo.com>
74695
74696         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74697         Vandoorselaere <yoann@prelude-ids.org>.
74698
74699 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         Changes imported from coreutils.
74702         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74703         exist.
74704         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74705
74706 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         Changes imported from coreutils.
74709         * lib/hard-locale.c: Assume <locale.h> exists.
74710         Include "strdup.h".
74711         (GLIBC_VERSION): New macro.
74712         (hard_locale): Assume setlocale exists.
74713         Rewrite to avoid #ifdef.
74714         Use strdup rather than malloc + strcpy.
74715         * lib/human.c: Assume <locale.h> exists.
74716         (human_readable): Assume localeconv exists.
74717
74718 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * modules/hard-locale (Depends-on): Add strdup.
74721
74722 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74723
74724         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74725         convert T2, not T.  (Imported from libc.)
74726
74727 2004-11-30  Simon Josefsson  <jas@extundo.com>
74728
74729         * modules/restrict (License): Change to LGPL.
74730
74731 2004-11-30  Simon Josefsson  <jas@extundo.com>
74732
74733         * m4/restrict.m4: Add copyright and copying conditions.
74734
74735 2004-11-30  Simon Josefsson  <jas@extundo.com>
74736
74737         * m4/base64.m4: New file.
74738
74739 2004-11-30  Simon Josefsson  <jas@extundo.com>
74740
74741         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74742         base64.
74743
74744         * tests/test-base64.c: New file.
74745
74746         * modules/base64: New file.
74747
74748 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74751         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74752
74753         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74754
74755 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74758         (__getcwd.c): Don't restore errno; glibc doesn't.
74759         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74760         first, falling back to our code only if its results look suspicious.
74761         Ensure that the resulting buffer is only as large as necessary.
74762
74763         * lib/readutmp.c: Include readutmp.h first.
74764         Include <errno.h>, since readutmp.h no longer does that.
74765         * lib/readutmp.h: Don't include <errno.h>,
74766         <sys/param.h>, <time.h>; not needed to establish interface.
74767         (errno): Remove decl.
74768         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74769         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74770         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74771
74772 2004-11-28  Simon Josefsson  <jas@extundo.com>
74773
74774         * lib/base64.h, base64.c: New file.
74775
74776 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74779
74780 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74783         (Depends-on): Remove pathmax, same.  Add mempcpy.
74784         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74785         (Makefile.am): Append getcwd.h to lib_SOURCES.
74786         (Include): Add getcwd.h.
74787         (Maintainer): Change from Jim Meyering to "all, glibc",
74788         since getdate now uses intended-for-glibc code.
74789         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74790         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74791
74792 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74795         HP's ANSI C compiler.
74796         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74797         Declaring int functions causes warnings on some modern systems and
74798         shouldn't be needed to compile on ancient ones.
74799         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74800         defined.
74801
74802         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74803         with the following changes.
74804         (__set_errno): Parenthesize properly.
74805         Include <stdbool.h>.
74806         (MIN, MAX, MATCHING_INO): New macros.
74807         (__getcwd): Define with prototype, not K&R form.
74808         Use heuristics to allocate default buffer on stack if possible.
74809         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74810         behavior, and to avoid the PATH_MAX limit when computing
74811         ../../../../...
74812         Use MATCHING_INO to compare inode number to file.
74813         Check for arithmetic overflow in size calculations.
74814         Fix bug in reallocation of dot array that caused getcwd to fail
74815         on directories nested deeper than 75.
74816         Be more careful about saving errno on error.
74817         Do not use realloc; use only free+malloc, as this is a bit
74818         more flexible and avoids a needless copy operation.
74819         Do not inspect st_dev and st_ino for symbolic links; POSIX
74820         doesn't specify the latter.
74821         Check for closedir errors.
74822         Avoid needless casts.
74823         Use "#ifdef weak_alias" around weak_alias, to be like other
74824         glibc code.
74825         The following changes to getcwd.c have effect only when used in
74826         gnulib; they have no effect inside glibc proper.
74827         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74828         as alloca isn't used.
74829         (alloca, __alloca): Likewise.
74830         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74831         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74832         unconditionally, as gnulib assumes C89 or better.
74833         Do not include <sys/param.h>.
74834         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74835         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74836         better.
74837         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74838         Include <dirent.h> in a way that is compatible with modern Autoconf.
74839         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74840         New macros, if not already defined.
74841         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74842         Use "_LIBC", not "defined _LIBC", for consistency.
74843         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74844         a mempcpy module.
74845         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74846         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74847         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74848         credit only to Jim Meyering and adjust the copyright dates.
74849         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74850         <stdlib.h>, <unistd.h>, "pathmax.h".
74851         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74852         (INITIAL_BUFFER_SIZE): Remove.
74853         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74854
74855 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74858         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74859         Use the _ONCE methods, for efficiency.
74860         Check for fcntl.h.  In test program, include <errno.h>
74861         and <fcntl.h> if available.  Remove old K&R cruft from
74862         test program.  Check for common errors in GNU/Linux,
74863         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74864         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74865         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74866         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74867         name accordingly.
74868         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74869         accommodate new getcwd.c.
74870         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74871         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74872         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74873         that's all we need now.
74874
74875 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74876
74877         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74878         argp-parse.c depends on getopt internals, that means we should
74879         always use our getopt, to be on the safe side.
74880         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74881         order not to spoil the result of an eventual previous invocation
74882         of gl_GETOPT_SUBSTITUTE.
74883
74884 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74885
74886         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74887         redefinition warnings. To avoid them, include the defines
74888         in `#if !defined __need_getopt ... #endif'. The only place
74889         where __getopt_argv_const is used is in definitions
74890         of getopt_long and getopt_long_only below, which are as well
74891         protected by `#ifndef __need_getopt'.
74892         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74893         __need_getopt after including <stdio.h> and <unistd.h> These
74894         headers might have defined it.
74895
74896 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74899
74900 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74903         (futimens): New function, which uses futimes if available.
74904         (futimens, utimens): Support timespec==NULL, with same semantics
74905         as utime and utimens.
74906         * lib/utimens.h (futimens): New decl.
74907
74908 2004-11-23  Jim Meyering  <jim@meyering.net>
74909
74910         * lib/getopt_.h: Remove trailing blanks.
74911
74912 2004-11-23  Jim Meyering  <jim@meyering.net>
74913
74914         * lib/__fpending.c: Add comment.
74915
74916 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * modules/canonicalize (Depends-on): Add xreadlink.
74919         Problem reported by James Youngman.
74920
74921 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74922
74923         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74924         New macros.
74925         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74926         optopt): Use them instead of invoking ## directly; otherwise, the
74927         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74928
74929 2004-11-19  Bruno Haible  <bruno@clisp.org>
74930
74931         * lib/strtok_r.c: Move comments from here...
74932         * lib/strtok_r.h: ... to here.
74933
74934 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74937         implementations that mishandle size_t overflow.
74938
74939 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74942         might fail.  Problem reported by Yoann Vandoorselaere.
74943         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74944         implementations that mishandle size_t overflow.
74945
74946 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * modules/canon-host (Depends-on): Add strdup.
74949
74950 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74953
74954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * lib/canon-host.c: Include "strdup.h".
74957         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74958         Use strdup instead of malloc/strcpy to duplicate strings.
74959
74960         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74961         (human_space_before_unit): New constant.
74962         * lib/human.c (human_readable): Support it.
74963
74964         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74965         (xgetcwd): Set errno correctly when failing.
74966         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74967         the failure is actually due to a PATH_MAX problem.
74968
74969         Further getopt changes to make it more likely that glibc will
74970         buy the changes back.
74971         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74972         (getopt): Use it, so to preserve glibc semantic
74973         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74974         when compiling for libc.
74975         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74976         (getopt_long, getopt_long_only): Use it.
74977
74978         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74979         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74980         (getopt): Argv is now char * const *, as per standard.
74981         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74982         not char *__getopt_argv_const *.
74983         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74984         _getopt_long_only_r): Likewise.
74985         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74986         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74987         _getopt_long_r, _getopt_long_only_r): Likewise.
74988         * lib/getopt_.h (__getopt_argv_const): Remove.
74989         (getopt): Argv is now char * const *, as per standard.
74990
74991         * lib/getdate.y (tORDINAL): New token.
74992         (day, relunit): Allow it for relative times.
74993         (relative_time_table): Use tORDINAL for ordinals.
74994
74995 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74998         Document that "second" isn't allowed as an ordinal number.
74999
75000 2004-11-16  Jim Meyering  <jim@meyering.net>
75001
75002         * modules/closeout (Depends-on): Add fpending.
75003
75004 2004-11-15  Jim Meyering  <jim@meyering.net>
75005
75006         * lib/closeout.c: Include "__fpending.h" once again.
75007         Include <stdbool.h>.
75008         (close_stdout): Don't fail just because stdout was closed initially,
75009         since some programs don't write to stdout in the normal course of
75010         operation (other than --version and --help), and we don't want this
75011         function to make e.g. `touch file >&-' fail.
75012         But do fail if it was closed and someone has tried to write to it.
75013         E.g., `printf foo >&-' must fail.
75014
75015 2004-11-13  Jim Meyering  <jim@meyering.net>
75016
75017         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75018
75019 2004-11-12  Simon Josefsson  <jas@extundo.com>
75020
75021         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75022         small doc fix is still pending.
75023
75024 2004-11-11  Simon Josefsson  <jas@extundo.com>
75025
75026         * modules/strtok_r: New file.
75027
75028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75029         strtok_r.
75030
75031 2004-11-11  Simon Josefsson  <jas@extundo.com>
75032
75033         * m4/strtok_r.m4: New file.
75034
75035         * m4/getopt.m4: Replace opterr.
75036
75037 2004-11-11  Simon Josefsson  <jas@extundo.com>
75038
75039         * lib/strtok_r.h, strtok_r.c: New file.
75040
75041 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75044         of replacing opterr, getopt, etc.  This should handle the
75045         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75046
75047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75048
75049         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75050         we can stop lying to compilers about the constness of argv when we
75051         are compiled outside glibc.
75052         (getopt, getopt_long, getopt_long_only): Use it.
75053         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75054         _getopt_internal, getopt): Likewise.
75055         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75056         _getopt_long_only_r): Likewise.
75057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75058         _getopt_long_r, _getopt_long_only_r): Likewise.
75059
75060         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75061         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75062         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75063         the other external symbols.
75064         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75065         declaration, since the above renaming now works around collisions.
75066
75067 2004-11-11  Jim Meyering  <jim@meyering.net>
75068
75069         * lib/linebreak.c: Remove trailing blanks.
75070         * lib/alloca_.h: Likewise.
75071         * lib/acosl.c: Likewise.
75072         * lib/euidaccess.c: Likewise.
75073         * lib/allocsa.h: Likewise.
75074
75075 2004-11-10  Simon Josefsson  <jas@extundo.com>
75076
75077         * m4/getaddrinfo.m4: New file.
75078
75079 2004-11-10  Simon Josefsson  <jas@extundo.com>
75080
75081         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75082
75083 2004-11-10  Simon Josefsson  <jas@extundo.com>
75084
75085         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75086         getaddrinfo.
75087
75088         * modules/getaddrinfo: New file.
75089
75090 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75093
75094 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         * lib/mktime.c (SHR): New macro, which is a portable
75097         substitute for >> that should work even on Crays.
75098         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75099         Problem reported by Mark D. Baushke in
75100         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75101         * lib/getdate.y (SHR): Likewise.
75102         (tm_diff): Use it.
75103         * lib/strftime.c (SHR): Likewise.
75104         (tm_diff): Use it.
75105         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75106         quote_these_too, so that right shifts are well defined.  All uses
75107         changed.
75108
75109 2004-11-10  Jim Meyering  <jim@meyering.net>
75110
75111         Ensure that no close failure goes unreported.
75112         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75113         return early when it seems there's nothing to flush.
75114         Don't include __fpending.h.
75115
75116 2004-11-10  Jim Meyering  <jim@meyering.net>
75117
75118         * modules/closeout (Depends-on): Remove fpending.
75119
75120 2004-11-10  Jim Meyering  <jim@meyering.net>
75121
75122         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75123
75124 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75127         gl_FUNC_STRFTIME.
75128         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75129         and AC_REQUIRE when possible, to avoid duplicate checks.
75130         Check for <wchar.h>.
75131
75132 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75133
75134         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75135
75136 2004-11-09  Bruno Haible  <bruno@clisp.org>
75137
75138         * m4/sockpfaf.m4: New file.
75139
75140 2004-11-05  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75143         Reported by Mark D. Baushke <mdb@cvshome.org>.
75144
75145 2004-11-04  Bruno Haible  <bruno@clisp.org>
75146
75147         2004-09-11  Bruno Haible  <bruno@clisp.org>
75148                 * allocsa.valgrind: New file.
75149         2004-02-06  Bruno Haible  <bruno@clisp.org>
75150                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75151                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75152                 Reported by Christopher Seip <chris.seip@hp.com>.
75153
75154 2004-11-04  Bruno Haible  <bruno@clisp.org>
75155
75156         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75157         (Makefile.am): Distribute it.
75158
75159 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75162         with errno == ERANGE if the buffer is too small.
75163         Problem reported by Mark D. Baushke.
75164
75165 2004-11-03  Albert Chin  <china@thewrittenword.com>
75166             Paul Eggert  <eggert@cs.ucla.edu>
75167
75168         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75169         equivalent, substitute $ac_type for equivalent type rather than
75170         blindly using uint32_t *always* which won't work if uint32_t is not
75171         available.  Define _UINT32_T to work around typedef of uint32_t if
75172         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75173         2.5.1.
75174
75175 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * m4/jm-macros.m4: Sync from coreutils.
75178         (gl_MACROS): Check for mbrlen, for pathchk.
75179         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75180
75181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         * lib/xreadlink.c (MAXSIZE): New macro.
75184         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75185         size does not exceed MAXSIZE.  Avoid cast.
75186         As suggested by Mark D. Baushke in
75187         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75188         if readlink fails with buffer size just under MAXSIZE, try again
75189         with MAXSIZE.
75190
75191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75194
75195 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75196         and  Paul Eggert  <eggert@cs.ucla.edu>
75197
75198         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75199         (get_date): Overparenthesize to avoid GCC warning.
75200
75201 2004-11-02  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75204         returns void.
75205
75206 2004-11-02  Bruno Haible  <bruno@clisp.org>
75207
75208         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75209         function returns void.
75210
75211 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75214         fflush_unlocked, flockfile, funlockfile, funlockfile,
75215         fputs_unlocked, putc_unlocked.
75216
75217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75220         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75221         already declared.
75222
75223 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         * modules/getdate (Files): Add doc/getdate.texi.
75226         (Depends-on): Add setenv, xalloc.
75227
75228 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * lib/getdate.y: Add support for TZ="foo" within a date string.
75231         Fix some bugs near time_t boundaries.  Reject dates with
75232         out-of-range components, e.g., "Sept 31".
75233         Include <stdlib.h>, "setenv.h", "xalloc.h".
75234         (ISDIGIT_LOCALE): Remove; unused.
75235         Note that the TZ and time functions used here are not reentrant.
75236         (mktime_ok, get_tz): New functions.
75237         (TZBUFSIZE): New constant.
75238         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75239         This requires that we sometimes generate our own TZ="XXX..." setting.
75240
75241 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * doc/getdate.texi: New file, from coreutils with modifications for
75244         the new TZ parsing.
75245
75246 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75247
75248         * lib/mktime.c (not_equal_tm): Remove redundant check.
75249
75250 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * modules/regex (lib_SOURCES): Add regex.c.
75253         Reported by James Youngman in
75254         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75255
75256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * lib/getdate.y: Use Bison 1.875 features, and some minor
75259         code cleanups.  This change does not affect semantics.
75260         Don't include <stdlib.h>; no longer needed.
75261         Don't include unlocked-io.h; only the "#if TEST" code uses
75262         stdio, and performance isn't crucial there.
75263         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75264         Bison 1.875 features as described below.
75265         All uses of "PC." replaced by "pc->".
75266         (YYSTYPE): Add a forward declaration.
75267         (yylex, yyerror): Use full prototypes in forward decls.
75268         Use "%pure-parser" rather than obsolescent "%pure_parser".
75269         Use %parse-param and %lex-param instead of obsolescent
75270         YYPARSE_PARAM and YYLEX_PARAM.
75271         (meridian_table, month_and_day_table, time_units_table,
75272         relative_time_table, time_zone_table, military_table,
75273         lookup_zone, lookup_word, get_date):
75274         Use NULL instead of 0 where appropriate.
75275         (to_hour): Avoid abort (), to avoid a dependency on
75276         stdlib.h.
75277         (yyerror, yylex): Now accepts parser_control * arg.
75278         (main) [TEST]: Use '\0' rather than 0 for char.
75279
75280 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75283
75284 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75287         It's now the caller's responsibility to handle the case where
75288         !HAVE_GETPAGESIZE && !defined getpagesize.
75289
75290         * lib/mktime.c (leapyear): Arg is long int, not int.
75291
75292 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75293
75294         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75295
75296 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75299         missing.  Problem reported by James Youngman.
75300
75301 2004-10-16  Simon Josefsson  <jas@extundo.com>
75302
75303         * gnulib-tool: Fix comments.  Fix parse problem.
75304         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75305
75306 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75309         implementation of getopt_long.  Problem reported by Alexander Taler in:
75310         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75311
75312 2004-10-15  Bruno Haible  <bruno@clisp.org>
75313
75314         * gnulib-tool: Untabify. Initialize supplied_libname.
75315         (func_usage): More homogenous output.
75316         (func_modules_transitive_closure, func_modules_to_filelist,
75317         func_emit_lib_Makefile_am): New functions.
75318         (func_import): New function, extracted from big case statement. Use
75319         func_get_license, func_modules_transitive_closure,
75320         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75321         opt_lgpl. Don't use test -a, as it's not portable.
75322         (func_create_testdir): Use func_modules_transitive_closure,
75323         func_modules_to_filelist, func_emit_lib_Makefile_am.
75324
75325 2004-10-15  Bruno Haible  <bruno@clisp.org>
75326
75327         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75328
75329 2004-10-15  Bruno Haible  <bruno@clisp.org>
75330
75331         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75332         the portions belonging to each module.
75333         Suggested by Derek Robert Price <derek@ximbiot.com>.
75334
75335 2004-10-12  Simon Josefsson  <jas@extundo.com>
75336
75337         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75338         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75339         to real functions.
75340
75341 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75342
75343         * modules/vsnprintf: New file.
75344
75345 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75346
75347         * m4/vsnprintf.m4: New file.
75348
75349 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75350
75351         * lib/vsnprintf.h: New file.
75352         * lib/vsnprintf.c: New file.
75353
75354 2004-10-11  Bruno Haible  <bruno@clisp.org>
75355
75356         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75357         vsnprintf.
75358
75359 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75362
75363 2004-10-07  Bruno Haible  <bruno@clisp.org>
75364
75365         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75366         fits into the provided buffer.
75367
75368 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         * lib/diacrit.c, diacrit.h: Add GPL notice.
75371
75372         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75373         notice.
75374         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75375         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75376         This avoids a potential constant-folding bug.
75377
75378 2004-10-05  Bruno Haible  <bruno@clisp.org>
75379
75380         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75381         for the declaration of strsep.
75382
75383 2004-10-05  Bruno Haible  <bruno@clisp.org>
75384
75385         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75386
75387 2004-10-04  Simon Josefsson  <jas@extundo.com>
75388
75389         * modules/memmem: New file.
75390         * tests/test-memmem.c: New file.
75391         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75392
75393 2004-10-04  Simon Josefsson  <jas@extundo.com>
75394
75395         * m4/memmem.m4: New file.
75396
75397 2004-10-04  Simon Josefsson  <jas@extundo.com>
75398
75399         * lib/memmem.h: New file.
75400         * lib/memmem.c: New file, taken from glibc.
75401
75402 2004-10-04  Simon Josefsson  <jas@extundo.com>
75403
75404         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75405         '#ifdef USE_UNLOCKED_IO'.
75406
75407 2004-10-04  Simon Josefsson  <jas@extundo.com>
75408
75409         * config/srclist.txt: Add memmem from glibc.
75410
75411 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75414
75415         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75416         modules/exclude, modules/getdate, modules/getline,
75417         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75418         modules/getusershell, modules/linebuffer, modules/md5,
75419         modules/mountlist, modules/posixtm, modules/readtokens,
75420         modules/readutmp, modules/regex, modules/sha1,
75421         modules/version-etc, modules/yesno:
75422         Remove dependency on unlocked-io.
75423
75424 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75427
75428         * m4/unlocked-io.m4: Add copyright notice.
75429         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75430
75431 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75434         * lib/xmalloc.c (xmemdup): Likewise.
75435         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75436         XFREE): Remove these long-obsolescent macros.
75437         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75438         * lib/xstrdup.c: Remove.
75439
75440         * lib/regex.c (re_comp): Cast gettext return value to char *,
75441         Problem reported by Martin Neitzel via Mark D. Baushke.
75442
75443 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75446         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75447         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75448         regex.c, sha1.c, version-etc.c, yesno.c:
75449         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75450         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75451         the includer's responsibility.
75452
75453         Sync from coreutils.
75454
75455         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75456         points to the start of a string, as the C Standard says the
75457         resulting behavior is undefined.
75458
75459         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75460         simple -> simple_backups, numbered_existing ->
75461         numbered_existing_backups, numbered -> numbered_backups
75462         to avoid shadowing problems.  All uses changed.
75463         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75464         * lib/backupfile.c (check_extension, numbered_backup):
75465         Rename locals to avoid shadowing 'basename'.
75466         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75467         once.
75468
75469         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75470         * lib/.cvsignore: Add getopt.h.
75471
75472 2004-10-04  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/README: New file.
75475         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75476         not a module.
75477
75478 2004-10-02  Jim Meyering  <jim@meyering.net>
75479
75480         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75481
75482 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75483
75484         * modules/strsep: New file.
75485
75486 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75487
75488         * m4/strsep.m4: New file.
75489
75490 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75491
75492         * lib/strsep.h: New file.
75493         * lib/strsep.c: New file.
75494
75495 2004-10-01  Simon Josefsson  <jas@extundo.com>
75496
75497         * lib/snprintf.c (snprintf): Handle size==0.
75498
75499 2004-10-01  Simon Josefsson  <jas@extundo.com>
75500             Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75503         (snprintf): Declare 'args'.
75504
75505 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * lib/snprintf.c: Remove comments as to why each header is needed.
75508
75509 2004-10-01  Bruno Haible  <bruno@clisp.org>
75510
75511         * MODULES.html.sh: Add strsep.
75512
75513 2004-09-30  Simon Josefsson  <jas@extundo.com>
75514
75515         * modules/snprintf: New file.
75516
75517 2004-09-30  Simon Josefsson  <jas@extundo.com>
75518
75519         * m4/snprintf.m4: New file.
75520
75521 2004-09-30  Simon Josefsson  <jas@extundo.com>
75522
75523         * lib/snprintf.h, lib/snprintf.c: New files.
75524
75525 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75526
75527         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75528         (hol_entry_help): Never translate an empty string.
75529         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75530         * lib/argp.h (OPTION_NO_TRANS): New option.
75531
75532 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * modules/argp (Maintainer): Replace Simon Josefsson
75535         by Sergey Poznyakoff.
75536
75537 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75540         changes merged back into glibc.
75541
75542 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75545
75546 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75547
75548         * lib/xvasprintf.c: Include xalloc.h.
75549         (xvasprintf): Use xalloc_die, not xmalloc_die.
75550
75551 2004-09-29  Bruno Haible  <bruno@clisp.org>
75552
75553         * modules/alloca-opt: New file, derived from modules/alloca.
75554         * modules/allocsa: Depend on alloca-opt instead of alloca.
75555         * modules/setenv: Likewise.
75556         * modules/vasnprintf: Likewise.
75557         * MODULES.html.sh: Add alloca-opt.
75558
75559 2004-09-28  Simon Josefsson  <jas@extundo.com>
75560
75561         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75562         LGPL, and to replace license template from GPL to LGPL.
75563
75564 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         * modules/dummy: Change license to LGPL.
75567
75568 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75571
75572 2004-09-24  Simon Josefsson  <jas@extundo.com>
75573
75574         * modules/minmax (License): Change from GPL to LGPL.
75575
75576 2004-09-23  Simon Josefsson  <jas@extundo.com>
75577
75578         * gnulib-tool (--import): Typo.
75579
75580 2004-09-23  Simon Josefsson  <jas@extundo.com>
75581
75582         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75583
75584 2004-09-22  Bruno Haible  <bruno@clisp.org>
75585
75586         * modules/*: Add 'License' field.
75587         * gnulib-tool: Accept --extract-license option.
75588         (func_get_license): New function.
75589
75590 2004-09-21  Bruno Haible  <bruno@clisp.org>
75591
75592         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75593         Reported by Simon Josefsson.
75594
75595 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75598         gl_AC_TYPE_LONG_LONG.
75599
75600 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75603
75604 2004-09-18  Simon Josefsson  <jas@extundo.com>
75605         and  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75608         calls with autoreconf.  Define GL_LIB.
75609
75610 2004-09-14  Karl Berry  <karl@gnu.org>
75611
75612         * config/srclist.txt: unsync setenv.c, sigh.
75613
75614 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75617         Problem reported by Bruno Haible in:
75618         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75619
75620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * config/srclist.txt: Comment out argp-pvh.c.
75623
75624 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75627         in case some system header has #define'd it.  Problem reported by
75628         Soeren D. Schulze in
75629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75630
75631 2004-09-09  Karl Berry  <karl@gnu.org>
75632
75633         * regex.[ch]: delete from the root.  These were supposed to be
75634                 synced with emacs cvs, but this has not happened for about
75635                 a year, and anyway nothing else uses emacs regex.[ch].
75636                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75637                 lib/regex[.ch] is untouched.
75638
75639 2004-09-09  Bruno Haible  <bruno@clisp.org>
75640
75641         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75642
75643 2004-09-09  Bruno Haible  <bruno@clisp.org>
75644
75645         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75646         modifications.
75647         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75648
75649 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75650
75651         * modules/xvasprintf: New file.
75652         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75653
75654 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75655
75656         * lib/xvasprintf.h: New file.
75657         * lib/xvasprintf.c: New file.
75658         * lib/xasprintf.c: New file.
75659
75660 2004-09-08  Bruno Haible  <bruno@clisp.org>
75661
75662         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75663
75664 2004-09-08  Bruno Haible  <bruno@clisp.org>
75665
75666         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75667         length is > INT_MAX.
75668         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75669         more.
75670
75671 2004-09-08  Bruno Haible  <bruno@clisp.org>
75672
75673         * lib/stdint_.h: New file, taken from GNU clisp.
75674
75675 2004-09-08  Bruno Haible  <bruno@clisp.org>
75676             Oskar Liljeblad  <oskar@osk.mine.nu>
75677
75678         * modules/stdint: New file.
75679         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75680
75681 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         Import from coreutils.
75684         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75685         strings on unbounded length.  alloca's performance benefits aren't
75686         that important here.
75687         (V_STRDUP): Remove.
75688         (parse_with_separator): New function, with most of the internals
75689         of the old parse_user_spec.  Allow user to omit both user and group,
75690         for compatibility with FreeBSD.
75691         Clone only the user name, not the entire spec.
75692         Do not set *uid, *gid unless entirely successful.
75693         Avoid memory leak in some failing cases.
75694         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75695         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75696         (parse_user_spec): Rewrite to use parse_with_separator.
75697
75698 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75699
75700         * modules/userspec: Don't depend on alloca.
75701
75702 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75705
75706 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75709         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75710         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75711
75712 2004-08-16  Simon Josefsson  <jas@extundo.com>
75713
75714         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75715         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75716         Add --dry-run for --import.
75717         Let user provided command line parameters override configure.ac
75718         settings.
75719
75720 2004-08-12  Simon Josefsson  <jas@extundo.com>
75721
75722         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75723         as discussed with Paul Eggert in threads rooted at
75724         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75725         and
75726         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75727         Before, the test was empty, and relied on ELIDE_CODE in source
75728         code.)
75729         (gl_PREREQ_GETOPT): New macro.
75730         (gl_GETOPT): Use them.
75731
75732 2004-08-12  Simon Josefsson  <jas@extundo.com>
75733
75734         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75735         * lib/getopt_.h: Renamed from getopt.h.
75736
75737 2004-08-12  Simon Josefsson  <jas@extundo.com>
75738
75739         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75740         Change default library name from libfoo to libgnu.
75741         Now, if you have a configure.ac that says:
75742                 gl_SOURCE_BASE(gl)
75743                 gl_M4_BASE(gl/m4)
75744                 gl_MODULES(error getopt etcetera)
75745                 gl_INIT
75746         you can import all you need by running:
75747                 ../gnulib/gnulib-tool --import
75748
75749         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75750         (Makefile.am): Rewrite, use logic from argz.
75751         (Include): Use <getopt.h> instead of "getopt.h".
75752
75753 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * modules/argp (Files): Add m4/unlocked-io.m4.
75756         (Depends-on): Add extensions.
75757
75758 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75761         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75762         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75763         Check for program_invocation_name, program_invocation_short_name,
75764         flockfile, funlockfile, features.h, _getopt_long_only_r.
75765
75766 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75769         its complicated substitute.
75770         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75771         and program_invocation_name.
75772         (__argp_basename) [!_LIBC]: Remove; the only use was
75773         replaced by its body.
75774         (__argp_short_program_name): Change condition from
75775         !defined __argp_short_program_name to
75776         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75777         to match argp-namefrob.h.
75778         (__argp_failure): Don't assume strerror_r returns char *.
75779         * lib/argp-parse.c (N_): Define unconditionally.
75780         (argp_default_options): Fill out initializers with 0 to avoid
75781         gcc warnings.
75782
75783 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75786         getopt1.c.
75787
75788 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         Merge from coreutils.
75791
75792         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75793
75794         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75795         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75796
75797 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         Merge from coreutils.
75800
75801         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75802         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75803         for Reliant Unix 5.43.
75804
75805         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75806         (union fooround): Use uintmax_t, not long int.
75807         The rest is a merge from libc:
75808         [defined _LIBC]: Include <shlib-compat.h>.
75809         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75810
75811         * lib/settime.c (settime): Recode to avoid warning with
75812         Sun Forte C 6U2.
75813
75814         * lib/strverscmp.c: Convert to UTF-8.
75815
75816 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75819         m4/uintmax_t.m4.
75820
75821 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * modules/xalloc-die: New file.
75824         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75825
75826         * modules/md5 (Files): Add m4/uint32_t.m4.
75827         * modules/sha1: Renamed from modules/sha.
75828         (Files):
75829         Rename lib/sha.h to lib/sha1.h.
75830         Rename lib/sha.c to lib/sha1.c.
75831         Rename m4/sha.m4 to m4/sha1.m4.
75832         (lib_SOURCES): Likewise.
75833         (configure.ac): Rename gl_SHA to gl_SHA1.
75834         (Include): sha.h -> sha1.h.
75835
75836 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75839         * m4/sha1.m4: Renamed from sha.m4.
75840         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75841
75842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         * lib/obstack.h (obstack_empty_p):
75845         Don't assume that chunk->contents is suitably aligned.
75846         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75847         Likewise. Problem reported by Benno in
75848         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75849
75850         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75851         readable.  This could be improved further but it'd take some work.
75852
75853 2004-08-08  Simon Josefsson  <jas@extundo.com>
75854
75855         * modules/xgethostname (Depends-on): Remove exit and error (not
75856         used).
75857
75858         * modules/getpass-gnu: Add getpass.h.
75859         (Depends-on): Add stdbool.
75860         * modules/getpass: Add getpass.h.
75861
75862 2004-08-08  Simon Josefsson  <jas@extundo.com>
75863
75864         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75865         Check getpass declaration.
75866
75867 2004-08-08  Simon Josefsson  <jas@extundo.com>
75868
75869         * lib/xgethostname.c: Don't include error.h (not used).
75870
75871         * lib/getpass.h: Add.
75872         * lib/getpass.c: Include getpass.h first.
75873
75874 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75875
75876         * lib/xalloc-die.c: New file.
75877         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75878         All uses removed.
75879         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75880         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75881         xalloc-die.c.
75882         (_, N_, xalloc_die): Move to xalloc-die.c.
75883         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75884         so that we needn't mess with xalloc_msg_memory_exhausted.
75885
75886         * lib/sha1.h: Renamed from sha.h.
75887         (SHA1_H): Renamed from _SHA_H.
75888         (sha1_ctx): Renamed from sha_ctx.
75889         (sha1_init_ctx): Renamed from sha_init_ctx.
75890         (sha1_process_block): Renamed from sha_process_block.
75891         (sha1_process_bytes): Renamed from sha_process_bytes.
75892         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75893         (sha1_read_ctx): Renamed from sha_read_ctx.
75894         (sha1_stream): Renamed from sha_stream.
75895         (sha1_buffer): Renamed from sha_buffer.
75896         * lib/sha1.c: Likewise; renamed from sha.c.
75897         Do not include <sys/types.h>.
75898         Include <stddef.h> rather than <stdlib.h>.
75899
75900 2004-08-08  Bruno Haible  <bruno@clisp.org>
75901
75902         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75903         FILESYSTEM_PREFIX_LEN.
75904         * lib/progreloc.c: Likewise.
75905         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75906
75907 2004-08-06  Simon Josefsson  <jas@extundo.com>
75908
75909         * modules/progname (Depends-on): Don't depend on stdbool.
75910
75911 2004-08-06  Simon Josefsson  <jas@extundo.com>
75912
75913         * modules/getsubopt: New file.
75914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75915         getsubopt.
75916
75917 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         More merge from coreutils.
75920
75921         * m4/utimens.m4, m4/utimecmp.m4: New files.
75922         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75923         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75924         prereq.m4, sha.m4: Import changes from coreutils.
75925
75926 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         More merge from coreutils.
75929         * modules/raise, modules/readtokens0, modules/utimens:
75930         * modules/utimecmp, module/xnanosleep: New files.
75931         * modules/strftime: Add lib/strftime.h.
75932         Change include from <time.h> to "strftime.h".
75933         * modules/yesno: Add lib/yesno.h.
75934         * modules/backupfile: Remove lib/addext.c.
75935         * modules/euidaccess: Add stat-macros.h.
75936         * modules/canonicalize, modules/euidaccess,
75937         modules/filemode, modules/lchown, modules/makepath,
75938         modules/rmdir, modules/stat: Likewise.
75939
75940 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         Merge from tar.
75943         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75944         SIZE_MAX is a valid preprocessor constant.
75945         (__argp_basename): Change from "#ifndef _LIBC"
75946         to "#ifndef __argp_short_program_name", so that
75947         we don't compile these functions for tar.
75948
75949         More merges from coreutils.
75950         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75951         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75952         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75953         * lib/addext.c: Remove; no longer needed.
75954         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75955         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75956         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75957         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75958         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75959         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75960         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75961         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75962         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75963         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75964         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75965         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75966         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75967         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75968         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75969         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75970         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75971         Import changes from coreutils.
75972
75973 2004-08-05  Simon Josefsson  <jas@extundo.com>
75974
75975         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75976
75977 2004-08-05  Simon Josefsson  <jas@extundo.com>
75978
75979         * m4/getsubopt.m4: New file.
75980
75981 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         Merge from coreutils.
75984
75985         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75986         * m4/getcwd-path-max.m4: New files.
75987
75988         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75989         FILESYSTEM_PREFIX_LEN ->
75990         FILE_SYSTEM_PREFIX_LEN.
75991         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75992         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75993         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75994         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75995
75996         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75997         prerequisite modules now handle the DOS stuff.
75998         Don't check for unistd.h.
75999
76000 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         Merge from coreutils.
76003
76004         * lib/.gdb-history: Remove; this doesn't belong here.
76005
76006         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76007         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76008         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76009         * lib/getcwd.c: New files.
76010
76011         * lib/dirname.h: Include <stdbool.h>.
76012         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76013         for consistency with POSIX terminology.  All uses changed.
76014         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76015         (strip_trailing_slashes): Use bool for booleans.
76016         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76017
76018         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76019         sometimes returns a positive errno value even when it succeeds.
76020         (print_errno_message) [!LIBC]: Fall back on strerror if
76021         __strerror_r fails.
76022
76023         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76024         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76025         (longest_relative_suffix): New function.
76026         (path_concat): Use it.  Assume first argument is not NULL.
76027         Port to DOS.  Omit redundant separators.
76028         Report an error instead of returning NULL.
76029         Use mempcpy instead of memcpy.
76030         (xpath_concat): Remove: not declared or used.
76031
76032         * lib/same.h: Include <stdbool.h>
76033         (same_name): Return bool, not int.
76034         * lib/same.c (same_name): Likewise.
76035         (errno): Don't declare; we assume C89 or better now.
76036
76037         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76038         if not already defined.
76039
76040         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76041         * lib/dup-safer.c (errno): Likewise.
76042
76043 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76044
76045         Merge from coreutils.
76046         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76047         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76048         * modules/path-concat: Don't depend on strdup.
76049
76050 2004-08-03  Simon Josefsson  <jas@extundo.com>
76051
76052         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76053         * lib/progname.h: Don't include stdbool.h.
76054
76055 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76058         * MODULES.html.sh (func_all_modules): Remove fatal.
76059
76060 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76063
76064 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76067         working.
76068
76069 2004-08-02  Simon Josefsson  <jas@extundo.com>
76070
76071         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76072         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76073         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76074
76075 2004-08-01  Simon Josefsson  <jas@extundo.com>
76076
76077         * lib/xgetdomainname.c: Include stdlib.h, for free().
76078
76079 2004-07-19  Bruno Haible  <bruno@clisp.org>
76080
76081         * MODULES.html.sh (func_all_modules): Add dummy.
76082
76083 2004-07-16  Simon Josefsson  <jas@extundo.com>
76084
76085         * modules/dummy: New file.
76086
76087 2004-07-16  Simon Josefsson  <jas@extundo.com>
76088
76089         * lib/dummy.c: New file.
76090
76091 2004-07-16  Bruno Haible  <bruno@clisp.org>
76092
76093         * lib/backupfile.h: Add extern "C" for C++.
76094         * lib/closeout.h: Likewise.
76095         * lib/copy-file.h: Likewise.
76096         * lib/findprog.h: Likewise.
76097         * lib/full-write.h: Likewise.
76098         * lib/pathname.h: Likewise.
76099         * lib/progname.h: Likewise.
76100         * lib/stpcpy.h: Likewise.
76101         * lib/stpncpy.h: Likewise.
76102         * lib/strcase.h: Likewise.
76103         * lib/strstr.h: Likewise.
76104         * lib/xalloc.h: Likewise.
76105
76106         * lib/mbswidth.h: Add extern "C" for C++.
76107         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76108
76109 2004-07-13  Robert Millan  <robertmh@gnu.org>
76110
76111         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76112
76113 2004-07-09  Simon Josefsson  <jas@extundo.com>
76114
76115         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76116         failed without this.)
76117
76118 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * modules/chown (Files): Add lib/fchown-stub.c, since
76121         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76122
76123 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         * lib/fchown-stub.c: New file.
76126
76127 2004-06-24  Jim Meyering  <jim@meyering.net>
76128
76129         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76130
76131 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * modules/argz: Omit "#include".
76134
76135         * MODULES.html.sh (func_all_modules): Add calloc, to match
76136         2004-06-01 addition of calloc module.
76137
76138 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76139
76140         * m4/argz.m4: New file, which is autoupdated from libtool.
76141
76142 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76145         libtool.
76146
76147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * config/srclist-update: Don't insist on "USA." before the
76150         close-comment, as libtool omits the period and puts the */ on a
76151         separate line.
76152         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76153         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76154
76155 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76156
76157         * modules/argz: New file.
76158         * MODULES.html.sh (func_all_modules): Add argz.
76159
76160 2004-06-12  Jim Meyering  <jim@meyering.net>
76161         and  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         * modules/hash (Files): Add lib/xalloc.h.
76164         * modules/pipe (Depends-on): Add wait-process.
76165         * modules/stat (Depends-on): Add xalloc.
76166         * modules/userspec (Files): Add lib/userspec.h.
76167         * modules/xstrto
76168
76169         Upgrade from gettext-0.13.
76170         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76171         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76172         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76173
76174 2004-06-10  Jim Meyering  <jim@meyering.net>
76175
76176         * lib/calloc.c: New file.
76177
76178 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/getdate.y (yylex): Allow space between sign and number.
76181         Problem reported by Dan Jacobson.
76182
76183 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         Merge from coreutils CVS.
76186
76187         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76188         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76189         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76190         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76191         xstrtol.m4: Fix copyright date and/or serial number.
76192
76193         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76194         See if we need an fchown replacement.
76195         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76196         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76197         and use the replacement function if we detect either defect.
76198
76199         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76200         gl_UTIMECMP.
76201
76202 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76203         and  Jim Meyering  <jim@meyering.net>
76204
76205         Merge from coreutils CVS.
76206
76207         * lib/stat-macros.h: New file, with contents from file-type.h
76208         and coreutils' system.h.
76209         * lib/file-type.c: Include "stat-macros.h".
76210         * lib/file-type.h (file_type): Move all macro definitions to new file,
76211         stat-macros.h.
76212
76213         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76214         Wrap old code with this conditional.
76215         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76216         function that does not dereference symlinks.
76217         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76218
76219         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76220         dependency problems.
76221         (xreadlink): Accept new arg SIZE, for efficiency.
76222         All decls and uses changed.
76223         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76224
76225         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76226         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76227
76228         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76229         sysexits.h.
76230
76231 2004-06-01  Jim Meyering  <jim@meyering.net>
76232
76233         * m4/calloc.m4: New file.
76234
76235 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76238         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76239         Also, fix a typo in a diagnostic.
76240
76241 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76244         or AC_FUNC_REALLOC.
76245
76246 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76249         macros to be defined.
76250         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76251         the allocator returns NULL because the requested size is zero.
76252
76253 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76256         var.  Add comment explaining why libc still defines it.  This
76257         merges the following patch from glibc:
76258         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76259
76260 2004-05-20  Andreas Schwab  <schwab@suse.de>
76261
76262         * m4/free.m4: Replace free if it not known to work, not the other
76263         way round.
76264
76265 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76268         present in glibc since revision 1.1 of this file.
76269         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76270         obstack_alignment_mask, obstack_alloc, obstack_base,
76271         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76272         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76273         obstack_grow0, obstack_init, obstack_int_grow,
76274         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76275         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76276         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76277         nonexistent functions.
76278
76279 2004-05-18  Karl Berry  <karl@gnu.org>
76280
76281         * config/srclist.txt: break link for vasnprintf.c.
76282
76283 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         Port obstack to the AS/400, where pointers are 16 bytes wide and
76286         you cannot cast an integer to a valid pointer.  This patch is
76287         currently waiting to be integrated into glibc; see
76288         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76289
76290         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76291         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76292         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76293         (struct obstack): temp member is now a union of a pointer and
76294         an integer, instead of an integer.  All integer uses changed.
76295         This does not affect the physical layout of struct obstack,
76296         except on hosts (like the AS/400) where the size or alignment of
76297         void * is greater than that of ptrdiff_t.
76298         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76299         __STDC__)]: Store temporary in pointer member of union, not
76300         integer member.
76301         * lib/obstack.c: Include <stddef.h>, for offsetof.
76302         (struct fooalign): Remove; it doesn't need a name.
76303         (union fooround): Change double to long double, and add void *.
76304         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76305         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76306         not a macro.  Hence the values are always int; so remove all
76307         casts-to-int in uses.
76308
76309 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76312         we can get this patch merged into glibc.
76313
76314 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76315             Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         * m4/argp: Depend on alloca.
76318
76319 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76320             Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76323         freecoding.
76324
76325 2004-05-17  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76328         precision that consists of a '.' followed by an empty digit string.
76329         Patch by Tor Lillqvist <tml@iki.fi>.
76330
76331 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76334         for backward compatibility with older code.  We need our own
76335         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76336         it under some other name, and our alloca.h will define it.
76337
76338 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76339             Derek Price  <derek@ximbiot.com>
76340
76341         * lib/alloca.c: Include <alloca.h>, to get our interface.
76342         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76343         include <alloca.h> first.  Use C89 prototype for alloca; this
76344         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76345         Use #elif for simplicity, since we can assume C89 now.
76346         Don't try to source the system alloca.h since it will not be found
76347         and to prevent recursively including its replacement.
76348         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76349         * lib/regex.c: Likewise.
76350
76351 2004-05-16  Derek Price  <derek@ximbiot.com>
76352             Paul Eggert  <eggert@cs.ucla.edu>
76353
76354         getline cleanup.  This changes the getndelim2 API: both order of
76355         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76356         no delimiter).
76357
76358         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76359         interface does that.
76360         (getline): Always use getdelim, so that we don't have two
76361         copies of this code.
76362         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76363         if available.
76364         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76365         (GETNDELIM2_MAXIMUM): New macro.
76366         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76367         instead of the old practice of delim2==0.  All callers changed.
76368         Return -1 on overflow, instead of returning junk.
76369         Do not set *linesize unless allocation succeeds.
76370         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76371         that we include sys/types.h.
76372         * lib/getnline.h: Likewise.
76373         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76374         (getndelim2): Reorder arguments.
76375         * lib/getnline.c (getnline, getndelim):
76376         Don't discard the NMAX argument.
76377         (getnline): Invoke getndelim, to avoid code duplication.
76378         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76379         of (size_t) -1 by callers of the getnline family.
76380
76381 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76384         Check for gettimeofday.
76385         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76386         Check for settimeofday, stime.
76387
76388 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/nanosleep.c (suspended): Change its type from int to
76391         sig_atomic_t volatile.
76392         (first_call): Make it private to rpl_nanosleep, and have it
76393         be zero initially as that's a bit faster.
76394         (my_usleep): Round up fractional times instead of truncating them,
76395         as this is the usual meaning for 'sleep'.
76396
76397         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76398         doesn't work.
76399         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76400         (ENOSYS): Define if not defined.
76401         (settime): Fall back on stime if it exists and settimeofday fails.
76402         But don't bother with fallbacks if a method fails with errno == EPERM.
76403
76404 2004-05-11  Jim Meyering  <jim@meyering.net>
76405
76406         Prior to this change, the save_cwd caller required read access to the
76407         current directory on most systems (ones with the fchdir function).
76408
76409         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76410         fails, try write-only, and finally, resort to using xgetcwd.
76411
76412 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * lib/obstack.c, obstack.h: Import changes from libc.
76415
76416 2004-04-28  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76419         also implicitly appends .exe to executables.
76420         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76421         accepts Windows pathnames.
76422         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76423         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76424         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76425         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76426         Reported by Derek Robert Price <derek@ximbiot.com>.
76427
76428 2004-04-21  Karl Berry  <karl@gnu.org>
76429
76430         * config/srclist.txt (localcharset.c): break sync.
76431
76432 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76433
76434         * m4/host-os.m4: Add a copyright notice.
76435
76436 2004-04-20  Jim Meyering  <jim@meyering.net>
76437
76438         Change UTILS_ to gl_ in AC_DEFINE'd names.
76439         Change utils_- and jm_-prefixed variables, too.
76440         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76441         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76443
76444         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76445         Don't emit trailing blanks.
76446         Also rename jm_-prefixed variables to have gl_ prefix.
76447
76448         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76449         Also rename jm_-prefixed variables to have gl_ prefix.
76450
76451         * m4/jm-macros.m4: Reflect the renamings.
76452         * m4/prereq.m4: Likewise.
76453
76454 2004-04-20  Jim Meyering  <jim@meyering.net>
76455
76456         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76457         memory.
76458
76459 2004-04-20  Jim Meyering  <jim@meyering.net>
76460             Bruno Haible  <bruno@clisp.org>
76461
76462         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76463         memory when realloc fails.
76464
76465 2004-04-19  Jim Meyering  <jim@meyering.net>
76466
76467         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76468         now that readutmp.c may call `free (0)'.
76469
76470 2004-04-19  Bruno Haible  <bruno@clisp.org>
76471
76472         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76473         * m4/inttypes_h.m4: Likewise.
76474         * m4/stdint_h.m4: Likewise.
76475         * m4/intmax_t.m4: Likewise.
76476         * m4/uintmax_t.m4: Likewise.
76477
76478 2004-04-18  Jim Meyering  <jim@meyering.net>
76479
76480         * m4/prereq.m4: Don't forbid jm_ prefix.
76481
76482         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76483         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76484         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76485         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76486         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76487         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76488         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76489         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76490         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76491         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76492         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76493         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76494         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76495         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76496         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76497         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76498         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76499         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76500         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76501
76502 2004-04-18  Jim Meyering  <jim@meyering.net>
76503
76504         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76505         failure, don't leak memory and do call END_UTMP_ENT.
76506
76507 2004-04-16  Jim Meyering  <jim@meyering.net>
76508
76509         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76510         coreutils' stat program.
76511         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76512
76513 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76514
76515         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76516         C89.
76517         (CHAR_BIT): Remove, since we assume C89.
76518         Include <stdint.h> if available, as per current Autoconf CVS advice.
76519
76520 2004-03-31  Jim Meyering  <jim@meyering.net>
76521
76522         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76523         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76524         * m4/xalloc.m4: Likewise.
76525
76526 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76527
76528         Merge from coreutils.
76529
76530         * m4/inttostr.m4: New file.
76531         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76532         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76533         Require gl_CLOCK_TIME.
76534         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76535
76536 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76537
76538         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76539         not bool, to be more consistent with Unix conventions.
76540         Suggested by Bruno Haible.
76541
76542         Merge from coreutils.
76543
76544         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76545         * lib/umaxtostr.c: New files.
76546
76547         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76548         the usual <time.h> dance.
76549         (get_date): Change signature to support fractional time stamps.
76550         All callers changed.
76551         * lib/getdate.y: Include "getdate.h" first, as we can now
76552         assume C89 and don't need to worry about 'const'.
76553         Similarly, include "unlocked-io.h" near start, not in middle.
76554         Include <limits.h>.
76555         (textint.value): Use long int rather than int.
76556         (textint.digits): Use size_t rather than int.
76557         (BILLION, LOG10_BILLION): New constants.
76558         (parser_control): New member rel_ns.  Members day_ordinal,
76559         time_zone, month, day, hour, minutes, rel_year, rel_month,
76560         rel_day, rel_hour, rel_minutes, rel_seconds
76561         are now long int, not int.  Member seconds is now struct timespec,
76562         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76563         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76564         not int.
76565         (%union.intval): Now long int, not int.
76566         New member timespec.
76567         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76568         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76569         (spec): Now is a timespec or an item list.
76570         (timespec, items): New nonterminals.
76571         (time, rel, relunit, number, get_date):
76572         Add support for fractional seconds.
76573         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76574         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76575         (to_hour): First arg is now long int, not int.
76576         (to_year): Returns long int, not int.
76577         Don't treat year -70 like 70.
76578         (tm_diff): Returns long int, not int.
76579         (lookup_word): Use bool instead of int when appropriate.
76580         (yylex): Use size_t for count, not int.
76581         Detect overflow when parsing large integer constants.
76582         Add support for fractions.
76583         (get_date): Make pointers 'const' if possible.
76584         Use more-portable code to detect integer overflow.
76585         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76586         Don't use ctime; it's not reliable if the year has >4 digits.
76587
76588         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76589         This is for compatibility with BSD.
76590
76591         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76592         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76593         From coreutils' system.h.
76594
76595         * lib/userspec.c: Don't include "posixver.h".
76596         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76597         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76598         compatible extension.  Simplify code by removing a boolean int
76599         that was always nonzero if a string was nonnull.
76600
76601 2004-03-30  Jim Meyering  <jim@meyering.net>
76602
76603         Merge from coreutils.
76604
76605         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76606         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76607         on some systems one must include <grp.h> before it.
76608         Reported by Christian Krackowizer.
76609
76610 2004-03-30  Jim Meyering  <jim@meyering.net>
76611
76612         Merge from coreutils.
76613
76614         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76615
76616         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76617         an empty input stream.
76618
76619         * lib/readtokens.c: Include <stdbool.h>.
76620         (readtoken): Use `size_t' rather than int/long.
76621         All callers adjusted.
76622         Use `bool' rather than `int' where appropriate.
76623         Use memset rather than an explicit loop.
76624         Use x2nrealloc rather than xrealloc.
76625         Allow the use of `\0' as a delimiter.
76626         (readtokens): Likewise.
76627         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76628
76629 2004-03-30  Jim Meyering  <jim@meyering.net>
76630
76631         * m4/realloc.m4: Remove file, since now it does no more than
76632         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76633         the `configure.ac' section of module/realloc.
76634         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76635
76636 2004-03-30  Bruno Haible  <bruno@clisp.org>
76637
76638         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76639         nonnull.
76640
76641 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76642
76643         Merge changes to getloadavg.c from coreutils and Emacs.
76644
76645         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76646         Define to an expression, not to the empty string.
76647         Include cloexec.h and xalloc.h.
76648         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76649         Use set_cloexec_flag rather than rolling our own.
76650         * lib/cloexec.c, lib/cloexec.h: New files.
76651
76652 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76653
76654         * m4/cloexec.m4: New file.
76655
76656 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76657
76658         * lib/getopt.h: Sync with libc CVS.
76659
76660 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76661             Bruno Haible  <bruno@clisp.org>
76662
76663         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76664         mbswidth.
76665
76666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76667             Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/mbswidth.h: Include <wchar.h> only if
76670         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76671         <wchar.h>.
76672         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76673
76674 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76675
76676         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76677         Sync with libc CVS.
76678         * lib/getopt_int.h: New file, also synced from libc.
76679
76680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76681
76682         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76683         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76684         Bring back getopt.c, getopt.h, getopt1.c.
76685
76686 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76687
76688         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76689         All uses changed.  Check for sa_sigaction member; this fixes
76690         a bug first reported by Jason Andrade in
76691         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76692
76693 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76694
76695         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76696         '#if' expressions.  Unlike the code it replaces, it does not
76697         depend on (defined _SC_PAGESIZE).  However, it does depend on
76698         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76699         first reported by Jason Andrade in
76700         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76701
76702 2004-02-25  Simon Josefsson  <jas@extundo.com>
76703
76704         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76705
76706 2004-02-25  Simon Josefsson  <jas@extundo.com>
76707
76708         * lib/strdup.h: New file.
76709         * lib/strdup.c: Include it.
76710         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76711         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76712
76713 2004-02-23  Karl Berry  <karl@gnu.org>
76714
76715         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76716         (from fencepost.gnu.org:/gd/gnuorg).
76717
76718 2004-02-23  Karl Berry  <karl@gnu.org>
76719
76720         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76721         * config/srclist.txt: add maintain/standards documents.
76722
76723 2004-02-18  Bruno Haible  <bruno@clisp.org>
76724
76725         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76726         Reported by Derek Robert Price <derek@ximbiot.com>.
76727
76728 2004-02-16  Karl Berry  <karl@gnu.org>
76729
76730         * config/mkinstalldirs, install-sh: update from automake.
76731
76732 2004-02-06  Karl Berry  <karl@gnu.org>
76733
76734         * m4/po.m4: update from gettext 0.14.1.
76735
76736 2004-02-06  Karl Berry  <karl@gnu.org>
76737
76738         * lib/config.charset: update from gettext 0.14.1.
76739
76740 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76741
76742         Add comments and code, prompted by suggestions from Bruno Haible
76743         for sh-quote.
76744         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76745         describing the enum quoting_style values.
76746         * lib/quotearg.c (quotearg_alloc): New function.
76747         (quotearg_buffer_restyled): Treat lone { and } as special.
76748         Treat = as special.  Work around bug with older shells
76749         that "see" a '\' that is really the 2nd byte of a multibyte char.
76750         Quote empty string with shell_quoting_style.
76751
76752 2004-02-03  Bruno Haible  <bruno@clisp.org>
76753
76754         * m4/pipe.m4: New file, from GNU gettext.
76755
76756 2004-02-03  Bruno Haible  <bruno@clisp.org>
76757
76758         * lib/pipe.h: New file, from GNU gettext.
76759         * lib/pipe.c: New file, from GNU gettext.
76760
76761 2004-01-27  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/execute.m4: New file, from GNU gettext.
76764
76765 2004-01-27  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/execute.h: New file, from GNU gettext.
76768         * lib/execute.c: New file, from GNU gettext.
76769         * lib/w32spawn.h: New file, from GNU gettext.
76770
76771 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76772
76773         Merge from diffutils.
76774
76775         * lib/file-type.c (file_type): Add typed memory objects.
76776         * lib/file-type.h (S_TYPEISTMO): New macro.
76777
76778         * lib/c-stack.h (c_stack_action): Remove argv argument.
76779         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76780         (die): Don't calculate message unless segv_action returns.
76781         (get_stack_location, min_address_from_argv, max_address_from_argv,
76782         volatile stack_base, volatile_stack_size): Remove.
76783         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76784         that every segmentation violation is a stack overflow.  (Ouch!)
76785         See Debian bug 136249 (still outstanding) for more info about why
76786         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76787
76788 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76789
76790         Exit-status fix from coreutils.
76791
76792         Use exit_failure consistently in place of EXIT_FAILURE,
76793         so that program exit statuses are consistent on failure.
76794
76795         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76796         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76797         * lib/argmatch.h: Comment fix to match the above.
76798         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76799         Now a macro referring to exit_failure, instead of a separate
76800         variable.  Include "exitfail.h" to get it.
76801         * lib/xstrtol.h: Include "exitfail.h".
76802         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76803
76804         * lib/long-options.c (parse_long_options): Use prototype
76805         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76806         for clarity.
76807
76808 2004-01-21  Jim Meyering  <jim@meyering.net>
76809
76810         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76811         so as not to conflict with a different-sized __mktime_internal
76812         function in GNU libc.
76813         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76814         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76815
76816 2004-01-20  Karl Berry  <karl@gnu.org>
76817
76818         * config/config.guess: update from config.
76819
76820         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76821
76822 2004-01-20  Bruno Haible  <bruno@clisp.org>
76823
76824         Safer stack allocation.
76825         * lib/setenv.c: Include allocsa.h.
76826         (alloca): Remove fallback definition.
76827         (freea): Remove macro.
76828         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76829         instead of freea.
76830
76831 2004-01-20  Bruno Haible  <bruno@clisp.org>
76832
76833         * m4/eealloc.m4: New file, from GNU gettext.
76834
76835 2004-01-20  Bruno Haible  <bruno@clisp.org>
76836
76837         * m4/allocsa.m4: New file, from GNU gettext.
76838
76839 2004-01-20  Bruno Haible  <bruno@clisp.org>
76840
76841         * lib/xallocsa.h: New file, from GNU gettext.
76842         * lib/xallocsa.c: New file, from GNU gettext.
76843
76844 2004-01-20  Bruno Haible  <bruno@clisp.org>
76845
76846         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76847
76848 2004-01-20  Bruno Haible  <bruno@clisp.org>
76849
76850         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76851         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76852         specially.
76853
76854 2004-01-20  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76857         patch.
76858
76859 2004-01-20  Bruno Haible  <bruno@clisp.org>
76860
76861         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76862
76863 2004-01-20  Bruno Haible  <bruno@clisp.org>
76864
76865         * lib/eealloc.h: New file.
76866
76867 2004-01-20  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/binary-io.h: Avoid warnings on Cygwin.
76870
76871 2004-01-20  Bruno Haible  <bruno@clisp.org>
76872
76873         * lib/allocsa.h: New file, from GNU gettext.
76874         * lib/allocsa.c: New file, from GNU gettext.
76875
76876 2004-01-18  Karl Berry  <karl@gnu.org>
76877
76878         * doc/gpl.texi, doc/lgpl.texi: new files.
76879
76880 2004-01-18  Karl Berry  <karl@gnu.org>
76881
76882         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76883         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76884
76885 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76886
76887         Merge from coreutils.
76888
76889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76890         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76891         (gl_DEFAULT_POSIX2_VERSION): Move
76892         the documentation from 'configure' into 'config.hin',
76893         so that 'configure --help' isn't burdened by it and
76894         we don't have to worry about its formatting there.
76895         Reword the documentation so that it's more succinct
76896         and can be run together into a single paragraph.
76897         * m4/same.m4 (gl_SAME): Check for pathconf.
76898
76899 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76900
76901         Merge from coreutils.
76902
76903         * lib/posixver.c: Include posixver.h.
76904
76905         * lib/same.c: Include <stdbool.h>, <limits.h>.
76906         (_POSIX_NAME_MAX): Define if not defined.
76907         (MIN): New macro.
76908         (same_name): If file names are silently truncated, report
76909         that the file names are the same if they are the same after
76910         the silent truncation.
76911
76912         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76913         conversion function.
76914         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76915         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76916         longer needed.
76917
76918 2004-01-15  Jim Meyering  <jim@meyering.net>
76919
76920         Merge from coreutils.
76921
76922         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76923         if no library is required.
76924         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76925         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76926         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76927         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76928         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76929         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76930         value, $ac_cv_search_crypt, if it's "none required".
76931         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76932         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76933         not gl_FUNC_GETLOADAVG.
76934         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76935         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76936
76937 2004-01-15  Jim Meyering  <jim@meyering.net>
76938
76939         Merge from coreutils.
76940
76941         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76942         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76943         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76944
76945         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76946         optional configure-time default.
76947
76948         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76949
76950         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76951
76952 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76953
76954         Merge from coreutils.
76955
76956         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76957         value, $ac_cv_search_nanosleep, if it's "none required".
76958
76959 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76960
76961         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76962         with like-named macro in fnmatch.c.
76963         (EXT): Use an internal constant instead.
76964
76965         Merge fnmatch patches from glibc.
76966         * lib/fnmatch.c (mbsinit): Remove define.
76967         Add libc_hidden_ver (__fnmatch, fnmatch).
76968         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76969         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76970
76971 2004-01-14  Karl Berry  <karl@gnu.org>
76972
76973         * config/install-sh: update from automake.
76974
76975 2004-01-13  Karl Berry  <karl@gnu.org>
76976
76977         * config/install-sh: update from automake.
76978
76979 2004-01-09  Karl Berry  <karl@gnu.org>
76980
76981         * config/install-sh: update from automake.
76982
76983 2004-01-05  Karl Berry  <karl@gnu.org>
76984
76985         * config/config.{sub,guess}: update from config.
76986
76987 2003-12-31  Karl Berry  <karl@gnu.org>
76988
76989         * config/depcomp: update from automake.
76990
76991 2003-12-14  Karl Berry  <karl@gnu.org>
76992
76993         * lib/config.charset: update from gettext-runtime.
76994
76995 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76996
76997         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76998         Bug reported by Alfred M. Szmidt.
76999
77000 2003-12-03  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/gettext.m4: Upgrade from gettext-0.13.
77003         * m4/po.m4: Upgrade from gettext-0.13.
77004         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77005         * m4/intmax.m4: New file, from gettext-0.13.
77006         * m4/printf-posix.m4: New file, from gettext-0.13.
77007
77008 2003-11-29  Karl Berry  <karl@gnu.org>
77009
77010         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77011
77012 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77013             Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/printf-parse.h: Don't include sys/types.h.
77016         (ARG_NONE): New macro.
77017         (char_directive): Change type of *arg_index fields to size_t.
77018         * lib/printf-parse.c: Don't include sys/types.h.
77019         (SSIZE_MAX): Remove macro.
77020         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77021         Remove unnecessary overflow check.
77022         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77023         fields.
77024
77025 2003-11-25  Bruno Haible  <bruno@clisp.org>
77026
77027         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77028
77029 2003-11-25  Bruno Haible  <bruno@clisp.org>
77030
77031         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77032         gt_TYPE_SSIZE_T.
77033
77034 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77035
77036         * modules/alloca: Remove dependency on xalloc.
77037
77038 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77039
77040         * lib/alloca.c: Remove dependency on xalloc module.
77041         (xalloc_die): Remove.
77042         (memory_full) [!defined emacs]: New macro.
77043         [!defined emacs]: Don't include xalloc.h.
77044         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77045         address arithmetic overflows.  Change datatypes a bit to avoid
77046         unnecessary casts.
77047
77048 2003-11-22  Jim Meyering  <jim@meyering.net>
77049
77050         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77051         s/size/size_t/.
77052
77053 2003-11-21  Karl Berry  <karl@gnu.org>
77054
77055         * config/config.{sub,guess}: update from config.
77056
77057 2003-11-18  Karl Berry  <karl@gnu.org>
77058
77059         * config/config.{sub,guess}: update from config.
77060
77061         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77062
77063 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77064
77065         * README: Mention that S+T cannot overflow if S is the size of
77066         an existing object and T is sufficiently small.
77067
77068 2003-11-17  Jim Meyering  <jim@meyering.net>
77069
77070         On systems without utime and without a utimes function capable of
77071         dealing with a NULL struct utimbuf* argument, this utime replacement
77072         could -- in unusual circumstances -- leak a file descriptor.
77073         * lib/utime.c: Include <unistd.h> and <errno.h>.
77074         (utime_null): Be sure to close `fd' and to preserve errno.
77075         Reported by Geoff Collyer via Arnold Robbins.
77076
77077 2003-11-17  Bruno Haible  <bruno@clisp.org>
77078
77079         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77080         (Depends-on): Add xsize.
77081
77082 2003-11-17  Bruno Haible  <bruno@clisp.org>
77083
77084         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77085
77086 2003-11-17  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/vasnprintf.c (alloca): Remove fallback definition.
77089         (freea): Remove definition.
77090         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77091         Reported by Paul Eggert.
77092
77093 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77094             Bruno Haible  <bruno@clisp.org>
77095
77096         Protect against address arithmetic overflow.
77097         * lib/printf-args.h: Include stddef.h.
77098         (arguments): Change type of field 'count' to size_t.
77099         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77100         'unsigned int' where appropriate.
77101         * lib/printf-parse.h: Include sys/types.h.
77102         (char_directive): Change type of *arg_index fields to ssize_t.
77103         (char_directives): Change type of fields 'count', max_*_length to
77104         size_t.
77105         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77106         (SSIZE_MAX): Define fallback value.
77107         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77108         instead of 'int' where appropriate. Check a_allocated, d_allocated
77109         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77110         * lib/vasnprintf.c: Include xsize.h.
77111         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77112         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77113         overflow. Avoid wraparound when converting a width or precision from
77114         decimal to binary.
77115
77116 2003-11-16  Bruno Haible  <bruno@clisp.org>
77117
77118         Update from GNU gettext.
77119         * lib/printf-parse.c: Generalize to it can be compiled for wide
77120         strings.
77121         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77122         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77123         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77124         SNPRINTF): New macros.
77125         Don't include <alloca.h> if the file is used inside libintl.
77126         (local_wcslen): New function, for Solaris 2.5.1.
77127         (VASNPRINTF): Use it instead of wcslen.
77128
77129 2003-11-16  Bruno Haible  <bruno@clisp.org>
77130
77131         * lib/xsize.h (xmax): New function.
77132         (xsum, xsum3, xsum4): Declare as "pure" functions.
77133
77134 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77135
77136         * modules/xalloc (Files): Undo latest change, since xalloc.h
77137         no longer needs SIZE_MAX or PTRDIFF_MAX.
77138
77139 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77140
77141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77142         gl_PTRDIFF_MAX.
77143
77144 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77145
77146         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77147         "return", to pacify some unknown compiler.  Problem reported
77148         by Joerg Schilling.
77149
77150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77151
77152         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77153         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77154         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77155         heuristic is just as accurate as far as we know, and it removes a
77156         dependency on size_max.m4 and ptrdiff_max.m4.
77157
77158 2003-11-11  Bruno Haible  <bruno@clisp.org>
77159
77160         * modules/xsize (Files): Add m4/size_max.m4.
77161         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77162
77163 2003-11-11  Bruno Haible  <bruno@clisp.org>
77164
77165         * m4/size_max.m4: New file.
77166         * m4/ptrdiff_max.m4: New file.
77167         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77169         (gl_XALLOC): Invoke it.
77170
77171 2003-11-11  Bruno Haible  <bruno@clisp.org>
77172
77173         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77174         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77175         defined.
77176
77177 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77178
77179         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77180         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77181         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77182         From Bruno Haible.
77183         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77184         not (size_t) -1, since it's defined here.
77185
77186 2003-11-09  Karl Berry  <karl@gnu.org>
77187
77188         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77189
77190 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77191
77192         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77193         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77194         Reject sizes of exactly SIZE_MAX bytes.
77195         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77196         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77197
77198 2003-11-05  Bruno Haible  <bruno@clisp.org>
77199
77200         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77201         SIZE_MAX defined in <limits.h> on Solaris.
77202
77203 2003-11-04  Jim Meyering  <jim@meyering.net>
77204
77205         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77206         variable names, rather than @VAR@.
77207         * modules/poll: Likewise.
77208
77209 2003-11-04  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/xsize: New file.
77212         * modules/linebreak: Depend on xsize.
77213         * MODULES.html.sh (func_all_modules): Add xsize.
77214
77215 2003-11-04  Bruno Haible  <bruno@clisp.org>
77216
77217         * m4/xsize.m4: New file.
77218
77219 2003-11-04  Bruno Haible  <bruno@clisp.org>
77220
77221         * lib/xsize.h: New file.
77222         * lib/linebreak.c: Include xsize.h.
77223         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77224         argument for overflow.
77225         Suggested by Paul Eggert.
77226
77227 2003-11-03  Karl Berry  <karl@gnu.org>
77228
77229         * config/config.{guess,sub}: update from config.
77230
77231 2003-11-03  Jim Meyering  <jim@meyering.net>
77232
77233         * modules/userspec (lib_SOURCES): Add userspec.h.
77234         (Include): Add "userspec.h".
77235         Improve description.
77236
77237 2003-11-03  Jim Meyering  <jim@meyering.net>
77238
77239         * lib/userspec.c: Include "userspec.h".
77240         * lib/userspec.h: New file.
77241
77242 2003-11-03  Bruno Haible  <bruno@clisp.org>
77243
77244         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77245
77246 2003-11-03  Bruno Haible  <bruno@clisp.org>
77247
77248         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77249         available, to avoid (extremely rare) race condition.
77250         Suggested by Paul Eggert.
77251
77252 2003-11-02  Karl Berry  <karl@gnu.org>
77253
77254         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77255
77256 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77257
77258         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77259         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77260         (read_filesystem_list): Set and use me_type_malloced.
77261         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77262         whatever the type happens to be), for brevity and consistency.
77263         Check for size calculation overflow on Alphas running OSF/1.
77264
77265 2003-10-31  Jim Meyering  <jim@meyering.net>
77266
77267         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77268
77269         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77270
77271 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77272             Bruno Haible  <bruno@clisp.org>
77273
77274         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77275         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77276
77277 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77280         netbsd*-gnu*.  Suggested by Robert Millan.
77281
77282 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77283
77284         * modules/group-member: Depend on stdbool.
77285
77286 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77287
77288         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77289
77290 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77291
77292         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77293         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77294         after the 'gnu' in these cases.  This fixes some bugs in the
77295         previous change, and is based on suggestions by Robert Millan.
77296
77297 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77298
77299         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77300         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77301         no longer needed.
77302         * lib/quotearg.c (quotearg_n_options): Use it.
77303         * lib/group-member.c: Include <stdbool.h>.
77304         (free_group_info): Arg is now const *; don't free arg.
77305         (get_group_info): Now returns bool and accepts struct group_info *,
77306         rather than returning a malloc'ed struct group_info *.
77307         All uses changed.  Check for overflow in internal size calculation.
77308
77309         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77310         rather than xmalloc/xrealloc.
77311         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77312         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77313         conformance bug: the old code used a pointer after freeing the
77314         storage that it addressed.
77315         * lib/hash.c (hash_initialize): Simplify the code by using
77316         xalloc_oversized rather than doing it by hand.
77317         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77318         the buffer preserved.  Use free and xmalloc instead.
77319         * lib/quotearg.c (quotearg_n_options): Likewise.
77320         Use a simpler test for size overflow.  Don't use xalloc_oversized
77321         because unsigned int might be wider than size_t (!); this suggests
77322         that we should switch from unsigned int to size_t for slot numbers.
77323
77324 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77325
77326         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77327         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77328         NetBSD kernels.  Requested by Richard Stallman.
77329
77330 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77331
77332         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77333         to allocate the returned structure.  Do not allocate a subarray,
77334         as x2nrealloc will do that.
77335         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77336         instead of xnrealloc.
77337         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77338
77339 2003-10-27  Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/stdbool_.h: Better support for BeOS.
77342
77343 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77344
77345         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77346         now uses inline.
77347
77348 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77349
77350         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77351         callers that want to do their own size-overflow checking.  Include
77352         <stdbool.h>, since xalloc_oversized returns bool.
77353         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77354         to use xalloc_oversized.
77355
77356         Add two functions x2realloc, x2nrealloc, for programs that grow
77357         arrays dynamically by doubling their sizes.
77358         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77359         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77360         New functions.
77361
77362         Port to C99 semantics for 'inline' of external functions.
77363         Bug reported by Bruno Haible.
77364         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77365         with the old contents of xnmalloc.
77366         (xnmalloc, xmalloc): Use it.
77367         (xnrealloc_inline): New static inline function,
77368         with the old contents of xnrealloc.
77369         (xnrealloc, xrealloc): Use it.
77370
77371         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77372         that.
77373
77374 2003-10-26  Karl Berry  <karl@gnu.org>
77375
77376         * config/srclist.txt (COPYING.DOC): no longer available from
77377         /gd/gnuorg; don't know where the ultimate source is.
77378
77379 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77380
77381         Fix several address-calculation bugs in the hash modules,
77382         plus some minor code cleanup.
77383
77384         * lib/hash.h: Include <stdbool.h>, for bool.
77385         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77386         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77387         hash_get_n_entries, hash_get_max_bucket_length,
77388         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77389         hash_rehash): Use size_t rather than unsigned.
77390         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77391         hash_get_n_buckets_used, hash_get_n_entries,
77392         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77393         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77394         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77395         Likewise.
77396         (SIZE_MAX): Define if not defined.
77397         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77398         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77399         hash_print):
77400         Use const * when possible.
77401         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77402         (check_tuning): Fix bug: if tuning parameters were very close to
77403         0 or 1, rounding errors could have caused subscript violations.
77404         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77405         (hash_initialize): Add 'fail:' label
77406         to free table and return NULL, and use it to simplify code.
77407         Use calloc rather than clearing the storage ourself.
77408         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77409         buffer size calculations.
77410         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77411         Include <stddef.h>, for size_t.
77412         * lib/hash-pjw.c (hash_pjw): Likewise.
77413         Switch to method described by Bruno Haible.
77414         Include <limits.h>, for CHAR_BIT.
77415         (SIZE_BITS): New macro.
77416
77417 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77418
77419         * m4/getline.m4 (AM_FUNC_GETLINE):
77420         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77421         hosts.  Problem reported by Derek Robert Price in
77422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77423         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77424         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77425
77426 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77429         ceiling the allocation at NMAX bytes rather than silently
77430         discarding input bytes before NMAX is reached.  This makes
77431         a difference only if NMAX exceeds SIZE_MAX / 2.
77432
77433         * lib/obstack.c: Merge from glibc.
77434         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77435         Add libc_hidden_def (_obstack_newchunk).
77436         (_obstack_free) [! defined _LIBC]: Remove.
77437         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77438         a clone of the function body.
77439         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77440         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77441
77442         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77443         glibc.
77444         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77445         arg to memcpy.
77446
77447         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77448         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77449         Don't use lvalue casts, as GCC plans to remove support for them
77450         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77451         was also present in the non-GCC version, indicating that this
77452         code had always been buggy and had never been widely used.
77453         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77454         Use the fast variant of each macro, rather than copying the
77455         definiens of the fast variant; that way, we'll be more likely to
77456         catch future bugs in the fast variants.
77457
77458 2003-10-20  Bruno Haible  <bruno@clisp.org>
77459
77460         * modules/wait-process: New file.
77461         * MODULES.html.sh (func_all_modules): Add wait-process.
77462
77463 2003-10-20  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/wait-process.m4: New file.
77466
77467 2003-10-20  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/wait-process.h: New file, from GNU gettext.
77470         * lib/wait-process.c: New file, from GNU gettext.
77471
77472 2003-10-19  Jim Meyering  <jim@meyering.net>
77473
77474         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77475         HPUX 10.20.
77476
77477 2003-10-18  Karl Berry  <karl@gnu.org>
77478
77479         * config/config.guess: update from config.
77480
77481 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77482
77483         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77484         (getgroups): First arg is int, not size_t.
77485         Don't let 'free' mangle errno.
77486
77487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77488
77489         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77490
77491 2003-10-16  Karl Berry  <karl@gnu.org>
77492
77493         * config/config.{guess,sub}: update from config.
77494
77495 2003-10-16  Jim Meyering  <jim@meyering.net>
77496
77497         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77498         memcpy.
77499
77500 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77501
77502         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77503         (SIZE_MAX): Remove.
77504         (new_exclude, add_exclude_file): Initial size no longer needs to
77505         be a power of 2.
77506         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77507         our own address arithmetic overflow checking.
77508
77509         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77510         (fnmatch): Do not alloca more than 2000 wide characters;
77511         instead, use malloc for large buffers.
77512         Check for address arithmetic overflow, and return -1
77513         with errno set to ENOMEM in that case.
77514         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77515         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77516         instead, return -1.  Check for address arithmetic overflow.
77517
77518 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77519
77520         Handle invalid suffixes and overflow independently, so that
77521         callers can treat them independently as needed.  Fix some bugs in
77522         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77523         suffix for a human-readable blocksize.  The major caller-visible
77524         change is the addition of a new
77525         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77526         that both overflow and suffix chars were found.
77527
77528         * lib/human.c (humblock): Don't check separately for invalid suffix
77529         char; that is xstrtoumax's job (now that its bug is fixed).
77530         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77531         INTMAX_MAX]: New macros.
77532         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77533         TYPE_MAXIMUM): New macros.
77534         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77535         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77536         if overflow occurs, as it's what __strtol does and it's more useful
77537         in practice.
77538         (__xstrtol): If __strtol reports some error other than ERANGE,
77539         reflect it to the caller as LONGINT_INVALID.  If it reports
77540         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77541         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77542         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77543         value.
77544         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77545         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77546         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77547         [defined UINTMAX_MAX]: New macros.
77548
77549 2003-10-14  Bruno Haible  <bruno@clisp.org>
77550
77551         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77552
77553 2003-10-14  Bruno Haible  <bruno@clisp.org>
77554
77555         * m4/sig_atomic_t: New file, from GNU gettext.
77556         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77557
77558 2003-10-14  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77561         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77562         Also use volatile where needed.
77563
77564 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77565
77566         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77567         Change maintainer from Bruno Haible to 'all'.
77568
77569 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77570
77571         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77572
77573 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77574
77575         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77576         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77577         and define in terms of the other primitives.
77578         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77579         (SIZE_MAX): Define if not already defined.
77580         (array_size_overflow): New function.
77581         (xalloc_die): Abort instead of exiting if 'error' returns.
77582         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77583         (xmalloc, xrealloc): Use them.
77584         (xcalloc): Check for address arithmetic overflow.
77585         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77586         a bit faster than strcpy.
77587
77588 2003-10-10  Simon Josefsson  <jas@extundo.com>
77589
77590         * modules/argp (Depends-on): Add restrict and strcase.
77591
77592 2003-10-10  Simon Josefsson  <jas@extundo.com>
77593
77594         * m4/argp.m4: Add AC_C_INLINE.
77595
77596 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77597
77598         Merge getpass from libc, plus a few fixes.
77599
77600         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77601         Include <stdbool.h>.
77602         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77603         __fsetlocking to empty.
77604         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77605         do include <bits/libc-lock.h>.
77606         Do not include <fcntl.h>; not needed.
77607         [_LIBC]: Include <wchar.h>.
77608         (NOTCANCEL_MODE): New macro.
77609         (flockfile, funlockfile) [_LIBC]: New macros.
77610         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77611         [!_LIBC]: New macros.
77612         (call_fclose): New function.
77613         (getpass): Use it.  Save tty stream separately; this simplifies the
77614         code and makes it more reliable if stdin happens to equal stdout.
77615         Invoke __fsetlocking on tty.
77616         Handle thread cancellation if needed.
77617         Namespace cleanup (use __tcgetattr, __getline).
77618         Use bool for Booleans.
77619         [USE_IN_LIBIO]: Handle wide streams.
77620         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77621         stream might go where.
77622
77623         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77624         doesn't have to include <stdio.h> before us.
77625         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77626         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77627         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77628         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77629         if not declared, so that we can use getpass.c code from libc without
77630         rewriting it.
77631         (flockfile, ftrylockfile, funlockfile): New macros.
77632
77633 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77634
77635         * modules/getpass: Depend on stdbool.
77636
77637 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77638
77639         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77640
77641 2003-10-07  Karl Berry  <karl@gnu.org>
77642
77643         * config/config.{guess,sub}: update from config.
77644
77645 2003-10-06  Jim Meyering  <jim@meyering.net>
77646             Bruno Haible  <bruno@clisp.org>
77647
77648         This lets translators provide better translations for the
77649         "Written by ..." part of --version output.
77650         * lib/version-etc.h: Include stdarg.h.
77651         (version_etc_copyright): Declare as readonly.
77652         (version_etc): Make this function variadic with a NULL-terminated list
77653         of author name strings.
77654         (version_etc_va): New declaration.
77655         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77656         (version_etc_copyright): Declare as readonly.
77657         (version_etc_va): New function. Provide a different translatable string
77658         for each possible number of authors < 10. Abbreviate when there are 10
77659         authors or more.
77660         (version_etc): Make this function variadic. Call version_etc_va.
77661         Suggestion from Gary V. Vaughan.
77662
77663         * lib/long-options.h (parse_long_options): Change prototype: the
77664         authors string is moved to the end and becomes variadic.
77665         * lib/long-options.c: Include stdarg.h.
77666         (parse_long_options): Make this function variadic, too.
77667         Call version_etc_va, not version_etc.
77668
77669 2003-10-06  Bruno Haible  <bruno@clisp.org>
77670
77671         * modules/version-etc-2: Remove file.
77672         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77673
77674 2003-10-06  Bruno Haible  <bruno@clisp.org>
77675
77676         * modules/fatal-signal: New file.
77677         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77678
77679 2003-10-06  Bruno Haible  <bruno@clisp.org>
77680
77681         * m4/fatal-signal.m4: New file.
77682         * m4/signalblocking.m4: New file, from GNU gettext.
77683
77684 2003-10-06  Bruno Haible  <bruno@clisp.org>
77685
77686         * lib/version-etc-2.h: Remove file.
77687         * lib/version-etc-2.c: Remove file.
77688
77689 2003-10-06  Bruno Haible  <bruno@clisp.org>
77690
77691         * lib/fatal-signal.h: New file, from GNU gettext.
77692         * lib/fatal-signal.c: New file, from GNU gettext.
77693
77694 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77695
77696         * README: Rework advice for preventing empty .o files.
77697         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77698         not <sys/types.h>.
77699
77700 2003-10-04  Karl Berry  <karl@gnu.org>
77701
77702         * lib/argp*: update from libc.
77703
77704 2003-10-04  Karl Berry  <karl@gnu.org>
77705
77706         * config/config.{guess,sub}: update from config.
77707
77708 2003-10-02  Bruno Haible  <bruno@clisp.org>
77709
77710         * modules/lchown (Include): Add lchown.h.
77711         * modules/time_r (Include): Use "..." syntax.
77712         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77713
77714 2003-10-01  Simon Josefsson  <jas@extundo.com>
77715
77716         * MODULES.html.sh (func_all_modules): Move gethostname from section
77717         'based on' to section 'lacking' POSIX:2001.
77718
77719 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77720
77721         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77722         to output mode on the same stream.
77723
77724 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77725
77726         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77727         Fix arg typo in previous patch.
77728
77729 2003-09-28  Jim Meyering  <jim@meyering.net>
77730
77731         * lib/error.c: Correct cpp indentation.
77732
77733 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77734
77735         * modules/free: New file.
77736
77737 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77738
77739         * m4/free.m4: New file.
77740
77741 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77742
77743         * lib/minmax.h (MIN, MAX)
77744         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77745         Omit the special code that used __typeof__, since we worry that
77746         it could be more trouble than it's worth.  See:
77747         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77748         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77749
77750         * lib/free.c: New file.
77751
77752 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77753
77754         Trivial fixes to Makefile.am parts of module listings.
77755         * modules/strstr: Append strstr.h to lib_SOURCES.
77756         * modules/strcase: Likewise, for strcase.h.
77757
77758 2003-09-27  Karl Berry  <karl@gnu.org>
77759
77760         * config/mkinstalldirs: update from automake.
77761
77762 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77763
77764         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77765         (error_tail): Do not loop, reallocating temporary buffer, since
77766         the output cannot contain more wide characters than the input
77767         contains bytes, the size must be big enough already.  This avoids
77768         one potential size overflow calculation.  Check for size overflow
77769         when calculating temporary buffer size.  Free temporary buffer
77770         when done, if it was allocated with malloc; this plugs a memory
77771         leak.  Remove casts from void * to pointers, that are no longer
77772         needed now that we're assuming C89 or better.
77773
77774         Merge error changes from glibc.
77775
77776         * lib/error.c, error.h: Update copyright notice header to match glibc.
77777         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77778         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77779         Disable cancellation while printing error.
77780         * lib/error.h: Prepend __ to parameter names.
77781
77782 2003-09-26  Jim Meyering  <jim@meyering.net>
77783
77784         * lib/error.c (error_tail): Move some declarations
77785         into inner scope where the local variables are used.
77786
77787 2003-09-26  Bruno Haible  <bruno@clisp.org>
77788
77789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77790         stpncpy().
77791         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77792
77793 2003-09-26  Bruno Haible  <bruno@clisp.org>
77794
77795         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77796         (stpncpy): Define as alias for gnu_stpncpy.
77797         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77798
77799 2003-09-25  Simon Josefsson  <jas@extundo.com>
77800
77801         * lib/xgetdomainname.h: New file.
77802         * lib/xgetdomainname.c: New file.
77803
77804 2003-09-25  Simon Josefsson  <jas@extundo.com>
77805             Bruno Haible  <bruno@clisp.org>
77806
77807         * modules/getdomainname: New file.
77808         * modules/xgetdomainname: New file.
77809         * MODULES.html.sh (func_all_modules): Add getdomainname,
77810         xgetdomainname.
77811
77812 2003-09-25  Simon Josefsson  <jas@extundo.com>
77813             Bruno Haible  <bruno@clisp.org>
77814
77815         * m4/getdomainname.m4: New file.
77816
77817 2003-09-25  Simon Josefsson  <jas@extundo.com>
77818             Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/getdomainname.h: New file.
77821         * lib/getdomainname.c: New file.
77822
77823 2003-09-25  Karl Berry  <karl@gnu.org>
77824
77825         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77826
77827 2003-09-25  Karl Berry  <karl@gnu.org>
77828
77829         * config/install-sh: update from automake.
77830
77831 2003-09-25  Bruno Haible  <bruno@clisp.org>
77832
77833         * modules/version-etc-2: New file, from modules/version-etc with
77834         modifications.
77835         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77836
77837 2003-09-25  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77840         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77841
77842 2003-09-24  Simon Josefsson  <jas@extundo.com>
77843
77844         * modules/xgethostname: Add xgethostname.h.
77845
77846 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77847
77848         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77849         the buffer associated with the argument.  Bug reported by
77850         Simon Josefsson.
77851
77852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77853
77854         * README: Document assumptions that 'int' is at least 32 bits
77855         wide, that integer arithmetic is 2's complement without overflow,
77856         that there are no holes in integer values, that adding sizes of
77857         two nonoverlapping objects can't overflow, and that all-bits-zero
77858         yields scalar zero.  Fix spelling and capitalization typos.
77859
77860 2003-09-19  Karl Berry  <karl@gnu.org>
77861
77862         * lib/argp.h: update from libc.
77863
77864 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77865
77866         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77867         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77868         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77869
77870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77871
77872         * gnulib-tool: Use "test -h", not "test -L", for portability
77873         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77874         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77875         (sed_extract_prog): Issue s commands one-by-one, rather than
77876         using \| in one s command.
77877
77878 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77879
77880         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77881         input error, instead of returning NULL the next time we are called
77882         (and therefore losing track of errno).
77883
77884 2003-09-16  Bruno Haible  <bruno@clisp.org>
77885
77886         * gnulib-tool (func_create_testdir): Warn about duplicated
77887         dependencies.
77888
77889 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77890
77891         * modules/argmatch, modules/fatal, modules/obstack,
77892         modules/xalloc, modules/xgethostname: Sort dependencies by
77893         importance, not alphabetically.
77894
77895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77896
77897         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77898         fails, so that the caller gets the proper errno.
77899
77900         * lib/readutmp.c (read_utmp): Likewise.
77901         Check for fstat error.  Close stream and free storage
77902         when failing.
77903
77904 2003-09-14  Karl Berry  <karl@gnu.org>
77905
77906         * config/srclist.txt (strdup.c): disable for c89 changes.
77907
77908 2003-09-14  Jim Meyering  <jim@meyering.net>
77909
77910         * lib/getloadavg.c: Correct cpp indentation.
77911         * lib/strdup.c: Likewise.
77912         * lib/vasnprintf.c: Likewise.
77913
77914 2003-09-14  Bruno Haible  <bruno@clisp.org>
77915
77916         * modules/fwriteerror: New file.
77917         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77918
77919 2003-09-14  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/fwriteerror.h: New file.
77922         * lib/fwriteerror.c: New file.
77923
77924 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77925
77926         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77927         modules/xgethostname, modules/xalloc: Depend on exit.
77928
77929 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77930
77931         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77932
77933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77934         and AC_MINIX, too, so that their extensions are available.
77935
77936         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77937         This macro has been superseded by gl_BACKUPFILE.
77938
77939         More patches to assume C89 or better.
77940
77941         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77942
77943         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77944         unconditionally.
77945         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77946         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77947         Include <string.h>, <stdlib.h> unconditionally.
77948         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77949         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77950         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77951         headers or for string.h.
77952         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77953         or strtoul.
77954
77955         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77956         headers.
77957         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77958         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77959         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77960         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77963         memcpy, memset.
77964         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77965         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77966         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77967         strtol.
77968         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77969         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77971         strtoul.
77972
77973 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77974
77975         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77976         * lib/obstack.c [!defined _LIBC]: Likewise.
77977         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77978         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77979         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77980
77981         More changes to assume C89 or better.
77982
77983         * lib/error.c (error_tail): Assume vprintf.
77984
77985         * lib/argmatch.c (getenv): Remove decl.
77986         * lib/progreloc.c (get_full_program_name): Define via prototype.
77987         * lib/setenv.c (clearenv): Likewise.
77988         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77989         needed.
77990         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77991         (malloc, memcpy): Remove decls.
77992         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77993         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77994         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77995         (memcpy): Remove macro.
77996         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77997         (__P): Remove.  All uses removed.
77998         (PTR): Remove.  All uses changed to void *.
77999         (CHAR_BIT, NULL): Remove.
78000         (spaces, zeros, memset_space, memset_zero)
78001         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78002         Remove.
78003         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78004         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78005         Define with prototype.
78006         Remove now-unnecessary prototype decl.
78007         (extra_args_spec): Assume ANSI C.  All uses changed.
78008         (extra_args_spec_iso): Remove.
78009         (my_strftime, emacs_strftimeu): Define via prototype.
78010         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78011         unconditionally.
78012         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78013         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78014         (strtoul, strtol): Remove decls.
78015         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78016         LONG_MAX): Remove.
78017         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78018         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78019         (LOCALE_PARAM_PROTO): New macro.
78020         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78021         (INTERNAL (strtol), strtol): Define with a prototype.
78022         (PARAMS): Remove.  All uses removed.
78023         * lib/tempname.c: Include <string.h> unconditionally.
78024         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78025         * lib/xgethostname.c (main): Define with a prototype.
78026         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78027         Include <stdlib.h> unconditionally.
78028         (calloc, malloc, realloc, free): Remove decls.
78029         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78030         Include <stdlib.h> unconditionally.  Sort include file names.
78031         (strtod): Remove.
78032         (xstrtod): Define with a prototype.
78033         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78034         (strtol, strtoul): Remove decls.
78035
78036 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78037
78038         More patches to assume C89 or better.
78039         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78040         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78041         string.h, memchr, STDC_HEADERS.
78042
78043 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78044
78045         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78046         Include <stdlib.h>, <string.h> unconditionally.
78047         Remove now-unnecessary cast to char *.
78048         * lib/strnlen.c: Include <string.h> unconditionally.
78049         * lib/yesno.c (yesno): Define with a prototype.
78050
78051 2003-09-11  Bruno Haible  <bruno@clisp.org>
78052
78053         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78054
78055 2003-09-10  Jim Meyering  <jim@meyering.net>
78056
78057         * lib/error.c: Correct indentation of cpp directives.
78058
78059 2003-09-10  Bruno Haible  <bruno@clisp.org>
78060
78061         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78062         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78063         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78064         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78065         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78066         <stdlib.h> and <string.h> checks.
78067         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78068         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78069
78070 2003-09-10  Bruno Haible  <bruno@clisp.org>
78071
78072         * lib/strcspn.c: Include <string.h> unconditionally.
78073         * lib/strpbrk.c: Include <string.h> unconditionally.
78074         * lib/strstr.c: Include <string.h> unconditionally.
78075         * lib/unicodeio.c: Include <string.h> unconditionally.
78076         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78077         * lib/unsetenv.c: Likewise.
78078         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78079         * lib/yesno.c: Include <stdlib.h> unconditionally.
78080         (rpmatch): Add prototype.
78081
78082 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78083
78084         More patches to assume C89 or better.
78085         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78086         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78087         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78088         or for string.h.
78089         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78090         stdlib.h.
78091         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78092         C headers.
78093         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78094         string.h.
78095         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78096         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78097         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78098         or for string.h.
78099         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78100         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78101         C headers.
78102         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78103         memcpy.
78104         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78105         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78106         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78107         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78108         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78109         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78110         string.h, free.
78111         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78112         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78113         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78114         C headers, or for string.h.
78115         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78116         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78117         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78118         headers, memory.h, stdlib.h, string.h, strings.h.
78119         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78120         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78121         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78122         strchr.
78123         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78124         headers, memory.h, string.h.
78125         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78126         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78127         free.
78128         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78129         headers.
78130         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78131         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78132         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78133         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78134         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78135
78136 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78137
78138         More K&R removal.
78139
78140         * lib/acosl.c (main): Use a prototype.
78141         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78142         tanl.c: Likewise.
78143
78144         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78145
78146         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78147         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78148         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78149         with a prototype.
78150         * lib/getopt.c (const): Remove macro.
78151         Include <string.h> unconditionally.
78152         (my_index): Remove; all uses changed to strchr.
78153         (strlen): Remove decl.
78154         (exchange): Remove forward decl; no longer needed.
78155         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78156         Define with prototype.
78157         * lib/getopt1.c (const): Remove macro.
78158         (getopt_long, getopt_long_only, main): Define with prototype.
78159
78160         * lib/getugroups.c: Include <string.h> unconditionally.
78161
78162         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78163         (getusershell, setusershell, endusershell, readname, main):
78164         Define with prototypes.
78165
78166         * lib/group-member.c: Include group-member.h first.
78167         Include <stdlib.h> unconditionally.
78168
78169         * lib/hard-locale.c: Include hard-locale.h first.
78170         Include <stdlib.h>, <string.h> unconditionally.
78171
78172         * lib/hash.c (free, malloc): Remove decls.
78173         Include <stdlib.h> unconditionally.
78174
78175         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78176         (getenv): Do not declare.
78177
78178         * lib/idcache.c: Include <string.h> unconditionally.
78179
78180         * lib/long-options.c: Include long-options.h first, to test interface.
78181         Include <stdlib.h> unconditionally.
78182
78183         * lib/makepath.c: Include makepath.h first, to test interface.
78184         Include <stdlib.h> and <string.h> unconditionally.
78185
78186         * lib/linebuffer.c: Include <stdlib.h>.
78187         (free): Remove decl.
78188
78189         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78190         stddef.h. rpl_malloc returns void *, not char *.
78191         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78192         prototype.
78193
78194         * lib/md5.h: Include <limits.h> unconditionally.
78195         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78196         (__P): Remove; all uses removed.
78197         * lib/md5.c: Include "md5.h" first.
78198         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78199         md5_buffer, md5_process_bytes, md5_process_block):
78200         Define with prototypes.
78201         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78202         * lib/sha.c: Include "sha.h" first.
78203         Include <stdlib.h>, <string.h> unconditionally.
78204
78205         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78206         * lib/memcmp.c (__ptr_t): Likewise.
78207         * lib/memrchr.c (__ptr_t): Likewise.
78208         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78209         Include <string.h> unconditionally.
78210         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78211         * lib/memchr.c: Include <stdlib.h> unconditionally.
78212         * lib/memchr.c (LONG_MAX): Remove.
78213         * lib/memrchr.c (LONG_MAX): Likewise.
78214         * lib/memchr.c (__memchr): Define via a prototype.
78215         * lib/memrchr.c (__memrchr): Likewise.
78216         * lib/memcmp.c (__P): Remove, and remove all uses.
78217         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78218         Remove forward decls; no longer needed.
78219         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78220         Use types required by C89 in prototype.
78221
78222         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78223         * lib/savedir.c: Likewise.
78224         * lib/mkdir.c (free): Remove decl.
78225         * lib/rmdir.c (rmdir): Define with a prototype.
78226         * lib/savedir.c: Include savedir.h first, to test interface.
78227
78228         * lib/mktime.c (STDC_HEADERS): Remove.
78229         Include <stdlib.h>, <string.h> unconditionally.
78230
78231         * lib/modechange.c: Include <stdlib.h> unconditionally.
78232         (malloc): Remove decl.
78233
78234         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78235         (free): Remove decl.
78236
78237         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78238         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78239         (This type really should be intptr_t, but that's a C99ism.)
78240         (_obstack_memcpy): Remove: all uses changed to memcpy.
78241         Include <string.h> unconditionally.
78242         (struct obstack): Assume __STDC__ for types of members
78243         chunkfun, freefun, extra_arg.
78244         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78245         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78246         obstack_begin, obstack_specify_allocation,
78247         obstack_specify_allocation_with_arg, obstack_chunkfun,
78248         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78249         Remove unprototyped decls and the macros that use them.
78250         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78251         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78252         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78253         (defined __STDC__ && __STDC__)]:
78254         Remove nonprototyped code.
78255         Include <stdlib.h> unconditionally.
78256         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78257         _obstack_allocated_p, _obstack_free, obstack_free,
78258         _obstack_memory_used, print_and_abort):
78259         Define using prototypes.
78260         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78261         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78262         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78263         obstack_next_free, obstack_object_size, obstack_room) [0]:
78264         Remove unused, unprototyped code.
78265
78266         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78267
78268         * lib/physmem.c (physmem_total, physmem_available, main): Define
78269         with prototypes.
78270
78271         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78272         (main): Define with a prototype.
78273
78274         * lib/posixver.c (getenv): Remove decl.
78275
78276         * lib/putenv.c (malloc): Returns void *, not char *.
78277         Include <string.h> unconditionally.
78278         (strchr, memcpy, NULL): Do not define.
78279
78280         * lib/readtokens.c: Include readtokens.h first, to test interface.
78281         Include <stdlib.h>, <string.h> unconditionally.
78282         (init_tokenbuffer): Define with a prototype.
78283
78284         * lib/regex.c (PARAMS): Remove.  All uses removed.
78285         All uses of _RE_ARGS removed, too.
78286         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78287         unconditionally.
78288         (bzero): Assume memset exists.
78289         (memcmp, memcpy, NULL): Remove.
78290         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78291         char, or assignments to local vars of type signed char.
78292         (init_syntax_once, PREFIX(extract_number_and_incr),
78293         PREFIX(print_partial_compiled_pattern),
78294         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78295         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78296         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78297         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78298         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78299         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78300         wcs_compile_range, byte_compile_range, truncate_wchar,
78301         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78302         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78303         count_mbs_length, wcs_re_match_2_internal,
78304         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78305         PREFIX(alt_match_null_string_p),
78306         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78307         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78308         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78309         now-unnecessary declaration, if any.
78310         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78311         regcomp, regexec):
78312         Remove now-unnecessary casts among pointer types.
78313         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78314
78315         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78316         (free): Remove decl.
78317
78318         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78319
78320         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78321         (free): Remove decl.
78322
78323         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78324         * lib/xgetcwd.c: Likewise.
78325
78326         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78327         (free): Remove decl.
78328
78329         * lib/strchrnul.c (strchrnul): Define with a prototype.
78330         Fix bug: c_in was not converted to char before searching.
78331
78332         The following changes are not K&R related:
78333
78334         * lib/group-member.h: Include <sys/types.h>, so that this file is
78335         self-contained.
78336         * lib/makepath.h: Likewise.
78337
78338         * lib/getusershell.c (readname, default_index, line_size, readname):
78339         Use size_t, not int, for sizes.
78340         (readname): If the size overflows, report an error instead of
78341         looping forever.
78342
78343 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78344
78345         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78346         libc.
78347
78348 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78349
78350         * README: New section: portability guidelines.
78351
78352 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78353
78354         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78355         C89 spec.
78356
78357 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78358
78359         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78360
78361 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78362
78363         Assume C89 or better; remove K&R cruft.
78364         A few of these changes were first proposed by Derek Robert Price
78365         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78366
78367         * lib/addext.c: Include <string.h> unconditionally.
78368         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78369         Don't declare getenv or malloc.
78370
78371         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78372         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78373         (NULL): Remove.
78374         (find_stack_direction, alloca): Use prototypes.
78375
78376         * lib/atexit.c (atexit): Define using a prototype.
78377
78378         * lib/basename.c, dirname.c, stripslash.c:
78379         Include <string.h> unconditionally.
78380
78381         * lib/bcopy.c: Include <stddef.h>.
78382         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78383
78384         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78385
78386         * lib/error.h (error, error_at_line, error_print_progname)
78387         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78388         * lib/error.c: Include error.h first, to check interface.
78389         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78390         (VA_START): Remove; all uses changeed to va_start.
78391         (exit, strerror): Remove decls.
78392         (error_print_progname): Prototype uncondionally.
78393         Don't include <errno.h>; no longer needed.
78394         (private_strerror): Remove.
78395         (error_tail): Always define.
78396         (error, error_at_line): Assume C89 or better; always use prototypes.
78397         * lib/fatal.c: Include "fatal.h" first, to test interface.
78398         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78399         (VA_START): Remove; all uses changed to va_start.
78400         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78401         this case.
78402         (exit): Remove decl.
78403         (fatal): Prototype unconditionally.  Assume va_start works.
78404         Abort at end, to pacify gcc.
78405
78406         * lib/euidaccess.c (main): Define with a prototype.
78407
78408         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78409
78410         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78411
78412         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78413         prototypes.
78414         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78415         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78416         (getenv): Remove decl.
78417         (fnmatch): Define using a prototype.
78418         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78419         (FCT): Define using a prototype.
78420
78421         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78422
78423         * lib/gethostname.c: Include <stddef.h>.
78424         (gethostname): Define with prototype.  Length is size_t, not int.
78425
78426 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78427
78428         Assume C89 or better; remove K&R cruft.
78429         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78430         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78431         string.h, getenv, malloc.
78432         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78433         headers.
78434         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78435         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78436         do not check for strerror.
78437         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78438         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78439         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78440         do not check for doprnt or vprintf.
78441         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78442         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78443
78444 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78445
78446         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78447         getversion.c should have been removed then, but was accidentally
78448         preserved.
78449
78450         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78451         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78452
78453 2003-09-08  Karl Berry  <karl@gnu.org>
78454
78455         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78456                 config, forget about prep.
78457
78458         * config/depcomp, missing: update from automake.
78459
78460 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78461
78462         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78463         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78464
78465 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78466
78467         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78468         copy_tm_result.  Bug reported by Simon Josefsson in
78469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78470
78471 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78472
78473         * m4/time_r.m4: New file.
78474         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78475         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78476         is. Check for timegm declaration.
78477         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78478         Do not check for gmtime_r.
78479         Replace mktime if __mktime_internal does not exist and if mktime
78480         hasn't been replaced already.
78481
78482 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78483
78484         * lib/time_r.c, lib/time_r.h: New files.
78485
78486         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78487         __localtime_r.
78488         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78489         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78490
78491         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78492         __gmtime_r.
78493         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78494         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78495         Include <time_r.h>.
78496
78497         * lib/timegm.c: Switch to glibc implementation, with the following
78498         changes:
78499         [defined HAVE_CONFIG_H]: Include <config.h>.
78500         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78501         (__mktime_internal) [!defined _LIBC]: New decl.
78502         (__gmtime_r) [!defined _LIBC]: New macro and function.
78503         (timegm): Use a prototype, since gnulib assumes C89.
78504         Do not bother declaring tmp to be const, as it's not really usefu.
78505         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78506         (timegm): Declare only if HAVE_DECL_TIMEGM.
78507
78508 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78509
78510         * MODULES.html.sh (func_all_modules): Add time_r.
78511         * modules/time_r: New file.
78512         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78513         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78514
78515 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78516
78517         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78518         Bug reported by Lute Kamstra in
78519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78520
78521         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78522         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78523         course with correspondingly smaller numbers for tomorrow and
78524         yesterday.  From Tadayoshi Funaba.  Originally installed into
78525         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78526         coreutils merge?).
78527
78528 2003-08-31  Simon Josefsson  <jas@extundo.com>
78529
78530         * modules/timegm: New file.
78531         * MODULES.html.sh (func_all_modules): Add timegm.
78532
78533 2003-08-31  Simon Josefsson  <jas@extundo.com>
78534
78535         * m4/timegm.m4: New file.
78536
78537 2003-08-31  Simon Josefsson  <jas@extundo.com>
78538
78539         * lib/timegm.h: New file.
78540         * lib/timegm.c: New file.  Based on
78541         wget-1.8.2/src/http.c:mktime_from_utc.
78542
78543 2003-08-31  Karl Berry  <karl@gnu.org>
78544
78545         * lib/argp.h: update from libc.
78546
78547 2003-08-28  Bruno Haible  <bruno@clisp.org>
78548
78549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78550         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78551         followed by '#define fnmatch fnmatch_posix' gives an error.
78552
78553 2003-08-28  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78556         warning on QNX, which defines O_BINARY to 000000.
78557
78558 2003-08-27  Jim Meyering  <jim@meyering.net>
78559
78560         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78561         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78562         would fail after 32.  Reported by Danny Levinson.  Details here:
78563         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78564
78565 2003-08-24  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78568         MSVC7 <stdio.h> is included later.
78569
78570 2003-08-22  Simon Josefsson  <jas@extundo.com>
78571
78572         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78573
78574 2003-08-20  Karl Berry  <karl@gnu.org>
78575
78576         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78577
78578 2003-08-20  Bruno Haible  <bruno@clisp.org>
78579
78580         * modules/progname: New file.
78581         * MODULES.html.sh (func_all_modules): Add progname.
78582
78583 2003-08-20  Bruno Haible  <bruno@clisp.org>
78584
78585         * lib/progname.h: New file, from GNU gettext.
78586         * lib/progname.c: New file, from GNU gettext.
78587         * lib/progreloc.c: New file, from GNU gettext.
78588
78589 2003-08-19  Jim Meyering  <jim@meyering.net>
78590
78591         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78592         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78593
78594 2003-08-19  Bruno Haible  <bruno@clisp.org>
78595
78596         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78597         more.
78598
78599 2003-08-19  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/xstrdup.c: Assume <string.h> exists.
78602
78603 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78604
78605         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78606         in makefile rules.
78607
78608 2003-08-18  Jim Meyering  <jim@meyering.net>
78609
78610         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78611         * m4/lib-ld.m4: Likewise.
78612
78613 2003-08-18  Jim Meyering  <jim@meyering.net>
78614
78615         * lib/setenv.h: Indent nested cpp directive.
78616         * lib/vasnprintf.c: Remove trailing blanks.
78617
78618 2003-08-17  Simon Josefsson  <jas@extundo.com>
78619
78620         * modules/xstrndup: New file.
78621         * MODULES.html.sh (func_all_modules): Add xstrndup.
78622
78623 2003-08-17  Simon Josefsson  <jas@extundo.com>
78624
78625         * modules/argp: Fix autoconf macro name. Add more dependencies.
78626
78627 2003-08-17  Simon Josefsson  <jas@extundo.com>
78628
78629         * m4/xstrndup.m4: New file.
78630
78631 2003-08-17  Simon Josefsson  <jas@extundo.com>
78632
78633         * m4/argp.m4: New file.
78634
78635 2003-08-17  Simon Josefsson  <jas@extundo.com>
78636             Bruno Haible  <bruno@clisp.org>
78637
78638         * lib/xstrndup.h: New file.
78639         * lib/xstrndup.c: New file.
78640
78641 2003-08-17  Bruno Haible  <bruno@clisp.org>
78642
78643         * modules/strndup (Files, Include): Add lib/strndup.h.
78644
78645 2003-08-17  Bruno Haible  <bruno@clisp.org>
78646
78647         * modules/euidaccess (Files): Add lib/euidaccess.h.
78648
78649 2003-08-17  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/strndup.h: New file.
78652
78653 2003-08-17  Bruno Haible  <bruno@clisp.org>
78654
78655         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78656         like AC_GNU_SOURCE.
78657         * modules/extensions (configure.ac): Comment out the invocation of
78658         gl_USE_SYSTEM_EXTENSIONS.
78659
78660 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78661
78662         Merges from coreutils, etc.
78663         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78664         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78665         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78666         fixing a typo.
78667         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78668         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78669
78670 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78671
78672         Document merge from coreutils.
78673         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78674         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78675         * modules/utime: Add m4/utimes-null.m4.
78676
78677 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78678
78679         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78680         space, undoing this 2003-08-12 change:
78681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78682
78683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78684
78685         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78686         strtoul.c from libc, undoing this 2003-08-12 change:
78687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78688
78689 2003-08-16  Jim Meyering  <jim@meyering.net>
78690
78691         Merges from coreutils.
78692         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78693         prefix.  Adjust cache variables similarly.  Create 500 rather than
78694         just 300 files, to exercise bug on Darwin6.5, too.
78695         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78696         $missing_dir.
78697         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78698         AM_SYS_POSIX_TERMIOS.
78699         Reported by mkc@mathdogs.com.
78700         Also change use of $am_cv_sys_posix_termios
78701         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78702         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78703         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78704         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78705         in /proc/mounts until it finds one with matching device number.  This
78706         is unnecessary when the FILE argument *is* a mount point.  No stat call
78707         is necessary in that case.  So, disable the statvfs-testing code on
78708         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78709         as RedHat bug# 84846.
78710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78711         to 1MB, so as not to render systems with no stack size limit (e.g.,
78712         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78713         Include <unistd.h>.  On some systems,
78714         it is required for the definition of _SC_PAGESIZE.
78715
78716 2003-08-16  Jim Meyering  <jim@meyering.net>
78717
78718         Merge from coreutils.
78719         * lib/xstrtoimax.c: #else #if -> #elif.
78720         * lib/xstrtoumax.c: Likewise.
78721
78722 2003-08-16  Jim Meyering  <jim@meyering.net>
78723
78724         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78725         * m4/utimes.m4: Removed.
78726         * m4/utimes-null.m4: Renamed from utimes.m4.
78727
78728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78729         to 1MB, so as not to render systems with no stack size limit (e.g.,
78730         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78731         Include <unistd.h>.  On some systems,
78732         it is required for the definition of _SC_PAGESIZE.
78733
78734 2003-08-16  Jim Meyering  <jim@meyering.net>
78735         and Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         Merges from coreutils, etc.
78738
78739         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78740         using the latest version from cvs.  This avoids problems with #line
78741         directives using a vendor (Sun) compiler.
78742         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78743         Don't set GETGROUPS_LIB here; now it's
78744         done via getgroups.m4's wrapper function.
78745         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78746         rather than just in sh-util/configure.in, so that the
78747         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78748         same.
78749         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78750         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78751         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78752         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78753         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78754         Remove code that is now done by the newly-required macros.
78755         Append $(EXEEXT) to DF_PROG.
78756         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78757         Do not invoke or require the following here,
78758         since prereq.m4 or some gnulib .m4 now does this for us:
78759         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78760         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78761         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78762         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78763         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78764         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78765         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78766         AC_FUNC_OBSTACK.
78767         Do not replace the following functions, as this is now the job
78768         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78769         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78770         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78771         atexit getpass, strdup, getpagesize.
78772         Replace 'raise'.
78773         Do not check for the following functions, as this is now the job
78774         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78775         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78776         setregid.
78777         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78778         Check for sys/sysctl.h.
78779         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78780         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78781         of checking for ssize_t ourselves.
78782
78783         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78784         Require every macro that gnulib/modules/* suggests for us.
78785         (jm_PREREQ_ADDEXT): New macro.
78786         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78787         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78788
78789         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78790         (gl_PHYSMEM): Use it.
78791         Also check for `table' function.
78792         Check for new headers and functions.
78793         Add check for sys/sysmp.h.
78794         With suggestions from Kaveh Ghazi.
78795         Ignore headers that are present but cannot be compiled.  This
78796         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78797         C 5.4.
78798
78799 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78800
78801         Document merge from coreutils.
78802         * modules/userspec: Depend on posixver.
78803         * modules/strftime: Depend on tzset.
78804
78805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78806
78807         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78808         rather than tab, after '#' in shell-script copyright notices.
78809         Suggested by Bruno Haible.
78810
78811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78812
78813         * config/srclist-update: Use three spaces, rather than tab, after '#'
78814         in shell-script copyright notices.  Suggested by Bruno Haible.
78815         Remove unnecessary parenthesization in regular expression.
78816
78817 2003-08-15  Jim Meyering  <jim@meyering.net>
78818
78819         Merge from coreutils.
78820         * lib/xgethostname.c: Include <stdlib.h>.
78821         (xghostname): Don't exit for anything other than memory-related
78822         failure; just return NULL.
78823         * lib/userspec.c: Include "posixver.h".
78824         (parse_user_spec): Accept `.' as a separator only
78825         in pre-POSIX-200112 mode.
78826         * lib/strtoimax.c: Use #elif rather than #else #if.
78827         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78828         Remove function, now that we can rely on a working tzset function.
78829         [!_LIBC]: Ensure that the required autoconf test has been run.
78830         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78831         Use underlying_strftime for %r.
78832         * lib/sha.c: Merge in some clean-up and optimization changes from
78833         glibc.
78834         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78835         Ensure that it is a multiple of 64.
78836         Rearrange loop exit tests so as to avoid performing an
78837         additional fread after encountering an error or EOF.
78838         * lib/realloc.c: Update copyright date.
78839
78840 2003-08-15  Jim Meyering  <jim@meyering.net>
78841         and Paul Eggert  <eggert@twinsun.com>
78842
78843         Merge from coreutils.
78844         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78845         member but strut utmpx does not.  Needed for AIX 4.3.3.
78846         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78847
78848 2003-08-15  Jim Meyering  <jim@meyering.net>
78849         and Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         Merges from coreutils, etc.
78852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78853         Require gl_FUNC_TZSET_CLOBBER.
78854         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78855         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78856         members.
78857
78858 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78859
78860         Help the merge from coreutils.
78861         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78863         * m4/tzset.m4: Use it too.
78864
78865 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78866
78867         * modules/tzset: New file.
78868
78869 2003-08-14  Jim Meyering  <jim@meyering.net>
78870
78871         Merges from coreutils.
78872         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78873         variable names, rather than @FNMATCH_H@.
78874         * modules/alloca: Likewise for $(ALLOCA_H).
78875
78876         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78877         the three copies of the literal target, `fnmatch.h'.
78878         * modules/alloca (alloca.h): Likewise.
78879
78880 2003-08-14  Jim Meyering  <jim@meyering.net>
78881
78882         Merge from coreutils.
78883         * m4/tzset.m4: New file.
78884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78885         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78886         otherwise, AIX 5.1 systems would end up using the latter.
78887         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78888         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78889         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78890         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78891
78892 2003-08-14  Jim Meyering  <jim@meyering.net>
78893
78894         Merge from coreutils.
78895         * lib/obstack.h: Whitespace changes.
78896         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78897         and xcalloc return values.
78898         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78899         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78900         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78901         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78902         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78903         error from mntctl.
78904         Use mntctl's return value to drive the entry-processing loop, since
78905         we can't rely on the value of the vmt_length member in the last
78906         entry.  On some systems doing so could result in exhausting
78907         virtual memory.  Based in part on a patch from Mike Jetzer.
78908
78909 2003-08-14  Jim Meyering  <jim@meyering.net>
78910         and Paul Eggert  <eggert@twinsun.com>
78911
78912         Merges from coreutils, plus other fixes.
78913         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78914         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78915         for credits and details.  Thanks to Kaveh Ghazi for helping
78916         to keep these files in sync.
78917         (ARRAY_SIZE): Define it.
78918         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78919         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78920         (memcasecmp): Don't assume size_t fits in unsigned int.
78921         Remove casts and duplicate code.
78922         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78923         (memcpy): Remove definition.
78924         Merge in some clean-up and optimization changes from glibc.
78925         [BLOCKSIZE]: Move definition to top of file.
78926         Ensure that it is a multiple of 64.
78927         Rearrange loop exit tests so as to avoid performing an
78928         additional fread after encountering an error or EOF.
78929         * lib/md5.h (md5_uintptr): Define.
78930         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78931         return to the initial working directory.  Preserve errno
78932         for caller.
78933         * lib/idcache.c: Include "xalloc.h".
78934         (xmalloc, xrealloc): Remove decls.
78935         (getuser): Remove casts no longer required in C89.
78936         * lib/human.c: Include stdio.h, for sprintf.
78937         * lib/group-member.c: Include "xalloc.h".
78938         (xmalloc, xrealloc): Remove decls.
78939         (get_group_info): Remove casts no longer required in C89.
78940         * lib/getusershell.c (readname): Remove casts no longer required in
78941         C89.
78942         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78943         * lib/getline.c: Whitespace fix, from coreutils.
78944
78945 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78946
78947         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78948         Check for isascii.
78949
78950         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78951         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78952         Undo previous (whitespace-only) change.
78953
78954 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78955
78956         * lib/exclude.c: Include <ctype.h>
78957         (IN_CTYPE_DOMAIN): New macro.
78958         (is_space): New fn.
78959         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78960         and empty lines.
78961
78962         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78963         Undo previous (whitespace-only) change.
78964
78965 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78966
78967         * config/srclist-update: Change update back to the old behavior,
78968         leaving whitespace alone.  Use one 'sed' command rather than a
78969         pipeline.
78970         (fixlicense): Now a variable, not a function.
78971         (remove_trailing_blanks): Remove.
78972         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78973         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78974         Undo previous (whitespace-only) change.
78975
78976 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78977
78978         Merge from coreutils.
78979         * modules/euidaccess: Add lib_SOURCES, include for new
78980         file euidaccess.h
78981
78982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78983
78984         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78985         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78986         Normalize leading white space and remove trailing white space.
78987
78988         Merge from coreutils
78989         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78990
78991         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78992         0.12.1.  These files are now being upgraded automatically by
78993         ../config/srclist-update.
78994
78995 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78996
78997         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78998         Normalize leading white space and remove trailing white space.
78999         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79000         notice, as per ../config/srclist-update.
79001
79002         Merge from coreutils.
79003         * lib/euidaccess.h: New file.
79004         * lib/euidaccess.c: Include it.
79005         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79006         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79007         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79008
79009 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79010
79011         * config/srclist-update: Add copyright notice.
79012         (remove_id_lines, remove_trailing_blanks): New constants.
79013         (fixfile): Use them to normalize spacing a bit in copied files.
79014         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79015         Normalize leading white space and remove trailing white space.
79016
79017         * config/texinfo.tex: Sync with texinfo.
79018
79019         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79020         strtoul.c from libc, to merge coreutils whitespace changes.
79021
79022         * config/srclist.txt: Get the following m4 files from gettext:
79023         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79024         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79025         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79026         wint_t.m4.
79027
79028 2003-08-12  Karl Berry  <karl@gnu.org>
79029
79030         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79031         been made.
79032
79033 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79034
79035         * modules/gnu-source, m4/gnu-source.m4:
79036         Remove; we're assuming Autoconf 2.54 or later now.
79037         Suggested by Bruno Haible.
79038         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79039
79040 2003-08-11  Bruno Haible  <bruno@clisp.org>
79041
79042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79043
79044 2003-08-11  Bruno Haible  <bruno@clisp.org>
79045
79046         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79047         (vasnprintf): Use it instead of wcslen.
79048
79049 2003-08-11  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79052         value to ensure that _Bool promotes to int. Use #define for _Bool when
79053         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79054
79055 2003-08-10  Karl Berry  <karl@gnu.org>
79056
79057         * lib/regex.h: update from libc (whitespace fix).
79058
79059 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79060
79061         Merge some files from coreutils.  These changes were
79062         originally made by Jim Meyering.
79063         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79064         many older Unixes require this.
79065         * lib/alloca.c (alloca): Remove cast to argument of free;
79066         no longer needed in C89.
79067         * lib/alloca_.h, regex.h: Fix white space to match
79068         what GNU indent does.
79069
79070 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79071
79072         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79073         apparently Emacs's Unicode mode got confused before my 2003-08-05
79074         checkin.
79075
79076 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79077
79078         * m4/extensions.m4: New file.
79079         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79080         Require gl_USE_SYSTEM_EXTENSIONS.
79081         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79082         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79083
79084 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79085
79086         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79087         * modules/extensions, modules/gnu-source: New files.
79088         * modules/timespec, modules/unlocked-io: Depend on extensions.
79089
79090 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79091
79092         * modules/restrict: New file.
79093         * MODULES.html.sh (func_all_modules): Add restrict.
79094         * modules/regex: Depend on restrict.
79095
79096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79097
79098         * m4/restrict.m4: New file.
79099         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79100
79101 2003-08-07  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79104         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79105
79106 2003-08-07  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79109         makes the module 'getndelim2' compatible with the module 'getline'.
79110
79111 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79112
79113         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79114         byte with "\201" to avoid glitches when editing that source file
79115         with multi-gnome-terminal.
79116
79117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79118
79119         * lib/bumpalloc.h: Remove.
79120
79121 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79122
79123         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79124         * modules/bumpalloc: Remove.
79125
79126 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79127
79128         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79129         GNU coding style.
79130
79131         Merge from coreutils.
79132         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79133         1. From glibc.
79134         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79135         from Karl Berry, implemented by Jim Meyering.
79136         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79137         from Dmitry V. Levin.
79138         Remove anachronistic cast of xrealloc.
79139         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79140         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79141         type. Otherwise, it wouldn't compile with at least /bin/cc on
79142         ymp-cray-unicos9.0.2.X.
79143         Combine two mostly-identical uses of alloca into one.
79144         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79145
79146 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79147
79148         [From Emacs.]
79149
79150         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79151         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79152         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79153         obsolete NLIST_NAME_UNION.
79154         [__GNU__]: Undef BSD and FSCALE.
79155         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79156
79157 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79160         an enum type, so that it's guaranteed to promote to int.  See:
79161         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79162
79163 2003-08-03  Karl Berry  <karl@gnu.org>
79164
79165         * config/depcomp: update from automake.
79166
79167 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79168
79169         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79170         (strerror): Don't assume that a printable int fits in 14 bytes.
79171
79172 2003-07-31  Bruno Haible  <bruno@clisp.org>
79173
79174         * modules/getpass-gnu: New file.
79175         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79176
79177 2003-07-31  Bruno Haible  <bruno@clisp.org>
79178
79179         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79180
79181 2003-07-24  Karl Berry  <karl@gnu.org>
79182
79183         * config/missing: update from automake.
79184
79185 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79186             Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79189         * lib/getline.c (getline, getdelim): Likewise.
79190         Remove _GNU_SOURCE define; now it's defined in config.h through
79191         m4/getline.m4.
79192
79193 2003-07-23  Karl Berry  <karl@gnu.org>
79194
79195         * config/config.sub: update from prep.
79196
79197 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79198
79199         * modules/xalloc (Depends-on): Add exitfail.
79200         * modules/xmemcoll: Likewise.
79201
79202 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79203
79204         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79205         over-parenthesization in macros.
79206
79207         Sync with coreutils.
79208
79209         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79210         required by C99.
79211
79212         Use `exit_failure' for xalloc and xmemcoll instead of their own
79213         private exit-failure variables.
79214         * lib/xalloc.h (xalloc_exit_failure): Remove.
79215         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79216         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79217         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79218         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79219         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79220
79221 2003-07-20  Jim Meyering  <jim@meyering.net>
79222
79223         * modules/closeout (Depends-on): Add exitfail.
79224         Suggestion from Bruno Haible.
79225
79226 2003-07-19  Karl Berry  <karl@gnu.org>
79227
79228         * config/config.sub: update from prep.
79229
79230 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79231
79232         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79233         Remove.
79234         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79235         to test that it can stand by itself.  Include "exitfail.h".
79236         Clients should set exit_failure instead.
79237         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79238
79239 2003-07-18  Bruno Haible  <bruno@clisp.org>
79240
79241         * modules/getndelim2: New file.
79242         * modules/getline: Share files with module getndelim2.
79243         * modules/getnline: Depend on getndelim2 instead of sharing files with
79244         it. Add getnline.c to lib_SOURCES.
79245         * MODULES.html.sh (func_all_modules): Add getndelim2.
79246
79247 2003-07-18  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/getndelim2.m4: New file.
79250         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79251         invoke gl_PREREQ_GETNDELIM2.
79252         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79253         gl_PREREQ_GETNDELIM2.
79254         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79255         gl_GETNDELIM2.
79256
79257 2003-07-18  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/getndelim2.h: New file.
79260         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79261         getndelim2.h.
79262         (getndelim2): Make non-static. Change return type to ssize_t.
79263         * lib/getline.h: Change argument names.
79264         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79265         * lib/getnline.c: Include getndelim2.h.
79266
79267 2003-07-18  Andreas Schwab  <schwab@suse.de>
79268
79269         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79270
79271 2003-07-17  Karl Berry  <karl@gnu.org>
79272
79273         * config/config.sub: update from prep.
79274
79275 2003-07-17  Bruno Haible  <bruno@clisp.org>
79276
79277         * modules/getnline: New file.
79278         * modules/getline: Add lib/getndelim2.c to source file list.
79279         * MODULES.html.sh (func_all_modules): Add getnline.
79280
79281 2003-07-17  Bruno Haible  <bruno@clisp.org>
79282
79283         * m4/getnline.m4: New file.
79284
79285 2003-07-17  Bruno Haible  <bruno@clisp.org>
79286
79287         * m4/Makefile.am.in: Remove file.
79288         * m4/Makefile.am: Remove file.
79289         * m4/Makefile.in: Remove file.
79290
79291 2003-07-17  Bruno Haible  <bruno@clisp.org>
79292
79293         * lib/getnline.h: New file.
79294         * lib/getnline.c: New file.
79295         * lib/getndelim2.c: New file, extracted from getline.c.
79296         (getndelim2): Renamed from getdelim2, with added nmax argument.
79297         * lib/getline.c: Include getndelim2.c.
79298         (getdelim2): Moved out to getndelim2.c.
79299         (getline, getdelim): Update.
79300
79301 2003-07-17  Bruno Haible  <bruno@clisp.org>
79302
79303         * lib/Makefile.am: Remove file.
79304         * lib/Makefile.in: Remove file.
79305
79306 2003-07-17  Bruno Haible  <bruno@clisp.org>
79307
79308         * configure.in: Remove file.
79309         * Makefile.in: Remove file.
79310
79311 2003-07-17  Bruno Haible  <bruno@clisp.org>
79312
79313         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79314
79315 2003-07-16  Karl Berry  <karl@gnu.org>
79316
79317         * config/srclist-update: was running fixlicense twice, which caused
79318                 texinfo.tex to be nullified for some reason.  Simplify,
79319                 $gplsrc is no longer needed as far as I can see?
79320
79321 2003-07-16  Jim Meyering  <jim@meyering.net>
79322
79323         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79324
79325 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79326
79327         * config/srclist.txt: Get the following files from gettext-runtime/intl
79328         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79329         ref-del.sin.  From Bruno Haible.
79330         * config/srclist-update (fixfile): Change grep pattern again, since the
79331         previous fix didn't work (there was another trailing $).  Use
79332         '[$]' to escape the $s.
79333
79334 2003-07-15  Karl Berry  <karl@gnu.org>
79335
79336         * lib/vasnprintf.c: update from gettext.
79337
79338 2003-07-15  Karl Berry  <karl@gnu.org>
79339
79340         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79341         gets expanded when surrounded by '$'.
79342
79343 2003-07-15  Jim Meyering  <jim@meyering.net>
79344
79345         * modules/save-cwd: Don't depend on error.  From Derek Price.
79346
79347 2003-07-15  Jim Meyering  <jim@meyering.net>
79348
79349         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79350
79351 2003-07-14  Simon Josefsson  <jas@extundo.com>
79352
79353         * modules/mempcpy: New file.
79354         * MODULES.html.sh (func_all_modules): Add mempcpy.
79355
79356 2003-07-14  Simon Josefsson  <jas@extundo.com>
79357
79358         * m4/mempcpy.m4: New file.
79359
79360 2003-07-14  Simon Josefsson  <jas@extundo.com>
79361
79362         * lib/mempcpy.h: New file.
79363         * lib/mempcpy.c: New file.
79364
79365 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79366
79367         * modules/getdate, modules/posixtm: Depend on mktime.
79368
79369 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79370
79371         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79372         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79373         unicodeio.c, unicodeio.h, unlocked-io.h:
79374         Switch from LGPL to GPL.
79375
79376 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79377
79378         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79379         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79380         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79381         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79382         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79383         updated automatically by ../config/srclist-update.  This changes
79384         their license from LPGL to GPL.
79385
79386 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79387
79388         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79389         assumed to refer to the root of the most recent stable gettext version.
79390         * config/srclistvars.sh: Add defaults for eggert.
79391         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79392         Match "This program" as well as "The program".  This is needed
79393         for gettext.
79394
79395 2003-07-14  Jim Meyering  <jim@meyering.net>
79396
79397         Don't emit diagnostics.  Let callers do that.
79398         * lib/save-cwd.c: Don't include "error.h".
79399         (save_cwd): Don't call error.  Ensure that errno is valid
79400         when returning nonzero.
79401
79402         * lib/save-cwd.h (restore_cwd): Update prototype.
79403         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79404         Simplify.  Don't call error upon failure.  Let callers do that.
79405         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79406         when auditing is enabled.  But don't bother updating the #if.
79407
79408 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79409
79410         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79411         it breaks C++ compilation.
79412         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79413
79414 2003-07-10  Simon Josefsson  <jas@extundo.com>
79415
79416         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79417
79418 2003-07-10  Jim Meyering  <jim@meyering.net>
79419
79420         * m4/clock_time.m4: Remove trailing blank.
79421         * m4/intmax_t.m4: Likewise.
79422
79423 2003-07-10  Jim Meyering  <jim@meyering.net>
79424
79425         * lib/vasnprintf.c: Remove trailing blanks.
79426         Make cpp indentation consistent.
79427
79428 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79429
79430         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79431         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79432         Switch from LGPL to GPL.
79433
79434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79435
79436         * config/srclist.txt: Sort sublists.  Add
79437         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79438         that differ from gnulib for one reason or another; we'd like this list
79439         to be smaller but for now let's document what we have.
79440
79441 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79442
79443         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79444         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79445         and sweeter "eval x=$x".
79446         * config/srclist.txt: Get lib/argp* from glibc.
79447
79448 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79449
79450         * lib/mktime.c: Fix some boundary cases and remove need for floating
79451         point.
79452
79453         Issue a compile-time diagnostic if time_t is floating point, or if
79454         two's complement arithmetic is not in effect, or if arithmetic
79455         right shift does not propagate the sign.  These assumptions were
79456         all in the original code but they weren't checked.
79457
79458         (TIME_T_MIDPOINT, verify): New macros.
79459         (__isleap): Remove; it has integer overflow problems.
79460         (leapyear): New function, without those problems.
79461         (ydhms_tm_diff): Remove; splitting into two parts.
79462         (ydhms_diff): New function, containing the arithmetic part of
79463         the old ydhms_tm_diff function.  Issue a compile-time
79464         diagnostic if we are not using C99 integer division.
79465         Avoid casts when possible.
79466         (guess_time_tm): New function, containing the checking part of
79467         the old ydhms_tm_diff function.  Return the new value, rather than
79468         the difference between it and the old.  Accept a new argument T
79469         so that *T specifies the old value.  Check for overflow in the result.
79470
79471         (__mktime_internal): Use a time_t offset, not a long int offset.
79472         This undoes the 2003-06-04 change, which is no longer needed now
79473         that we have better overflow checking.
79474         (localtime_offset): Likewise.
79475
79476         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79477         and long are 64-bit but int is only 32-bit.
79478         (ydhms_diff): Use long int to store year1 and yday1.
79479         Issue a compile-time diagnostic if long int is not wide enough.
79480
79481         (__mktime_internal): Use long int to store adjusted year and yday.
79482         Use plain C rather than preprocessor commands, if that doesn't
79483         affect efficiency.
79484         Check for overflow (and try to repair) after each probe
79485         rather than checking only at the very end.  This avoids some bugs
79486         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79487         does not equal GMT offset at maximum time).
79488         Use integer to check for overflow rather than floating point; this
79489         is more portable to non-IEEE hosts, and is a tad faster.
79490         When we detect that we are oscillating between two values,
79491         don't check whether tm_isdst has the requested value, since
79492         we already know the answer.  When tm_isdst has the wrong value,
79493         use a different heuristic to find the right one, based on the
79494         extreme values actually observed in practice in tz2003a,
79495         rather than the (overly optimistic) "previous 3 calendar quarters".
79496
79497         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79498         "T const" to accommodate glibc style.
79499         (check_result): Use less-confusing report format.  "long" -> "long int.
79500         (main): Likewise.
79501         Don't loop if the iteration overflows time_t.
79502         Allow a negative step in the iteration.
79503
79504 2003-07-06  Karl Berry  <karl@gnu.org>
79505
79506         * config/depcomp: update from automake.
79507         * config/config.sub: update from prep.
79508
79509 2003-07-03  Karl Berry  <karl@gnu.org>
79510
79511         * config/config.guess: update from prep.
79512
79513 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79514
79515         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79516         xreadlink.c now includes it unconditionally.
79517
79518 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79519
79520         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79521         having it depend on HAVE_SYS_TYPES_H.
79522
79523 2003-07-01  Bruno Haible  <bruno@clisp.org>
79524
79525         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79526         <sys/types.h> should be sufficient.
79527         Reported by Paul Eggert.
79528
79529 2003-06-26  Karl Berry  <karl@gnu.org>
79530
79531         * config/depcomp: update from automake.
79532
79533 2003-06-26  Bruno Haible  <bruno@clisp.org>
79534
79535         * modules/human: Depend on module stdbool.
79536
79537 2003-06-25  Bruno Haible  <bruno@clisp.org>
79538
79539         * modules/readlink: New file.
79540         * modules/xreadlink: Depend on it.
79541         * MODULES.html.sh (func_all_modules): Add readlink.
79542
79543 2003-06-25  Bruno Haible  <bruno@clisp.org>
79544
79545         * m4/readlink.m4: New file.
79546
79547 2003-06-25  Bruno Haible  <bruno@clisp.org>
79548
79549         * lib/readlink.c: New file.
79550
79551 2003-06-22  Karl Berry  <karl@gnu.org>
79552
79553         * config/srclist.txt: update mkinstalldirs from automake.
79554         * config/mkinstalldirs: update.
79555
79556 2003-06-22  Bruno Haible  <bruno@clisp.org>
79557
79558         Portability to mingw32.
79559         * m4/ssize_t.m4: New file, from GNU gettext.
79560         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79561         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79562
79563 2003-06-22  Bruno Haible  <bruno@clisp.org>
79564
79565         * modules/safe-read: Add m4/ssize_t.m4.
79566         * modules/xreadlink: Add m4/ssize_t.m4.
79567
79568 2003-06-20  Bruno Haible  <bruno@clisp.org>
79569
79570         Assume C89, so PARAMS isn't needed.
79571         * lib/unicodeio.h (PARAMS): Remove.
79572         * lib/unicodeio.c: Don't use PARAMS.
79573
79574 2003-06-18  Karl Berry  <karl@gnu.org>
79575
79576         * config/config.{guess,sub}: update from prep.
79577
79578 2003-06-18  Jim Meyering  <jim@meyering.net>
79579
79580         Merge changes from coreutils.
79581         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79582         Remove explicit declarations of xmalloc and realloc.
79583         Include xalloc.h.
79584         (read_utmp): Remove anachronistic cast of xmalloc.
79585
79586 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79587
79588         Assume C89, so PARAMS isn't needed.
79589         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79590         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79591         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79592         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79593         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79594         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79595         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79596         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79597         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79598         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79599         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79600         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79601         no longer needed. Anyway, config.h should always be included before any
79602         other file.
79603
79604 2003-06-11  Simon Josefsson  <jas@extundo.com>
79605
79606         * modules/sysexits: New file.
79607         * MODULES.html.sh (func_all_modules): Add sysexits.
79608
79609 2003-06-11  Simon Josefsson  <jas@extundo.com>
79610
79611         * lib/sysexit_.h: New file.
79612
79613 2003-06-11  Derek Price  <derek@ximbiot.com>
79614
79615         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79616         necessary.
79617
79618 2003-06-11  Bruno Haible  <bruno@clisp.org>
79619
79620         * m4/sysexits.m4: New file.
79621
79622 2003-06-10  Simon Josefsson  <jas@extundo.com>
79623
79624         * lib/argp.h: New file, from glibc.
79625         * lib/argp-ba.c: New file, from glibc.
79626         * lib/argp-eexst.c: New file, from glibc.
79627         * lib/argp-fmtstream.c: New file, from glibc.
79628         * lib/argp-fmtstream.h: New file, from glibc.
79629         * lib/argp-fs-xinl.c: New file, from glibc.
79630         * lib/argp-help.c: New file, from glibc.
79631         * lib/argp-namefrob.h: New file, from glibc.
79632         * lib/argp-parse.c: New file, from glibc.
79633         * lib/argp-pv.c: New file, from glibc.
79634         * lib/argp-pvh.c: New file, from glibc.
79635         * lib/argp-xinl.c: New file, from glibc.
79636
79637 2003-06-10  Simon Josefsson  <jas@extundo.com>
79638
79639         * modules/strchrnul: New file.
79640
79641 2003-06-10  Simon Josefsson  <jas@extundo.com>
79642
79643         * modules/argp: New file.
79644
79645 2003-06-10  Simon Josefsson  <jas@extundo.com>
79646
79647         * m4/strchrnul.m4: New file.
79648
79649 2003-06-10  Simon Josefsson  <jas@extundo.com>
79650
79651         * lib/strchrnul.h: New file.
79652         * lib/strchrnul.c: New file.
79653
79654 2003-06-10  Bruno Haible  <bruno@clisp.org>
79655
79656         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79657
79658 2003-06-07  Karl Berry  <karl@gnu.org>
79659
79660         * config/config.{guess,sub}: update from prep.
79661
79662 2003-06-07  Jim Meyering  <jim@meyering.net>
79663
79664         * modules/strtod: Use $(...) notation, not @...@ for
79665         AC_REPLACE'd variables.
79666         * modules/localcharset: Likewise.
79667
79668 2003-06-07  Jim Meyering  <jim@meyering.net>
79669
79670         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79671         in place of my name in the copyright comment.
79672         Remove definition and uses of __P.
79673
79674         From coreutils.
79675         * lib/stat.c: Don't declare xmalloc explicitly.
79676         Instead, include "xalloc.h".
79677         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79678         xrealloc, and xcalloc return values.
79679         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79680         Improve comment.
79681         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79682
79683 2003-06-07  Bruno Haible  <bruno@clisp.org>
79684
79685         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79686         avoid AC_CONFIG_LINKS.
79687         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79688         fnmatch.h, to avoid AC_CONFIG_LINKS.
79689         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79690
79691 2003-06-07  Bruno Haible  <bruno@clisp.org>
79692
79693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79694         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79695         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79696         directory.
79697         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79698         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79699         directory.
79700
79701 2003-06-06  Jim Meyering  <jim@meyering.net>
79702
79703         Merge from coreutils.
79704         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79705         Consolidate declarations and initializations of *_base* locals.
79706
79707         Merge from coreutils.
79708         This avoids a core dump on systems without GNU putenv,
79709         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79710         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79711         (unsetenv): New static function, from GNU libc.
79712         (rpl_putenv): Use it.
79713
79714         * lib/modechange.c: Remove trailing blanks.
79715
79716         Merge from coreutils.
79717         * lib/fsusage.c: Remove declaration of statfs.
79718         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79719
79720         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79721
79722 2003-06-06  Jim Meyering  <jim@meyering.net>
79723
79724         * lib/stdbool_.h: Renamed from stdbool.h.in.
79725
79726 2003-06-06  Jim Meyering  <jim@meyering.net>
79727             Bruno Haible  <bruno@clisp.org>
79728
79729         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79730         Adjust Makefile.am snippet not to redirect directly to target.
79731         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79732
79733 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79734
79735         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79736         mismatch, look in future quarters as well as past.  This fixes a
79737         bug when processing fall-backwards gaps immediately after a long
79738         period of daylight-saving time.
79739
79740         * lib/mktime.c: Assume freestanding C89 or better.
79741         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79742         (__P): Remove; not used.
79743         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79744         (mktime, not_equal_tm, print_tm, check_result,
79745         main): Use prototypes.  Use const * where appropriate.
79746         (main): Fix typo in testing code that uncovered by above changes.
79747         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79748
79749 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79750
79751         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79752         locale.h, localeconv.  This merges changes from coreutils.
79753
79754         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79755         It can be removed after the next Autoconf is released.
79756         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79757         needed.
79758
79759 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79760
79761         * lib/mktime.c: Fix Debian bug 177940
79762         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79763         (localtime_offset): Now long int, not time_t, because we want it
79764         to be guaranteed to be signed.  All uses changed.
79765         (__mktime_internal): If overflow would occur when adding offset,
79766         don't add it.
79767
79768         Merge 'human' changes from coreutils.  Rewrite to support
79769         locale-specific notations like thousands separators.
79770         * lib/human.c: Simplify authorship notice.
79771         Include human.h immediately after config.h.
79772         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79773         <limits.h>: Do not include, since human.h does.
79774         (SIZE_MAX, UINTMAX_MAX): New macros.
79775         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79776         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79777         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79778         (power_letter): Renamed from suffixes.
79779         (generate_suffix_backwards): Remove.
79780         (adjust_value): Now takes int style (because of human.h changes)
79781         and long double value (for greater precision on some platforms).
79782         (group_number): New function.
79783         (human_readable): Use it.  Use integer options, not enum.
79784         Put the options before the sizes in the arg list.
79785         Support all the new options.
79786         The old human_readable function has been removed;
79787         use inttostr.h instead.
79788         (human_readable, default_block_size, humblock):
79789         Use uintmax_t, not int, for block sizes.
79790         (human_readable_inexact, block_size_types): Remove.
79791         (block_size_opts): New constant.
79792         (human_options): Renamed from human_block_size, with new signature
79793         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79794         * lib/human.h: Add copyright and authorship notice.
79795         Include <limits.h> and <stdbool.h> unconditionally.
79796         (PARAMS): Remove.  All uses removed.
79797         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79798         (enum human_inexact_style): Remove tag; now a nameless enum.
79799         (human_floor, human_ceiling, human_round_to_even): Now have
79800         values 2, 0, 1 rather than -1, 1, 0.
79801         (human_group_digits, human_suppress_point_zero, human_autoscale,
79802         human_base_1024, human_SI, human_B): New constants.
79803         (human_readable_inexact, human_block_size): Remove.
79804         (human_readable): Size args are now uintmax_t, not int.
79805         (human_options): New decl.
79806
79807         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79808         unnecessary now that we assume C89 or better.  This change
79809         imported from coreutils.
79810
79811         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79812         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79813         in the 2003-05-30 sync from glibc.
79814
79815         .h files should stand alone, but we shouldn't include <sys/types.h>
79816         if we can get away with just <stddef.h>.
79817
79818         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79819         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79820         rather than <sys/types.h>, as we merely need size_t.
79821         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79822         to get size_t.
79823         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79824         Include <stdio.h>, to get FILE.
79825         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79826         memcasecmp.h has included <stddef.h> and all we need is size_t.
79827         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79828         our interface, instead of including <sys/types.h>
79829
79830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79831
79832         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79833         now, as glibc mktime is buggy on non-glibc systems.
79834
79835 2003-06-03  Karl Berry  <karl@gnu.org>
79836
79837         * config/config.sub: update from prep.
79838
79839 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79840
79841         [from coreutils]
79842         Fix some minor time-related bugs with POSIX time arguments.
79843         Some valid time stamps were being rejected (notably -1, and
79844         time stamps before 1900 on 64-bit hosts).  And some invalid
79845         time stamps were being accepted, e.g. September 31.
79846
79847         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79848         that we can return (time_t) -1 successfully.
79849         * lib/posixtm.c: Likewise.
79850         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79851         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79852         (t): Remove static var.
79853         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79854         of static var.  All uses changed.
79855         (year): Do not reject years before 1900; they can occur with
79856         64-bit time_t.
79857         (posix_time_parse): Do not check for out-of-range components;
79858         that is now the caller's responsibility, since our checks were
79859         only approximations.
79860         (posixtime): Use mktime to check for out-of-range components,
79861         since it knows them exactly.
79862         If mktime returns (time_t) -1, check whether an error actually occurred
79863         by invoking localtime on -1.
79864         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79865         posixtime failures better.
79866         Improve the test data (in comments only).
79867
79868 2003-06-02  Karl Berry  <karl@gnu.org>
79869
79870         * config/mkinstalldirs (version): new variable.
79871         (--version): new option.
79872         (usage): improve message.
79873
79874 2003-05-30  Karl Berry  <karl@gnu.org>
79875
79876         * lib/mktime.c: update from libc.
79877
79878 2003-05-30  Bruno Haible  <bruno@clisp.org>
79879
79880         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79881         * config/config.rpath: Upgrade to gettext-0.12.1.
79882
79883 2003-05-30  Bruno Haible  <bruno@clisp.org>
79884
79885         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79886         * m4/nls.m4: New file, from gettext-0.12.1.
79887         * m4/po.m4: New file, from gettext-0.12.1.
79888         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79889
79890 2003-05-30  Bruno Haible  <bruno@clisp.org>
79891
79892         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79893         * lib/localcharset.h: Likewise.
79894         * lib/localcharset.c: Likewise.
79895
79896 2003-05-29  Karl Berry  <karl@gnu.org>
79897
79898         * config/config.rpath: update from gettext.
79899
79900 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79901
79902         Assume the headers required for C89 freestanding compilers.
79903         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79904         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79905         * m4/human.m4 (gl_HUMAN): Likewise.
79906         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79907         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79908         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79909         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79911         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79912
79913 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79914
79915         Assume the headers required for C89 freestanding compilers.
79916         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79917         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79918         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79919         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79920         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79921         define, since <limits.h> is guaranteed to do that.
79922         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79923         * lib/exclude.c: Include <stdbool.h> unconditionally.
79924         * lib/tempname.c: Include <stddef.h> unconditionally.
79925         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79926         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79927         <stddef.h> does that.
79928         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79929         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79930         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79931         needed.
79932         * lib/xstrtol.c: Likewise.
79933         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79934         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79935
79936         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79937         warnings on some platforms.
79938
79939         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79940         arbitrarily.
79941
79942 2003-05-26  Jim Meyering  <jim@meyering.net>
79943
79944         Merge in a change from coreutils:
79945         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79946         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79947         that condition, rather than `-1' which is slightly misleading.
79948         Change the name of the cache variable to have the gl_ prefix.
79949         Prompted by a patch from Richard Dawe for DJGPP.
79950
79951 2003-05-24  Karl Berry  <karl@gnu.org>
79952
79953         * config/config.guess: update from prep.
79954
79955 2003-05-22  Karl Berry  <karl@gnu.org>
79956
79957         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79958
79959 2003-05-20  Karl Berry  <karl@gnu.org>
79960
79961         * config/config.guess: update from prep.
79962
79963 2003-05-18  Karl Berry  <karl@gnu.org>
79964
79965         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79966         might actually be set by the user.
79967
79968         * config/depcomp, install-sh, mdate-sh: update from automake.
79969
79970 2003-05-17  Bruno Haible  <bruno@clisp.org>
79971
79972         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79973         invalid expansion for AC_EGREP_CPP.
79974         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79975         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79976         Suggested by Akim Demaille <akim@epita.fr> in
79977         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79978
79979 2003-05-12  Jim Meyering  <jim@meyering.net>
79980
79981         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79982         the space-padded-by-default conversion specifiers, %e, %k, %l.
79983
79984 2003-05-12  Bruno Haible  <bruno@clisp.org>
79985
79986         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79987         the string is longer than 4 KB.
79988
79989 2003-05-11  Karl Berry  <karl@gnu.org>
79990
79991         * config/config.{guess,sub}: update from prep.
79992
79993 2003-05-09  Bruno Haible  <bruno@clisp.org>
79994
79995         * modules/error: Add m4/strerror_r.m4 to file list.
79996
79997 2003-05-03  Bruno Haible  <bruno@clisp.org>
79998
79999         Upgrade to Unicode-4.0.
80000         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80001         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80002         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80003         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80004         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80005         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80006         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80007         Change width of U+E0100..U+E01EF from 1 to 0.
80008
80009 2003-04-25  Jim Meyering  <jim@meyering.net>
80010
80011         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80012         of type size_t, not int.
80013
80014 2003-04-25  Bruno Haible  <bruno@clisp.org>
80015
80016         * lib/copy-file.c: Include <stddef.h>, for size_t.
80017
80018 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80019
80020         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80021         code which expansion is under static control.  Patch imported from
80022         Akim Demaille's patch to Bison; see
80023         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80024
80025 2003-04-14  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80028
80029 2003-04-11  Jim Meyering  <jim@meyering.net>
80030
80031         Merge changes from Coreutils.
80032
80033         2003-03-22  Jim Meyering  <jim@meyering.net>
80034
80035         * lib/strftime.c (widen): Cast alloca return value to proper type.
80036
80037         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80038
80039         From GNU libc.
80040         * lib/strftime.c (my_strftime): Handle very large width
80041         specifications for numeric values correctly.  Improve checks for
80042         overflow.
80043
80044         2003-01-19  Jim Meyering  <jim@meyering.net>
80045
80046         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80047         definitions.
80048         (nl_get_alt_digit) [! defined my_strftime]: Define.
80049         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80050         _nl_get_alt_digit and _nl_get_walt_digit.
80051
80052         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80053         libc. These changes have no effect outside of _LIBC.
80054
80055 2003-04-10  Bruno Haible  <bruno@clisp.org>
80056
80057         * modules/findprog: New file.
80058         * MODULES.html.sh (func_all_modules): Add it.
80059
80060 2003-04-10  Bruno Haible  <bruno@clisp.org>
80061
80062         * m4/findprog.m4: New file.
80063         * m4/eaccess.m4: New file.
80064
80065 2003-04-10  Bruno Haible  <bruno@clisp.org>
80066
80067         * lib/findprog.h: New file, from GNU gettext.
80068         * lib/findprog.c: New file, from GNU gettext.
80069
80070 2003-04-05  Jim Meyering  <jim@meyering.net>
80071
80072         Merge changes from Coreutils.
80073
80074         * lib/exclude.h (PARAMS): Remove definition and uses.
80075         * lib/exclude.c: Remove uses of `PARAMS'.
80076
80077         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80078         Add test-cases for DOS filenames. Declare program_name.
80079         (main): Set up program_name.  Patch by Rich Dawe.
80080
80081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80082         error from mntctl.
80083         Use mntctl's return value to drive the entry-processing loop, since
80084         we can't rely on the value of the vmt_length member in the last
80085         entry.  On some systems doing so could result in exhausting
80086         virtual memory.  Based in part on a patch from Mike Jetzer.
80087
80088 2003-04-04  Bruno Haible  <bruno@clisp.org>
80089
80090         * modules/linebreak: New file.
80091         * MODULES.html.sh (func_all_modules): Add it.
80092
80093 2003-04-04  Bruno Haible  <bruno@clisp.org>
80094
80095         * m4/linebreak.m4: New file.
80096
80097 2003-04-04  Bruno Haible  <bruno@clisp.org>
80098
80099         * lib/linebreak.h: New file, from GNU gettext.
80100         * lib/linebreak.c: New file, from GNU gettext with slight
80101         modifications.
80102         * lib/lbrkprop.h: New file, from GNU gettext.
80103
80104 2003-04-03  Bruno Haible  <bruno@clisp.org>
80105
80106         * modules/utf8-ucs4: New file.
80107         * modules/utf16-ucs4: New file.
80108         * modules/ucs4-utf8: New file.
80109         * modules/ucs4-utf16: New file.
80110         * MODULES.html.sh (func_all_modules): Add them.
80111
80112 2003-04-03  Bruno Haible  <bruno@clisp.org>
80113
80114         * m4/utf-ucs4.m4: New file.
80115         * m4/ucs4-utf.m4: New file.
80116
80117 2003-04-03  Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/utf8-ucs4.h: New file, from GNU gettext.
80120         * lib/utf16-ucs4.h: New file, from GNU gettext.
80121         * lib/ucs4-utf8.h: New file, from GNU gettext.
80122         * lib/ucs4-utf16.h: New file, from GNU gettext.
80123
80124 2003-04-02  Bruno Haible  <bruno@clisp.org>
80125
80126         * modules/binary-io: New file.
80127         * MODULES.html.sh (func_all_modules): Add it.
80128
80129 2003-04-02  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/binary-io.h: New file, from GNU gettext.
80132
80133 2003-04-01  Bruno Haible  <bruno@clisp.org>
80134
80135         * modules/pathname: New file.
80136         * MODULES.html.sh (func_all_modules): Add it.
80137
80138 2003-04-01  Bruno Haible  <bruno@clisp.org>
80139
80140         * lib/pathname.h: New file, from GNU gettext.
80141         * lib/concatpath.c: New file, from GNU gettext.
80142
80143 2003-03-30  Bruno Haible  <bruno@clisp.org>
80144
80145         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80146
80147 2003-03-30  Bruno Haible  <bruno@clisp.org>
80148
80149         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80150         function chown() doesn't exist.
80151
80152 2003-03-28  Bruno Haible  <bruno@clisp.org>
80153
80154         * modules/copy-file: New file.
80155         * MODULES.html.sh (func_all_modules): Add it.
80156
80157 2003-03-28  Bruno Haible  <bruno@clisp.org>
80158
80159         * m4/copy-file.m4: New file.
80160
80161 2003-03-28  Bruno Haible  <bruno@clisp.org>
80162
80163         * lib/copy-file.h: New file, from GNU gettext.
80164         * lib/copy-file.c: New file, from GNU gettext.
80165
80166 2003-03-18  Jim Meyering  <jim@meyering.net>
80167
80168         * lib/quote.c (quote_n): Fix typo in comment.
80169
80170 2003-03-18  Bruno Haible  <bruno@clisp.org>
80171
80172         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80173         checking.
80174         * m4/onceonly_2_57.m4: Likewise.
80175
80176 2003-03-17  Bruno Haible  <bruno@clisp.org>
80177
80178         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80179         (m4_quote): Remove macro.
80180         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80181
80182 2003-03-14  Jim Meyering  <jim@meyering.net>
80183
80184         Merge changes from Coreutils.
80185         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80186         to be const, in order to avoid warnings.
80187         (obstack_room): Likewise.
80188         (obstack_empty_p): Likewise.
80189
80190 2003-03-14  Bruno Haible  <bruno@clisp.org>
80191
80192         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80193         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80194
80195 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80196
80197         Merge changes from Bison.
80198         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80199         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80200         when compiling Bison 1.875's `bitset bset = obstack_alloc
80201         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80202         * lib/hash.c: Include <stdbool.h> unconditionally.
80203
80204 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80205
80206         * m4/onceonly.m4 (m4_quote): New macro.
80207         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80208         Quote AC_FOREACH variable-expansions properly.
80209
80210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80211
80212         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80213
80214 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80215
80216         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80217         Reported by Bruce Becker; see:
80218         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80219
80220 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80221             Bruno Haible  <bruno@clisp.org>
80222
80223         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80224         Reported by John Hughes, see
80225         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80226
80227 2003-02-20  Bruno Haible  <bruno@clisp.org>
80228
80229         * MODULES.html.sh (func_all_modules): Add poll.
80230
80231 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80232
80233         * modules/poll: New file.
80234
80235 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80236
80237         * lib/poll_.h: New file.
80238         * lib/poll.c: New file.
80239
80240 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80241
80242         * m4/poll.m4: New file.
80243
80244 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80245
80246         * modules/mathl: New file.
80247
80248 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80249
80250         * lib/mathl.h: New file.
80251         * lib/acosl.c: New file.
80252         * lib/asinl.c: New file.
80253         * lib/atanl.c: New file.
80254         * lib/ceill.c: New file.
80255         * lib/cosl.c: New file.
80256         * lib/expl.c: New file.
80257         * lib/floorl.c: New file.
80258         * lib/frexpl.c: New file.
80259         * lib/ldexpl.c: New file.
80260         * lib/logl.c: New file.
80261         * lib/sincosl.c: New file.
80262         * lib/sinl.c: New file.
80263         * lib/sqrtl.c: New file.
80264         * lib/tanl.c: New file.
80265         * lib/trigl.c: New file.
80266         * lib/trigl.h: New file.
80267
80268 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80269
80270         * m4/mathl.m4: New file.
80271
80272 2003-02-18  Bruno Haible  <bruno@clisp.org>
80273
80274         * MODULES.html.sh (func_all_modules): Add mathl.
80275
80276 2003-02-17  Bruno Haible  <bruno@clisp.org>
80277
80278         * modules/mkdtemp: New module.
80279         * MODULES.html.sh (func_all_modules): Add it.
80280
80281 2003-02-17  Bruno Haible  <bruno@clisp.org>
80282
80283         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80284
80285 2003-02-17  Bruno Haible  <bruno@clisp.org>
80286
80287         * lib/mkdtemp.h: New file, from GNU gettext.
80288         * lib/mkdtemp.c: New file, from GNU gettext.
80289
80290 2003-02-02  Jim Meyering  <jim@meyering.net>
80291
80292         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80293         e.g. glibc-2.2.93.
80294
80295 2003-01-31  Bruno Haible  <bruno@clisp.org>
80296
80297         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80298         'rpl_rename'.
80299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80300         'rpl_strnlen'.
80301         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80302         'rpl_strtod'.
80303         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80304         'rpl_utime'.
80305
80306 2003-01-31  Bruno Haible  <bruno@clisp.org>
80307
80308         * lib/rename.c: #undef rename before defining rpl_rename.
80309         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80310
80311 2003-01-30  Bruno Haible  <bruno@clisp.org>
80312
80313         * modules/vasnprintf, modules/vasprintf: New modules.
80314         * MODULES.html.sh (func_all_modules): Add them.
80315
80316 2003-01-30  Bruno Haible  <bruno@clisp.org>
80317
80318         * m4/signed.m4: New file, from GNU gettext.
80319         * m4/longdouble.m4: New file, from GNU gettext.
80320         * m4/wchar_t.m4: New file, from GNU gettext.
80321         * m4/wint_t.m4: New file, from GNU gettext.
80322         * m4/vasnprintf.m4: New file.
80323         * m4/vasprintf.m4: New file.
80324
80325 2003-01-30  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/printf-args.h: New file, from GNU gettext.
80328         * lib/printf-args.c: New file, from GNU gettext.
80329         * lib/printf-parse.h: New file, from GNU gettext.
80330         * lib/printf-parse.c: New file, from GNU gettext.
80331         * lib/vasnprintf.h: New file, from GNU gettext.
80332         * lib/vasnprintf.c: New file, from GNU gettext.
80333         * lib/asnprintf.c: New file, from GNU gettext.
80334         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80335         * lib/vasprintf.c: New file, from GNU gettext.
80336         * lib/asprintf.c: New file, from GNU gettext.
80337
80338 2003-01-29  Bruno Haible  <bruno@clisp.org>
80339
80340         * modules/stpncpy: New module.
80341         * MODULES.html.sh (func_all_modules): Add it.
80342
80343 2003-01-29  Bruno Haible  <bruno@clisp.org>
80344
80345         * m4/stpncpy.m4: New file.
80346
80347 2003-01-29  Bruno Haible  <bruno@clisp.org>
80348
80349         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80350         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80351
80352 2003-01-28  Bruno Haible  <bruno@clisp.org>
80353
80354         * modules/c-ctype: New module.
80355         * MODULES.html.sh (func_all_modules): Add it.
80356
80357 2003-01-28  Bruno Haible  <bruno@clisp.org>
80358
80359         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80360         Paul Eggert.
80361         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80362         Paul Eggert.
80363
80364 2003-01-27  Bruno Haible  <bruno@clisp.org>
80365
80366         * modules/xsetenv: New module.
80367         * MODULES.html.sh (func_all_modules): Add it.
80368
80369 2003-01-27  Bruno Haible  <bruno@clisp.org>
80370
80371         * lib/xsetenv.h: New file, from GNU gettext.
80372         * lib/xsetenv.c: New file, from GNU gettext.
80373
80374 2003-01-23  Jim Meyering  <jim@meyering.net>
80375
80376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80377         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80378
80379 2003-01-23  Bruno Haible  <bruno@clisp.org>
80380
80381         * modules/minmax: New module.
80382         * MODULES.html.sh (func_all_modules): Add it.
80383
80384 2003-01-23  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80387         Eggert.
80388
80389 2003-01-22  Bruno Haible  <bruno@clisp.org>
80390
80391         * modules/exit: New module.
80392         * MODULES.html.sh (func_all_modules): Add it.
80393
80394 2003-01-22  Bruno Haible  <bruno@clisp.org>
80395
80396         * lib/exit.h: New file, from GNU gettext.
80397
80398 2003-01-19  Bruno Haible  <bruno@clisp.org>
80399
80400         * gnulib-tool: Recognize option --extract-maintainer.
80401         (func_get_maintainer): New function.
80402         * modules/*: Add Maintainer entry.
80403
80404 2003-01-16  Jim Meyering  <jim@meyering.net>
80405
80406         * m4/regex.m4: The `regex' struct is both input and output.
80407         Initialize it before each use.  Patch by Tim Waugh.
80408
80409 2003-01-16  Bruno Haible  <bruno@clisp.org>
80410
80411         * MODULES.html.sh: Add a table of contents. Add the module name as
80412         leftmost column. Add hyperlinks.
80413
80414 2003-01-15  Bruno Haible  <bruno@clisp.org>
80415
80416         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80417
80418 2003-01-15  Bruno Haible  <bruno@clisp.org>
80419
80420         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80421         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80422         suffix.
80423
80424 2003-01-15  Bruno Haible  <bruno@clisp.org>
80425
80426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80427
80428 2003-01-15  Bruno Haible  <bruno@clisp.org>
80429
80430         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80431         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80432
80433 2003-01-14  Jim Meyering  <jim@meyering.net>
80434
80435         * lib/same.c (same_name): Tweak a comment.
80436
80437 2003-01-14  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80440         when a string comparison is sufficient.
80441
80442 2003-01-14  Bruno Haible  <bruno@clisp.org>
80443
80444         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80445         'unsigned int'.
80446
80447 2003-01-14  Bruno Haible  <bruno@clisp.org>
80448
80449         * lib/hash-pjw.c: Add comment about low quality of this function.
80450
80451 2003-01-13  Bruno Haible  <bruno@clisp.org>
80452
80453         * modules/stpcpy: Distribute lib/stpcpy.h.
80454         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80455
80456 2003-01-13  Bruno Haible  <bruno@clisp.org>
80457
80458         * modules/*: Add a description.
80459         * modules/strpbrk: Fix Makefile.am snippet.
80460         * modules/strtoimax: Fix dependencies.
80461         * modules/strtoumax: Likewise.
80462
80463 2003-01-13  Bruno Haible  <bruno@clisp.org>
80464
80465         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80466         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80467         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80468
80469 2003-01-13  Bruno Haible  <bruno@clisp.org>
80470
80471         * gnulib-tool (func_create_testdir): Store config/* files in the main
80472         directory.
80473         * config.rpath: Move to ...
80474         * config/config.rpath: ... here.
80475         * modules/gettext: Contains config/config.rpath, not config.rpath.
80476         * modules/iconv: Likewise.
80477
80478 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80479
80480         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80481         to avoid collisions with libcurses and libreadline.
80482
80483         * m4/getstr.m4: Remove.
80484         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80485
80486 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80487
80488         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80489         to avoid collisions with libcurses and libreadline.
80490
80491         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80492         * lib/getstr.h, getstr.c: Remove.
80493         * lib/getline.c: Include "getline.h", to check interface.
80494         Move body of old getstr.c here: this defines MIN_CHUNK and
80495         declares getdelim2, which is renamed from getstr.
80496         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80497
80498         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80499         All uses changed.
80500         * lib/linebuffer.h: Likewise.
80501         (readline): Remove backward-compatibility macro.
80502
80503 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80504
80505         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80506         to avoid collisions with libcurses and libreadline.
80507         * getstr: Remove.
80508         * MODULES.html.sh: Remove getstr.
80509         * modules/getline: Depend on unlocked-io, not getstr.
80510
80511 2003-01-12  Jim Meyering  <jim@meyering.net>
80512
80513         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80514
80515 2003-01-10  Bruno Haible  <bruno@clisp.org>
80516
80517         * modules/alloca: Change Makefile.am requirements. Simplify Include
80518         requirements. Add lib/alloca_.h to file list.
80519
80520 2003-01-10  Bruno Haible  <bruno@clisp.org>
80521
80522         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80523
80524 2003-01-10  Bruno Haible  <bruno@clisp.org>
80525
80526         * lib/alloca_.h: New file.
80527         * lib/getdate.y: Unconditionally include alloca.h.
80528         * lib/makepath.c: Likewise.
80529         * lib/setenv.c: Likewise.
80530         * lib/userspec.c: Likewise.
80531
80532 2003-01-09  Karl Berry  <karl@gnu.org>
80533
80534         * MODULES.html.sh: include `dirname $0` in PATH, to find
80535         gnulib-tool.
80536
80537 2003-01-09  Bruno Haible  <bruno@clisp.org>
80538
80539         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80540         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80541
80542 2003-01-09  Bruno Haible  <bruno@clisp.org>
80543
80544         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80545
80546 2003-01-09  Bruno Haible  <bruno@clisp.org>
80547
80548         * lib/stdbool.h.in: New file.
80549
80550 2003-01-09  Bruno Haible  <bruno@clisp.org>
80551
80552         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80553         * MODULES.html.sh: Likewise.
80554
80555 2003-01-08  Jim Meyering  <jim@meyering.net>
80556
80557         * lib/full-write.c: Undefine and define-away `const' after inclusion
80558         of errno.h, not before.  Suggestion from Bruno Haible.
80559
80560 2003-01-08  Bruno Haible  <bruno@clisp.org>
80561
80562         * modules/full-read: Depend on full-write.
80563
80564 2003-01-08  Bruno Haible  <bruno@clisp.org>
80565
80566         * lib/safe-read.c: Include specification header first, to ensure its
80567         selfcontainedness.
80568         * lib/full-write.c: Likewise.
80569
80570 2003-01-07  Jim Meyering  <jim@meyering.net>
80571
80572         * lib/full-write.c: Rework so that it may serve to define full_read,
80573         too.
80574         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80575
80576 2003-01-07  Bruno Haible  <bruno@clisp.org>
80577
80578         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80579         <inttypes.h>.
80580         * lib/xstrtol.h: Likewise.
80581         * lib/xstrtoimax.c: Likewise.
80582         * lib/xstrtoumax.c: Likewise.
80583         * lib/human.h: Likewise.
80584
80585         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80586         on systems that have <inttypes.h> but not <stdint.h>.
80587
80588 2003-01-07  Bruno Haible  <bruno@clisp.org>
80589
80590         * MODULES.html.sh: Add copyright notice.
80591         (missed_files): Omit CVS directory entries.
80592         (func_module): Make it work with sed-3.02.
80593         * MODULES.txt: Remove file.
80594
80595 2003-01-06  Jim Meyering  <jim@meyering.net>
80596
80597         * lib/version-etc.c: Update year in translatable copyright string.
80598
80599 2003-01-03  Karl Berry  <karl@gnu.org>
80600
80601         * config/config.{guess,sub}: update from prep.
80602
80603 2003-01-02  Karl Berry  <karl@gnu.org>
80604
80605         * doc/COPYING.DOC: belatedly updated to 1.2.
80606
80607 2003-01-01  Karl Berry  <karl@gnu.org>
80608
80609         * gnulib-tool (func_verify_module): report module name $module in
80610         error message, not $1.
80611         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80612         be created, only if it doesn't exist.
80613         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80614
80615 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80616
80617         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80618
80619 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80620
80621         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80622         memcmp if strcoll doesn't work.
80623
80624 2002-12-31  Bruno Haible  <bruno@clisp.org>
80625
80626         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80627         nonempty.
80628
80629 2002-12-31  Bruno Haible  <bruno@clisp.org>
80630
80631         * lib/memcoll.c (STRCOLL): New macro.
80632         (memcoll): Use it.
80633
80634 2002-12-31  Bruno Haible  <bruno@clisp.org>
80635
80636         * lib/localcharset.h: New file.
80637         * lib/localcharset.c: Include it.
80638         * lib/unicodeio.c: Likewise.
80639
80640 2002-12-31  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80643         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80644
80645 2002-12-31  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/getline.h: Include <stddef.h>, for size_t.
80648
80649         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80650         * lib/unicodeio.c: Don't include <stddef.h>.
80651
80652 2002-12-31  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80655         HAVE_TM_ZONE.
80656
80657 2002-12-24  Karl Berry  <karl@gnu.org>
80658
80659         * config/config.guess: update from prep.
80660
80661 2002-12-24  Bruno Haible  <bruno@clisp.org>
80662
80663         General infrasructure.
80664         * m4/README: Rewritten.
80665         * m4/onceonly.m4: New file.
80666         * m4/onceonly_2_57.m4: New file.
80667
80668         Module atexit.
80669         * m4/atexit.m4: New file.
80670
80671         Module strtod.
80672         * m4/strtod.m4: New file.
80673
80674         Module strtol.
80675         * m4/strtol.m4: New file.
80676
80677         Module strtoul.
80678         * m4/strtoul.m4: New file.
80679
80680         Module memchr.
80681         * m4/memchr.m4: New file.
80682
80683         Module memcmp.
80684         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80685         (jm_FUNC_MEMCMP): Invoke it.
80686
80687         Module memcpy.
80688         * m4/memcpy.m4: New file.
80689
80690         Module memmove.
80691         * m4/memmove.m4: New file.
80692
80693         Module memset.
80694         * m4/memset.m4: New file.
80695
80696         Module strcspn.
80697         * m4/strcspn.m4: New file.
80698
80699         Module strpbrk.
80700         * m4/strpbrk.m4: New file.
80701
80702         Module strstr.
80703         * m4/strstr.m4: New file.
80704
80705         Module strerror.
80706         * m4/strerror.m4: New file.
80707
80708         Module mktime.
80709         * m4/mktime.m4: Renamed from jm-mktime.m4.
80710         (gl_PREREQ_MKTIME): New macro.
80711         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80712
80713         Module malloc.
80714         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80715         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80716         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80717
80718         Module realloc.
80719         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80720         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80721         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80722
80723         Module strftime.
80724         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80725         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80726         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80727         gl_TM_GMTOFF.
80728         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80729
80730         Module xalloc.
80731         * m4/xalloc.m4: New file.
80732
80733         Module alloca.
80734         * m4/alloca.m4: New file.
80735
80736         Module putenv.
80737         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80738         (jm_FUNC_PUTENV): Invoke it.
80739
80740         Module setenv.
80741         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80742         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80743         when invoked twice.
80744         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80745         gt_FUNC_SETENV.
80746
80747         Module memrchr.
80748         * m4/memrchr.m4: New file.
80749
80750         Module stpcpy.
80751         * m4/stpcpy.m4: New file.
80752
80753         Module strcase.
80754         * m4/strcase.m4: New file.
80755
80756         Module strdup.
80757         * m4/strdup.m4: New file.
80758
80759         Module strnlen.
80760         * m4/strnlen.m4: New file.
80761
80762         Module strndup.
80763         * m4/strndup.m4: New file.
80764
80765         Module xstrtod.
80766         * m4/xstrtod.m4: New file.
80767
80768         Module xstrtol.
80769         * m4/xstrtol.m4: New file.
80770
80771         Module getdate.
80772         * m4/getdate.m4: New file.
80773
80774         Module unlocked-io.
80775         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80776         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80777         * m4/jm-glibc-io.m4n: Remove file.
80778
80779         Module long-options.
80780         * m4/long-options.m4: New file.
80781
80782         Module md5.
80783         * m4/md5.m4: New file.
80784
80785         Module sha.
80786         * m4/sha.m4: New file.
80787
80788         Module getstr.
80789         * m4/getstr.m4: New file.
80790
80791         Module getline.
80792         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80793         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80794         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80795         simply getline. Infoke gl_PREREQ_GETLINE.
80796
80797         Module obstack.
80798         * m4/obstack.m4: New file.
80799
80800         Module hash.
80801         * m4/hash.m4: New file.
80802
80803         Module readtokens.
80804         * m4/readtokens.m4: New file.
80805
80806         Module strverscmp.
80807         * m4/strverscmp.m4: New file.
80808
80809         Module stdbool.
80810         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80811         OSF/1.
80812
80813         Module strtoll.
80814         * m4/strtoll.m4: New file.
80815
80816         Module strtoull.
80817         * m4/strtoull.m4: New file.
80818
80819         Module strtoimax.
80820         * m4/strtoimax.m4: New file.
80821
80822         Module strtoumax.
80823         * m4/strtoumax.m4: New file.
80824
80825         Module xstrtoimax.
80826         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80827         jm_AC_PREREQ_XSTRTOIMAX.
80828         Moved the strtol prerequisites to strtol.m4.
80829         Moved the strtoll prerequisites to strtoll.m4.
80830         Moved the strtoimax prerequisites to strtoimax.m4.
80831
80832         Module xstrtoumax.
80833         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80834         jm_AC_PREREQ_XSTRTOUMAX.
80835         Moved the strtoul prerequisites to strtoul.m4.
80836         Moved the strtoull prerequisites to strtoull.m4.
80837         Moved the strtoumax prerequisites to strtoumax.m4.
80838
80839         Module chown.
80840         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80841         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80842
80843         Module dup2.
80844         * m4/dup2.m4: New file.
80845
80846         Module ftruncate.
80847         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80848         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80849
80850         Module getgroups.
80851         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80852         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80853
80854         Module gettimeofday.
80855         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80856         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80857         gl_PREREQ_GETTIMEOFDAY.
80858
80859         Module mkdir.
80860         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80861         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80862
80863         Module mkstemp.
80864         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80865         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80866         jm_AC_TYPE_UINTMAX_T.
80867         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80868
80869         Module stat.
80870         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80871         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80872
80873         Module lstat.
80874         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80875         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80876
80877         Module timespec.
80878         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80879         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80880         * m4/st_mtim.m4: Indentation.
80881
80882         Module nanosleep.
80883         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80884         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80885         gl_PREREQ_NANOSLEEP.
80886
80887         Module regex.
80888         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80889         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80890         (gl_REGEX): New macro.
80891
80892         Module rename.
80893         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80894         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80895
80896         Module rmdir.
80897         * m4/rmdir.m4: New file.
80898
80899         Module utime.
80900         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80901         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80902         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80903
80904         Module dirname.
80905         * m4/dirname.m4: New file.
80906
80907         Module getopt.
80908         * m4/getopt.m4: New file.
80909
80910         Module unistd-safer.
80911         * m4/unistd-safer.m4: New file.
80912
80913         Module fnmatch.
80914         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80915         declaration.
80916         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80917         (gl_FUNC_FNMATCH_POSIX): New macro.
80918         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80919         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80920         simply fnmatch.
80921
80922         Module exclude.
80923         * m4/exclude.m4: New file.
80924
80925         Module human.
80926         * m4/human.m4: New file.
80927
80928         Module acl.
80929         * m4/acl.m4: Nop.
80930
80931         Module backupfile.
80932         * m4/backupfile.m4: New file.
80933         * m4/d-ino.m4: Indentation.
80934
80935         Module fsusage.
80936         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80937         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80938         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80939
80940         Module dirfd.
80941         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80942         requirements.
80943
80944         Module euidaccess.
80945         * m4/euidaccess.m4: New file.
80946
80947         Module file-type.
80948         * m4/file-type.m4: New file.
80949
80950         Module fileblocks.
80951         * m4/fileblocks.m4: New file.
80952
80953         Module filemode.
80954         * m4/filemode.m4: New file.
80955
80956         Module isdir.
80957         * m4/isdir.m4: New file.
80958
80959         Module lchown.
80960         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80961         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80962
80963         Module makepath.
80964         * m4/makepath.m4: New file.
80965
80966         Module modechange.
80967         * m4/modechange.m4: New file.
80968
80969         Module mountlist.
80970         * m4/mountlist.m4: New file.
80971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80972         Indentation.
80973
80974         Module path-concat.
80975         * m4/path-concat.m4: New file.
80976
80977         Module pathmax.
80978         * m4/pathmax.m4: New file.
80979
80980         Module same.
80981         * m4/same.m4: New file.
80982
80983         Module save-cwd.
80984         * m4/save-cwd.m4: New file.
80985
80986         Module savedir.
80987         * m4/savedir.m4: New file.
80988
80989         Module xgetcwd.
80990         * m4/xgetcwd.m4: New file.
80991         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80992
80993         Module xreadlink.
80994         * m4/xreadlink.m4: New file.
80995
80996         Module safe-read.
80997         * m4/safe-read.m4: New file.
80998
80999         Module safe-write.
81000         * m4/safe-write.m4: New file.
81001
81002         Module closeout.
81003         * m4/closeout.m4: New file.
81004
81005         Module stdio-safer.
81006         * m4/stdio-safer.m4: New file.
81007
81008         Module getpass.
81009         * m4/getpass.m4: New file.
81010
81011         Module getugroups.
81012         * m4/getugroups.m4: New file.
81013
81014         Module group-member.
81015         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81016         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81017
81018         Module idcache.
81019         * m4/idcache.m4: New file.
81020
81021         Module userspec.
81022         * m4/userspec.m4: New file.
81023
81024         Module gettime.
81025         * m4/clock_time.m4: New file.
81026         * m4/gettime.m4: New file.
81027
81028         Module settime.
81029         * m4/settime.m4: New file.
81030
81031         Module posixtm.
81032         * m4/posixtm.m4: New file.
81033
81034         Module gethostname.
81035         * m4/gethostname.m4: New file.
81036
81037         Module canon-host.
81038         * m4/canon-host.m4: New file.
81039
81040         Module gettext.
81041         * m4/codeset.m4: New file, from gettext-0.11.5.
81042         * m4/gettext.m4: New file, from gettext-0.11.5.
81043         * m4/glibc21.m4: New file, from gettext-0.11.5.
81044         * m4/iconv.m4: New file, from gettext-0.11.5.
81045         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81046         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81047         * m4/inttypes.m4: New file, from gettext-0.11.5.
81048         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81049         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81050         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81051         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81052         * m4/lib-link.m4: New file, from gettext-0.11.5.
81053         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81054         * m4/progtest.m4: New file, from gettext-0.11.5.
81055         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81056         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81057         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81058
81059         Module localcharset.
81060         * m4/localcharset.m4: New file.
81061
81062         Module hard-locale.
81063         * m4/hard-locale.m4: New file.
81064
81065         Module mbswidth.
81066         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81067         onceonly macros.
81068         * m4/mbrtowc.m4: Add comment.
81069
81070         Module memcasecmp.
81071         * m4/memcasecmp.m4: New file.
81072
81073         Module memcoll.
81074         * m4/memcoll.m4: New file.
81075
81076         Module unicodeio.
81077         * m4/unicodeio.m4: New file.
81078
81079         Module rpmatch.
81080         * m4/rpmatch.m4: New file.
81081
81082         Module yesno.
81083         * m4/yesno.m4: New file.
81084
81085         Module exitfail.
81086         * m4/exitfail.m4: New file.
81087
81088         Module c-stack.
81089         * m4/c-stack.m4 (gl_C_STACK): New macro.
81090         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81091
81092         Module error.
81093         * m4/error.m4 (gl_ERROR): New macro.
81094         (jm_PREREQ_ERROR): Use onceonly macros.
81095
81096         Module fatal.
81097         * m4/fatal.m4: New file.
81098
81099         Module getloadavg.
81100         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81101         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81102
81103         Module getpagesize.
81104         * m4/getpagesize.m4: New file.
81105
81106         Module getusershell.
81107         * m4/getusershell.m4: New file.
81108
81109         Module physmem.
81110         * m4/physmem.m4: New file.
81111
81112         Module posixver.
81113         * m4/posixver.m4: New file.
81114
81115         Module quotearg.
81116         * m4/quotearg.m4: New file.
81117
81118         Module quote.
81119         * m4/quote.m4: New file.
81120
81121         Module readutmp.
81122         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81123
81124         Module sig2str.
81125         * m4/sig2str.m4: New file.
81126
81127         Other.
81128         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81129         ulonglong.m4.
81130         * m4/intmax_t.m4: New file.
81131         * m4/d-type.m4: Indentation.
81132         * m4/jm-macros.m4: Update.
81133         * m4/prereq.m4 (jm_PREREQ): Update.
81134         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81135         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81136         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81137         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81138         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81139         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81140         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81141         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81142         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81143         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81144         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81145         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81146         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81147         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81148         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81149         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81150         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81151         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81152         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81153
81154 2002-12-24  Bruno Haible  <bruno@clisp.org>
81155
81156         * MODULES.txt: Update according to m4/ changes.
81157
81158         Module gettext.
81159         * config.rpath: New file, from gettext-0.11.5.
81160
81161         * modules/*: New module descriptions.
81162         * gnulib-tool: New file.
81163         * MODULES.html.sh: New file.
81164
81165 2002-12-21  Karl Berry  <karl@gnu.org>
81166
81167         * doc/fdl.texi: update to version 1.2.
81168
81169 2002-12-19  Karl Berry  <karl@gnu.org>
81170
81171         * config/config.guess: update from prep.
81172
81173 2002-12-18  Bruno Haible  <bruno@clisp.org>
81174
81175         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81176         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81177
81178 2002-12-17  Bruno Haible  <bruno@clisp.org>
81179
81180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81181         stdlib.h, string.h.
81182
81183 2002-12-17  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/canon-host.c (strdup): Remove unused declaration.
81186
81187         * lib/fsusage.c: Include full_read.h.
81188         (get_fs_usage): Use full_read instead of safe_read.
81189
81190         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81191
81192 2002-12-12  Karl Berry  <karl@gnu.org>
81193
81194         * config/config.guess: update from prep.
81195
81196 2002-12-11  Bruno Haible  <bruno@clisp.org>
81197
81198         * m4/setenv.m4: New file, from gettext-0.11.5.
81199
81200 2002-12-11  Bruno Haible  <bruno@clisp.org>
81201
81202         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81203         not unsetenv().
81204         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81205         modifications:
81206
81207         2002-12-11  Bruno Haible  <bruno@clisp.org>
81208
81209                 * setenv.c (alloca): Fall back to malloc.
81210                 (freea): New macro.
81211                 (setenv): Use freea() to free memory allocated with alloca().
81212
81213         2002-11-13  Bruno Haible  <bruno@clisp.org>
81214
81215                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81216                 function declarations.
81217                 * unsetenv.c (unsetenv): Likewise.
81218
81219         2002-03-04  Bruno Haible  <bruno@clisp.org>
81220
81221                 Portability to AIX 4.3.3.
81222                 * unsetenv.c: New file, extracted from setenv.c.
81223                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81224
81225         2001-12-20  Bruno Haible  <bruno@clisp.org>
81226
81227                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81228                 use malloc instead. For SunOS 4.
81229
81230         2001-12-11  Bruno Haible  <bruno@clisp.org>
81231
81232                 * setenv.c: Declare alloca.
81233                 (compar_fn_t): New typedef.
81234                 (KNOWN_VALUE, STORE_VALUE): Use it.
81235
81236         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81237         setenv.h.
81238
81239 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81240
81241         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81242         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81243         Choose values that are less likely to collide with system fnmatch
81244         options.
81245         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81246         defined (e.g., a pure POSIX system).
81247         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81248         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81249
81250 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81251
81252         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81253         a pain in practice to deal with generated m4 files.  This change
81254         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81255
81256         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81257         and jm-glibc-io.m4, as they are no longer a special case.
81258         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81259         kludge and the auto-generation stuff.  Check only whether the
81260         functions are declared, not whether they exist, since older hosts
81261         that don't declare the functions can't use the optimization anyway.
81262
81263 2002-12-06  Jim Meyering  <jim@meyering.net>
81264
81265         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81266
81267         Merge in changes from libc's misc/error.c, in preparation
81268         for the merge of gnulib's changes back into libc.
81269
81270         * lib/error.c (_): Define only if not already defined.
81271         Move definition to follow all #include directives.
81272         Include unlocked-io.h only if !_LIBC.
81273         [_LIBC]: Include <libio/libioP.h>.
81274         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81275         (fflush): Tweak definition to use INTUSE.
81276         (putc): Define.
81277
81278 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81279
81280         * lib/alloca.c [defined emacs]: Include "lisp.h".
81281         (xalloc_die) [defined emacs]: New macro.
81282         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81283         [! defined emacs]: Include <xalloc.h>.
81284         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81285         (pointer): Typedef to POINTER_TYPE *.
81286         (malloc): Remove decl; we now always use xmalloc.
81287         (alloca): Use old-style definition, since Emacs needs this.
81288         Check for arithmetic overflow when computing combined size.
81289
81290 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81291
81292         Do not generate unlocked-io.h automatically, since it's easier to
81293         maintain it by hand.
81294
81295         * lib/unlocked-io.h: New file, from GNU diffutils,
81296         but with proper copyright notice and attribution.
81297         * lib/gen-uio: Remove.
81298         * lib/Makefile.am: Add copyright notice.
81299         (libfetish_a_SOURCES): Add unlocked-io.h.
81300         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81301         (DISTCLEANFILES, io_functions): Remove macros.
81302         (EXTRA_DIST): Remove gen_uio.
81303         (unlocked-io.h): Remove rule.
81304
81305 2002-12-04  Jim Meyering  <jim@meyering.net>
81306
81307         Reflect the fact that stat.c and lstat.c are no longer generated.
81308         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81309         (DISTCLEANFILES): Likewise.
81310         (EXTRA_DIST): Likewise.
81311         (all_local): Don't depend on stat.c or lstat.c.
81312         (stat.c, lstat.c): Remove rules.
81313         (EXTRA_DIST): Remove xstat.in.
81314
81315         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81316         * lib/stat.c: New file.  Contents mostly from xstat.in.
81317         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81318         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81319
81320         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81321         too.
81322         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81323
81324 2002-12-03  Jim Meyering  <jim@meyering.net>
81325
81326         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81327         but not semantics, to minimize the differences between these two files.
81328         (safe_read): Change comment to mention SAFE_READ_ERROR.
81329
81330         * lib/safe-read.c (IS_EINTR): Define.
81331         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81332
81333 2002-12-02  Jim Meyering  <jim@meyering.net>
81334
81335         * lib/safe-read.c (EINTR): Define.
81336         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81337         (INT_MAX): Provide fallback.
81338         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81339
81340         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81341
81342 2002-12-02  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81345         Define, taken from safe-read.c.
81346         (INT_MAX): Provide fallback.
81347         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81348         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81349
81350         * lib/safe-read.c (EINTR): Remove definition.
81351         (safe_read): Don't use EINTR if it is absent.
81352
81353 2002-12-01  Jim Meyering  <jim@meyering.net>
81354
81355         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81356         zero.
81357         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81358
81359 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81360
81361         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81362         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81363         with `if (! (value < limit)) abort ();', for readability.
81364
81365 2002-11-26  Karl Berry  <karl@gnu.org>
81366
81367         * lib/strdup.c: copy from libc again, with jim's ok.
81368         * lib/.cppi-disable: re-add strdup.c
81369
81370 2002-11-25  Karl Berry  <karl@gnu.org>
81371
81372         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81373         instead of "strtol.c".
81374
81375 2002-11-25  Karl Berry  <karl@gnu.org>
81376
81377         * config/install-sh: update from automake for variable quoting, $0 in
81378         error msgs, etc.
81379
81380         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81381         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81382         entry.
81383
81384 2002-11-25  Jim Meyering  <jim@meyering.net>
81385
81386         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81387
81388 2002-11-24  Karl Berry  <karl@gnu.org>
81389
81390         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81391         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81392
81393 2002-11-24  Jim Meyering  <jim@meyering.net>
81394
81395         Update from coreutils:
81396
81397         * lib/mktime.c: Merge in changes from libc.
81398
81399         Avoid a link-time failure on some Linux systems.
81400         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81401         (otherwise).
81402         (__mon_yday): Declare with the STATIC attribute.
81403         (__mktime_internal): Likewise.
81404         Based on a report from Greg Schafer.
81405
81406 2002-11-23  Jim Meyering  <jim@meyering.net>
81407
81408         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81409         Use `unsigned', not `int', as type of index.
81410
81411         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81412
81413         * lib/fsusage.c: Remove unneeded parentheses around operands of
81414         `defined'.
81415
81416 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81417
81418         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81419         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81420         so that we can be included first.
81421         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81422         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81423         No need to include stddef.h or sys/types.h any more.
81424         Surround local include files with "", not "<>".
81425         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81426         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81427         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81428         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81429         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81430         (ISPRINT): Remove; no longer needed now that we assume C89.
81431
81432         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81433         Preserve errno.
81434
81435         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81436         quotearg_char): Use SIZE_MAX rather than
81437         (size_t) -1 when we are talking about "infinity".
81438
81439         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81440
81441 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81442
81443         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81444         hint that one should use `if (! x) abort ();' rather than `assert
81445         (x);', and anyway it's one less thing to worry about configuring.
81446         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81447         hash_rehash, hash_insert): Use abort rather than assert.
81448
81449 2002-11-22  Bruno Haible  <bruno@clisp.org>
81450
81451         * lib/safe-read.h: Assume C89. Add comments.
81452         (safe_read): Change return type to size_t.
81453         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81454         byte counts > SSIZE_MAX correctly.
81455         * lib/safe-write.h: New file.
81456         * lib/safe-write.c: New file.
81457         * lib/full-read.h: New file.
81458         * lib/full-read.c: New file.
81459         * lib/full-write.h: Assume C89. Add comments.
81460         * lib/full-write.c: Include safe-write.h.
81461         (full_write): Rewritten to use safe_write.
81462         Suggested by Jim Meyering and Paul Eggert.
81463
81464 2002-11-21  Jim Meyering  <jim@meyering.net>
81465
81466         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81467
81468         Merge in changes from the coreutils.
81469
81470         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81471         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81472         <stdint.h>.
81473         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81474         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81475         int.  Work more efficiently if X is the same width as uintmax_t.
81476         Do not compare X to -1, to avoid bogus compiler warning.
81477         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81478         Don't assume that f_frsize and f_bsize are the same type.
81479
81480         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81481         warning on FreeBSD.
81482
81483         * lib/makepath.c (make_path): Restore umask *before* creating the final
81484         component.
81485         (make_path): Minor reformatting.
81486
81487         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81488         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81489         HAVE_MALLOC/HAVE_REALLOC.
81490
81491         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81492         dummy ones.  At least on GNU/Linux systems, `auto' means something
81493         else.
81494         From Michael Stone.
81495
81496 2002-11-21  Bruno Haible  <bruno@clisp.org>
81497
81498         Remove case insensitive option matching.
81499         * lib/argmatch.h (argcasematch): Remove declaration.
81500         (ARGCASEMATCH): Remove macro.
81501         (__xargmatch_internal): Remove case_sensitive argument.
81502         (XARGMATCH): Update.
81503         (XARGCASEMATCH): Remove macro.
81504         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81505         case_sensitive argument.
81506         (argcasematch): Remove function.
81507         (__xargmatch_internal): Remove case_sensitive argument.
81508         (main): Use XARGMATCH instead of XARGCASEMATCH.
81509
81510         * lib/xmalloc.c: Change compile-time error message. Add comment about
81511         required autoconf version.
81512
81513 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81514
81515         Merge argmatch cleanups from Bison.  Assume C89.
81516
81517         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81518         Include stdlib.h, for EXIT_FAILURE.
81519         Always include <string.h>, since we assume C89.
81520         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81521         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81522         Include <stddef.h> instead, since it's all we need for size_t.
81523         (PARAMS): Remove.  All uses removed.
81524         (ARRAY_CARDINALITY): Do not bother to #undef.
81525         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81526         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81527         Remove unnecessary parentheses.
81528         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81529         Insert necessary parentheses.
81530         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81531         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81532
81533 2002-11-19  Bruno Haible  <bruno@clisp.org>
81534
81535         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81536         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81537
81538         * lib/mbswidth.h (PARAMS): Remove macro.
81539         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81540         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81541
81542         * lib/gcd.h (PARAMS): Remove macro.
81543         (gcd): Use ANSI C function declarations.
81544         * lib/gcd.c (gcd): Likewise.
81545
81546 2002-11-15  Bruno Haible  <bruno@clisp.org>
81547
81548         * lib/strcspn.c: Include <stddef.h>.
81549         (strcspn): Use ANSI C function declaration. Change return type to
81550         size_t. Use NULL.
81551         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81552         (strpbrk): Use NULL.
81553         * lib/strpbrk.h (PARAMS): Remove macro.
81554         (strpbrk): Use ANSI C function declaration.
81555         * lib/strstr.c: Don't include <sys/types.h>.
81556         * lib/strstr.h (PARAMS): Remove macro.
81557         (strstr): Use ANSI C function declarations.
81558
81559 2002-11-14  Karl Berry  <karl@gnu.org>
81560
81561         * config/mkinstalldirs: `do' on separate line, instead of
81562         `for var; do'.
81563
81564 2002-11-06  Bruno Haible  <bruno@clisp.org>
81565
81566         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81567         * lib/gcd.c (gcd): Likewise.
81568
81569 2002-11-05  Bruno Haible  <bruno@clisp.org>
81570
81571         * lib/gcd.h: New file, from gettext-0.11.5.
81572         * lib/gcd.c: New file, from gettext-0.11.5.
81573
81574 2002-11-05  Bruno Haible  <bruno@clisp.org>
81575
81576         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81577         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81578         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81579         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81580
81581         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81582         <libintl.h>.
81583         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81584         <libintl.h>.
81585
81586         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81587         * lib/human.c: Include gettext.h instead of <libintl.h>.
81588         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81589         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81590         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81591         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81592         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81593         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81594         (textdomain): Remove definition.
81595         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81596
81597         * lib/long-options.c: Remove include of <libintl.h> and definition of
81598         _.
81599         * lib/same.c: Remove include of <libintl.h> and definition of _.
81600
81601 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81602
81603         * lib/config.charset: A few additions for Solaris.
81604
81605 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81606
81607         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81608         * lib/localcharset.c (locale_charset): Declare as extern "C".
81609
81610 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81611
81612         * lib/config.charset: msdos in uk_UA uses CP1125.
81613
81614 2002-11-04  Bruno Haible  <bruno@clisp.org>
81615
81616         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81617         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81618         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81619         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81620         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81621
81622 2002-11-04  Bruno Haible  <bruno@clisp.org>
81623
81624         * lib/localcharset.c (locale_charset): Don't return an empty string.
81625
81626 2002-11-04  Bruno Haible  <bruno@clisp.org>
81627
81628         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81629         aliases.
81630
81631 2002-11-04  Bruno Haible  <bruno@clisp.org>
81632
81633         * lib/config.charset: Update for newest glibc. Add canonical names
81634         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81635
81636 2002-11-04  Bruno Haible  <bruno@clisp.org>
81637
81638         * lib/config.charset: Add support for NetBSD.
81639
81640 2002-11-04  Bruno Haible  <bruno@clisp.org>
81641
81642         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81643
81644 2002-11-01  Bruno Haible  <bruno@clisp.org>
81645
81646         * configure.in: Add AC_CONFIG_AUX_DIR call.
81647         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81648         test/Makefile.
81649         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81650
81651 2002-09-28  Karl Berry  <karl@gnu.org>
81652
81653         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81654         installed automake until the next release, since changes have been
81655         made.
81656
81657 2002-09-25  Karl Berry  <karl@gnu.org>
81658
81659         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81660         * lib/getopt*: copy from libc/posix.
81661         * lib/gettext.h: copy from gettext.
81662         * lib/.cppi-disable: add strdup.c, gettext.h.
81663
81664 2002-09-25  Karl Berry  <karl@gnu.org>
81665
81666         * config/srclist.txt: enable gettext.h check.
81667         * config/config.{guess,sub}: update from prep.
81668         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81669                 from automake 1.6.3.
81670         See srclist*.
81671
81672 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81673
81674         * regex.c (PATFETCH): Remove the translating fetch.
81675         (PATFETCH_RAW): Rename to PATFETCH.
81676         (set_image_of_range): New fun.
81677         (SET_RANGE_TABLE_WORK_AREA): Use it.
81678         (regex_compile): Don't translate the pattern chars so eagerly.
81679         Only do it when inserting an `exactn' bytecode or when handling
81680         a char-range.
81681         (mutually_exclusive_p): Avoid empty statement.
81682
81683 2002-07-06  Jim Meyering  <meyering@lucent.com>
81684
81685         * m4/README: Don't mention Makefile.am.in.
81686         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81687
81688 2002-07-01  Jim Meyering  <meyering@lucent.com>
81689
81690         * lib/c-stack.c: Include sys/time.h.
81691         From Volker Borchert.
81692
81693 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81694
81695         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81696
81697 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81698
81699         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81700         New macro.  Use it uniformly instead of
81701         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81702         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81703         reported by Vin Shelton.
81704
81705 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81706
81707         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81708         Do not assume SA_SIGINFO behavior.
81709         Bug reported by Jim Meyering on NetBSD 1.5.2.
81710
81711 2002-06-22  Jim Meyering  <meyering@lucent.com>
81712
81713         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81714         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81715
81716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81717         now that configure.ac uses AC_GNU_SOURCE.
81718         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81719         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81720
81721         Update to latest tools.  Suggestions from Paul Eggert.
81722         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81723         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81724         * m4/fnmatch.m4: Likewise.
81725         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81726         to AC_HEADER_STDBOOL
81727
81728 2002-06-22  Jim Meyering  <meyering@lucent.com>
81729
81730         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81731         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81732
81733 2002-06-22  Jim Meyering  <meyering@lucent.com>
81734
81735         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81736
81737         * lib/exitfail.c, exitfail.h: Likewise.
81738         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81739
81740         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81741         of fnmatch.h.
81742         (EXTRA_DIST): Add fnmatch_loop.c.
81743         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81744
81745         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81746         * lib/fnmatch.c: Update from diffutils-2.8.2.
81747         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81748         * lib/fnmatch.h: Remove file.
81749
81750 2002-06-21  Jim Meyering  <meyering@lucent.com>
81751
81752         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81753         * m4/mbrtowc.m4: Likewise.
81754
81755         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81756         * m4/mbswidth.m4: Reflect name change:
81757         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81759
81760         * m4/lib-link.m4: Update from gettext-0.11.2.
81761         * m4/gettext.m4: Likewise.
81762
81763         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81764         From Alfred M. Szmidt.
81765
81766 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81767
81768         * lib/file-type.h: Report an error if neither S_ISREG nor
81769         S_IFREG is defined, instead of using a test specific to glibc
81770         2.2.  This should be safe, since POSIX requires S_ISREG and
81771         Unix Version 7 had S_IFREG.  We don't need to check for
81772         <sys/types.h> since we don't use any symbols that it defines.
81773
81774 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81775
81776         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81777         $@-t, so that each temporary file name is unique and valid in the first
81778         8 characters, for operation under DOS.
81779
81780 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81781
81782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81783
81784 2002-06-15  Jim Meyering  <meyering@lucent.com>
81785
81786         Work even with DJGPP 2.03, which lacks support for symlinks.
81787         From Richard Dawe.
81788         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81789         is defined.
81790         * lib/lchown.c (S_ISLNK): Likewise.
81791
81792 2002-06-15  Jim Meyering  <meyering@lucent.com>
81793
81794         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81795         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81796         have been included before this file.
81797
81798 2002-06-14  Jim Meyering  <meyering@lucent.com>
81799
81800         * lib/file-type.h: Use the version from diffutils-2.8.2.
81801         * lib/file-type.c: Likewise.
81802
81803 2002-06-07  Jim Meyering  <meyering@lucent.com>
81804
81805         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81806         They're needed at least for NetBSD 1.5.2.
81807         ($statxfs_includes): Include those same headers.
81808         ($statxfs_includes): Include sys/vfs.h if available.
81809         ($statxfs_includes): Likewise for sys/statvfs.h.
81810         Check for the following members in both structs statfs and statvfs:
81811         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81812
81813 2002-06-01  Jim Meyering  <meyering@lucent.com>
81814
81815         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81816         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81817
81818 2002-05-28  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81821         Reported by Volker Borchert.
81822
81823 2002-05-27  Jim Meyering  <meyering@lucent.com>
81824
81825         Fix a problem seen only on nonconforming systems whereby ls.c's
81826         use of localtime, and then of gettimeofday would cause trouble:
81827         the localtime call used to initialize rpl_gettimeofday's save
81828         mechanism would clobber ls's current local time information so
81829         that in any long listing the first file would always be listed
81830         with date 1970-01-01.  Analysis by Volker Borchert.
81831
81832         * lib/gettimeofday.c (localtime): Undefine.
81833         (rpl_localtime): New function.
81834
81835 2002-05-27  Jim Meyering  <meyering@lucent.com>
81836
81837         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81838         localtime.
81839
81840         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81841         use the replacement function; it wouldn't resolve at link time.
81842         Reported by Volker Borchert.
81843
81844 2002-05-22  Jim Meyering  <meyering@lucent.com>
81845
81846         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81847         file-type.h.
81848         * lib/file-type.h: New file.
81849         * lib/file-type.c (file_type): New file/function.  Extracted from
81850         diffutils.
81851
81852 2002-04-30  Jim Meyering  <meyering@lucent.com>
81853
81854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81855
81856 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81857
81858         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81859
81860 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81861
81862         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81863         Do not check for alloca.h (no longer used) or stdbool.h (was never
81864         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81865
81866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81867
81868         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81869
81870 2002-04-29  Jim Meyering  <meyering@lucent.com>
81871
81872         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81873         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81874         Use AC_FUNC_STRNLEN here instead.
81875
81876         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81877         With autoconf-2.53a, it's part of AC_PROG_CC.
81878
81879 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81880
81881         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81883
81884 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81885
81886         * lib/sig2str.h, lib/sig2str.c: New files.
81887         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81888
81889 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81892         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81893         of 127, since 64 is the largest conceivable number for ancient
81894         nonstandard hosts.
81895         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81896
81897 2002-04-28  Jim Meyering  <meyering@lucent.com>
81898
81899         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81900
81901 2002-04-24  Jim Meyering  <meyering@lucent.com>
81902
81903         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81904         (jm_PREREQ): Use it.
81905
81906         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81907         mach/mach.h fcntl.h.
81908         Check for this function: setlocale.
81909
81910 2002-04-24  Jim Meyering  <meyering@lucent.com>
81911
81912         * lib/gettext.h: New file, from Gettext.
81913         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81914         (libfetish_a_SOURCES): Add gettext.h.
81915
81916 2002-04-16  Jim Meyering  <meyering@lucent.com>
81917
81918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81919         ut_pid, ut_id, ut_exit.
81920
81921 2002-04-16  Jim Meyering  <meyering@lucent.com>
81922
81923         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81924         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81925         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81926
81927 2002-04-12  Jim Meyering  <meyering@lucent.com>
81928
81929         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81930         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81931         existence of the getmntinfo function.  Needed for Darwin 5.3.
81932
81933         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81934         This is necessary at least on Darwin 5.3.
81935
81936         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81937         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81938         strnlen.o in the library, and that makes some versions of ranlib
81939         object.
81940
81941 2002-04-12  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81944
81945 2002-04-09  Jim Meyering  <meyering@lucent.com>
81946
81947         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81948         to be more precise.  Rather than saying we're checking whether the
81949         function `works', say what we're testing.
81950         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81951         Reported by Bruno Haible.
81952
81953 2002-03-10  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81956         Suggestion from Santiago Vila.
81957
81958 2002-03-08  Jim Meyering  <meyering@lucent.com>
81959
81960         * lib/rename.c: Mention that this wrapper is needed also on
81961         mips-dec-ultrix4.4 systems.
81962
81963 2002-03-02  Jim Meyering  <meyering@lucent.com>
81964
81965         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81966         not HAVE_CLOCK_SETTIME.
81967
81968 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81969
81970         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81971         Check for clock_settime.
81972
81973 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81974
81975         * lib/nanosleep.h: Rename to....
81976         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81977
81978         * lib/gettime.c: New file.
81979         * lib/settime.c: New file.
81980         * lib/stime.c: Remove.
81981
81982         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81983         timespec.h.  Remove nanosleep.h.
81984
81985 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81986
81987         * m4/acl.m4: New file.
81988         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81989         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81990
81991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81992
81993         * lib/acl.c, lib/acl.h: New files.
81994         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81995
81996 2002-02-24  Jim Meyering  <meyering@lucent.com>
81997
81998         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81999         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82000         cause trouble.  Reported by Nelson Beebe.
82001
82002 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82003
82004         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82005         compilers that don't know that xalloc_die never returns.
82006
82007 2002-02-20  Jim Meyering  <meyering@lucent.com>
82008
82009         * lib/getdate.c: Regenerate using bison-1.33.
82010
82011 2002-02-17  Jim Meyering  <meyering@lucent.com>
82012
82013         * config/config.guess (main): Don't use `head -1'; it's no longer
82014         portable. Use `sed 1q' instead.
82015
82016 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82017
82018         * m4/codeset.m4: Upgrade to gettext-0.11.
82019         * m4/gettext.m4: Upgrade to gettext-0.11.
82020         * m4/glibc21.m4: Upgrade to gettext-0.11.
82021         * m4/iconv.m4: Upgrade to gettext-0.11.
82022         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82023         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82024         * m4/lib-ld.m4: New file, from gettext-0.11.
82025         * m4/lib-link.m4: New file, from gettext-0.11.
82026         * m4/lib-prefix.m4: New file, from gettext-0.11.
82027         * m4/progtest.m4: Upgrade to gettext-0.11.
82028
82029 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82030
82031         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82032         (jm_PREREQ): Use it.
82033
82034 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82035
82036         * lib/posixver.c, lib/posixver.h: New files.
82037         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82038
82039 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82040             Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82043         (fwrite_success_callback): New declaration.
82044         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82045         print_unicode_char. Call failure callback instead of error.
82046         (fwrite_success_callback): New function.
82047         (exit_failure_callback): New function.
82048         (fallback_failure_callback): New function.
82049         (print_unicode_char): Call unicode_to_mb.
82050
82051 2002-01-26  Jim Meyering  <meyering@lucent.com>
82052
82053         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82054         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82055
82056 2002-01-26  Jim Meyering  <meyering@lucent.com>
82057
82058         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82059
82060 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82061
82062         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82063
82064 2002-01-22  Jim Meyering  <meyering@lucent.com>
82065
82066         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82067         Otherwise, some versions of automake would omit the rule that makes
82068         Makefile from Makefile.in.
82069
82070 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82071
82072         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82073         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82074         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82075         (memcoll): Set errno to zero if there is no error.
82076
82077         * lib/quotearg.c (quotearg_buffer_restyled):
82078         Fix bug with quoting buffers containing NUL when backslashing escapes.
82079         This bug was exposed by the other changes in this patch.
82080         (quotearg_n_options): New arg ARGSIZE.
82081         All callers changed.
82082         (quoting_options_from_style): New function.
82083         (quotearg_n_style): Use it.
82084         (quotearg_n_style_mem): New function.
82085
82086         * lib/quotearg.h (quotearg_n_style_mem): New function.
82087
82088 2002-01-19  Jim Meyering  <meyering@lucent.com>
82089
82090         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82091         Remove useless quotes: DF_PROG="df".
82092         * m4/strnlen.m4: New file.
82093
82094 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82095
82096         * lib/backupfile.c (ISDIGIT): Comment fix.
82097         * lib/getdate.y (ISDIGIT): Likewise.
82098         * lib/posixtm.c (ISDIGIT, year): Likewise.
82099         * lib/strverscmp.c (ISDIGIT): Likewise.
82100         * lib/userspec.c (ISDIGIT): Likewise.
82101
82102 2002-01-16  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/getdate.y: Add three semicolons, each just before a closing
82105         brace. Bison (as of version 1.31) no longer papers over that mistake.
82106
82107 2002-01-05  Jim Meyering  <meyering@lucent.com>
82108
82109         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82110
82111 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82112
82113         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82114         not silently exit merely because the output buffer happens to
82115         have nothing pending.
82116
82117 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82118
82119         See the big note in ../ChangeLog.
82120         * lib/human.c (suffixes): Prefer K to k for 1024.
82121         (generate_suffix_backwards): New function.
82122         (human_readable_inexact): Use it.
82123         * lib/xstrtol.c (__xstrtol): If there is no number but there
82124         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82125         Accept 'K' as well as 'k'.
82126
82127 2001-12-15  Jim Meyering  <meyering@lucent.com>
82128
82129         * lib/regex.h (__restrict_arr): Update from libc.
82130
82131         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82132         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82133         (STREQ): Define.
82134
82135 2001-12-14  Jim Meyering  <meyering@lucent.com>
82136
82137         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82138         Suggestion from Bruno Haible.
82139
82140 2001-12-10  Jim Meyering  <meyering@lucent.com>
82141
82142         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82143         xrealloc, Instead, include "xalloc.h".
82144         (initbuffer): Don't cast xmalloc return value to char*.
82145         (readline): Reword comment.
82146         Don't cast xrealloc return value to char*
82147         Return NULL, not 0.
82148
82149 2001-12-09  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82152         about `signed and unsigned type in conditional expression'.
82153         * lib/posixtm.c (posix_time_parse): Likewise.
82154
82155         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82156
82157         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82158         to avoid a pedantic warning.
82159
82160         * lib/getstr.c: Don't include assert.h.
82161         (getstr): Remove warning-evoking assertions.
82162         Return -1 if offset parameter is out of bounds.
82163         Change the type of a local from int to size_t.
82164
82165         * lib/strftime.c (my_strftime_localtime_r): Include this function
82166         definition in the `#if ! HAVE_TM_GMTOFF' block.
82167
82168         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82169         Include xalloc.h instead.
82170
82171 2001-12-02  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82174         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82175         included.
82176
82177         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82178         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82179
82180 2001-11-30  Akim Demaille  <akim@epita.fr>
82181
82182         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82183         before being defined.
82184
82185 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82186
82187         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82188         First arg is int, not unsigned.
82189         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82190         (SIZE_MAX, UINT_MAX): New macros.
82191         (quotearg_n_options): Abort if N is negative.
82192         Avoid overflow check on hosts where size_t is 64 bits and int
82193         is 32 bits, as overflow is impossible there.
82194         Fix off-by-one typo that caused unnecessary reallocation.
82195
82196 2001-11-27  Jim Meyering  <meyering@lucent.com>
82197
82198         * lib/tempname.c: Merge with version from libc.
82199         * lib/regex.c: Likewise.
82200
82201         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82202         systems for which STDC_HEADERS is 0, it was not included, resulting in
82203         a warning about an integer-to-pointer conversion problem with getenv.
82204         Reported by Volker Borchert.
82205
82206 2001-11-26  Jim Meyering  <meyering@lucent.com>
82207
82208         * lib/gtod.h: Remove file.
82209         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82210         * lib/gettimeofday.c: Don't include gtod.h.
82211         (GTOD_init): Remove function.
82212         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82213         Suggestion from Volker Borchert.
82214
82215 2001-11-23  Jim Meyering  <meyering@lucent.com>
82216
82217         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82218         it.
82219         * lib/hash.c (struct hash_table): Define it here instead.
82220
82221 2001-11-22  Jim Meyering  <meyering@lucent.com>
82222
82223         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82224
82225 2001-11-20  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82228         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82229
82230 2001-11-19  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82233         directory.  Use "conftestXXXXXX" as the template.
82234         Suggestion from Paul Eggert.
82235
82236         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82237         immediately, so the test doesn't mistakenly hit the max-open-files
82238         limit.
82239
82240 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82241
82242         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82243         (TEMPORARIES): New macro.
82244         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82245         removes an artificial limitation (e.g. HP-UX 10.20, where
82246         TMP_MAX is 17576).
82247
82248 2001-11-18  Jim Meyering  <meyering@lucent.com>
82249
82250         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82251
82252 2001-11-18  Jim Meyering  <meyering@lucent.com>
82253
82254         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82255         on SunOS 4.
82256
82257         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82258         files will be created before anything else.
82259
82260 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82261
82262         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82263         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82264
82265 2001-11-17  Jim Meyering  <meyering@lucent.com>
82266
82267         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82268         Prompted by a report from Bob Proulx.
82269
82270         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82271         Instead, require UTILS_FUNC_MKSTEMP.
82272
82273 2001-11-17  Jim Meyering  <meyering@lucent.com>
82274
82275         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82276         Now, that's done as part of AC_FUNC_STRTOD.
82277
82278 2001-11-17  Jim Meyering  <meyering@lucent.com>
82279
82280         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82281         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82282         rather than group writable.  Patch by Juan F. Codagnone.
82283
82284         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82285         xrealloc, Instead, include "xalloc.h".
82286
82287         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82288         Remove explicit declarations of xmalloc, xrealloc,
82289         and xstrdup.  Instead, include "xalloc.h".
82290
82291         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82292         unlocked-io.h.
82293         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82294         Likewise.
82295         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82296
82297         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82298         Reported by Padraig Brady.
82299
82300         * lib/mkstemp.c: #undef mkstemp.
82301         Include config.h.
82302         (rpl_mkstemp): Rename from mkstemp.
82303         Protoize.
82304
82305 2001-11-16  Jim Meyering  <meyering@lucent.com>
82306
82307         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82308         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82309         determine the amount of total physical memory, use pstat_getstatic.
82310         HPUX-11 doesn't define _SC_PHYS_PAGES.
82311         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82312         If sysconf couldn't be used to determine the amount of available
82313         physical memory, use both pstat_getstatic and pstat_getdynamic.
82314         Based on a patch from Bob Proulx.
82315
82316 2001-11-10  Jim Meyering  <meyering@lucent.com>
82317
82318         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82319         (jm_PREREQ): Use it.
82320
82321 2001-11-09  Jim Meyering  <meyering@lucent.com>
82322
82323         * m4/jm-macros.m4: Require autoconf-2.52f.
82324         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82325         Use these AC_-prefixed names, not the AM_-prefixed ones.
82326
82327         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82328
82329 2001-11-05  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82332
82333 2001-11-04  Jim Meyering  <meyering@lucent.com>
82334
82335         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82336         $DEFS.
82337
82338 2001-11-03  Jim Meyering  <meyering@lucent.com>
82339
82340         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82341         of AC_DEFUN.
82342
82343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82344         know the name of the variable in the macro definition.
82345
82346 2001-11-03  Jim Meyering  <meyering@lucent.com>
82347
82348         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82349         in argmatch_to_argument call.
82350
82351         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82352         argument.
82353
82354         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82355         e.g., a fault due to an attempt to free a NULL pointer.
82356
82357 2001-11-01  Jim Meyering  <meyering@lucent.com>
82358
82359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82360         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82361
82362 2001-11-01  Jim Meyering  <meyering@lucent.com>
82363
82364         * lib/dirfd.c, lib/dirfd.h: New files.
82365         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82366
82367         * lib/hash.c (hash_print) [TESTING]: Clean up.
82368
82369 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82370
82371         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82372         to avoid a warning if -Wall.
82373
82374 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82375
82376         * README: New file
82377         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82378         (per RMS's instructions, this is now the canonical source)
82379         * lgpl/, gpl/: New directories.
82380
82381 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82382
82383         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82384
82385 2001-10-21  Jim Meyering  <meyering@lucent.com>
82386
82387         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82388         this code would end up calling gettext even in packages built
82389         with --disable-nls.
82390         * lib/getopt.c (_): Likewise.
82391         * lib/regex.c (_): Likewise.
82392
82393 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82394
82395         * m4/error.m4 (jm_PREREQ_ERROR):
82396         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82397         AC_FUNC_STRERROR_R does that.
82398         Check for strerror declaration.
82399
82400         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82401         are supposed to have them these days.
82402         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82403         Merge changes from latest Autoconf CVS.
82404         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82405         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82406         POSIX decided to standardize on the int flavor of strerror_r.
82407
82408 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82409
82410         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82411         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82412         Use strerror_r that is only a macro, even if it is not a function.
82413         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82414         (private_strerror): Use prototypes, not old-style function definition.
82415         (print_errno_message): New function.
82416         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82417         char*-flavored one.
82418         (error_tail, error, error_at_line): Use it.
82419
82420 2001-10-11  Jim Meyering  <meyering@lucent.com>
82421
82422         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82423         and quote_n (1, ... to avoid clobbering a buffer.
82424
82425 2001-10-05  Jim Meyering  <meyering@lucent.com>
82426
82427         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82428         hash-pjw.h.
82429         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82430         * lib/hash-pjw.h: New file.
82431
82432 2001-09-30  Jim Meyering  <meyering@lucent.com>
82433
82434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82435         `struct fsstat' has the `f_fstypename' member.
82436         Use that to define FS_TYPE, which is now used to make
82437         the getfsstat link test tighter.
82438
82439 2001-09-30  Jim Meyering  <meyering@lucent.com>
82440
82441         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82442         Include <sys/ucred.h>, for Apple Darwin.
82443         Include sys/mount.h and sys/fs_types.h only if available.
82444         (FS_TYPE): Define.
82445         (read_filesystem_list): Use FS_TYPE.
82446
82447 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82448
82449         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82450         a boolean context.
82451
82452 2001-09-29  Jim Meyering  <meyering@lucent.com>
82453
82454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82455         [one-argument getmntent function]): Include stdio.h before mntent.h.
82456         SunOS 4.1.x needs it for the declaration of `FILE'.
82457         Patch by Volker Borchert.
82458
82459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82460         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82461         sys/fs_types.h, and make the link-test for getfsstat guard #include
82462         directives with appropriate #if HAVE_*_H tests so that we can
82463         detect getfsstat on Apple Darwin1.3.7 systems.
82464         Reported by Nelson Beebe.
82465         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82466
82467 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82468
82469         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82470         #defines strtoimax.  Also treat the other strto* functions
82471         like strtoimax.
82472
82473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82474         Check for strtoul and strtoumax,
82475         as those declarations are made even in the signed case.
82476         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82477         Likewise, for strtol and strtoimax.
82478
82479 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82480
82481         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82482         #defines strtoimax.  Also treat the other strto* functions
82483         like strtoimax.
82484
82485         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82486         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82487         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82488
82489 2001-09-26  Jim Meyering  <meyering@lucent.com>
82490
82491         Most macros in unlocked-io.h had the wrong number of arguments.
82492         * lib/gen-uio: New script.
82493         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82494         * lib/unlocked-io.hin: Remove file.
82495         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82496         rather than trying to embed it here.
82497         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82498         Reported by Padraig Brady.
82499
82500 2001-09-25  Volker Borchert  <bt@teknon.de>
82501
82502         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82503         `result'.
82504
82505 2001-09-24  Jim Meyering  <meyering@lucent.com>
82506
82507         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82508
82509 2001-09-23  Jim Meyering  <meyering@lucent.com>
82510
82511         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82512         instead of the mere test for existence of mntent.h.  The latter
82513         would get a false-positive on AIX 3.4 systems.
82514         In the outer getmntent if-block, don't die if neither of the getmntent
82515         tests succeeds.  Instead, just fall through and continue with the
82516         remaining tests.
82517
82518 2001-09-23  Jim Meyering  <meyering@lucent.com>
82519
82520         * lib/mountlist.c: Remove useless parentheses in #if directives.
82521         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82522         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82523
82524 2001-09-22  Jim Meyering  <meyering@lucent.com>
82525
82526         * m4/gettext.m4: New file.  From gettext.
82527         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82528         * m4/progtest.m4: Likewise
82529         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82530         * m4/glibc21.m4: Likewise.
82531
82532         * m4/libintl.m4: Remove.  No longer used.
82533
82534 2001-09-22  Jim Meyering  <meyering@lucent.com>
82535
82536         * lib/localcharset.c: Update from latest gettext.
82537         * lib/config.charset: Likewise.
82538
82539 2001-09-20  Jim Meyering  <meyering@lucent.com>
82540
82541         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82542         strtoimax.
82543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82544         strtoumax.
82545
82546 2001-09-20  Jim Meyering  <meyering@lucent.com>
82547
82548         * lib/xstrtol.c (strtoimax): Guard declaration with
82549         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82550         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82551         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82552         (strtoumax): Likewise, for completeness (it wasn't necessary).
82553
82554 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82555
82556         * lib/strtoimax.c (HAVE_LONG_LONG):
82557         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82558         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82559         to work around bug in IBM C compiler.
82560
82561 2001-09-17  Jim Meyering  <meyering@lucent.com>
82562
82563         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82564         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82565         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82566         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82567         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82568         whenever the right hand side need not be expanded by the shell.
82569
82570 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82571
82572         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82573         library.  It's not correct, as some older glibcs are buggy.
82574         fnmatch wasn't fixed until glibc 2.2.
82575
82576         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82577         special shell magic here.
82578
82579 2001-09-16  Jim Meyering  <meyering@lucent.com>
82580
82581         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82582         * m4/jm-macros.m4: Require it.
82583
82584 2001-09-16  Jim Meyering  <meyering@lucent.com>
82585
82586         * lib/mkdir.c: New file.
82587
82588 2001-09-15  Jim Meyering  <meyering@lucent.com>
82589
82590         * m4/jm-macros.m4: Check for help2man.
82591
82592 2001-09-11  Jim Meyering  <meyering@lucent.com>
82593
82594         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82595         The body, by Paul Eggert, was moved here from configure.in.
82596         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82597
82598 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82599
82600         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82601         (jm_PREREQ): Use it.
82602
82603 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82604
82605         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82606         Use ssize_t, not int, to store result of readlink.
82607         Check for ssize_t overflow as well as size_t overflow,
82608         as POSIX says the result of readlink is implementation-defined
82609         when ssize_t overflows.
82610         Remove unnecessary cast to char*.
82611         Use free+malloc instead of realloc, as the storage doesn't need
82612         to be preserved and it's clearer and can be more efficient that way.
82613         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82614         * lib/xreadlink.h (xreadlink): Update prototype.
82615
82616 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82617
82618         * lib/xgetcwd.c: Revert some of the previous change; intead,
82619         fix the HAVE_GETCWD_NULL code to behave more like the
82620         !HAVE_GETCWD_NULL code used to.
82621
82622         Include "xalloc.h".
82623         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82624         invoke xalloc_die.
82625
82626 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82627
82628         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82629         sys/param.h, as pathmax.h includes them.
82630
82631 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82632
82633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82634         (jm_PREREQ_XGETCWD): New macro.
82635
82636         * m4/getcwd.m4: New file.
82637
82638 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82639
82640         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82641         like the HAVE_GETCWD_NULL code.
82642         Include pathmax.h if not HAVE_GETCWD.
82643         Do not include xalloc.h.
82644         (INITIAL_BUFFER_SIZE): New symbol.
82645         Do not use xmalloc / xrealloc, since the caller is responsible for
82646         handling errors.  Preserve errno around `free' during failure.
82647         Do not overrun buffer when using getwd.
82648
82649 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82650
82651         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82652         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82653         getcwd (NULL, 0).
82654
82655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82656
82657         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82658         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82659         spotted by Jim Meyering.
82660
82661 2001-09-03  Jim Meyering  <meyering@lucent.com>
82662
82663         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82664         failure.
82665
82666 2001-09-02  Jim Meyering  <meyering@lucent.com>
82667
82668         * lib/error.c: Update from GNU libc.
82669
82670 2001-09-01  Jim Meyering  <meyering@lucent.com>
82671
82672         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82673         Used by df.
82674
82675 2001-09-01  Jim Meyering  <meyering@lucent.com>
82676
82677         * lib/xreadlink.c: New file.
82678         * lib/xreadlink.h: New file.
82679         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82680         xreadlink.h.
82681
82682         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82683         doesn't conflict with sparc Solaris 7's definition in
82684         /usr/include/sys/int_types.h.
82685
82686         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82687         files.
82688         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82689         and strncasecmp as r-values.  Unixware didn't have declarations.
82690
82691 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82692
82693         * lib/xstrtol.h: Add copyright notice.
82694         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82695         LONGINT_INVALID_SUFFIX_CHAR.
82696
82697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82698
82699         * lib/xstrtol.c (strtoimax): New decl.
82700
82701 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82702
82703         * lib/xgetcwd.c: Don't include pathmax.h.
82704         Include stdlib.h and unistd.h if available.
82705         Include xalloc.h.
82706         (xmalloc, xstrdup, free): Remove decls.
82707         (xgetcwd): Don't assume sizes fit in unsigned.
82708         Check for overflow when computing sizes.
82709         Simplify reallocation code.
82710
82711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82712
82713         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82714         a directory's st_size can have an arbitrary value, so the old
82715         usage could waste an arbitrary amount of memory.  All uses
82716         changed.
82717         * lib/savedir.h: Update prototype.
82718
82719 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82720
82721         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82722
82723         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82724         old strtoimax.c.
82725
82726         Also, make the following further changes to make this file's
82727         configuration more similar to that of strtol.c:
82728         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82729         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82730         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82731         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82732         changed to signed values.
82733
82734         And make the following changes as well:
82735         Fix copyright notice, as 1999 was missing.
82736         (verify): New macro.
82737         (strtoimax): Check sizes at compile-time, not run-time.
82738         Prefer strtol to strtoll if both work.
82739         (main): Remove; it was not that useful and was a pain to maintain.
82740
82741         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82742
82743 2001-08-31  Jim Meyering  <meyering@lucent.com>
82744
82745         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82746         Use an initial, malloc'd, buffer of length 128 rather than
82747         a statically allocated one of length 1024.
82748
82749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82750
82751         Simplify code, partly by assuming autoconf 2.52 semantics.
82752
82753         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82754
82755         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82756         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82757         All uses removed.
82758         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82759         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82760         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82761         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82762         jm_AC_HEADER_INTTYPES_H.
82763         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82764
82765         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82766
82767         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82768         Quote first arg of AC_DEFUN.
82769         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82770         since they are needed to parse the include file even if we need
82771         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82772         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82773         but with opposite signedness.
82774
82775 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82776
82777         Merge 'exclude' changes from tar 1.13.22.
82778         This fixes one or two unlikely storage allocation overflow bugs,
82779         but doesn't change user-visible behavior otherwise.
82780
82781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82782
82783         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82784         (jm_PREREQ_EXCLUDE): New macro.
82785
82786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82787
82788         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82789         tm to be declared.
82790
82791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82792
82793         * lib/hash.c: Remove '2001' from copyright notice.
82794
82795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82796
82797         * lib/full-write.h: New file.
82798         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82799         * lib/full-write.c: Correct credits, as cccp.c no longer
82800         exists and anyway it was so heavily changed from the old cccp
82801         code as to be unrecognizable.  Include full-write.h.
82802         (full_write): Return size_t, with short writes meaning failure.
82803         All callers changed.  This fixes a bug with large buffers
82804         on 64-bit hosts.
82805         * lib/utime.c: Include full-write.h.
82806
82807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82808
82809         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82810         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82811         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82812         Include if available.
82813         (<xalloc.h>): Include
82814         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82815         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82816         collide with FNM macros.
82817         (struct patopts): New struct.
82818         (struct exclude): Use it, as exclude patterns now come with options.
82819         (new_exclude): Support above changes.
82820         (new_exclude, add_exclude_file):
82821         Initial size must now be a power of two to simplify overflow checking.
82822         (free_exclude, fnmatch_no_wildcards): New function.
82823         (excluded_filename): No longer requires options arg, as the options
82824         are determined by add_exclude.  Now returns bool, not int.
82825         (excluded_filename, add_exclude):
82826         Add support for the fancy new exclusion options.
82827         (add_exclude, add_exclude_file): Now takes int options arg.
82828         Check for arithmetic overflow when computing sizes.
82829         (add_exclude_file): xrealloc might modify errno, so don't
82830         realloc until after errno might be used.
82831
82832         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82833         New macros.
82834         (free_exclude): New decl.
82835         (add_exclude, add_exclude_file): Now takes int options arg.
82836         (excluded_filename): No longer requires options arg, as the options
82837         are determined by add_exclude.  Now returns bool, not int.
82838
82839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82840
82841         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82842
82843 2001-08-27  Jim Meyering  <meyering@lucent.com>
82844
82845         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82846
82847         * lib/version-etc.c (N_): Remove definition.
82848         Revert most of last change.
82849         Instead, simply don't mark the `Copyright...' string for translation.
82850         Based on advice from Paul Eggert.
82851
82852         * lib/strtoxmax.c: Tweak comment.
82853
82854 2001-08-26  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82857
82858         * m4/xstrtoimax.m4: New file.
82859         * m4/xstrtoumax.m4: Add comments explaining why we
82860         AC_REPLACE_FUNCS(strtol).
82861
82862 2001-08-26  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82865         of copyright with `%s' so translators don't get an untranslated
82866         message in 2002.
82867         (COPYRIGHT_YEAR): Define.
82868         (version_etc): Use fprintf rather than fputs.
82869         Suggestion from Ulrich Drepper.
82870
82871         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82872
82873         * lib/strtoll.c: New file, from GNU libc.
82874         * lib/xstrtoimax.c: New file.
82875
82876         * lib/xstrtol.h: Add xstrtoimax.
82877         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82878         * lib/strtoimax.c: New file.  Likewise, but first define
82879         STRTOUXMAX_SIGNED.
82880
82881         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82882         ...
82883         * lib/strtoxmax.c: ... then renamed to this.
82884
82885 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82886
82887         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82888         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82889         (jm_AC_TYPE_INTMAX_T): New macro.
82890         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82891
82892         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82893
82894         * m4/longlong.m4: Renamed from ulonglong.m4.
82895         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82896         * m4/uintmax_t.m4: Removed.
82897
82898 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82899
82900         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82901         Port to Solaris 8, where 'sed' requires a space after the 'r'
82902         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82903         Redirect output to $tmp just once.
82904
82905 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82906
82907         * lib/addext.c (<errno.h>): Include.
82908         (errno): Declare if not defined.
82909         (addext): Work correctly when pathconf returns -1 and leaves
82910         errno alone because there is no limit.  Also, work even if
82911         pathconf returns a value greater than SIZE_MAX.
82912
82913 2001-08-12  Jim Meyering  <meyering@lucent.com>
82914
82915         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82916         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82917         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82918         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82919         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82920         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82921         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82922         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82923         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82924         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82925         utime.m4, utimes.m4, xstrtoumax.m4:
82926         Quote the first argument in each use of AC_DEFUN.
82927
82928 2001-08-12  Jim Meyering  <meyering@lucent.com>
82929
82930         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82931         Simply `return getcwd (NULL, 0);'.
82932         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82933         Use 1300 as initial value for length, not PATH_MAX.
82934
82935         * lib/pathmax.h: Clean up cpp syntax.
82936
82937 2001-08-12  Jim Meyering  <meyering@lucent.com>
82938
82939         * lib/gettimeofday.c: New file.
82940         * lib/gtod.h: New file.
82941         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82942
82943 2001-08-05  Jim Meyering  <meyering@lucent.com>
82944
82945         * m4/jm-macros.m4: Require autoconf-2.52.
82946
82947 2001-08-04  Jim Meyering  <meyering@lucent.com>
82948
82949         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82950         stmt, to get in sync with glibc.
82951
82952 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82953
82954         The following changes are from gettext 0.10.39 as maintained by
82955         Bruno Haible.
82956
82957         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82958         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82959         with inverted sense.  All uses changed.
82960
82961         * lib/mbswidth.c: Don't include <limits.h>.
82962         Include <stdlib.h> and <string.h> unconditionally.
82963         (iswcntrl, mbsinit, ISCNTRL): New macros.
82964         (mbsnwidth): Use K&R style function declarations.
82965         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82966         can optimize it when MB_CUR_MAX == 1.
82967         The width of control characters is zero, not 1.
82968
82969 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82970
82971         The following changes are from gettext 0.10.39 as maintained by
82972         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82973
82974         * m4/codeset.m4: Upgrade to serial AM1.
82975         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82976         all uses changed.  Quote first arg of AC_DEFUN.
82977         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82978
82979         * m4/iconv.m4: Upgrade to serial AM2.
82980         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82981         Add --with-libconv-prefix.
82982         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82983         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82984         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82985         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82986         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82987
82988         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82989         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82990         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82991         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82992         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82993         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82994         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82995         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82996         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82997
82998         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82999         string.h any more.
83000
83001         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83002         not the default value.
83003
83004         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83005         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83006         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83007         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83008         Also check for iswcntrl, used for wcwidth fallback.
83009         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83010         to Autoconf 2.13.
83011
83012 2001-08-03  Jim Meyering  <meyering@lucent.com>
83013
83014         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83015         as it was in the original.  Reported by Paul Eggert.
83016
83017 2001-07-16  Jim Meyering  <meyering@lucent.com>
83018
83019         * m4/gettimeofday.m4: New file.
83020         Prompted by a report from Bernhard Baehr.
83021
83022 2001-07-15  Jim Meyering  <meyering@lucent.com>
83023
83024         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83025         stuff. Now it's in ../Makefile.cfg.
83026
83027 2001-07-15  Jim Meyering  <meyering@lucent.com>
83028
83029         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83030         (BUILT_SOURCES): Add unlocked-io.h.
83031         (io_functions): Define.
83032         (unlocked-io.h): New rule.
83033         (DISTCLEANFILES): Add unlocked-io.h.
83034         (all-local): Depend on unlocked-io.h, to ensure it is created.
83035
83036         * lib/unlocked-io.hin: New file
83037
83038         * lib/regex.c: Update from glibc.
83039
83040 2001-07-05  Jim Meyering  <meyering@lucent.com>
83041
83042         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83043         recommendation.
83044         (libfetish_a_SOURCES): Put all .h files here instead.
83045         Remove a thus-exposed (better checks in automake) duplicate and
83046         two unnecessary .h files.
83047
83048 2001-07-04  Jim Meyering  <meyering@lucent.com>
83049
83050         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83051         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83052         distcheck failure.
83053
83054 2001-07-02  Jim Meyering  <meyering@lucent.com>
83055
83056         The following changes were prompted by suggestions from Bruno Haible.
83057
83058         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83059         is now generated.
83060         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83061         definition of EXTRA_DIST.
83062         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83063         ensure that the generated file is created/updated whenever the list
83064         of $(unlocked_functions) is changed.
83065         (jm-glibc-io.m4): New rule.
83066         (unlocked-io.h): New rule -- currently unused.
83067
83068 2001-06-24  Jim Meyering  <meyering@lucent.com>
83069
83070         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83071         unmatched right bracket, rather than kludging it with an extra,
83072         falsely-matching quote in a comment.  Patch by Akim Demaille.
83073
83074 2001-06-11  Jim Meyering  <meyering@lucent.com>
83075
83076         * lib/regex.c: Update from GNU libc.
83077
83078 2001-05-27  Jim Meyering  <meyering@lucent.com>
83079
83080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83081         Check for ut_type in struct utmp.
83082
83083 2001-05-27  Jim Meyering  <meyering@lucent.com>
83084
83085         * lib/readutmp.h (UT_TYPE): Define.
83086
83087 2001-05-24  Jim Meyering  <meyering@lucent.com>
83088
83089         * lib/argmatch.c: Include "quote.h".
83090         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83091         quote function.  Reported by Göran Uddeborg.
83092
83093 2001-05-22  Jim Meyering  <meyering@lucent.com>
83094
83095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83096         now that we use the package-supplied version unconditionally.
83097         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83098
83099 2001-05-21  Jim Meyering  <meyering@lucent.com>
83100
83101         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83102         shell syntax errors.
83103
83104 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83105
83106         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83107
83108 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83109
83110         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83111         Don't bother to check library strftime, since
83112         we'll be using our own my_strftime function anyway.
83113         Define my_strftime instead of strftime.
83114
83115 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83116
83117         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83118         which is not yet declared.
83119
83120 2001-05-15  Jim Meyering  <meyering@lucent.com>
83121
83122         * m4/regex.m4: Use proper quoting so brackets appear in the test
83123         program.
83124         Reported by, and with help from, Bruno Haible.
83125
83126 2001-05-13  Jim Meyering  <meyering@lucent.com>
83127
83128         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83129         undefined.
83130
83131 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83132
83133         dirname code cleanup.  base_name now behaves more compatibly
83134         with POSIX basename when given file names that have trailing
83135         slashes, and similarly for dir_name.  Add new primitives
83136         base_len and dir_len.  Put the directory-name-related decls
83137         into dirname.h.
83138
83139         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83140         * lib/backupfile.c (base_name): Likewise.
83141         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83142         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83143         * lib/makepath.c (strip_trailing_slashes): Likewise.
83144         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83145         ISSLASH): Likewise.
83146         * lib/rename.c (strip_trailing_slashes): Likewise.
83147         * lib/same.c (base_name): Likewise.
83148         * lib/stripslash.c (ISSLASH): Likewise.
83149
83150         * lib/addext.c: Include <dirname.h> after size_t is defined.
83151         * lib/backupfile.c: Likewise.
83152
83153         * lib/addext.c (addext): Use base_len to trim redundant
83154         trailing slashes instead of doing it ourselves.
83155         But do not trim the last slash if it is not redundant.
83156
83157         * lib/backupfile.c (find_backup_file_name,
83158         max_backup_version): Use base_len instead of rolling it ourselves.
83159         Handle the case of "" and (on DOS) "C:" correctly.
83160
83161         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83162         needed. Include <string.h>, <dirname.h>.
83163         (base_name): Allow file names ending in slashes, other than names
83164         that are all slashes.  In this case, return the basename followed
83165         by the slashes.  This is more general, and can be used in places
83166         where the original base_name purposely had an assertion failure.
83167         (base_len): New function.
83168
83169         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83170         Do not include <assert.h>; no longer needed.
83171         Include xalloc.h.
83172         (memrchr): Remove decl.
83173         (dir_name_r): Remove.
83174         (dir_len): Renamed from dirlen.  All callers changed.
83175         Rewrite in terms of base_name, for simplicity and consistency.
83176         (dir_name): Never return NULL.  All callers changed.
83177         Do not include <stdlib.h> in test program; no longer needed.
83178         return 0; is fine for test program.
83179
83180         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83181         New macros.
83182         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83183
83184         * lib/path-concat.c (path_concat): Use base_len to compute
83185         base length, not strlen; this means we cannot rely on memcpy
83186         to null-terminate.
83187
83188         * lib/same.c (STREQ): Remove.
83189         (same_name): Handle the case where the basename ends in trailing '/'.
83190
83191         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83192         a slash was stripped.  Do not strip the last slash after a
83193         file system prefix.
83194
83195 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83196
83197         * lib/Makefile.am (libfetish_a_SOURCES):
83198         Add strftime.c, since we now compile it on all hosts.
83199
83200         * lib/strftime.c (my_strftime):
83201         Define to nstrftime if emacs, but only if my_strftime is not defined.
83202         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83203         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83204         Add one more extra argument: a nanoseconds value.
83205         All uses changed.
83206         (ns): New macro.
83207         (my_strftime function): Add %N format.
83208         (emacs_strftimeu): Renamed from emacs_strftime,
83209         with extra ut argument.
83210
83211 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83212
83213         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83214
83215 2001-04-21  Jim Meyering  <meyering@lucent.com>
83216
83217         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83218         doesn't interfere.
83219
83220 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83221
83222         * m4/ftruncate.m4: Check for chsize.
83223         Link with ftruncate.o unconditionally if ftruncate is missing.
83224         This was required when cross-compiling to i586-mingw32msvc.
83225
83226 2001-04-08  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83229         recomputed; that's necessary when the offset spans a DST transition.
83230         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83231
83232 2001-04-02  Jim Meyering  <meyering@lucent.com>
83233
83234         * lib/regex.h, regex.c: Update from GNU libc.
83235
83236 2001-03-24  Jim Meyering  <meyering@lucent.com>
83237
83238         * m4/jm-macros.m4: Require autoconf-2.49d.
83239
83240 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83241
83242         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83243
83244 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83245
83246         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83247
83248 2001-03-17  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83251         now that the version in autoconf is equivalent.
83252         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83253
83254         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83255         Suggestion from Akim Demaille.
83256
83257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83258         (jm_PREREQ_TEMPNAME): New function.
83259
83260 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83261
83262         * lib/tempname.c (uint64_t): Define to uintmax_t if
83263         not defined, and if UINT64_MAX is not defined.
83264         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83265         Reported by John David Anglin.
83266
83267 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83268
83269         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83270         resolve alias if codeset is empty.
83271         * lib/config.charset (BeOS): Use wildcard syntax.
83272
83273 2001-03-13  Jim Meyering  <meyering@lucent.com>
83274
83275         * lib/path-concat.c (path_concat)
83276         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83277         concatenating e.g., `C:' and `foo'.
83278         From Bruno Haible.
83279
83280 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83281
83282         * lib/localcharset.c (locale_charset): Don't use
83283         setlocale(LC_CTYPE,NULL). Don't return NULL.
83284         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83285
83286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83287
83288         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83289         support for DOS/DJGPP.
83290
83291 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83292
83293         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83294         lacks mkstemp.  Compile our own tempname.c if we compile our own
83295         mkstemp.c, as mkstemp relies on tempname.
83296
83297 2001-03-01  Jim Meyering  <meyering@lucent.com>
83298
83299         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83300         AH_VERBATIM really does output its argument verbatim.
83301
83302 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83303
83304         * lib/Makefile.am (libfetish_a_SOURCES):
83305         Add dup-safer.c, fopen-safer.c.
83306         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83307
83308         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83309         * lib/unistd-safer.h: New files.
83310
83311 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83312
83313         The mkstemp replacement is taken from glibc 2.2.2, with some
83314         portability fixes for use outside glibc, as follows:
83315
83316         * lib/tempname.c (struct_stat64): New macro.
83317         (direxists, __gen_tempname): Use it.
83318         This avoids a portability problem with Solaris 8.
83319
83320         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83321         (<stddef.h>, <stdint.h>, <string.h>):
83322         Include only if STDC_HEADERS || _LIBC.
83323         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83324         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83325         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83326         (__set_errno): Define this macro if <errno.h> doesn't.
83327         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83328         Define these macros if <stdio.h> doesn't.
83329         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83330         Define these macros if <sys/stat.h>
83331         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83332         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83333         __xstat64): Define if not _LIBC.
83334         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83335         (__gen_tempname): Invoke gettimeofday only if
83336         HAVE_GETTIMEOFDAY || _LIBC;
83337         otherwise, fall back on plain "time".
83338         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83339
83340         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83341
83342         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83343
83344 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83345
83346         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83347
83348 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83349
83350         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83351         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83352         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83353         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83354
83355 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83356
83357         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83358         Remove workaround macros for hosts that have mbrtowc but not
83359         mbstate_t, as we now insist on proper declarations for both
83360         before using mbrtowc.
83361
83362 2001-02-17  Jim Meyering  <meyering@lucent.com>
83363
83364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83365         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83366         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83367         UnixWare 7.1.1.
83368
83369         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83370         rather than AC_CACHE_VAL.
83371
83372 2001-02-17  Jim Meyering  <meyering@lucent.com>
83373
83374         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83375         around included file name.
83376
83377         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83378
83379         * lib/strftime.c: Update from GNU libc (the only changes were to
83380         comments).
83381
83382 2001-02-17  Jim Meyering  <meyering@lucent.com>
83383
83384         * lib/regex.c: Update from libc.
83385
83386 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83387
83388         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83389         clash.
83390
83391 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83392
83393         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83394         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83395         Reported by Mark Hounschell via Paul Eggert.
83396
83397 2001-02-07  Jim Meyering  <meyering@lucent.com>
83398
83399         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83400
83401 2001-02-05  Jim Meyering  <meyering@lucent.com>
83402
83403         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83404         it includes the patch required for `large file' support with at least
83405         HP-UX's 10.20 /bin/cc.
83406
83407 2001-02-03  Jim Meyering  <meyering@lucent.com>
83408
83409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83410         AS_IF, now that it works once again (mysteriously).
83411         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83412
83413 2001-01-30  Jim Meyering  <meyering@lucent.com>
83414
83415         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83416         * m4/chown.m4: Rename conftestchown to conftest.chown.
83417         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83418         s/conftestdir2/conftest.d2/.
83419         * m4/utimes.m4: s/conftestdata/conftest.data/
83420         Inspired by Pavel Roskin's change in autoconf.
83421
83422 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83423
83424         * lib/config.charset: Update for FreeBSD 4.2.
83425
83426 2001-01-27  Jim Meyering  <meyering@lucent.com>
83427
83428         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83429         a use of AS_IF.
83430         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83431
83432 2001-01-26  Jim Meyering  <meyering@lucent.com>
83433
83434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83435         quotearg.c includes it.
83436
83437 2001-01-26  Jim Meyering  <meyering@lucent.com>
83438
83439         * lib/quotearg.c: Include stddef.h.
83440         * lib/quote.c: Include stddef.h.
83441         Reported by Axel Kittenberger.
83442
83443         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83444         line in double quotes so that it evokes a better diagnostic.
83445         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83446         Reported by Axel Kittenberger.
83447
83448 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83449
83450         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83451         as if it was a `charset'.
83452
83453 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83454
83455         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83456         has const.
83457
83458 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83459
83460         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83461         to avoid a warning.  Add back 'const' to inptr.
83462
83463 2001-01-20  Jim Meyering  <meyering@lucent.com>
83464
83465         Be sure that headers are checked before used in code compiled
83466         for the type checks.
83467         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83468         In place of that, invoke jm_CHECK_ALL_TYPES.
83469         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83470         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83471         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83472         The check for ssize_t was mistakenly run before the test for unistd.h.
83473
83474         The configure-time check for stdbool.h was missing.
83475         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83476         (jm_PREREQ_HASH): New function.
83477
83478 2001-01-17  Jim Meyering  <meyering@lucent.com>
83479
83480         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83481         for autoconf-2.49c.
83482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83483
83484 2001-01-16  Jim Meyering  <meyering@lucent.com>
83485
83486         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83487         From Bruno Haible.
83488
83489 2001-01-14  Jim Meyering  <meyering@lucent.com>
83490
83491         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83492         foo and bar.  Create conftestdir/ in the script, not in the C code.
83493         Remove directories in the script, not in the C code.
83494         Remove conftestdir{,2} before trying to create the directory.
83495         Make the entire configure script fail if the mkdir fails.
83496
83497 2001-01-14  Jim Meyering  <meyering@lucent.com>
83498
83499         * lib/rename.c: New file.  From Volker Borchert.
83500         Include stdlib.h, string.h or strings.h, and xalloc.h.
83501         Use strip_trailing_slashes rather than open-coding it.
83502
83503 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83504
83505         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83506
83507 2001-01-03  Jim Meyering  <meyering@lucent.com>
83508
83509         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83510         of local `inptr' to avoid warning with some system declarations of
83511         iconv.
83512
83513 2001-01-02  Volker Borchert  <bt@teknon.de>
83514
83515         * m4/rename.m4: New file.
83516         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83517
83518 2001-01-01  Jim Meyering  <meyering@lucent.com>
83519
83520         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83521         even on systems with utmpx.h.  It's necessary for the declaration of
83522         utmp's ut_user member.  Reported by Andreas Jaeger.
83523
83524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83525         available. They are required for the declarations of getgrgid and
83526         getpwuid resp.
83527         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83528         Reported by Andreas Jaeger.
83529
83530 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83531
83532         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83533         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83534         so `make install' also works in VPATH builds.
83535
83536 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83537
83538         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83539         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83540         can be used in subdirectories.
83541
83542 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83543
83544         * lib/modechange.c: Do not assume that mode_t uses the
83545         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83546         the other-execute bit of FOO even if S_IXOTH != 1.
83547
83548         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83549         WOTH, XOTH, ALLM): New macros.
83550         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83551          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83552         Use them.
83553         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83554         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83555         (mode_compile):
83556         No need to use uintmax_t; unsigned long is long enough.
83557         Don't bother to get suffix since we don't use it.
83558
83559 2000-12-26  Jim Meyering  <meyering@lucent.com>
83560
83561         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83562         better with autoheader.
83563
83564 2000-12-24  Jim Meyering  <meyering@lucent.com>
83565
83566         * lib/hash.c (is_prime): Return explicit boolean values.
83567         (hash_get_first): Return NULL to appease Irix5.6's 89.
83568         Reported by Nelson Beebe.
83569
83570 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83571
83572         * lib/localcharset.c (locale_charset): Add support for Win32.
83573
83574 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83575
83576         * lib/physmem.h, lib/physmem.c: New files.
83577
83578         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83579         (noinst_HEADERS): Add physmem.h.
83580
83581         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83582         't' for compatibility with Solaris 8 sort.
83583
83584 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83585
83586         * lib/config.charset: Add support for BeOS.
83587
83588 2000-12-17  Jim Meyering  <meyering@lucent.com>
83589
83590         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83591         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83592
83593 2000-12-16  Jim Meyering  <meyering@lucent.com>
83594
83595         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83596         N and M) would have treated it like `chown N:N FILE'.
83597
83598         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83599
83600 2000-12-16  Jim Meyering  <meyering@lucent.com>
83601
83602         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83603         SHELLS_FILE to a file name that's useful on djgpp systems.
83604         Include stdlib.h.
83605         (ADDITIONAL_DEFAULT_SHELLS): Define.
83606         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83607         Based mostly on a patch from Prashant TR.
83608
83609 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83610
83611         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83612         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83613         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83614
83615 2000-12-08  Andreas Schwab  <schwab@suse.de>
83616
83617         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83618         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83619
83620 2000-12-07  Jim Meyering  <meyering@lucent.com>
83621
83622         * lib/stripslash.c (ISSLASH): Define.
83623         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83624         `/'.
83625         From Prashant TR.
83626
83627         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83628         (dir_name_r): Declare this function as static.
83629         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83630         manifest itself on a name containing a mix of slashes and
83631         backslashes.
83632         Make this function work with names starting with a DOS-style
83633         drive letter and colon prefix.
83634         (dir_name): Append `.' if necessary.
83635         Based mostly on patches from Prashant TR and Eli Zaretskii.
83636
83637         * lib/dirname.h (dir_name_r): Remove prototype.
83638
83639 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83640
83641         * m4/off_t-format.m4: Remove this file.
83642         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83643
83644 2000-12-06  Jim Meyering  <meyering@lucent.com>
83645
83646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83647         replacement strtoull, we may well need the replacement strtoul, too.
83648         Check for declarations of strtoul and strtoull.
83649         Check for strtol.  Mainly as a cue to cause automake to include
83650         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83651         Check for limits.h -- strtol.c needs it.
83652
83653 2000-12-05  Jim Meyering  <meyering@lucent.com>
83654
83655         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83656
83657 2000-12-04  Jim Meyering  <meyering@lucent.com>
83658
83659         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83660         Also include memory.h, stdlib.h, unistd.h if appropriate.
83661         Reported by Andreas Jaeger (conflicting declaration of malloc).
83662
83663 2000-12-02  Jim Meyering  <meyering@lucent.com>
83664
83665         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83666         * m4/jm-macros.m4 (jm_MACROS): require it.
83667
83668 2000-12-02  Jim Meyering  <meyering@lucent.com>
83669
83670         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83671
83672 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83673
83674         * lib/memrchr.c: Include <config.h> before any system include file.
83675
83676 2000-11-30  Jim Meyering  <meyering@lucent.com>
83677
83678         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83679
83680 2000-11-30  Jim Meyering  <meyering@lucent.com>
83681
83682         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83683
83684 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83685
83686         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83687
83688 2000-11-26  Jim Meyering  <meyering@lucent.com>
83689
83690         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83691
83692 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83693
83694         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83695         size of (size_t) -1; it's not portable.
83696
83697 2000-11-17  Jim Meyering  <meyering@lucent.com>
83698
83699         * lib/strstr.c: Update from GNU libc.
83700
83701 2000-11-17  Akim Demaille  <akim@epita.fr>
83702
83703         * lib/obstack.h: Formatting changes.
83704         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83705         prevent type checking.
83706         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83707         cast the value to (void *): assigning a `foo *' to a `void *'
83708         variable is valid.
83709         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83710
83711 2000-11-16  Jim Meyering  <meyering@lucent.com>
83712
83713         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83714
83715 2000-11-11  Jim Meyering  <meyering@lucent.com>
83716
83717         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83718
83719 2000-11-10  Jim Meyering  <meyering@lucent.com>
83720
83721         * lib/obstack.h: Update from GNU libc.
83722         * lib/obstack.c: Likewise.
83723
83724 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83725
83726         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83727
83728 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83729
83730         * lib/getusershell.c (setusershell): Use rewind rather than
83731         fseek/fseeko, to avoid configuration hassles with fseeko.
83732         Don't bother opening SHELLS_FILE if shellstream is NULL;
83733         it's not necessary.
83734
83735 2000-11-05  Jim Meyering  <meyering@lucent.com>
83736
83737         * lib/makepath.h (make_dir): Declare.
83738         * lib/makepath.c (make_dir): Remove `static' attribute.
83739         Tweak a comment.
83740
83741 2000-11-04  Jim Meyering  <meyering@lucent.com>
83742
83743         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83744
83745 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83746
83747         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83748         last one in a bucket, advance to the next bucket.
83749
83750 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83751
83752         * lib/fnmatch.c: Do not comment out all the code if we are using
83753         the GNU C library, because in some cases we are replacing buggy
83754         code in the GNU C library itself.
83755
83756 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83757
83758         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83759         (regex_compile): Catch bogus \(\1\).
83760
83761 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83762
83763         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83764         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83765         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83766
83767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83768
83769         * lib/error.h, getline.h, modechange.h:
83770         Remove "2000" from Copyright line, as the file hasn't been
83771         changed this year other than in the copyright notice.
83772
83773         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83774         was changed this year.
83775
83776 2000-10-29  Jim Meyering  <meyering@lucent.com>
83777
83778         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83779         renaming.
83780         * m4/ls-mntd-fs.m4: Likewise
83781
83782 2000-10-29  Jim Meyering  <meyering@lucent.com>
83783
83784         * lib/xstat.in: Fix grammar in comment.
83785
83786 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83787
83788         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83789         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83790         doesn't define __restrict_arr.
83791
83792 2000-10-28  Jim Meyering  <meyering@lucent.com>
83793
83794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83795         (jm_PREREQ_MEMCHR): New function.
83796
83797 2000-10-28  Jim Meyering  <meyering@lucent.com>
83798
83799         * lib/memchr.c: Update from libc.
83800         Adjust for portability:
83801         [HAVE_STDLIB_H]: Include stdlib.h.
83802         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83803         Undef __memchr, too.
83804         [!weak_alias]: Define __memchr to memchr.
83805
83806         * lib/regex.c: Update from libc.
83807         * lib/regex.h: Likewise.
83808         * lib/getopt1.c: Likewise.
83809         * lib/memcmp.c: Likewise.
83810
83811         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83812         Avoid using fseek, when possible -- it's broken by design.
83813         Patch by Ulrich Drepper.
83814
83815 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83816
83817         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83818         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83819         Giving in to popular pressure to shut up the compiler with casts.
83820
83821 2000-10-26  Jim Meyering  <meyering@lucent.com>
83822
83823         * lib/strftime.c: Update from libc.
83824
83825 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83826
83827         * regex.c: More `unsigned char' -> `re_char' changes.
83828         Also change several `int' into `re_wchar_t'.
83829         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83830         (PUSH_FAILURE_POINTER): Don't cast any more.
83831         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83832         We want GCC to complain, since this piece of code makes
83833         re_match non-reentrant, which *should* be fixed.
83834         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83835         (EXTEND_BUFFER): Use RETALLOC.
83836         (SET_LIST_BIT): Don't cast.
83837         (re_wchar_t): New type.
83838         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83839         that those two functions will always properly return.
83840         (IMMEDIATE_QUIT_CHECK): Cast to void.
83841         (analyse_first): Use recursion rather than an explicit stack.
83842         (re_compile_fastmap): Can't fail anymore.
83843         (re_search_2): Don't check re_compile_fastmap for failure.
83844         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83845         Now also sets the new value (passed in a new argument).
83846         (re_match_2_internal): Use it.
83847         Also, use a new var `reg' of type size_t when looping through regs
83848         rather than reuse the inappropriate `mcnt'.
83849
83850 2000-10-25  Jim Meyering  <meyering@lucent.com>
83851
83852         * lib/obstack.c: Update from libc.
83853
83854 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83855
83856         * regex.c (regex_compile): Change the way of handling a range from
83857         a char less than 256 to a char not less than 256.
83858
83859 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83860
83861         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83862         NT-Emacs only.
83863         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83864         so that re_search functions only quit when callers expect them to.
83865
83866 2000-10-23  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83869         wrong.  That set_locale call must not have any side effects.
83870         From Paul Eggert.
83871
83872 2000-10-22  Jim Meyering  <meyering@lucent.com>
83873
83874         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83875         [CYCLIC]: Remove now-unused definition.
83876
83877         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83878         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83879         Suggestion from Ulrich Drepper.
83880
83881 2000-10-21  Jim Meyering  <meyering@lucent.com>
83882
83883         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83884         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83886
83887 2000-10-21  Jim Meyering  <meyering@lucent.com>
83888
83889         * lib/dirname.c (memrchr): Declare if necessary.
83890         (dir_name): Remove the restriction that there be no
83891         trailing slashes.  Now, this code skips past them, effectively
83892         ignoring them.
83893         [TEST_DIRNAME] (main): New unit tests.
83894
83895         * lib/memrchr.c: New file from GNU libc.
83896         Undef __memrchr, too.
83897         [!weak_alias]: Define __memrchr to memrchr.
83898         Guard weak_alias use with `#ifdef weak_alias'.
83899
83900 2000-10-21  Jim Meyering  <meyering@lucent.com>
83901
83902         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83903         (dir_name): Use dir_name_r.
83904         * lib/dirname.h (dir_name_r): Declare it.
83905
83906 2000-10-17  Jim Meyering  <meyering@lucent.com>
83907
83908         * lib/quote.h (PARAMS): Define and use.
83909         Reported by Akim Demaille.
83910
83911         * lib/getopt.c: Update from libc.
83912
83913 2000-10-16  Jim Meyering  <meyering@lucent.com>
83914
83915         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83916         setlocale.
83917         From Jan Fedak.
83918
83919 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83920
83921         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83922
83923 2000-09-25  Jim Meyering  <meyering@lucent.com>
83924
83925         * lib/md5.h (rol): Define (from GnuPG).
83926
83927         * lib/sha.c: Give credit (GnuPG) where due.
83928         (M): Use rol rather than open-coding it.
83929         Add a FIXME comment.
83930
83931 2000-09-21  Jim Meyering  <meyering@lucent.com>
83932
83933         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83934         Reported by Michael Stone.
83935
83936 2000-09-20  Jim Meyering  <meyering@lucent.com>
83937
83938         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83939         (noinst_HEADERS): Add sha.h.
83940         Based on code from Scott G. Miller and from GnuPG.
83941
83942 2000-09-18  Jim Meyering  <meyering@lucent.com>
83943
83944         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83945         LIBS. Otherwise, everyone ends up linking with -lelf for some
83946         configurations.
83947         Reported by Mike Stone.
83948
83949 2000-09-15  Jim Meyering  <meyering@lucent.com>
83950
83951         * lib/regex.c: Update from libc.
83952
83953 2000-09-10  Jim Meyering  <meyering@lucent.com>
83954
83955         * lib/getopt.c (_getopt_internal): Update from glibc.
83956
83957 2000-09-09  Jim Meyering  <meyering@lucent.com>
83958
83959         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83960         think it should be used as a general replacement for isascii.
83961         * lib/fnmatch.c: Likewise.
83962         * lib/mbswidth.c: Likewise
83963         * lib/regex.c: Likewise.
83964
83965         Don't use atoi.
83966         * lib/userspec.c: Include sys/param.h and limits.h.
83967         Include xstrtol.h.
83968         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83969         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83970         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83971         UID, GID.  Check range.
83972
83973 2000-09-06  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/getopt.c (_getopt_internal): Update from glibc.
83976
83977 2000-08-30  Jim Meyering  <meyering@lucent.com>
83978
83979         * lib/strftime.c: Merge in changes from GNU libc.
83980
83981 2000-08-26  Jim Meyering  <meyering@lucent.com>
83982
83983         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83984         * m4/fpending.m4: New file.
83985
83986 2000-08-26  Jim Meyering  <meyering@lucent.com>
83987
83988         * lib/closeout.c: Include "__fpending.h".
83989         (close_stdout_status): Return right away if there's nothing to flush.
83990
83991         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83992         * lib/__fpending.c: New file.
83993         * lib/__fpending.h: New file.
83994
83995 2000-08-20  Jim Meyering  <meyering@lucent.com>
83996
83997         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83998         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83999         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84000
84001 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84002
84003         Improve fileutils installation on systems where running
84004         programs (like install) can't be unlinked.
84005         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84006         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84007
84008 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84009
84010         Standardize on "memory exhausted" instead of "Memory exhausted"
84011         or "virtual memory exhausted".
84012         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84013         "virtual memory exhausted".
84014         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84015         our own message.
84016         * lib/userspec.c (parse_user_spec): Likewise.
84017         * lib/bumpalloc.h: comment fix
84018         * lib/same.c, userspec.c: Include xalloc.h.
84019
84020         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84021         not char *const and pointing to a constant array.
84022         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84023         (xrealloc): Comment fix.
84024
84025         * lib/userspec.c (parse_user_spec):
84026         Don't translate a message until just before returning,
84027         to avoid unnecessary translation.
84028
84029 2000-08-07  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84032         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84033         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84034         getgroups.c, gethostname.c, getopt.h, group-member.c,
84035         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84036         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84037         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84038         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84039         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84040         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84041         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84042         yesno.c: Back out Copyright date changes for each file with no change
84043         this year.  This eases coordination with other programs using the same
84044         source code modules.  From Paul Eggert.
84045
84046 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84047
84048         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84049         not char, for compatibility with glibc 2.1.3 strftime.c.
84050
84051 2000-08-03  Greg McGary  <greg@mcgary.org>
84052
84053         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84054         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84055         (EXTEND_BUFFER): Use them.
84056
84057 2000-08-01  Jim Meyering  <meyering@lucent.com>
84058
84059         * lib/dirname.c (ISSLASH): Define.
84060         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84061         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84062         both `\' and `/' may be use as path separators.
84063         Based on a patch from Prashant TR.
84064
84065 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84066
84067         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84068         slot vector a constant, since it might get modified.
84069
84070 2000-07-31  Jim Meyering  <meyering@lucent.com>
84071
84072         * lib/xmalloc.c: Use `virtual memory exhausted', not
84073         `Memory exhausted'.
84074         * lib/obstack.c (print_and_abort): Likewise.
84075
84076 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84077
84078         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84079         buffer, so that the caller can always quote one small
84080         component of a "memory exhausted" message in slot 0.
84081         From a suggestion by Jim Meyering.
84082
84083 2000-07-30  Jim Meyering  <meyering@lucent.com>
84084
84085         * lib/makepath.c (make_path): Quote the other instance, too.
84086
84087         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84088         (STATIC_BUF_SIZE): Define.
84089         (quotearg_n_options): Use only statically allocated storage when
84090         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84091         than STATIC_BUF_SIZE.
84092
84093 2000-07-29  Jim Meyering  <meyering@lucent.com>
84094
84095         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84096         * lib/dirname.c (dir_name): Likewise.
84097
84098         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84099         `/'.
84100
84101         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84102         (dir_name): Assert that there are no trailing slashes.
84103
84104 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84105
84106         * lib/mbswidth.h (mbswidth): Add a flags argument.
84107         (mbswidth): New declaration.
84108         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84109         * lib/mbswidth.c (mbswidth): Add a flags argument.
84110         (mbsnwidth): New function.
84111
84112 2000-07-24  Jim Meyering  <meyering@lucent.com>
84113
84114         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84115
84116 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84117
84118         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84119
84120 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84121
84122         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84123         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84124         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84125         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84126         invoke multibyte primitives.
84127
84128 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84129
84130         * lib/quotearg.c:
84131         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84132         so that mbstate_t is always defined.
84133
84134         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84135         be 1 in at least one GCC installation, and this configuration
84136         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84137         performance on hosts that have mbrtowc but have only unibyte
84138         locales, but I assume these hosts are rare.
84139
84140 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84141
84142         * lib/mbswidth.c (_XOPEN_SOURCE):
84143         Don't define; this causes problems on Solaris 7.
84144         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84145
84146 2000-07-23  Jim Meyering  <meyering@lucent.com>
84147
84148         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84149         too: getgrgid, getpwuid, getuid.
84150
84151 2000-07-23  Jim Meyering  <meyering@lucent.com>
84152
84153         * lib/basename.c (base_name): Add an assertion.
84154
84155 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84156
84157         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84158         shadow its mbsinit function.
84159
84160 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84161
84162         * lib/mbswidth.h: New file.
84163         * lib/mbswidth.c: New file.
84164         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84165         (noinst_HEADERS): Add mbswidth.h.
84166
84167 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84168
84169         * lib/config.charset: Add support for FreeBSD. Improve support for
84170         HP-UX and IRIX 6.
84171
84172 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84173
84174         * m4/mbswidth.m4: New file.
84175         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84176
84177 2000-07-15  Jim Meyering  <meyering@lucent.com>
84178
84179         * lib/makepath.c: Include quote.h.
84180         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84181         corresponding argument in a `quote (...)' call.
84182         Give better diagnostics.
84183
84184         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84185         (noinst_HEADERS): Add quote.h.
84186
84187         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84188         from tar's src/misc.c.
84189         * lib/quote.h: New file.  Prototypes for same.
84190
84191 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84192
84193         From a suggestion by Bruno Haible.
84194         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84195         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84196         to decide whether to define the BeOS workaround macro;
84197         this adjusts to the change to AC_MBSTATE_T.
84198
84199 2000-07-14  Jim Meyering  <meyering@lucent.com>
84200
84201         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84202         jm_AC_TYPE_UINTMAX_T.
84203
84204 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84205
84206         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84207
84208         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84209         quotearg_buffer_restyled): Add support for
84210         clocale_quoting_style.  Undo previous change to
84211         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84212         and "{RIGHT QUOTATION MARK}" msgids.
84213
84214 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84215
84216         From a suggestion by Bruno Haible.
84217         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84218         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84219         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84220         and mbstate_t, to a single-part test that simply defines mbstate_t.
84221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84222         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84223
84224 2000-07-10  Jim Meyering  <meyering@lucent.com>
84225
84226         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84227
84228         * m4/gnu-source.m4: Output to confdefs.h directly.
84229         Suggestion from Akim Demaille.
84230
84231 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84232
84233         The old behavior of quoting `like this' doesn't look good with
84234         newer, ISO-style fonts.  See:
84235         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84236
84237         Instead, quote "like this" by default.  Let the translator
84238         tailor the locale-specific quoting behavior by providing
84239         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84240
84241         * lib/quotearg.c (N_): New macro.
84242         (gettext_default): New function.
84243         (quotearg_buffer_restyled): Use
84244         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84245         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84246
84247 2000-07-09  Jim Meyering  <meyering@lucent.com>
84248
84249         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84250         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84251
84252         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84254
84255 2000-07-09  Jim Meyering  <meyering@lucent.com>
84256
84257         * lib/Most files: Update copyright dates to include 2000.
84258
84259 2000-07-08  Jim Meyering  <meyering@lucent.com>
84260
84261         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84262         if not defined.
84263         (xgethostname): Remove now-unnecessary #ifdef.
84264         Move declaration of `err' into loop where it's used.
84265
84266 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84267         and Bruno Haible  <haible@clisp.cons.org>
84268
84269         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84270         only if the test for an object-type mbstate_t fails.  This
84271         prevents us from mistakenly reporting that mbstate_t is a
84272         system object type after we "#define mbstate_t int" to work
84273         around its lack.
84274
84275 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84276         and Bruno Haible  <haible@clisp.cons.org>
84277
84278         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84279
84280 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84281
84282         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84283         to strerror_r.
84284         Include <ctype.h> for use of isalpha.
84285
84286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84287
84288         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84289         by allocating a larger buffer. Test the gethostname return value for
84290         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84291         returns an error and ENAMETOOLONG isn't defined.
84292
84293 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84294
84295         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84296         dimension.
84297
84298 2000-07-04  Jim Meyering  <meyering@lucent.com>
84299
84300         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84301         of the deprecated AC_CHECKING.
84302
84303 2000-07-04  Jim Meyering  <meyering@lucent.com>
84304
84305         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84306         Reported by Bruno Haible.
84307
84308 2000-07-04  Jim Meyering  <meyering@lucent.com>
84309
84310         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84311         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84312         lacks mbrtowc.
84313
84314 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84315
84316         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84317         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84318
84319 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84320         and Bruno Haible  <haible@clisp.cons.org>
84321
84322         * lib/quotearg.c (mbrtowc):
84323         Assign to *pwc, and return 1 only if result is nonzero.
84324         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84325
84326 2000-07-03  Jim Meyering  <meyering@lucent.com>
84327
84328         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84329
84330 2000-07-03  Jim Meyering  <meyering@lucent.com>
84331
84332         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84333         This is necessary to get a definition of e.g., UTMP_FILE on
84334         HP-UX 10.20.
84335         From Bob Proulx.
84336
84337 2000-07-02  Jim Meyering  <meyering@lucent.com>
84338
84339         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84340
84341         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84342         AC_LIBOBJ(function_name).
84343         * m4/chown.m4: Likewise.
84344         * m4/fnmatch.m4: Likewise.
84345         * m4/ftruncate.m4: Likewise.
84346         * m4/getgroups.m4: Likewise.
84347         * m4/getline.m4: Likewise.
84348         * m4/group-member.m4: Likewise.
84349         * m4/jm-macros.m4: Likewise.
84350         * m4/lstat.m4: Likewise.
84351         * m4/malloc.m4: Likewise.
84352         * m4/memcmp.m4: Likewise.
84353         * m4/nanosleep.m4: Likewise.
84354         * m4/putenv.m4: Likewise.
84355         * m4/realloc.m4: Likewise.
84356         * m4/regex.m4: Likewise.
84357         * m4/stat.m4: Likewise.
84358         * m4/strftime.m4: Likewise.
84359
84360 2000-07-02  Jim Meyering  <meyering@lucent.com>
84361
84362         * lib/quotearg.c (mbstate_t): Don't define here.
84363
84364 2000-07-02  Jim Meyering  <meyering@lucent.com>
84365
84366         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84367
84368 2000-07-01  Jim Meyering  <meyering@lucent.com>
84369
84370         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84371
84372 2000-07-01  Jim Meyering  <meyering@lucent.com>
84373
84374         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84375         problem.
84376
84377 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84378
84379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84380         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84381
84382 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84383
84384         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84385         per change in ../m4/ls-mntd-fs.m4.
84386         (read_filesystem_list): Ignore symbolic links.
84387
84388 2000-06-29  Jim Meyering  <meyering@lucent.com>
84389
84390         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84391         for declaration of strcmp.
84392
84393         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84394
84395         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84396         Avoid warning by casting result to `char *' to remove `const'.
84397
84398 2000-06-28  Jim Meyering  <meyering@lucent.com>
84399
84400         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84401         included by quotearg.c, for which we perform this test.  From
84402         Bruno Haible.
84403
84404 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84405
84406         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84407         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84408         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84409
84410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84411
84412         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84413
84414 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84415
84416         savedir now sets errno on failure and invokes xmalloc to get memory.
84417         Fix a couple of other minor bugs while we're at it.
84418
84419         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84420         (NAMLEN): Remove macro.
84421         (malloc, realloc): Remove decls.
84422         (stpcpy): Likewise.
84423         ("xalloc.h"): Include.
84424         (NAME_SIZE_DEFAULT): New macro.
84425         (savedir): Use xmalloc / xrealloc to allocate memory.
84426         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84427         Skip "" directory entries.
84428         Use strlen to calculate directory entry length, since the old method
84429         is rarely used these days and isn't worth supporting.
84430         Don't use a pointer after freeing it.
84431         Check for integer overflow when calculating allocation size.
84432         Use memcpy to copy entries, instead of stpcpy.
84433         Set errno properly when returning NULL.
84434         Check for readdir error.
84435
84436 2000-06-26  Jim Meyering  <meyering@lucent.com>
84437
84438         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84439
84440 2000-06-25  Jim Meyering  <meyering@lucent.com>
84441
84442         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84443         Linux header bug when _XOPEN_SOURCE is defined to 500.
84444
84445 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84446
84447         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84448         deficiency.
84449
84450 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84451
84452         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84453         Include xalloc.h.
84454         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84455
84456 2000-06-24  Jim Meyering  <meyering@lucent.com>
84457
84458         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84459         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84460         for which strerror does return char*, but which lacks a conveniently
84461         accessible declaration of the function.  If the compile-test says
84462         strerror_r doesn't work, then resort to a `run'-test that works on
84463         BeOS and segfaults on DEC Unix.
84464
84465 2000-06-24  Jim Meyering  <meyering@lucent.com>
84466
84467         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84468
84469 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84470
84471         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84472         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84473
84474 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84475
84476         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84477         (mbrtowc, mbstate_t): Define substitutes if
84478         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84479         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84480         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84481
84482 2000-06-23  Jim Meyering  <meyering@lucent.com>
84483
84484         * m4/afs.m4: Add missing AC_MSG_RESULT.
84485         Reported by Bruno Haible.
84486
84487         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84488         Suggestion from Bruno Haible.
84489
84490 2000-06-23  Jim Meyering  <meyering@lucent.com>
84491
84492         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84493
84494 2000-06-21  Jim Meyering  <meyering@lucent.com>
84495
84496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84497
84498 2000-06-21  Jim Meyering  <meyering@lucent.com>
84499
84500         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84501         (noinst_HEADERS): Add getstr.h.
84502
84503         * lib/getline.c (getstr): Move into a separate file.
84504         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84505         the following changes: new parameter, delim2; both delim[12]
84506         parameters have type `int', not `char'.  The latter would lose
84507         with 8-bit delimiters.
84508         * lib/getstr.h: New file.
84509
84510 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84511
84512         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84513         than 1024, return a memory chunk of least possible size, instead
84514         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84515         Use free/xmalloc instead of xrealloc to avoid copying for very long
84516         paths.
84517
84518 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84519
84520         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84521         the empty string.
84522
84523 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84524
84525         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84526         address, not strdup.  Include <stdlib.h> and don't declare free().
84527
84528 2000-06-19  Jim Meyering  <meyering@lucent.com>
84529
84530         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84531
84532 2000-06-18  Jim Meyering  <meyering@lucent.com>
84533
84534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84535
84536         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84537         `checking whether...' message to be consistent with that of the
84538         lstat test.
84539
84540 2000-06-18  Jim Meyering  <meyering@lucent.com>
84541
84542         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84543         Besides, these days every porting target provides a mkdir function.
84544
84545         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84546         needed. (this snippet comes from src/system.h).
84547
84548 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84549
84550         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84551
84552 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84553
84554         * lib/human.c (adjust_value): New function.
84555         (human_readable_inexact): Apply rounding style even when
84556         printing approximate values.
84557
84558 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84559
84560         * lib/human.c (human_readable_inexact): Allow an input block
84561         size that is not a multiple of the output block size, and vice versa.
84562         Reported by Piergiorgio Sartor.
84563
84564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84565
84566         * lib/getdate.y (get_date): Apply relative times after time
84567         zone indicator, not before.  Reported by Todd A. Jacobs.
84568
84569 2000-06-13  Jim Meyering  <meyering@lucent.com>
84570
84571         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84572
84573         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84574
84575 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84576
84577         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84578
84579 2000-06-12  Jim Meyering  <meyering@lucent.com>
84580
84581         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84582         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84583         optional argument.
84584         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84585         the optional argument, `lib'.
84586
84587 2000-06-08  Jim Meyering  <meyering@lucent.com>
84588
84589         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84590
84591 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84592
84593         Rewrite largefile configuration so that we don't need to run
84594         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84595         AC_CANONICAL_HOST in configure.in -- jmm]
84596
84597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84598         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84599         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84600         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84601         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84602         All uses changed.
84603         Instead of inspecting the output of getconf, try to compile the
84604         test program without and with the macro definition.
84605         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84606         for getconf.  Instead, check for the needed flags by compiling
84607         test programs.
84608
84609 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84610
84611         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84612
84613 2000-06-04  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84616         SunOS 4.1.4 for which gid_t is an unsigned type.
84617
84618 2000-06-03  Jim Meyering  <meyering@lucent.com>
84619
84620         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84621         now that autoconf requires that.
84622
84623         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84624         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84625         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84626
84627 2000-06-03  Jim Meyering  <meyering@lucent.com>
84628
84629         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84630
84631 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84632
84633         * m4/glibc21.m4: New file.
84634         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84635
84636 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84637
84638         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84639         newer, don't install charset.alias.
84640         * lib/config.charset: Change the Linux/glibc rules so they become empty
84641         on glibc-2.1 or newer.
84642
84643 2000-06-02  Jim Meyering  <meyering@lucent.com>
84644
84645         * lib/mountlist.c: Back out last change.  Instead, do this...
84646         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84647         me_dummy member using the same `ignore'-testing code.
84648         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84649         fs_type strings.
84650         From Mark D. Roth.
84651
84652 2000-05-29  Jim Meyering  <meyering@lucent.com>
84653
84654         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84655         mounts with the `ignore' attribute.  Based on a patch from
84656         Mark D. Roth.
84657
84658 2000-05-28  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84661         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84662         * m4/stat.m4: Likewise.
84663         * m4/lstat.m4: Likewise.
84664         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84665
84666         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84667         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84668
84669 2000-05-26  Jim Meyering  <meyering@lucent.com>
84670
84671         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84672
84673 2000-05-24  Jim Meyering  <meyering@lucent.com>
84674
84675         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84676         autoconf requires that.
84677         * m4/lib-check.m4: Likewise.
84678         * m4/jm-macros.m4: Likewise.
84679         * m4/strftime.m4: Likewise.
84680
84681         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84682         AC_CHECK_DECLS, now that autoconf requires that.
84683
84684 2000-05-22  Jim Meyering  <meyering@lucent.com>
84685
84686         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84687         * m4/lstat.m4: Likewise.
84688
84689 2000-05-22  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84692
84693 2000-05-20  Jim Meyering  <meyering@lucent.com>
84694
84695         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84696         (jm_PREREQ): Use it.
84697
84698 2000-05-18  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84701         back, too, since it may have been modified by allocate_entry.
84702         (hash_delete): Rewrite to use neither the assignment operator
84703         nor the comma operator in an if-expression.
84704
84705 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84706
84707         * lib/closeout.c:
84708         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84709         Remove; no longer needed.
84710         "quotearg.h": Add include.
84711         (file_name): Do not bother to explicitly initialize to NULL; it's less
84712         efficient on some hosts.
84713         (close_stdout_status): Remove test as to whether stdout was already
84714         closed; it breaks for the case "echo x | sort >&-".
84715         Quote file name colons.
84716         Do not assume that _("write error") lacks format strings.
84717
84718 2000-05-15  Jim Meyering  <meyering@lucent.com>
84719
84720         * lib/version-etc.c (version_etc_copyright): Update the copyright
84721         string used in all --version output.
84722
84723 2000-05-14  Jim Meyering  <meyering@lucent.com>
84724
84725         * lib/closeout.c (close_stdout_set_file_name): New function.
84726         (close_stdout_status): Use new file-scoped global.
84727         Return right away if fstat says the stdout file descriptor is invalid.
84728         * lib/closeout.h (close_stdout_set_file_name): Declare.
84729
84730 2000-05-10  Jim Meyering  <meyering@lucent.com>
84731
84732         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84733         (close_stdout_set_status): New function.
84734         * lib/closeout.h (close_stdout_set_status): Declare.
84735
84736 2000-05-09  Jim Meyering  <meyering@lucent.com>
84737
84738         * m4/gettext.m4: Rename this...
84739         * m4/libintl.m4: ...to this.
84740
84741 2000-05-08  Jim Meyering  <meyering@lucent.com>
84742
84743         * lib/long-options.c: Don't include closeout.h.
84744         (parse_long_options): Don't call close_stdout for --version.
84745
84746 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84747
84748         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84749         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84750         2.1.3 bug.  This avoids a clash when files like regex.c define
84751         _GNU_SOURCE.
84752
84753 2000-05-06  Jim Meyering  <meyering@lucent.com>
84754
84755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84756         (AC_REPLACE_FUNCS): Add strnlen.
84757
84758         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84759         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84760
84761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84762         AC_SEARCH_LIBS call for nanosleep.
84763         (LIB_NANOSLEEP): Set and AC_SUBST.
84764
84765 2000-05-06  Jim Meyering  <meyering@lucent.com>
84766
84767         * lib/strnlen.c: Undefine __strnlen and strnlen.
84768         [!weak_alias]: Define __strnlen to strnlen.
84769
84770         * lib/atexit.c: New file, from libiberty.
84771
84772 2000-05-06  Jim Meyering  <meyering@lucent.com>
84773
84774         * lib/closeout.c (close_stdout_status): Also check for errors on the
84775         stderr stream.
84776
84777 2000-05-05  Jim Meyering  <meyering@lucent.com>
84778
84779         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84780         AC_SEARCH_LIBS call for clock_gettime.
84781         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84782
84783         * m4/search-libs.m4: Update from autoconf.
84784
84785         su doesn't work on Solaris 2.6.
84786         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84787         <shadow.h>.  Reported by Dragos Harabor.
84788
84789 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84790
84791         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84792         memcpy instead of xmalloc, xrealloc, path_concat.
84793         (locale_charset): Treat empty environment variables as absent.
84794         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84795
84796 2000-05-04  Jim Meyering  <meyering@lucent.com>
84797
84798         * lib/getopt.c: Update from glibc.
84799         * lib/obstack.c: Likewise.
84800         * lib/obstack.h: Likewise.
84801         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84802         file
84803
84804         * lib/regex.h: Likewise.
84805         * lib/strndup.c: Likewise.
84806         * lib/strnlen.c: New file, from glibc.
84807
84808 2000-05-03  Jim Meyering  <meyering@lucent.com>
84809
84810         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84811
84812 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84813
84814         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84815         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84816         compile-time test, rather than inspecting host and OS, to
84817         decide whether to define _LARGEFILE_SOURCE.
84818
84819 2000-05-01  Jim Meyering  <meyering@lucent.com>
84820
84821         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84822
84823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84824         Based on a patch from Bruno Haible.
84825
84826 2000-05-01  Jim Meyering  <meyering@lucent.com>
84827
84828         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84829
84830 2000-04-29  Jim Meyering  <meyering@lucent.com>
84831
84832         * lib/path-concat.c: Declare strdup only if it's not defined.
84833         * lib/canon-host.c: Likewise.
84834
84835 2000-04-28  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84838         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84839         is included first, then limits.h is included by locale.h by libintl.h.
84840         From John David Anglin.
84841
84842 2000-04-25  Jim Meyering  <meyering@lucent.com>
84843
84844         * lib/makepath.c (S_IRWXUGO): Define.
84845         (make_path): Always perform explicit chmod if MODE specifies any
84846         of the `special' permission bits.  Prompted by a bug report against
84847         install from Mate Wierdl and Joost van Baal.
84848
84849 2000-04-18  Jim Meyering  <meyering@lucent.com>
84850
84851         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84852         (jm_PREREQ): Use it.
84853
84854 2000-04-18  Jim Meyering  <meyering@lucent.com>
84855
84856         * lib/README: New file.
84857
84858         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84859         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84860
84861 2000-04-17  Jim Meyering  <meyering@lucent.com>
84862
84863         Get it right :-)
84864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84865         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84866         Suggestion from Akim Demaille.
84867
84868 2000-04-17  Jim Meyering  <meyering@lucent.com>
84869
84870         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84871         the definition of it to rpl_strftime also defined-away the system's
84872         declaration.
84873
84874 2000-04-15  Jim Meyering  <meyering@lucent.com>
84875
84876         Use `C' to denote so-called `contiguous' files, the same way
84877         that tar does.
84878         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84879         (ftypelet): Use S_ISCTG.
84880         From Michael Deutschmann.
84881
84882 2000-04-14  Jim Meyering  <meyering@lucent.com>
84883
84884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84885         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84886         clobbered.
84887
84888 2000-04-14  Jim Meyering  <meyering@lucent.com>
84889
84890         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84891
84892 2000-04-13  Jim Meyering  <meyering@lucent.com>
84893
84894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84895         AH_VERBATIM to insert required #ifndef into config.h.in.
84896         Suggestion from Akim Demaille.
84897
84898 2000-04-12  Jim Meyering  <meyering@lucent.com>
84899
84900         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84901         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84902         Christian Krackowizer.
84903
84904         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84905         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84906         (AC_SYS_LARGEFILE): Require.
84907         (AM_C_PROTOTYPES): Require.
84908
84909 2000-04-08  Jim Meyering  <meyering@lucent.com>
84910
84911         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84912         names don't conflict.  Reported by Eli Zaretskii.
84913
84914 2000-04-07  Jim Meyering  <meyering@lucent.com>
84915
84916         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84917         sys/types.h, to work around system header problems on AIX 3.2.5.
84918         From Bruno Haible.
84919
84920 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84921
84922         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84923         bug.  Deal with the different error behavior of Irix iconv.
84924
84925 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84926
84927         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84928         IRIX if the installer said otherwise.
84929
84930 2000-04-05  Jim Meyering  <meyering@lucent.com>
84931
84932         Portability tweaks required for ultrix4.3.
84933         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84934         (jm_CHECK_DECLS): Add getutent to the list of functions.
84935         (_jm_DECL_HEADERS): Add utmpx.h.
84936         From John David Anglin.
84937
84938         * m4/strftime.m4: Back out the 2000-04-02 change.
84939         Instead of that change, simply undefine putenv in the test program.
84940
84941 2000-04-05  Jim Meyering  <meyering@lucent.com>
84942
84943         Portability tweaks required for ultrix4.3.
84944         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84945         getutent.
84946         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84947         * lib/canon-host.c: Declare strdup.
84948         * lib/path-concat.c: Likewise.
84949         From John David Anglin.
84950
84951 2000-04-04  Jim Meyering  <meyering@lucent.com>
84952
84953         Be more DOS 8.3-friendly.
84954         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84955         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84956         * lib/Makefile.am: Reflect renaming.
84957         Reported by Eli Zaretskii.
84958
84959         Use a temporary file name that won't clash with `charset.alias'
84960         in the DOS 8.3 name space.
84961         * lib/Makefile.am (charset_tmp): Define.
84962         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84963         (uninstall-local): Likewise.
84964         Reported by Eli Zaretskii.
84965
84966 2000-04-03  Jim Meyering  <meyering@lucent.com>
84967
84968         * m4/gettext.m4: Fix typo in comment.
84969
84970         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84971         textutils/configure.in).  Suggestion from Paul Eggert.
84972         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84973
84974 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84975
84976         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84977         variable in the shell rather than using putenv, which isn't
84978         portable.  This avoids the configure-time inter-test dependency
84979         on the potentially-renamed putenv function.
84980
84981 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84982
84983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84984         before checking struct stat.st_blksize, so that
84985         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84986
84987 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84988
84989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84990         since strftime.c uses HAVE_STRFTIME to decide whether to use
84991         the underlying strftime.
84992
84993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84994
84995         * lib/time/strftime.c (my_strftime): Make sure we call the system
84996         strftime, not ourselves, when invoking the underlying strftime.
84997
84998 2000-03-24  Jim Meyering  <meyering@lucent.com>
84999
85000         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85001         (charset_alias): Define.
85002         (install-exec-local): Factor out common code.
85003         (uninstall-local): Split lines longer than 80.
85004         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85005         (SUFFIXES): Define.
85006         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85007         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85008
85009 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85010
85011         * lib/config.charset: Output a line containing "Packages using this
85012         file".
85013         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85014         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85015         ref-del.sed): New rules.
85016
85017 2000-03-17  Jim Meyering  <meyering@lucent.com>
85018
85019         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85020         Otherwise, include <strings.h>
85021
85022 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85023
85024         * lib/unicodeio.c (utf8_wctomb): New function.
85025         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85026         format instead of in UCS-4 with platform dependent endianness.
85027
85028 2000-03-10  Jim Meyering  <meyering@lucent.com>
85029
85030         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85031         From Marco Franzen.
85032
85033 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85034
85035         * lib/savedir.c (savedir): Work even if directory size is
85036         negative; this can happen with some screwy NFS configurations.
85037
85038 2000-03-06  Jim Meyering  <meyering@lucent.com>
85039
85040         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85041         if it's NULL (because we ran out of memory).  From Bruno Haible.
85042
85043 2000-03-05  Jim Meyering  <meyering@lucent.com>
85044
85045         * lib/localcharset.c ("path-concat.h"): Include.
85046         (get_charset_aliases): Use path_concat instead of ANSI string
85047         concatenation.
85048
85049         * lib/unicodeio.h (PARAMS): Define.
85050         Use it to guard prototype.
85051
85052 2000-03-04  Jim Meyering  <meyering@lucent.com>
85053
85054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85055         for lib/localcharset.c.
85056
85057 2000-03-04  Jim Meyering  <meyering@lucent.com>
85058
85059         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85060         installing into it.
85061         (uninstall-local): Uncomment this rule so `make distcheck' works
85062         once again.
85063
85064         * lib/unicodeio.c (<errno.h>): Include it.
85065         (errno): Declare if not defined.
85066
85067         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85068
85069         * lib/config.charset: New version, incorporating remarks from a linux
85070         i18n mailing list.  From Bruno Haible.
85071
85072 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85073
85074         * m4/codeset.m4: New file.
85075         * m4/iconv.m4: New file.
85076         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85077
85078 2000-03-03  Jim Meyering  <meyering@lucent.com>
85079
85080         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85081
85082 2000-03-02  Jim Meyering  <meyering@lucent.com>
85083
85084         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85085         the messages come out on separate lines.
85086
85087         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85088         rather than jm_CHECK_DECLARATIONS.
85089         * m4/decl.m4: Remove now-unused file.
85090
85091         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85092         geteuid.
85093
85094 2000-03-02  Jim Meyering  <meyering@lucent.com>
85095
85096         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85097
85098 2000-03-01  Jim Meyering  <meyering@lucent.com>
85099
85100         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85101         * lib/unicodeio.c: Likewise.
85102
85103 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85104
85105         * lib/config.charset: New file.
85106         * lib/localcharset.c: New file.
85107         * lib/unicodeio.h, lib/unicodeio.c: New files.
85108         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85109         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85110         (noinst_HEADERS): Add unicodeio.h.
85111         (all-local, install-exec-local, charset.alias): New targets.
85112
85113 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85114
85115         * lib/quotearg.c (ALERT_CHAR): New macro.
85116         (quotearg_buffer_restyled): Use it.
85117
85118 2000-02-27  Jim Meyering  <meyering@lucent.com>
85119
85120         * m4/check-decl.m4: Add getenv to the list.
85121
85122 2000-02-27  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85125         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85126
85127         * lib/backupfile.c: Guard inclusion of stdlib.h with
85128         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85129         Declare malloc if needed.
85130
85131         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85132         `#ifndef HAVE_DECL..'
85133         now that autoconf always defines the HAVE_DECL_ symbols.
85134         * lib/human.c: Likewise.
85135         * lib/same.c: Likewise.
85136         * lib/strtoumax.c: Likewise.
85137
85138         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85139         declaration check was not run.
85140         * lib/hash.c: Likewise.
85141         * lib/human.c: Likewise.
85142         * lib/same.c: Likewise.
85143         * lib/strtoumax.c: Likewise.
85144
85145         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85146         `.', then first look up the entire `.'-containing string as a login
85147         name.
85148
85149 2000-02-23  Jim Meyering  <meyering@lucent.com>
85150
85151         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85152         in place of my hack.
85153
85154 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85155
85156         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85157         (textint): New typedef.
85158         (parser_control): Member year changed from int to textint.
85159         All uses changed.
85160         (YYSTYPE): Removed; replaced by %union with int and textint members.
85161         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85162         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85163         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85164         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85165         (date, number, to_year): Use width of number in digits, not its value,
85166         to determine whether it's a 2-digit year, or a 2-digit time.
85167         (yylex): Store number of digits of numeric tokens.
85168         Reported by John Kendall.
85169
85170         (parser_control): Changed from struct parser_control to typedef (for
85171         consistency).  All uses changed.
85172
85173         (tID): Removed; not used.
85174         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85175
85176 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85177
85178         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85179         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85180
85181 2000-02-12  Jim Meyering  <meyering@lucent.com>
85182
85183         * lib/userspec.c (ISDIGIT): Define it.
85184         (isdigit): Remove definition.
85185         (is_number): Use ISDIGIT, not isdigit.
85186         <libintl.h>: Include.
85187         (_ and N_): Define.
85188         (parse_user_spec): Mark translatable strings.
85189
85190 2000-02-10  Jim Meyering  <meyering@lucent.com>
85191
85192         With these changes, nanosleep.[ch] are finally enough like the other
85193         lib/* replacement files to compile on a few more losing systems.
85194
85195         * lib/nanosleep.h: Don't include config.h.
85196         Remove prototype from declaration of nanosleep.
85197         (PARAMS): Remove now-unneeded definition.
85198         * lib/nanosleep.c: #undef nanosleep.
85199         (rpl_nanosleep): Rename from nanosleep.
85200
85201 2000-02-10  Jim Meyering  <meyering@lucent.com>
85202
85203         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85204         gnu_nanosleep to rpl_nanosleep.
85205
85206 2000-02-09  Jim Meyering  <meyering@lucent.com>
85207
85208         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85209         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85210
85211 2000-02-08  Akim Demaille  <akim@epita.fr>
85212
85213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85214         `[' and `]' and remove uses of `changequote'.
85215         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85216         (AC_SYS_LARGEFILE): Likewise.
85217         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85218         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85219         of changequote.
85220         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85221         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85222         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85223         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85224
85225 2000-02-05  Jim Meyering  <meyering@lucent.com>
85226
85227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85228         Remove explicit use of AC_HEADER_TIME.  It is required by
85229         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85230         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85231         in autoconf whereby the expansion of the latter ended up preceding
85232         the expansion of its prerequisite, AC_HEADER_TIME.
85233         Reported by Volker Borchert.
85234
85235 2000-02-03  Jim Meyering  <meyering@lucent.com>
85236
85237         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85238
85239 2000-02-03  Jim Meyering  <meyering@lucent.com>
85240
85241         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85242         rather than with `#if HAVE_UTMPNAME'.
85243
85244 2000-02-02  Jim Meyering  <meyering@lucent.com>
85245
85246         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85247         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85248         Reported by Eli Zaretskii.
85249
85250 2000-02-01  Jim Meyering  <meyering@lucent.com>
85251
85252         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85253
85254 2000-01-31  Jim Meyering  <meyering@lucent.com>
85255
85256         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85257         functions.  Add the time.h and sys/time.h headers along with the
85258         AC_REQUIRE'ment of AC_HEADER_TIME.
85259
85260 2000-01-31  Jim Meyering  <meyering@lucent.com>
85261
85262         * lib/nanosleep.h (nanosleep): Guard declaration with
85263         `#if ! HAVE_DECL_NANOSLEEP'.
85264         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85265         the declaration in that vendor's sys/timers.h.
85266         Reported by Christian Krackowizer.
85267
85268         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85269         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85270         (ISPRINT): Likewise.
85271         Reported by Tom Tromey.
85272
85273 2000-01-30  Jim Meyering  <meyering@lucent.com>
85274
85275         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85276
85277         * m4/prereq.m4 (utmp_includes): Define.
85278         Check for ut_user and ut_name members in both struct utmpx
85279         and struct utmp.
85280
85281 2000-01-30  Jim Meyering  <meyering@lucent.com>
85282
85283         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85284         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85285         header files where only utmpx.ut_user is declared.
85286
85287         * lib/readutmp.h (UT_USER): Define.
85288
85289 2000-01-29  Jim Meyering  <meyering@lucent.com>
85290
85291         * m4/lib-check.m4: New file containing library-related checks from
85292         fileutils and sh-utils (textutils had none).
85293
85294 2000-01-28  Jim Meyering  <meyering@lucent.com>
85295
85296         * m4/perl.m4: Change format of warning message to look more like that
85297         from the missing script.  Suggestion from François Pinard.
85298
85299 2000-01-25  Jim Meyering  <meyering@lucent.com>
85300
85301         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85302         well as time.h in the compile check.
85303         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85304         Fix typo in cross-compiling case: s/yes/no/.
85305
85306 2000-01-23  Jim Meyering  <meyering@lucent.com>
85307
85308         * m4/jm-macros.m4: Move df-related tests here from
85309         fileutils/configure.in
85310
85311         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85312         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85313
85314         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85315         s/space/ac_fsusage_space/.
85316         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85317
85318         * m4/ftruncate.m4: New file (derived from part of
85319         fileutils/configure.in).
85320         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85321         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85322
85323         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85324         AC_SUBST these here, rather than just in sh-util/configure.in, so
85325         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85326         all the same.
85327         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85328         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85329         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85330         (AC_SUBST(POW_LIBM)): Likewise.
85331         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85332
85333 2000-01-23  Jim Meyering  <meyering@lucent.com>
85334
85335         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85336         obstack.c.
85337
85338 2000-01-22  Jim Meyering  <meyering@lucent.com>
85339
85340         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85341
85342         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85343
85344         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85345         configure.in
85346         (AC_CHECK_HEADERS): Likewise for sh-utils.
85347         (AC_CHECK_HEADERS): Likewise for textutils.
85348         Merge the three lists of headers.
85349
85350         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85351         from fileutils' configure.in.
85352
85353         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85354         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85355         check-decl.m4.
85356
85357         * m4/check-decl.m4: Use #if rather than #ifdef.
85358         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85359         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85360         (_jm_DECL_HEADERS): Define new function.
85361         (jm_CHECK_DECLARATIONS): Require it.
85362
85363 2000-01-22  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85366         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85367         Required for some AIX systems.  Reported by Christian Krackowizer.
85368         [TESTING] (main): New function.
85369
85370         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85371         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85372         letters.
85373
85374         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85375         iswprint.
85376
85377         * lib/strverscmp.c (ISDIGIT): Define.
85378         (strverscmp): Use ISDIGIT, not isdigit.
85379
85380 2000-01-19  Jim Meyering  <meyering@lucent.com>
85381
85382         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85383         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85384         defines `struct timespec' in <sys/time.h>
85385
85386         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85387         Thanks to Akim for explaining.
85388
85389 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85390
85391         * lib/nanosleep.c (nanosleep):
85392         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85393         POSIX.1 doesn't require SA_INTERRUPT and some systems
85394         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85395         it's been part of POSIX.1 since day 1 (in 1988).
85396
85397 2000-01-17  Jim Meyering  <meyering@lucent.com>
85398
85399         * lib/interlock: Remove unused file.  Reported by François Pinard.
85400
85401 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85402
85403         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85404         alert, backslash, formfeed, and vertical tab unnecessarily in
85405         shell quoting style.
85406
85407 2000-01-16  Jim Meyering  <meyering@lucent.com>
85408
85409         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85410         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85411         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85412         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85413
85414 2000-01-16  Jim Meyering  <meyering@lucent.com>
85415
85416         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85417         because the latter didn't work.
85418
85419 2000-01-15  Jim Meyering  <meyering@lucent.com>
85420
85421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85422         (AC_REPLACE_FUNCS): Add memcpy and memset.
85423         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85424         Add strpbrk.
85425         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85426
85427 2000-01-12  Jim Meyering  <meyering@lucent.com>
85428
85429         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85430         (jm_PREREQ): Use it.
85431         (jm_PREREQ_READUTMP): New macro.
85432         (jm_PREREQ): Use it.
85433
85434 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85435
85436         Quote multibyte characters correctly.
85437         * m4/c-bs-a.m4: New file.
85438         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85439         (jm_PREREQ): Use it.
85440
85441 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85442
85443         * m4/uintmax_t.m4: Port to autoconf 2.13.
85444
85445 2000-01-08  Jim Meyering  <meyering@ascend.com>
85446
85447         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85448         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85449
85450 2000-01-04  Jim Meyering  <meyering@ascend.com>
85451
85452         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85453         jm_STRUCT_DIRENT_D_TYPE.
85454         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85455         jm_STRUCT_DIRENT_D_INO.
85456         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85457         jm_STRUCT_UTIMBUF.
85458         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85459         renamings.
85460         * m4/utime.m4: Likewise.
85461
85462         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85463         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85464
85465 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85466
85467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85468         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85469
85470 2000-01-02  Jim Meyering  <meyering@ascend.com>
85471
85472         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85473         remember if this is necessary.
85474
85475 1999-12-26  Jim Meyering  <meyering@ascend.com>
85476
85477         * m4/jm-macros.m4: Use it here.
85478         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85479
85480 1999-12-23  Jim Meyering  <meyering@ascend.com>
85481
85482         * m4/jm-macros.m4: Check for clock_gettime (moved from
85483         fileutils/configure.in)
85484         Check for gettimeofday.
85485
85486 1999-12-20  Jim Meyering  <meyering@ascend.com>
85487
85488         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85489         autoconf-2.14a-1999-12-20.
85490
85491 1999-12-19  Jim Meyering  <meyering@ascend.com>
85492
85493         * m4/lstat-slash.m4: New file.
85494         * m4/jm-macros.m4: Use the new macro:
85495         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85496
85497 1999-12-07  Jim Meyering  <meyering@ascend.com>
85498
85499         * m4/perl.m4: Require that File::Compare be available, too.
85500         Too many systems seem to lack it.
85501
85502         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85503         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85504
85505 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85506
85507         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85508         problem with the QNX 4.25 shell, which doesn't propagate exit
85509         status of failed commands inside shell assignments.
85510
85511 1999-11-17  Jim Meyering  <meyering@ascend.com>
85512
85513         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85514
85515 1999-11-07  Jim Meyering  <meyering@ascend.com>
85516
85517         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85518
85519 1999-11-06  Jim Meyering  <meyering@ascend.com>
85520
85521         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85522         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85523
85524 1999-11-05  Jim Meyering  <meyering@ascend.com>
85525
85526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85527         configure.in of textutils, fileutils, and sh-utils into this one
85528         (shared between those packages) file.
85529         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85530         AC_STRUCT_ST_BLKSIZE.
85531
85532 1999-11-03  Jim Meyering  <meyering@ascend.com>
85533
85534         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85535         of AC_CHECK_TYPE checks includes unistd.h.
85536         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85537         Suggestion from Akim Demaille.
85538
85539 1999-10-30  Jim Meyering  <meyering@ascend.com>
85540
85541         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85542         m4-quoted string.
85543         * m4/ls-mntd-fs.m4: Likewise.
85544         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85545         * m4/jm-winsz1.m4: Likewise.
85546
85547         * m4/const.m4: Remove file, since the fix made it into the experimental
85548         version of autoconf.
85549         * m4/mktime.m4: Likewise.
85550
85551         * m4/check-type.m4: Remove file, now that the latest version of
85552         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85553
85554         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85555         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85556         AC_CHECK_TYPE.
85557
85558 1999-10-04  Jim Meyering  <meyering@ascend.com>
85559
85560         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85561
85562 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85563
85564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85565         2.95.1 bug with HP-UX 10.20.
85566
85567 1999-09-17  Jim Meyering  <meyering@ascend.com>
85568
85569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85570         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85571         due to missing strdup (against sh-utils-2.0).
85572
85573 1999-08-29  Jim Meyering  <meyering@ascend.com>
85574
85575         * m4/jm-macros.m4: Require jm_BISON.
85576         * m4/bison.m4: New file.
85577
85578 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85579
85580         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85581         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85582
85583 1999-08-05  Jim Meyering  <meyering@ascend.com>
85584
85585         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85586         to avoid conflicts with `conftest' on 8+3 filesystems.
85587         Suggestion from Eli Zaretskii.
85588
85589 1999-08-04  Jim Meyering  <meyering@ascend.com>
85590
85591         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85592         fileutils and sh-utils (textutils's getline test was inadequate).
85593         (AM_FUNC_GETLINE): Run this test.
85594         (AC_CHECK_FUNCS): Check for getdelim.
85595         Reported by Bob Proulx.
85596
85597 1999-08-02  Jim Meyering  <meyering@ascend.com>
85598
85599         * m4/jm-macros.m4: Add a comment.
85600
85601 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85602
85603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85604         <inttypes.h> defines strtoumax as a macro (and not as a
85605         function).
85606
85607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85608
85609         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85610         that we can shift, multiply and divide unsigned long long
85611         values; Ultrix cc can't do it.
85612
85613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85614
85615         * m4/mktime.m4: New file, which is a preview of what should appear
85616         in the next public autoconf release.
85617
85618 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85619
85620         * m4/lfs.m4: Remove this file.
85621         * m4/largefile.m4: New file.  It contains the old contents of
85622         lfs.m4, except that all names with prefix AC_LFS have been
85623         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85624         compatible with future autoconf versions.  Also, some minor m4
85625         quoting problems have been fixed.
85626
85627 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85628
85629         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85630         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85631         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85632         and simplify the shell code.
85633
85634 1999-08-01  Jim Meyering  <meyering@ascend.com>
85635
85636         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85637         m4.
85638
85639 1999-07-20  Jim Meyering  <meyering@ascend.com>
85640
85641         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85642
85643 1999-07-15  Jim Meyering  <meyering@ascend.com>
85644
85645         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85646
85647 1999-05-22  Jim Meyering  <meyering@ascend.com>
85648
85649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85650
85651 1999-05-20  Jim Meyering  <meyering@ascend.com>
85652
85653         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85654         Add a colon after each `then' in case $4 is empty.
85655
85656 1999-05-16  Jim Meyering  <meyering@ascend.com>
85657
85658         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85659
85660 1999-05-10  Jim Meyering  <meyering@ascend.com>
85661
85662         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85663
85664         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85665         AC_FUNC_MKTIME.
85666
85667 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85668
85669         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85670
85671 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85672
85673         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85674         not CPPFLAGS, so that linking works correctly in IRIX.
85675
85676 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85677
85678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85679
85680 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85681
85682         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85683         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85685         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85686         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85687
85688         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85689
85690 1999-04-20  Jim Meyering  <meyering@ascend.com>
85691
85692         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85693         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85694         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85695
85696 1999-04-18  Jim Meyering  <meyering@ascend.com>
85697
85698         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85699         * m4/jm-macros.m4: Use it.
85700
85701 1999-04-06  Jim Meyering  <meyering@ascend.com>
85702
85703         * m4/strftime.m4: Remove test for %f.
85704
85705 1999-03-29  Jim Meyering  <meyering@ascend.com>
85706
85707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85708         superset of the AC_TYPE_* checks in the textutils, fileutils,
85709         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85710         AC_TYPE_PID_T.
85711
85712 1999-03-28  Jim Meyering  <meyering@ascend.com>
85713
85714         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85715         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85716         replaced e.g., in the *.sh files of the sh-utils.
85717
85718 1999-03-20  Jim Meyering  <meyering@ascend.com>
85719
85720         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85721         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85722         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85723
85724 1999-03-19  Jim Meyering  <meyering@ascend.com>
85725
85726         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85727
85728 1999-03-12  Jim Meyering  <meyering@ascend.com>
85729
85730         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85731
85732 1999-03-07  Jim Meyering  <meyering@ascend.com>
85733
85734         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85735         declared.
85736
85737 1999-02-17  Jim Meyering  <meyering@ascend.com>
85738
85739         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85740         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85741
85742 1999-02-07  Jim Meyering  <meyering@ascend.com>
85743
85744         * m4/group-member.m4: New file -- extracted from sh-utils'
85745         configure.in.
85746
85747         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85748         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85749
85750 1999-02-06  Jim Meyering  <meyering@ascend.com>
85751
85752         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85753         * m4/fnmatch.m4: Likewise.
85754         * m4/getgroups.m4: Likewise.
85755         * m4/lstat.m4: Likewise.
85756         * m4/malloc.m4: Likewise.
85757         * m4/putenv.m4: Likewise.
85758         * m4/realloc.m4: Likewise.
85759         * m4/regex.m4: Likewise.
85760         * m4/stat.m4: Likewise.
85761         * m4/strftime.m4: Likewise.
85762         Suggestion from Alain Magloire.
85763
85764         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85765         * m4/fnmatch.m4: Likewise.
85766         * m4/getgroups.m4: Likewise.
85767         * m4/getline.m4: Likewise.
85768         * m4/lstat.m4: Likewise.
85769         * m4/malloc.m4: Likewise.
85770         * m4/memcmp.m4: Likewise.
85771         * m4/putenv.m4: Likewise.
85772         * m4/realloc.m4: Likewise.
85773         * m4/regex.m4: Likewise.
85774         * m4/stat.m4: Likewise.
85775         * m4/strftime.m4: Likewise.
85776         Suggestion from Alain Magloire.
85777
85778         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85779         an argument.
85780
85781         * m4/regex.m4: Add a run-time Test for proper operation of
85782         re_compile_pattern.
85783
85784 1999-01-31  Jim Meyering  <meyering@ascend.com>
85785
85786         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85787
85788 1999-01-30  Jim Meyering  <meyering@ascend.com>
85789
85790         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85791
85792         * m4/jm-mktime.m4: Make this a wrapper around the official
85793         AM_FUNC_MKTIME rather than my private copy, now that the official one
85794         is up to date.
85795         * m4/mktime.m4: Remove file.
85796
85797         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85798         * m4/uptime.m4: Likewise.
85799         * m4/uintmax_t.m4: Likewise.
85800
85801 1999-01-28  Jim Meyering  <meyering@ascend.com>
85802
85803         * m4/jm-macros.m4: Use jm_AFS.
85804         * m4/afs.m4: New file (from fileutils' configure.in).
85805
85806         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85807         * m4/chown.m4: Likewise.
85808         * m4/d-ino.m4: Likewise.
85809         * m4/d-type.m4: Likewise.
85810         * m4/fnmatch.m4: Likewise.
85811         * m4/getgroups.m4: Likewise.
85812         * m4/gettext.m4: Likewise.
85813         * m4/jm-mktime.m4: Likewise.
85814         * m4/jm-winsz2.m4: Likewise.
85815         * m4/lcmessage.m4: Likewise.
85816         * m4/ls-mntd-fs.m4: Likewise.
85817         * m4/malloc.m4: Likewise.
85818         * m4/memcmp.m4: Likewise.
85819         * m4/putenv.m4: Likewise.
85820         * m4/realloc.m4: Likewise.
85821         * m4/st_mtim.m4: Likewise.
85822         * m4/strftime.m4: Likewise.
85823
85824 1999-01-16  Jim Meyering  <meyering@ascend.com>
85825
85826         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85827         (ARGMATCH_DIE_DECL): Define.
85828
85829 1999-01-12  Jim Meyering  <meyering@ascend.com>
85830
85831         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85832         Reported by Lars Hecking.
85833
85834 1999-01-10  Jim Meyering  <meyering@ascend.com>
85835
85836         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85837         gross kludge.
85838         * m4/inttypes_h.m4: Likewise.
85839         * m4/lstat.m4: Likewise.
85840         * m4/malloc.m4: Likewise.
85841         * m4/readdir.m4: Likewise.
85842         * m4/realloc.m4: Likewise.
85843         * m4/st_dm_mode.m4: Likewise.
85844         * m4/stat.m4: Likewise.
85845         * m4/utimbuf.m4: Likewise.
85846         * m4/utimes.m4: Likewise.
85847
85848         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85849         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85850         comments in config.h.in are meaningful.
85851
85852         * m4/jm-macros.m4: Require autoconf-2.13 here.
85853
85854         * m4/regex.m4: By default, don't use the included regex.c on systems
85855         with glibc 2.  Suggestion from Uli Drepper.
85856
85857 1999-01-02  Jim Meyering  <meyering@ascend.com>
85858
85859         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85860
85861 1998-12-18  Jim Meyering  <meyering@ascend.com>
85862
85863         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85864         Based on a suggestion from Lars Hecking.
85865
85866 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85867
85868         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85869
85870 1998-11-16  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/lfs.m4: Double-quote the `uname...` expression.
85873
85874 1998-11-14  Jim Meyering  <meyering@ascend.com>
85875
85876         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85877         * m4/stat.m4: Likewise.
85878
85879 1998-11-03  Jim Meyering  <meyering@ascend.com>
85880
85881         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85882         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85883
85884 1998-10-18  Jim Meyering  <meyering@ascend.com>
85885
85886         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85887
85888 1998-10-17  Jim Meyering  <meyering@ascend.com>
85889
85890         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85891         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85892         calls for those previously hard-coded headers.  Instead, take a new
85893         parameter.
85894         (jm_CHECK_DECLARATIONS): Reflect interface change.
85895         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85896         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85897
85898         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85899
85900 1998-10-14  Jim Meyering  <meyering@ascend.com>
85901
85902         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85903         instead of "TZ=America/Vancouver".  From Paul Eggert.
85904
85905 1998-10-11  Jim Meyering  <meyering@ascend.com>
85906
85907         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85908         This adds a test for a recently added compatibility fix for mktime.c.
85909         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85910
85911 1998-09-27  Jim Meyering  <meyering@ascend.com>
85912
85913         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85914
85915         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85916         ../configure.in, including a change from Gordon Matzigkeit to allow
85917         cross-compiling for the Hurd.
85918
85919         * m4/glibc.m4: New file/macro to test for the GNU C Library
85920         versions 1 and 2.  From Gordon Matzigkeit.
85921         Indent.
85922
85923 1998-09-21  Jim Meyering  <meyering@ascend.com>
85924
85925         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85926
85927 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85928
85929         Port nanosecond-resolution times to UnixWare 2.1.2 and
85930         pedantic Solaris 2.6.
85931
85932         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85933         AC_STRUCT_ST_MTIM.
85934         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85935         Generate name of ns member, instead of just 1 or undef.
85936         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85937
85938 1998-08-15  Jim Meyering  <meyering@ascend.com>
85939
85940         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85941         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85942         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85943         instead of jm_TYPE_SSIZE_T.
85944
85945 1998-08-12  Jim Meyering  <meyering@ascend.com>
85946
85947         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85948
85949 1998-08-02  Jim Meyering  <meyering@ascend.com>
85950
85951         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85952         in acconfig.h manually.
85953
85954 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85955
85956         * m4/st_mtim.m4: New file.
85957
85958 1998-07-28  Jim Meyering  <meyering@ascend.com>
85959
85960         * m4/utimes.m4: Undef stat.
85961
85962 1998-07-25  Jim Meyering  <meyering@ascend.com>
85963
85964         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85965         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85966
85967 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85968
85969         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85970         uid and gid actually remain unchanged.
85971
85972 1998-07-07  Jim Meyering  <meyering@ascend.com>
85973
85974         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85975
85976 1998-07-04  Jim Meyering  <meyering@ascend.com>
85977
85978         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85979         to prove that this macro can be used in packages without regex.c.
85980
85981 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85982
85983         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85984         is to be used.
85985
85986 1998-07-03  Jim Meyering  <meyering@ascend.com>
85987
85988         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85989
85990         * m4/gettext.m4: New file -- from gettext-0.10.35.
85991         * m4/lcmessage.m4: Likewise.
85992         * m4/progtest.m4: Likewise.
85993
85994         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85995         * m4/jm-macros.m4: Require the new macro.
85996
85997 1998-06-29  Jim Meyering  <meyering@ascend.com>
85998
85999         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86000         for the definition of NGROUPS (used in a system header included
86001         by sys/mount.h).
86002
86003 1998-06-28  Jim Meyering  <meyering@ascend.com>
86004
86005         * m4/ls-mntd-fs.m4: New file.
86006         * m4/fstypename.m4: New file.
86007
86008         * m4/jm-macros.m4: Require the new macro.
86009         * m4/jm-glibc-io.m4: New file.
86010
86011 1998-05-19  Jim Meyering  <meyering@ascend.com>
86012
86013         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86014         * m4/lchown.m4: New file.
86015
86016         * m4/Makefile.am.in: New file.
86017         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86018
86019 1998-05-14  Jim Meyering  <meyering@ascend.com>
86020
86021         * m4/Makefile.am (EXTRA_DIST): Add them.
86022         * m4/jm-macros.m4: New file.
86023         * m4/utimbuf.m4: New file.
86024
86025 1998-05-12  Jim Meyering  <meyering@ascend.com>
86026
86027         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86028
86029 1998-05-11  Jim Meyering  <meyering@ascend.com>
86030
86031         * m4/isc-posix.m4: New file.
86032
86033 1998-05-10  Jim Meyering  <meyering@ascend.com>
86034
86035         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86036
86037 1998-05-09  Jim Meyering  <meyering@ascend.com>
86038
86039         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86040         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86041         with automake.
86042
86043         * m4/ssize_t.m4: New file.
86044         * m4/mktime.m4: Remove file -- the new automake has this now.
86045
86046 1998-04-26  Jim Meyering  <meyering@ascend.com>
86047
86048         * m4/assert.m4: New file.
86049         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86050
86051 1998-04-05  Jim Meyering  <meyering@ascend.com>
86052
86053         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86054         (jm_PREREQ): Use it here.
86055
86056 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86057
86058         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86059         in acconfig.h.
86060
86061 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86062
86063         * m4/prereq.m4: New file.
86064         * m4/error.m4: New file.
86065         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86066
86067 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86068
86069         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86070         cache-check for the same variable -- that defeated the purpose of
86071         the test; the test program was never run.  This was a problem only
86072         on systems with losing getline functions -- HP-UX 10.20 is one.
86073         Reported by Bjorn Helgaas.
86074
86075 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86076
86077         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86078
86079 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86080
86081         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86082
86083         * m4/const.m4: New file.  Use an initializer in this declaration
86084         typedef int charset[2]; const charset x;
86085         Reported by Bob Glickstein.
86086
86087 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86088
86089         * m4/chown.m4: Fix reversed types on -1 args to chown.
86090         From Kaveh Ghazi.
86091
86092 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86093
86094         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86095         Add lseek and memchr.
86096
86097         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86098         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86099         have a 20-character limit on names.
86100
86101 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86102
86103         * m4/inttypes_h.m4: New file.
86104         * m4/uintmax_t.m4: New file.
86105         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86106
86107
86108         -----
86109
86110         Local Variables:
86111         coding: utf-8
86112         End:
86113
86114         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86115
86116         Copying and distribution of this file, with or without
86117         modification, are permitted provided the copyright notice
86118         and this notice are preserved.